Devicestates Instruction - Siemens SIMATIC S7 System Manual

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

RET_VAL (W#16#...)
8091
8092
8093
80Bx
8.5.2

DeviceStates instruction

Table 8- 105 DeviceStates instruction
LAD / FBD
Table 8- 106 Data types for the parameters
Parameter and type
LADDR
IN
MODE
IN
RET_VAL
OUT
STATE
InOut
1
For PROFIBUS-DP, the length of the status information is 128 bits. For PROFIBUS I/O, the length is 1024 bits.
1
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
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
Device identified by LADDR does not exist
Device identified by LADDR does not support LEDs
LED identifier not defined
CPU identified by LADDR does not support the LED instruction
SCL
ret_val := DeviceStates(
laddr:=hw_io_in_,
mode:=_uint_in_,
state:=_variant_inout_);
Data type
HW_IOSYSTEM
UInt
Int
Variant
8.5 Diagnostics (PROFINET or PROFIBUS)
Description
Retrieves the I/O device operational states of an
I/O subsystem. This information corresponds with
the STEP 7 diagnostics view.
Description
Logical address: (Identifier for the I/O system)
Status type:
1: Configured stations
2: Defective stations
3: Deactivated stations
4: Existing stations
Execution condition code
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
the selected MODE. For example, MODE = 2 and bit 3 = 1
means station 3 is faulty.
101BExtended instructions
n
according to
283

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents