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.

Mapping of the data types from the PLC to zenon data types

PLC

zenon

Data type

BOOL

BOOL

8

SINT

SINT

10

BYTE

USINT

9

INT

INT

1

WORD

UINT

2

DINT

DINT

3

DWORD

UDINT

4

DATE_AND_TIME

DATE_AND_TIME

20

REAL

REAL

5

STRING

STRING

12

The channel type or the data type is used in the driver for mapping the correct object types or data types. This information is also used for the "Extended variable import/export" via DBF files.

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.