Manual VIPA System 200V
Chapter 3 Project engineering
HB97E - CP - Rev. 11/30
3-11
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
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...