Manual VIPA System 200V
Chapter 3 Project engineering
HB97E - CP - Rev. 11/30
3-7
Standard handling blocks for CPU 21x
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
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...