Implicit instance of the slave, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual
Page 911
L-force | PLC Designer
Device Editors
DMS 4.1 EN 03/2011 TD29
909
Implicit Instance of the Slave
For each EtherCAT Slave implicitly an instance of type "ETCSlave" will be created as
soon as the slave device is inserted in the devices tree.
The name of the instance is identic with the device name used in the devices tree.
Information on the availability of this instance is displayed in the lower part of the I/O
Mapping dialog.
The slave instance can be used in the application for getting, switching and checking
the slave status during runtime. See also: Concatenated List for Checking all Slaves.
The following parameters can be used for this purpose according to syntax
"
Input parameter:
xSetOperational
On a rising edge it will be tried to switch the slave back to the ETC_SLAVE_
OPERATIONAL mode.
Output parameter:
wState
The current state of the slave is returned. Possible values:
0: ETC_SLAVE_BOOT
1: ETC_SLAVE_INIT
2: ETC_SLAVE_PREOPERATIONAL
4: ETC_SLAVE_SAVEOPERATIONAL
8: ETC_SLAVE_OPERATIONAL
Status ETC_SLAVE_OPERATIONAL means that the configuration has been finished
successfully. In case of errors during the configuration the device might fall back to
previous states.
Alternatively, as far as supported by the device, the interface provided by the library
IIoDrvBusControl.library can be implemented to provide access on a EtherCAT device
from out the application.