Technical data

Diagnostics
23.10 System Diagnostics with 'Report System Error'
Programming with STEP 7
528 Manual, 05/2010, A5E02789666-01
23.10.2.6 Example of a DB126 with an IO System 100 and Devices with Device
Numbers 2, 3 and 4
Number_IO_Sys W#16#1 Number of configured IO systems
Detail_IO_Sys [0] .System_No W#16#64 System number
Detail_IO_Sys [0] .Max_Num_Dev W#16#4 Maximum ID for the configured
device
Detail_IO_Sys [0] .Offset W#16#2E Offset at the beginning of the
IO_Sys_Status field in bytes relative
to Detail_IO_Sys
Detail_IO_Sys [0] .Devices_Affected W#16#0 Number of affected devices
IO_Sys_0 ARRAY [0..0] OF WORD Status bar for IO system 100
Status:
Device 1 Not configured
Device 2 Faulty
Device 3 OK
Device 4 Not accessible
This has caused "Devices_Affected" to be changed:
Detail_IO_Sys [0] .Devices_Affected W#16#2 Number of affected devices
The status bar is grouped as a bit field, 2 bits indicate the status of a device. Byte 50 looks as
follows:
[11] [01] [00] [10]