RE_240-1CA20
Chapter 3 Deployment Manual VIPA System 200V
3-8 HB97E - CP - RE_240-1CA20 - Rev. 12/42
Standard handling blocks
This FC serves the data output from the CPU to the CP 240. Here you
define the send range via the identifiers _DB, ADB and ANZ.
Via the bit FRG the send initialization is set and the data is send. After the
data transfer the handling block sets the bit FRG back again.
Declaration Name Type Comment
in ADR INT Logical Address
in _DB BLOCK_DB DB No. of DB containing data to send
in ABD WORD No. of 1. data word to send
in ANZ WORD No of bytes to send
in_out FRG BOOL Start bit of the function
in_out GESE WORD internal use
in_out ANZ_INT WORD internal use
in_out ENDE_KOMM BOOL internal use
in_out LETZTER_BLOCK BOOL internal use
in_out SENDEN_LAEUFT BOOL Status of function
in_out FEHLER_KOM BOOL internal use
out PAFE BYTE Return Code (00=OK)
Periphery address with which you may call the CP 240. Via the hardware
configuration you may set the periphery address.
Number of the data block, which contains the data to send.
Word variable that contains the number of the data word from where on the
characters for output are stored.
Number of the bytes that are to be transferred.
At FRG = "1" the data defined via _DB, ADB and ANZ are transferred once
to the CP addresses by ADR. After the transmission the FRG is set back
again. When FRG = "0" at call of the block, it is left immediately!
At proper function, all bits of this bit memory byte are "0". At errors an error
code is entered. The error setting is self-acknowledging, i.e. after
elimination of the error cause, the byte is set back to "0" again. The
following errors may occur:
1 = Data block not present
2 = Data block too short
3 = Data block number outside valid range
These parameters are internally used. They serve the information
exchange between the handling blocks. For the deployment of the
SYNCHRON_RESET (FC9) the control bits ENDE_KOM, LETZTER
_BLOCK, SENDEN_LAEUFT and FEHLER_KOM must always be stored in
a bit memory byte.
SEND (FC 0)
ADR
_DB
ABD
ANZ
FRG enable send
PAFE
GESE, ANZ_INT
ENDE_KOM
LETZTER_BLOCK
SENDEN_LAEUFT
FEHLER_KOM