Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 165
6.4.3.10 Constants
Following constants are already predefined. It is recommended to use these constants also in the
program text for reasons of clearness and better readability. Moreover, adaptations attended to
possible later changes of the COM-driver can be easier carried out.
Tab. 1 predefined constants for data sizes:
CONST
BIT_ELM = $00; (* bit *)
SEMA_ELM = $01; (* bit as semaphore *)
BYTE_ELM = $02; (* byte *)
LBYTE_ELM = $02; (* left byte of a word *)
RBYTE_ELM = $03; (* right byte of a word *)
WORD_ELM = $04; (* word *)
DWORD_ELM = $05; (* doubleword *)
BLOCK_ELM = $07; (* block *)
Tab. 2 predefined constants for data types for single elements
CONST
DB_SNG = $00; (* DB *)
DX_SNG = $01; (* DB in external memory *)
BA_SNG = $02; (* BA *)
BB_SNG = $03; (* BB *)
BS_SNG = $04; (* BS *)
BT_SNG = $05; (* BT *)
Z_SNG = $06; (* counter*)
T_SNG = $07; (* timer *)
MB_SNG = $08; (* marker *)
EB_SNG = $09; (* input area *)
AB_SNG = $0A; (* output area *)
PB_SNG = $0B; (* P-periphery *)
QB_SNG = $0C; (* Q-periphery *)
ABS_SNG = $0F; (* absolute memory *)