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
...
Kotva |
---|
| komunikacna_stanica |
---|
| komunikacna_stanica |
---|
|
Communication station configuration
...
- Communication protocol: Siemens SIMATIC RK512.
- There is not required any address parameter, one communication line allows to communicate with one PLC SIMATIC.
...
The Communication station configuration dialog box - tab Protocol parameters.
Parameters defined in the input field have effect on some optional protocol parameters. The following station protocol parameters can be defined:
Table 1
Parameter | Meaning | Unit / size | Default value |
---|
| Poll repetition count in case of a communication error. | - | 2 |
| Delay between poll repetition in case of a communication error. | ms | 100 ms |
| First waiting for response after sending the poll. | ms | 100 ms |
| Delay between response readings till its finalization. | ms | 50 ms |
| Repetition count of response readings till its finalization. | - | 40 |
| Enable the 3964 link protocol, i.e. version with no transmission security. By default, there is used the 3964R protocol using the BCC checksum. | YES/NO | NO |
| CPU identification (1 up to 4), not used by default (value = 0). | 0,1,2,3,4 | 0 |
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:
- the letter L denotes the left byte (higher) of the element
- the letter R denotes the right byte of the (lower) element
- the letter W denotes the interpretation of the element value as a 16-bit unsigned word (signed if KF suffix is used - see Note 1)
- the letter D denotes the interpretation of values of 2 elements (address n and n + 1) as a 32-bit unsigned double word (signed if KF suffix is used, or float if suffix KG is used - see Note 1)
- m - data block number is a number from interval 1..255
- n - offset in data block as well as byte offsets are numbers from interval 0..255
- k - bit position is a number from the interval 0..15 (for elements in Data block/Extended data block) resp. 0..7 (for Memory/Input/Output data)
Table 2
Data | Format | Description | Access | I/O tag type |
---|
Data block/Extended data block elements | D{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 |
the note below Note 1) | R/W | Ai,Ao,Ci,Co |
Data block bits | D{B|X}mDn.k | m = "data block" number n = word offset in the data block k = bit position [0..15] | R/W | Di,Do |
Memory elements | F{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 |
the note below Note 1) | R | Ai,Ci |
Memory bits | Fn.k or Mn.k | n = byte offset in "memory area" k = bit position [0..7] | R | Di |
Input elements | I{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 |
the note below Note 1) | R | Ai,Ci |
Input bits | In.k or En.k | n = byte offset in "input area" k = bit position [0..7] | R | Di |
Output elements | Q{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 |
the note below Note 1) | R | Ai,Ci |
Output bits | Qn.k or An.k | n = byte offset v "output area" k = bit position [0..7] | R | Di |
The 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 the table 3 for DB and DX elements:
Table 3
Data | Format | Description | Access | I/O tag type |
---|
Data block/Extended data block elements | D{B|X}m.DB{B|W|D}n[x] | m = "data block" number n = byte offset in data block x = suffix KF, KG (as necessary - see Note 1) | R/W | Ai,Ao,Ci,Co |
Data block bits | D{B|X}m.DBXn.k | m = "data block" number n = byte offset in data block k = bit position [0..7] | R/W | Di,Do |
Explanatory text:
- R/W = read and write
- R = read only
Note 1:
Suffix is optional as follows:
...