Program instructions
7.3 Communication
The following figure shows the GET table (VB200) and PUT table (VB300) for accessing the
data in station 2. The Diverter CPU uses a GET instruction to read the control and status
information on a continuous basis from each of the case packers. Each time a case packer
has packed 100 cases, the diverter notes this and sends a message to clear the status word
using a PUT instruction.
Table 7- 5
GET_
TABLE
buffer
VB200
VB201
VB202
VB203
VB204
VB205
VB206
VB207
VB208
VB209
VB210
VB211
VB212
VB213
VB214
VB215
VB216
VB217
VB218
In this example, the data immediately follows the PUT and GET tables. This data can be
placed anywhere in the CPU memory since it is pointed to by the local station pointer in a
table (for example, VB212 - VB215).
196
GET and PUT instructions buffer for reading from and clearing the count of Case Packer
1
Bit
Bit
Bit
Bit
Bit
7
6
5
4
3
D
A
E
0
Error code
Remote station IP address = 192.
168.
50.
2
Reserved = 0 (Must be set to zero)
Reserved = 0 (Must be set to zero)
Pointer to the data
area in the
remote station =
(&VB100)
Data length = 3 bytes
Pointer to the data
area in the
local station (this CPU) =
(&VB216)
Control
Status MSB
Status LSB
Bit
Bit
Bit
PUT_
2
1
0
TABLE
buffer
VB300
VB301
VB302
VB303
VB304
VB305
VB306
VB307
VB308
VB309
VB310
VB311
VB312
VB313
VB314
VB315
VB316
VB317
System Manual, V2.3, 07/2017, A5E03822230-AF
Bit
Bit
Bit
Bit
Bit
7
6
5
4
3
D
A
E
0
Error code
Remote station IP address = 192.
168.
50.
2
Reserved = 0 (Must be set to zero)
Reserved = 0 (Must be set to zero)
Pointer to the data
area in the
remote station =
(&VB101)
Data length = 2 bytes
Pointer to the data
area in the
local station (this CPU) =
(&VB316)
0
0
Bit
Bit
Bit
2
1
0
S7-200 SMART