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

USINT

USINT

9

INT

INT

1

UINT

UINT

2

DINT

DINT

3

UDINT

UDINT

4

REAL

REAL

5

DATE

DATE

18

TIME

TIME

17

DATE_AND_TIME

DATE_AND_TIME

20

TOD

TOD

19

LREAL

LREAL

6

LINT

LINT

26

ULINT

ULINT

27

STRING

STRING

12

WSTRING

WSTRING

21

BYTE

BYTE

22

WORD

WORD

23

DWORD

DWORD

24

 

 

 

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.