Chapter 3 Project engineering
Manual VIPA System 200V
3-8
HB97E - CP - Rev. 11/30
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)
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
Содержание CP 240 RS232
Страница 1: ...Manual VIPA System 200V CP Order No VIPA HB97E_CP Rev 11 30...
Страница 2: ...L...
Страница 14: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E CP Rev 11 30...
Страница 126: ...Chapter 5 CP 240 EnOcean Manual VIPA System 200V 5 32 HB97E CP Rev 11 30...
Страница 144: ...Chapter 6 CP 240 M Bus Manual VIPA System 200V 6 18 HB97E CP Rev 11 30...
Страница 148: ...Index Manual VIPA System 200V A 4 HB97E CP Rev 11 30 M Stich...