Chapter 3 Project engineering
Manual VIPA System 200V
3-14
HB97E - CP - Rev. 11/30
This FC serves for data transfer from the CPU to a partner station. The
target at the partner station is transferred together with the user data Here
the source area of the own station is defined by QDB, QBDW and LANG.
The target area in the remote 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 SEND order is
released.
Here a frame header with user data is transmitted to the CP after that the
system waits for the response message.
The indicator word indicates "Order just running" as long as the response
message was not received. Only after the receipt of the response message
the flag "Order ready" of the indicator word is set and the communication to
the CP is finished.
This function is cyclically 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 this station
in
QBDW
WORD
No. of 1. DW of the DB of this station
in
LANG
INT
Length of data to send
in
ZDB
BLOCK_DB
DB No. of DB of the remote station
in
ZBDW
INT
No of 1. DW of the DB of remote station
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_GESENDET BOOL
internal
use
in_out ERSTER_BLOCK BOOL
internal
use
in_out SENDEN_LAEUFT BOOL
internal
use
in_out SENDEN_FERTIG BOOL
internal
use
in_out LETZTER_BLOCK BOOL
internal
use
in_out FEHLER
BOOL
internal
use
Periphery address with which you may call the CP 240. Via the hardware
configuration you may set the periphery address.
Number of the source data block of the own station.
1. data word of the data block of the own station.
Length of the data to send in words.
Number of the target block of the partner station
SEND_RK512
(FC 3)
ADR
QDB
QBDW
LANG
ZDB
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...