101BExtended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
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
ret_val := LED(
Table 8- 103 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.
Table 8- 104 Status of RET_VAL
RET_VAL (W#16#...)
0 to 9 LED state
282
laddr:=_word_in_,
LED:=_uint_in_);
Data type
HW_IO
UInt
Int
Description
0
LED does not exist
1
Off
2
Color 1 On (solid)
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.
Description
Identification number of the CPU or interface
LED identifier number
1
RUN/STOP
2
Error
3
Maintenance
4
Redundancy
5
Link
6
Tx/Rx
Status of the LED
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, 11/2011, A5E02486680-05