RE_240-1CA20
Manual VIPA System 200V Chapter 3 Deployment
HB97E - CP - RE_240-1CA20 - Rev. 12/42 3-9
This FC serves the data reception of the CP 240. Here you set 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 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
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 Status of function
in_out LETZTER_BLOCK BOOL internal use
in_out FEHLER_EMPF BOOL internal use
out PAFE BYTE Return Code (00=OK)
in_out OFFSET WORD internal use
Periphery address for calling the CP 240. You define the periphery address
via the hardware configuration.
Number of the data block, which contains the data.
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 received bytes.
By setting of EMFR the handling block shows that data has been received.
Not until 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.
RECEIVE (FC 1)
ADR
_DB
ABD
ANZ
EMFR
PAFE
GEEM, ANZ_INT
LETZTER_BLOCK
EMPF_LAEUFT
FEHLER_EMPF
OFFSET