101BExtended instructions
8.5 Diagnostics (PROFINET or PROFIBUS)
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
283
RET_VAL (W#16#...)
Description
3
Color 2 On (Solid)
4
Color 1 flashing at 2 Hz
5
Color 2 flashing 2 Hz
6
Color 1 & 2 flashing alternatively at 2 Hz
7
Color 1 on (Tx/Rx)
8
Color 2 on (Tx/Rx)
9
State of the LED is not available
8091
Device identified by LADDR does not exist
8092
Device identified by LADDR does not support LEDs
8093
LED identifier not defined
80Bx
CPU identified by LADDR does not support the LED instruction
8.5.2
DeviceStates instruction
Table 8- 105 DeviceStates instruction
LAD / FBD
SCL
Description
ret_val := DeviceStates(
laddr:=hw_io_in_,
mode:=_uint_in_,
state:=_variant_inout_);
Retrieves the I/O device operational states of an
I/O subsystem. This information corresponds with
the STEP 7 diagnostics view.
Table 8- 106 Data types for the parameters
Parameter and type
Data type
Description
LADDR
IN
HW_IOSYSTEM
Logical address: (Identifier for the I/O system)
MODE
IN
UInt
Status type:
1: Configured stations
2: Defective stations
3: Deactivated stations
4: Existing stations
RET_VAL
OUT
Int
Execution condition code
STATE
1
InOut
Variant
Buffer containing the error status of each device:
Summary bit: Bit 0 =1, if one of the state bits of the I/O devices
is 1
State bit: State of I/O device with station number
n
according to
the selected MODE. For example, MODE = 2 and bit 3 = 1
means station 3 is faulty.
1
For PROFIBUS-DP, the length of the status information is 128 bits. For PROFIBUS I/O, the length is 1024 bits.