Chapter 3 Project engineering
Manual VIPA System 200V
3-12
HB97E - CP - Rev. 11/30
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)
Summary of Contents for CP 240 RS232
Page 1: ...Manual VIPA System 200V CP Order No VIPA HB97E_CP Rev 11 30...
Page 2: ...L...
Page 14: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E CP Rev 11 30...
Page 126: ...Chapter 5 CP 240 EnOcean Manual VIPA System 200V 5 32 HB97E CP Rev 11 30...
Page 144: ...Chapter 6 CP 240 M Bus Manual VIPA System 200V 6 18 HB97E CP Rev 11 30...
Page 148: ...Index Manual VIPA System 200V A 4 HB97E CP Rev 11 30 M Stich...