Mapping of the datatypes

Previous chapterNext chapter Show allShow all    Hide allHide all

All variables in zenon are derived from IEC data types. The following table compares the IEC datatypes with the datatypes of the PLC.

Example for all possible zenon data types

PLC

zenon

(M)BOOL

BOOL

(MB)BYTE/CHAR

USINT/SINT

(MW)WORD/INT

UINT/INT

(D)BOOL

BOOL

(DL/DR)BYTE/CHAR

USINT/SINT

(DW)WORD/INT

UINT/INT

(DD)DWORD/DINT

UDINT/DINT

STRING

STRING

(I)BOOL

BOOL

(IB)BYTE/CHAR

USINT/SINT

(IW)WORD/INT

UINT/INT

(Q)BOOL

BOOL

(QB)BYTE/CHAR

USINT/SINT

(QW)WORD/INT

UINT/INT

COUNTER (C)WORD

UINT/INT

STATUS WORD

UINT/INT

TIME (T)REAL

REAL

Data type

The property "Datenart" is the internal numerical name of the data type. It is also used for the extended DBF import/export of the variables.