Led (Read Led Status) Instruction - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

Extended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
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.
8.5.3

LED (Read LED status) instruction

Table 8- 115 LED instruction
LAD / FBD
SCL
ret_val := LED(
Table 8- 116 Data types for the parameters
Parameter and type
LADDR
IN
LED
IN
RET_VAL
OUT
For example, you can select the CPU (such as "PLC_1") or the PROFINET interface from the drop-down list of the
1
parameter.
346
laddr:=_word_in_,
LED:=_uint_in_);
Data type
Description
HW_IO
Identification number of the CPU or interface
UInt
LED identifier number
1
2
3
4
5
6
Int
Status of the LED
Description
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.
RUN/STOP
Error
Maintenance
Redundancy
Link
Tx/Rx
1
Color 1 = green, color 2 = yellow
Color 1 = red
Color 1 = yellow
Not applicable
Color 1 = green
Color 1 = yellow
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG

Advertisement

Table of Contents
loading

Table of Contents