Reference | I/O Devices For each sync task taking part in process data communication a separate frame is sent. The maximal number of sync tasks is set to 4 by default. To change the maximal number of sync tasks, one has to open the Advanced Settings Dialog and select the Sync Tasks [ } 223] page. It is possible to assign one or more Sync Units for a specific task. Each of these Sync Units is assigned to a process data area of a slave device. For each Sync Unit of a sync task the EtherCAT frame contains a separate EtherCAT command.
In the example above the first EtherCAT command of the first EtherCAT frame exchanges the process data of the EtherCAT devices assigned to the Sync Unit 1 of Task 1. In this case it is only the one EtherCAT slave device Term1(EL9800)(see Sync Unit Assignment dialog above). For each Sync Unit of a task an expected working counter is calculated, that is displayed in the column 'WC'. Working Counter : The working counter of an EtherCAT command is a 16-bit counter. The counter is incremented by each EtherCAT slave, that is successfully addressed by the command. If only inputs are read from the EtherCAT slave device, the working counter is incremented by 1.
If outputs are written to the EtherCAT slave device, the working counter is incremented by 2. If both inputs and outputs variables are exchanged the working counter is incremented by 3. If the working counter is incorrect the EhterCAT master discards the received inputs of the EtherCAT command. For each frame the master has a diagnostic input 'Frm X WcState' (X =frame number), that shows the working counter states of the individual EtherCAT commands of the frame (see FrmXWcState [ } 202] ). With 'FrmXWcState' it is not possible to verify which Term is responsible for the incorrect working counter.
To retrieve more detailed information about the states of the individual slave devices, one has to read out the input variable InfoData.State [ } 223] of the slaves. Example: 1. Open a new System Manager Project 2. Add a EtherCAT device to the I/O devices in the tree view of the system manager 3. Append an EK1100 and three EL1004 to the EtherCAT device. 4. Expand the entry 'System-Configuration' in the tree view of the system manager 5. Open the context menu of 'Additional Task' by right clicking on the subitem 'Additional Task' of 'System-Configuration' 6. Select the menu entry 'Append Task...' to add Task1 TwinCAT 2 215 Version: 1.7