Slave diagnostics
(Original Document)
At a Glance
Only the first six diagnostics bytes are standardized and mandatory.
One slave can provide up to 244 diagnostics bytes. With extended diagnostics (byte 7 equals ff in hexadecimal), bit 3 of byte 0 indicates this by being at 1 (bit 3=1).
Bytes
Structure
Description
0
bit 0: NOT_REACHABLE
bit 0=1 if the slave is not connected or switched off.
bit 1: NOT_READY
bit 1=1 if the slave is not ready for data exchanges.
bit 2: CONFIG_FAULT
bit 2=1 if there is a configuration error on the slave when test requested.
bit 3: EXT_DIAG
bit 3=1 if there are extended diagnostics (byte 7 at FFh in hexadecimal).
bit 4: NOT_SUPPORTED
bit 4=1 if the function is not supported by the slave.
bit 5: INVALID_RSP
bit 5=1 if there is an error in the last response from the slave.
bit 6: PARAM_FAULT
bit 6=1 if there is an error in the last parametering message from the slave.
bit 7: MASTER_LOCK
bit 7=1 if the slave has already been parameterized by another master module.
1
bit 0: PRM_REQUIRED
bit 0=1 if the slave has to be reconfigured and re-parameterized.
bit 1: DIAG_DATA_RDY
bit 1=1 if the slave has generated a diagnostics to be processed by the master.
bit 2: IS_SLAVE_DIAG
bit 2=0 if the diagnostics has been created by the master.
bit 2=1 if the diagnostics has been created by the slave.
bit 3: WDT_ACTIVE
bit 3=1 if the slave watchdog is active.
bit 4: FREEZE_MODE
bit 4=1 if the slave inputs selected are frozen.
bit 5: SYNC_MODE
bit 5=1 if the slave outputs selected are frozen.
bit 6:
not used.
bit 7: INACTIVE
bit 7=1 if the slave is inactive (excluded from processing).
2
bit 0 to 6
Not used.
bit 7: DIAG_OVERFLOW
bit 7=1 if the number of diagnostics exceeds the size of the receive words.
3
MASTER_ADDRESS
Address of the master module that sets the parameters for the slave.
4/5
PNO_IDENTIFIER
Identification code for the slave.
6...244
SPECIFIC_DIAG
Optional specific diagnostics data.