EasyManua.ls Logo

Siemens S7-1200 - LED (Read LED Status) Instruction

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
8.5.3
LED (Read LED status) instruction
Table 8- 115 LED instruction
LAD / FBD
SCL
Description
ret_val := LED(
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
Parameter and type
Data type
Description
LADDR
IN
HW_IO
Identification number of the CPU or interface
1
LED IN UInt LED identifier number
1
RUN/STOP
Color 1 = green, color 2 = yellow
2
Error
Color 1 = red
3
Maintenance
Color 1 = yellow
4
Redundancy
Not applicable
5
Link
Color 1 = green
6
Tx/Rx
Color 1 = yellow
RET_VAL
OUT
Int
Status of the LED
1
For example, you can select the CPU (such as "PLC_1") or the PROFINET interface from the drop-down list of the
parameter.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals