101BExtended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
282
System Manual, 11/2011, A5E02486680-05
After the interrupt events are enabled again, the interrupts that occurred while DIS_AIRT was
in effect are processed, or the interrupts are processed as soon as the current OB has been
executed.
Parameter RET_VAL indicates the number of times that interrupt processing was disabled,
which is the number of queued DIS_AIRT executions. Interrupt processing is only enabled
again when parameter RET_VAL = 0.
8.5
Diagnostics (PROFINET or PROFIBUS)
8.5.1
LED instruction
Table 8- 102 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- 103 Data types for the parameters
Parameter and type
Data type
Description
LADDR
IN
HW_IO
Identification number of the CPU or interface
1
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
LED
IN
UInt
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 8- 104 Status of RET_VAL
RET_VAL (W#16#...)
Description
0
LED does not exist
1
Off
0 to 9 LED state
2
Color 1 On (solid)