EL1254 - Process data
The extent of the process data that is made available can be changed via the “Process data” tab (see Fig. Process data tab, EL1254).
Sync Manager (SM)
In order to configure the process data, select the required Sync Manager (SM0..SM2 are available) in the upper left-hand “Sync Manager” box (fig. Process data tab, EL1254). The process data assigned to this Sync Manager can then be switched on or off in the “PDO Assignment” box underneath. Restarting the EtherCAT system, or reloading the configuration in configuration mode (F4), causes the EtherCAT communication to restart, and the process data is transferred from the terminal.
It is of crucial importance that an optional PDO is assigned to the correct SyncManager, otherwise the EtherCAT start will result in incomplete data exchange or individual variables "do not work". In the following described by means of the example 0x1A17 (belonging to the SM0):
SM0, PDO assignment 0x1C10 (not changeable) | |||
---|---|---|---|
Index | Size (byte.bit) | Name | PDO content |
0x1A00 (default) | 0.1 | Channel 1 | Input 1 |
0x1A01(default) | 0.1 | Channel 2 | Input 2 |
0x1A02 (default) | 0.1 | Channel 3 | Input 3 |
0x1A03 (default) | 0.5 | Channel 4 | Input 4 |
0x1A04 (default) | 0.0 | Reserved | Reserved |
SM01, PDO assignment 0x1C11 (PDOs are mutually exclusive) | |||
---|---|---|---|
Index | Size (byte.bit) | Name | PDO content |
0x1A10 | 4.0 | Latch | Status1; Status2, Status3, Status4 |
0x1A11 | 6.0 | Latch | Status1; LatchPos1 |
0x1A12 | 18.0 | Latch | Status1;LatchPos1;LatchNeg1 |
0x1A13 | 34.0 | Latch | Status1/Status2; |
0x1A14 | 51.0 | Latch | Status1; Status2, Status3 |
0x1A15 (default) | 68.0 | Latch | Status1; Status2, Status3, Status4 |
0x1A18 | 34.0 | Latch | LatchPos1LatchPos2; |
0x1A19 | 52.0 | Latch | LatchPos1LatchPos2/LatchPos3; |
0x1A1A | 68.0 | Latch | LatchPos1/LatchPos2/LatchPos3/LatchPos4; |
0x1A1B | 60.0 | LatchPos64 | LatchPos1/LatchPos2/LatchPos3/LatchPos4; |
0x1A1C | 68.0 | LatchNeg64 | LatchNeg1/LatchNeg2/LatchNeg3/LatchNeg4 |
SM2, PDO assignment 0x1C12 (PDOs are mutually exclusive) | |||
---|---|---|---|
Index | Size (byte.bit) | Name | PDO content |
0x1A16 | 4.0 | SysTime | 32 bit representation |
0x1A17 | 8.0 | SysTime | 64 bit representation |
Extent of process data
The standard configuration of the EL2154 is shown in Fig. Standard extent of process data, EL1254:
- PDO 0x1A00 (Channel 1, Input), 0x1A01 (Channel 2, Input), 0x1A02 (Channel 3, Input), 0x1A03 (Channel 4, Input), 0x1A04 (reserved)
- PDO 0x1A15 (Status1/Status2/Status3/Status4; LatchPos1/LatchPos2/LatchPos3, LatchPos4; LatchNeg1/LatchNeg2/LatchNeg3/LatchNeg4)
Libraries for 64-bit processing A selection of functions for handling 64-bit numbers is available under Beckhoff TwinCAT in the TcUtilities.lib library. Longer execution times are required here than is the case with standard, 32-bit data types. A data type with a width of 64-bits is defined in TcEthercat.lib as T_DCTIME or in TcUtilities.lib as T_LARGE_INTEGER. |