RE_240-1CA20

Manual VIPA System 200V Chapter 3 Deployment
HB97E - CP - RE_240-1CA20 - Rev. 12/42 3-13
RK512 communication - Handling blocks
This FC serves for an active access to a partner station by means of
RK512, which makes passive data available. Here a telegram with source
data is sent to the partner station. The partner station collects the data and
sends them back to your station.
The received data are stored in the target DB.
Here the source range in the partner station is defined by QDB, QBDW and
LANG. The target area in your station is defined by ZDB and ZBDW.
With calling the FC it is checked by means of the check bits if there is an
order just running. If the control bits are reset a new FETCH order is
released.
Here a frame header is transmitted to the CP after that the system waits for
the response message with user data.
The indicator word indicates "Order just running" as long as the message
with user data was not receipt. Only after the response message was
received by the CP and the user data were transmitted to the PLC, the flag
"Order ready" of the indicator word is set and the communication to the CP
is finished.
This function is cyclically be called as long as "Order ready with/without
error" is set at the indicator word .
With an error during communication the CPU gets an error number from the
CP. Then the error number is transferred to the indicator word and the bit
"Order ready with error" is set. Then the communication to the CP is
finished.
Declaration Name Type Comment
in ADR INT Logical Address
in QDB BLOCK_DB DB No. of DB of the remote station
in QBDW WORD No. of 1. DW of the DB of remote station
in LANG INT Length of data to transfer
in ZDB BLOCK_DB Number target DB of this station
in ZBDW INT No. of 1. data word in target DB
in KOOR WORD Coordination flag
out ANZW WORD Indicator word
out PAFE BYTE Parameterization error byte
Return Code (00h=OK)
in_out ANZ WORD internal use
in_out GESE WORD internal use
in_out KOPF_GESE BOOL internal use
in_out WART_DATEN BOOL internal use
in_out EMPF_LAEUFT BOOL internal use
in_out LETZTER_BLOCK BOOL internal use
in_out FEHL_KOM BOOL internal use
FETCH_RK512
(FC 2)