101BExtended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
286
System Manual, 11/2011, A5E02486680-05
Input LADDR selects the hardware device. The type of the delivered diagnostic information
is selected by the input MODE.
Table 8- 113 MODE parameter
MODE input
DIAG output
CNT_DIAG output
DETAIL output
0
Bit list of supported modes as DWord
0
Nothing
1
Diagnostic state as diagnostic information
source (DIS)
0
Nothing
2
Diagnostic navigation node (DNN)
0
Nothing
Table 8- 114 Structure of the diagnostic information source (DIS)
DIS: Struct;
OwnState:
UInt;
MaintenanceState:
DWord;
IOState:
Word;
ComponentStateDetail:
DWord;
OperatingState:
UInt;
End_Struct
Table 8- 115 Structure of the diagnostic navigation node (DNN)
DNN: Struct;
SubordinateState:
UInt;
SubordinateIOState:
Word;
DNNmode:
Word;
End_Struct
Table 8- 116 Condition codes
RET_VAL (W#16#...)
Description
0
No error
n
All of the n existing diagnostic details could not be provided.
8080
Mode not supported.
8081
Data type at parameter DIAG not supported with given mode.
8082
Data type at parameter DETAIL not supported with given mode.
8090
Device identified by LADDR does not exist.
8091
Channel does not exist.
80C1
Lack of resources for parallel executions.