Siemens SIMATIC RK512 communication protocol

Supported device types and versions 
Communication line configuration
Communication station configuration
I/O tag configuration
Literature
Changes and modifications
Document revisions

Supported device types and versions


The protocol allows reading and writing data from control PLC automats of Siemens Simatic of the S5 and S7 series. PLC Simatic must be equipped with the following serial communication point-to-point modules:

The protocol RK512 is a transport superstructure of protocol 3964(R). It allows universal reading and writing values of PLC Simatic objects - minimal intervention into the PLC application software (using the STEPS5/7 programming language).

The 3964 protocol, which is the line layer of the RK512 protocol, has two variants - 3964 a 3964R. The 3964R allows extra data security using the BCC checksum.

Communication line configuration


Communication station configuration



Station protocol parameters

The Communication station configuration dialog box - tab Protocol parameters.
Parameters defined in the input field have an effect on some optional protocol parameters. The following station protocol parameters can be defined:

Table 1

ParameterMeaningUnit / sizeDefault value
Retry Count
Maximum count of request retries. If no response returns after a request had been sent, the station's status will change to a communication error.-2
Retry Timeout
Timeout before resending a request if no response has been received.ms100 ms
Wait First Timeout
The delay after sending the request and before reading the response.ms100 ms
Wait Timeout
The delay between the response readings.ms50 ms
Max Wait Retry
The maximum number of retries of the response reading.-40
3964 (without BCC)
Enable the 3964 link protocol, i.e. version with no transmission security. By default, the 3964R protocol is used, which implements the BCC checksum.YES/NONO
CPU id
CPU identification (1 up to 4), not used by default (value = 0).0,1,2,3,40

I/O tag configuration


Possible I/O tag value types: Ai, Ao, Ci, Co, Di, Do.

I/O tag address is a character string as follows:

Table 2

DataFormatDescriptionAccessI/O tag type
Data block/Extended data block elementsD{B|X}mD{L|R|W|D}n[x]m = "data block" number
n = word offset in the data block
x = suffix KF,KG (as necessary - see Note 1)
R/WAi, Ao, Ci, Co
Data block bitsD{B|X}mDn.km = "data block" number
n = word offset in the data block
k = bit position [0..15]
R/WDi, Do
Memory elementsF{Y|W|D}n[x] or M{B|W|D}n[x]n = byte offset in "memory area"
x = suffix KF, KG (as necessary - see Note 1)
RAi, Ci
Memory bitsFn.k or Mn.kn = byte offset in "memory area"
k = bit position [0..7]
RDi
Input elementsI{B|W|D}n[x] or E{B|W|D}n[x]n = byte offset in "input area"
x = suffix KF, KG (as necessary - see Note 1)
RAi, Ci
Input bitsIn.k or En.kn = byte offset in "input area"
k = bit position [0..7]
RDi
Output elementsQ{B|W|D}n[x] or A{B|W|D}n[x]n = byte offset in "output area"
x = suffix KF, KG (as necessary - see Note 1)
RAi, Ci
Output bitsQn.k or An.kn = byte offset v "output area"
k = bit position [0..7]
RDi

Table 2 contains the address format used in SIMATIC S5, i.e. use of word offset in DB and DX elements. Therefore you can use addresses in the S7 format according to table 3 for DB and DX elements:

Table 3

DataFormatDescriptionAccessI/O tag type
Data block/Extended data block elementsD{B|X}m.DB{B|W|D}n[x]m = "data block" number
n = byte offset in the data block
x = suffix KF, KG (as necessary - see Note 1)
R/WAi, Ao, Ci, Co
Data block bitsD{B|X}m.DBXn.km = "data block" number
n = byte offset in the data block
k = bit position [0..7]
R/WDi, Do

Explanatory text:

Note 1:
The suffix is optional as follows:

Literature


Changes and modifications


-

Document revisions



Communication protocols