Scenarios 11 and 12 show the correspondence of Modbus addresses to Boolean array
addresses.
Table 6- 5
Scenario 11: Write 5 output bits starting at Modbus address 00001
MB_MASTER input values
MB_ADDR
27 (Slave example)
MODE
1 (Write)
DATA_ADDR
00001 (Outputs)
DATA_LEN
5
DATA_PTR
"Data".Bool
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Slave outputs before
DATA_PTR data
00001
ON
"Data".Bool[0]=FALSE
00002
ON
"Data".Bool[1]=TRUE
00003
OFF
"Data".Bool[2]=TRUE
00004
ON
"Data".Bool[3]-FALSE
00005
ON
"Data".Bool[4]=FALSE
00006
OFF
00007
ON
00008
OFF
Programming instructions
6.3 Global library instructions
Slave outputs after
OFF
ON
ON
OFF
OFF
Unchanged
Unchanged
Unchanged
197