Extended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
359
Table 8- 141 Data types for the parameters
MODE IN UInt Use the MODE parameter to select which diagnostic data is to be
Hardware ID of the device
Status of the instruction
Number of output diagnostic details
DIAG InOut Variant Pointer to data area for storage of diagnostic information of the
DETAILS InOut Variant Pointer to data area for storage of diagnostic details in accordance
Depending on the value at the MODE parameter, different diagnostics data is output at the
DIAG, CNT_DIAG and DETAILS output parameters:
Table 8- 142 MODE parameter
0 Output of all supported
diagnostic information for a
module as DWord, where Bit
X=1 indicates that mode X is
Bit string of the supported
modes as DWord, where Bit
X=1 indicates that mode X
is supported.
0 -
1 Output of the inherent status
of the addressed hardware
object.
Diagnostics status: Output
in accordance with the DIS
structure. (Note: Refer to
the "DIS structure"
information below and
GET_DIAG instruction
example at the end of the
0 -
2 Output of the status of all
subordinate modules of the
addressed hardware object.
Output of diagnostics data
in accordance with the DNN
structure. (Note: Refer to
the "DNN structure"
information below and
GET_DIAG instruction
example at the end of the
0 -