Reference | I/O Devices WcState : Variable of type BOOL, that shows the working counter state of the EtherCAT slave device. A value of 0 indicates a valid working counter and a value of 1 an invalid working counter. If the working counter is invalid, this indicates that the EtherCAT command, that is responsible for updating the inputs and outputs for this device, has an incorrect working counter. Because this command can address more than 1 slave device, the variable WcState of all involved devices will be set to invalid and one cannot determine the device that causes the problem with the help of this variable.
To determine if an individual slave device has a problem, one can read out the state of the device with the help of the InfoData.State variable. If 'Info Data' is enabled (see Master Settings [ } 223] ), the 'Info' device image is added to the EtherCAT device. Additionally, an entry 'InfoData' is added to the EtherCAT device and to the connected EtherCAT slave devices. 'InfoData' contains input variables, that supply information about the EtherCAT device, that normally do not change very often. Variables mapped to the 'Info' images are not updated cyclically but only if the image has changed. ChangeCnt: The ChangeCnt shows how often the contents of the image has changed. DevId(optional):
This is the device id of the EtherCAT device. AmsNetId(optional): The AmsNetId is a parameter necessary for communicating with the EtherCAT master device via ADS. The ADS port of the EtherCAT master is always 0xFFFF(65535) and the Ads Port of an EtherCAT slave device is equal to the fixed address (see EtherCAT Addr ) of the slave. EtherCAT Slave Device State: The 'State' variable holds the current EtherCAT state and link status of the EtherCAT slave device. TwinCAT 2 204 Version: 1.7