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