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.

Driver object types and supported IEC data types for process variables in zenon

Driver object types

Channel type

Supported datatypes

(DataType)

Read

Write

Comment

Binary Input

64

BOOL

Y

N

 

Binary Output

65

BOOL

N

Y

Value 1: LATCH_ON
Value 0: LATCH_OFF

 

1 for successful writing, 0 for error

Binary Output

65

USINT

N

Y

Value 1: PULSE_ON
Value 2: PULSE_OFF
Value 3: LATCH_ON
Value 4: LATCH_OFF

1 for successful writing, 0 for error

 

Running Counter

66

BOOL,SINT,INT,DINT

Y

N

 

Frozen Counter

67

BOOL,SINT,INT,DINT

Y

Y

Writing freezes the counter

Analog Input

68

REAL

Y

N

 

Analog Output

69

REAL

N

Y

1 for successful writing, 0 for error

String Data

70

STRING

Y

Y

 

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.