Diagnostic Telegrams for the Coupler Box (IL230x-B3xx)
DiagData in DPV1 Format
The diagnostic data is automatically reported to the DP master by the Fieldbus Boxes whenever it changes. The meaning of the first 6 bytes is the same for all DP slaves, after which device-specific diagnostic data follows. The structure for a Coupler Box is specified according to the setting of “Old format / DPV1 format”.
Usually the DP master has the ability to interrogate a flag in the PLC to determine whether diagnostic data has changed. The diagnostic data itself can then in most cases be read by means of a function block. In the S5 the diagnostic data is read with the FB IM308C function block, and in the S7 with the SFC13 and in TwinCAT it is read with the ADSREAD function block. The maximum length of the diagnostic data can be altered through User_Prm_Data (byte 11). If there is more diagnostic data available than can be sent, this is itself indicated in the diagnostic data.
Byte | Bit | Description |
---|---|---|
0 | 0 | Slave does not answer (is set internally by the DP master) |
1 | Slave is starting up (parameterisation and configuration are being evaluated) | |
2 | Configuration error | |
3 | Ext_Diag_Data available (from byte 6) | |
4 | Function not supported | |
5 | Incorrect answer from slave (is set internally by the DP master) | |
6 | Parameterisation error | |
7 | Slave is exchanging data with another master (is set internally by the DP master) | |
1 | 0 | Slave must be parameterised again |
1 | Slave has static diagnostics | |
2 | 1 | |
3 | DP watchdog is active | |
4 | Slave is in freeze mode | |
5 | Slave is in sync mode | |
6 | reserved | |
7 | Slave is deactivated (is set internally by the DP master) | |
2 | 0-6 | reserved |
7 | too much Ext_Diag_Data | |
3 |
| Station address of the master with which data is being exchanged |
4, 5 |
| Ident number |
Byte | Bit | Description |
---|---|---|
6 |
| Length of the Ext_Diag_Data, including length byte |
7 |
| 0xA1 (identification of the DPV1 diagnostic format) |
8 |
| 0x00 |
9 |
| 0x00 |
10 |
| 0x00 |
11 | 0 | no error |
1 | Start IP-Link error identification diagnostics | |
32 | General IP-Link error | |
12 | 0 | no error |
3 | IP-Link interruption | |
4 | IP-Link timeout error | |
5 | Error when reading the complex module registers | |
11 | Extension module does not handle the synchronisation telegram | |
12 | More than 120 modules wired | |
13 | Module type is not supported | |
13 | 0-120 | Error code argument: |
14 |
| 0x00 |
15 |
| 0x00 |
Byte | Bit | Description |
---|---|---|
16 | 0-7 | Faulty IE Box number (1- 120 only complex modules are counted in the direction "with the light") |
17 | 0-5 | Status byte of the channel (bits 0-5) |
18 | 0-7 |
|
19 | 0-5 |
|
... | ... |
|
60 | 0-7 |
|
61 | 0-5 |
|
Note Under complex mapping, the status byte is transferred from the terminal to the controller. It contains a variety of status bits depending on the terminal type involved (such as process data less than/greater than limit value x, over range, under range etc.) |