Extended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
346 System Manual, 03/2014, A5E02486680-AG
The GET_DIAG instruction uses the "L address" (LADDR) of the station to obtain the health
of the entire station. This L Address can be found within the Network Configuration view and
by selecting the entire station rack (entire gray area), the L Address is shown in the
Properties Tab of the station. You can find the LADDR for each individual module either in
the properties for the module (in the device configuration) or in the default tag table for the
CPU.
LED (Read LED status) instruction
Table 8- 115 LED instruction
laddr:=_word_in_,
LED:=_uint_in_);
Use the LED instruction to read the state of the LEDs on a CPU or
interface. The specified LED state is returned by the RET_VAL
output.
Table 8- 116 Data types for the parameters
Identification number of the CPU or interface
1
LED IN UInt LED identifier number
Color 1 = green, color 2 = yellow
For example, you can select the CPU (such as "PLC_1") or the PROFINET interface from the drop-down list of the