S3964R
♦
ProLinx Gateway
Functional Overview
Siemens 3964R Protocol
Driver Manual
Page 44 of 64
ProSoft Technology, Inc.
April 14, 2009
Transmit Buffer
Receive Buffer
Item
Address
Transmit Value
Item
Address
Receive Value
D
((<port#> * 600) + 300) + 3
Reserved
J
(<port#> * 600) + 3
Error Code
E
((<port#> * 600) + 300) + 4
Data Count
K
(<port#> * 600) + 4
Data Count
F
((<port#> * 600) + 300) + 5
through ((<port#> * 600) +
300) + 299
Data
L
(<port#> * 600) + 5
through (<port#> *
600) + 299
Data
Port 0 Transmit Database
Here is an example of a RK512 DB-FETCH to read data from the 3964R
communication partner on port 0. This example reads five words of data. The
values for the five words of data are 111, 222, 333, 444, and 555.
Word
Value
Description:
300
8
Transmit Sequence Number. Increment this value after all other data in
the message is ready. Changing this value will trigger the 3964R driver
to transmit this message to the 3964R communication partner. In this
example we are changing the value from 7 to 8 to trigger the transmit of
the fetch command.
301
3
Last Received Sequence number. The Modbus TCP/IP device must
copy the last received sequence number from the Receive database
(word[0]) to this location after a message has been read from the
receive database. In this example the value currently in Receive
database (word[0]) is 3, so that value is copied here to tell the 3964R
driver that we have read the last data and it is safe for the driver to
write to the receive database.
302
0
Reserved.
303
0
Reserved.
304
10
10 word header.
305
0x0045
Job Code ID. 0x0045 = DB-FETCH.
306
0
Data Block.
307
0
Data Word.
308
5
Fetching 5 data words.
309
0
Coordination Byte.
310
0
Data Type. 0 = Word data
311
0
Reserved.
312
0
Reserved.
313
0
Reserved.
314
0
Reserved.