765-1202/0100-0000
Diagnostics
84
Product manual | Version: 1.0.0
16DIO FLD EC DC 24V 2.0A
11.2.1.7 Subindexes 6–69: Diagnosis Message (Write-Protected)
Depending on subindex 1, the EtherCAT slave can store up to 64 diagnostic messages.
In the process, the first message is stored in subindex 6, the second in subindex 7 etc.
When the buffer is full, the EtherCAT slave overwrites subindex 6 etc., so the last diag-
nostic messages are accessible to the EtherCAT master. The exact number of them is in-
dicated by subindex 1.
11.2.1.8 Structure of a Diagnostic Message
A diagnostic message in subindexes 6 to 69 has the following structure:
Table 66: Structure of a Diagnostic Message in Subindexes 6 to 69:
Parame-
ters
Datatype Description
Diag
Code
UINT32
Diagnostic code for identifying the diagnostic message
Bits 0–15 =
0x0000-0xDFFF
Not used
Bits 0–15 =
0xE000-0xE7FF
Bits 16–31: can be used according to the manufacturer
specifications
Bits 0–15 = 0xE800
Bits 16–31: emergency error code
Bits 0–15 =
0xE801-0xEDFF
Reserved
Bits 0–15 =
0xEE00-0xEFFF
Bits 16–31: profile-specific
Bits 0–15 =
0xF000-0xFFFF
Not used
Flags
UINT16
Bits 0–3
Diagnostic type
0: Info message
1: Warning
2: Error message
3–15: Reserved
Bit 4
Local time stamp
The global time stamp can be calculated from this by read-
ing the current time stamp (object 0x10F8) and calculating
the age of the message
Bits 5–7
Reserved
Bits 8–15
Number of parameters in this diagnostic message
Text ID
UINT16
Text ID as a reference to the diagnostic text as described in the ESI file.
0
No text ID
1–65535
Text ID reference to the ESI file
Time
Stamp
UINT64
Local time stamp in nanoseconds (corresponds to 0x10F8)
0
No time stamp
!= 0
Time stamp
Parame-
ter 1
Flags
UINT16
Describes the type of parameter 1
Bits 12–15 = 0
Bits 0–11 = data type index of the data type of parameter 1
0x0005: UINT8
The corresponding text parameters and formatting are de-
scribed in document ETG.2000.
Parame-
ter 1
UINT8
Port number (1 ... 8)