Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

  • SIMATIC S5 series: CP524, CP525 or CP544
  • SIMATIC S7-300 series: CP341
  • SIMATIC S7-400 series: CP441-2

The protocol RK512 is a transport superstructure of the 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, that 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 protocol: Siemens SIMATIC RK512.
  • There No address parameter is not required any address parameter, one communication line allows to communicate communication with one SIMATIC PLC SIMATIC.


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:

...

ParameterMeaningUnit / sizeDefault value
Kotva
rc
rc
Retry Count
Poll repetition Maximum count in case of of request retries. If no response returns after a request had been sent, the station's status will change to a communication error.-2
Kotva
rt
rt
Retry Timeout
Delay between poll repetition in case of a communication errorTimeout before resending a request if no response has been received.ms100 ms
Kotva
wft
wft
Wait First Timeout
First waiting for response The delay after sending the pollrequest and before reading the response.ms100 ms
Kotva
wt
wt
Wait Timeout
Delay The delay between the response readings till its finalization.ms50 ms
Kotva
mwr
mwr
Max Wait Retry
Repetition count of response readings till its finalizationThe maximum number of retries of the response reading.-40
Kotva
bcc
bcc
3964 (without BCC)
Enable the 3964 link protocol, i.e. version with no transmission security. By default, there is used the 3964R protocol using is used, which implements the BCC checksum.YES/NONO
Kotva
cpu
cpu
CPU id
CPU identification (1 up to 4), not used by default (value = 0).0,1,2,3,40

...

  • 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 - a data block number is a number from interval 1..255
  • n - offset in a 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)

...

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

The table 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 to table 3 for DB and DX elements:

...

Explanatory text:

  • R/W = read and write access
  • R = read-only access

Kotva
poznamka1
poznamka1
Note 1:
Suffix The suffix is optional as follows:

  • KF - the number (of word W type or dword D type) will be interpreted along with as a signsigned number.
  • KG - the number will be interpreted as a float (for dword D type) in the IEE754 format.

...