Devicestates Example Configurations - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents

Advertisement

8.5.4.1

DeviceStates example configurations

PROFIBUS example
The PROFIBUS example consists of the following:
● 16 PROFIBUS devices named "DPSlave_10" through "DPSlave_25"
● The 16 PROFIBUS devices use PROFIBUS addresses 10 through 25, respectively.
● Each slave device is configured with multiple I/O modules.
● The first four bytes of the returned STATE parameter information is displayed.
1: Device configuration
active
2: Device defective
3: Device disabled
4: Device exists
5: Problem in device
The following four tables show a binary breakdown of the four bytes of data that are being
analyzed:
Table 8- 121 Example 1: No errors: A value of 0x01FC_FF03 is returned for MODE 1 (Device
Byte with value
The devices are configured in addresses 10 (Bit 10) through 25 (Bit 25).
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
MODE
configuration active).
Bit pattern with value
Byte 1 0x01
Bit 7 0000-0001 Bit 0
Byte 2 0xFC
Bit 15 1111-1100 Bit 8
Byte 3 0xFF
Bit 23 1111-1111 Bit 16
Byte 4 0x03
Bit 31 0000-0011 Bit 24
No devices are configured in addresses 1 through 9.
MODE 4 (Device exists) data matches MODE 1 (Device configuration active), so the configured
devices match the existing devices.
8.5 Diagnostics (PROFINET or PROFIBUS)
Example 1:
Normal operation with
no errors
0x01FC_FF03
0x0000_0000
0x0000_0000
0x01FC_FF03
0x0000_0000
Bit 0 is true; data is available.
Extended instructions
Example 2:
PROFIBUS slave
device DPSlave_12
device DPSlave_12
with single module
pulled
0x01FC_FF03
0x0110_0000
0x0000_0000
0x01FC_FF03
0x0110_0000
Notes
Example 3:
PROFIBUS slave
disconnected
0x01FC_FF03
0x0110_0000
0x0000_0000
0x01EC_FF03
0x0110_0000
349

Advertisement

Table of Contents
loading

Table of Contents