Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 177
6.4.4.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 carried out easier.
Tab. 1 predefined constants for data sizes
#define BIT_ELM 0x00 /* bit */
#define SEMA_ELM 0x01 /* bit as semaphore */
#define BYTE_ELM 0x02 /* byte */
#define LBYTE_ELM 0x02 /* left byte of a word */
#define RBYTE_ELM 0x03 /* right byte of a word */
#define WORD_ELM 0x04 /* word */
#define DWORD_ELM 0x05 /* doubleword */
#define BLOCK_ELM 0x07 /* block */
Tab. 2 predefined constants for data types for single elements
#define DB_SNG 0x00 /* DB */
#define DX_SNG 0x01 /* DB in external memory */
#define BA_SNG 0x02 /* BA */
#define BB_SNG 0x03 /* BB */
#define BS_SNG 0x04 /* BS */
#define BT_SNG 0x05 /* BT */
#define Z_SNG 0x06 /* counter */
#define T_SNG 0x07 /* timer */
#define MB_SNG 0x08 /* marker */
#define EB_SNG 0x09 /* input area */
#define AB_SNG 0x0A /* output area */
#define PB_SNG 0x0B /* P-peripherals */
#define QB_SNG 0x0C /* Q-peripherals */
#define ABS_SNG0x0F /* absolute memory */