The bus starts up successful and everything seems to work corrent. The problem is that in the ETCSlave instances generated by:
{implicit on}// important: initialize the fb instancespSlave^.__vfinit();pSlave^.FB_Init(FALSE, FALSE); // call the constructor{implicit off}
there is no data. That means InputData and OutputData properties have no pointers and are always 0. The same problem exists if I access the slave Instance via the EthercatMaster (ECM0):
ECM0.Master^.FirstSlave. Running through the linked list via ECM0.Master^.FirstSlave^.NextInstance works and I get a list of pointers in the correct count of slaves but I cannot access other properties.
Can anybody help?
CODESYS Version 3.5.17.0. CODESYS Control Win (32-bit).
Any help is appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I try to run an EtherCAT-Bus without configuring the Slaves in the device tree. This is described on the following page of the CODESYS Online Help: https://help.codesys.com/webapp/C4D5b3NXlIZndtqdRGsMJRgeHFw%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.17.0.
The bus starts up successful and everything seems to work corrent. The problem is that in the ETCSlave instances generated by:
there is no data. That means InputData and OutputData properties have no pointers and are always 0. The same problem exists if I access the slave Instance via the EthercatMaster (ECM0):
ECM0.Master^.FirstSlave. Running through the linked list via ECM0.Master^.FirstSlave^.NextInstance works and I get a list of pointers in the correct count of slaves but I cannot access other properties.
Can anybody help?
CODESYS Version 3.5.17.0. CODESYS Control Win (32-bit).
Any help is appreciated.