RE_240-1CA20

Chapter 3 Deployment Manual VIPA System 200V
3-12 HB97E - CP - RE_240-1CA20 - Rev. 12/42
This FC serves the fragmented ASCII data reception. This allows you to
handle on large telegrams in 12Byte blocks to the CPU directly after the
reception. Here the CP does not wait until the complete telegram has been
received. The usage of the FC 11 presumes that you’ve parameterized
"ASCII-fragmented" at the receiver.
In the FC 11, you define the reception range via the identifiers _DB and ADB.
When the output EMFR is set, a new telegram has been read completely.
The length of the read telegram is stored in ANZ. After the evaluation of the
telegram this bit has to be set back by the user, otherwise no further
telegram may be taken over by the CPU.
Declaration Name Type Comment
in ADR INT Logical Address
in _DB BLOCK_DB DB No. of DB containing received data
in ABD WORD No. of 1. data word received
out ANZ WORD No of bytes received
in_out EMFR BOOL 1=data received, reset by user
in_out GEEM WORD internal use
in_out ANZ_INT WORD internal use
in_out EMPF_LAEUFT BOOL internal use
in_out LETZTER_BLOCK BOOL internal use
in_out FEHLER_EMPF 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 receive.
Word variable that contains the number of the data word from where on the
received characters are stored.
Word variable that contains the amount of bytes that have been received.
By setting of EMFR, the handling block announces that data has been
received. Only by setting back EMFR in the user application new data can
be received.
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 LETZTER_BLOCK,
EMPF_LAEUFT and FEHLER_EMPF must always be stored in a bit
memory byte.
ASCII_FRAGMENT
(FC 11)
ADR
_DB
ABD
ANZ
EMFR
PAFE
GEEM, ANZ_INT
LETZTER_BLOCK
EMPF_LAEUFT
FEHLER_EMPF