This is with reference to Dynamic Configuration of Ethercat slaves in SP16
(https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0)
I'm trying to understand the example but i have a several questions about it.
Following code snippet is extracted from the example.
wStartAddress (i.e.16#1800) => is this user-defined or device specific value?
usiMode : (i.e. 16#20) => is there any pre-defined value depending on type of the device? *
All data is device specific. Each manufacturer of the slave has defined the data. It is all inside the ESI file
2) For analog input/output devices(EL4132, EL3142), AddSyncManager are used four times and AddFMMU are used twice, why? This is device specific. The EL4132/E3142 are using CoE as a Mailbox protocol, therefore a sync manager is required for the mailbox communication
3) For analog Input device (EL3142) , why a conditional statement is used for AddSyncManager as follows? IF readeeprom.byMailboxProtocol > 0 THEN
// mailbox from eeprom
pSlave^.AddSyncManager(readeeprom.wRcvMbxOffset, readeeprom.wRcvMbxSize,16#26, TRUE, 3);
pSlave^.AddSyncManager(readeeprom.wSndMbxOffset, readeeprom.wSndMbxSize,16#22, TRUE, 2);
ENDIF
It is only an example how to get the information from the EEprom, if a device supports the mailbox
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
This is with reference to Dynamic Configuration of Ethercat slaves in SP16
(https://help.codesys.com/webapp/RMyqti2qMZZtTODOaHlN71rMvfI%2Ffld-DynamicConfig;product=EtherCATStack;version=3.5.16.0)
I'm trying to understand the example but i have a several questions about it.
Following code snippet is extracted from the example.
1) AddSyncManager Method
wStartAddress (i.e.16#1800) => is this user-defined or device specific value?
usiMode : (i.e. 16#20) => is there any pre-defined value depending on type of the device?
2) For analog input/output devices(EL4132, EL3142), AddSyncManager are used four times and AddFMMU are used twice, why?
3) For analog Input device (EL3142) , why a conditional statement is used for AddSyncManager as follows?
a detailed documentation on the Dynamic Config feature would be much appreciated.
Last edit: audi0615 2020-05-15
1)*AddSyncManager Method
wStartAddress (i.e.16#1800) => is this user-defined or device specific value?
usiMode : (i.e. 16#20) => is there any pre-defined value depending on type of the device? *
All data is device specific. Each manufacturer of the slave has defined the data. It is all inside the ESI file
2) For analog input/output devices(EL4132, EL3142), AddSyncManager are used four times and AddFMMU are used twice, why?
This is device specific. The EL4132/E3142 are using CoE as a Mailbox protocol, therefore a sync manager is required for the mailbox communication
3) For analog Input device (EL3142) , why a conditional statement is used for AddSyncManager as follows?
IF readeeprom.byMailboxProtocol > 0 THEN
// mailbox from eeprom
pSlave^.AddSyncManager(readeeprom.wRcvMbxOffset, readeeprom.wRcvMbxSize,16#26, TRUE, 3);
pSlave^.AddSyncManager(readeeprom.wSndMbxOffset, readeeprom.wSndMbxSize,16#22, TRUE, 2);
ENDIF
It is only an example how to get the information from the EEprom, if a device supports the mailbox
Thank you for your reply Mr. Edwin
I have requested the relevant information to Beckhoff and Crevis.
Thanks again.