After managing to successfully map all ADIs during runtime (filling out APPL_asAdObjDefaultMap array), I am struggling to map those in the Assembly Object and exchange I/O data with the PLC. Initially I am using a NP40 EtherNet/IP module, but soon others will be supported as well.
If I set ASM_OBJ_ENABLE to TRUE (abcc_obj_cfg.h file), module does not start up correctly, indicating of course there’s something wrong with my code. I am trying to blend the example code with mine but it’s not working.
Please find below basic settings, considering 2 input and 2 output words are going to be exchanged between Anybus and the PLC. Later on the number of words will be also set by the user.
I can’t quite figure out what’s wrong with my settings, so any help will be appreciated.
PS: Not using the REMAP calls. My approach is to set everything before calling AD_Init.