Data Types

When programming in CODESYS, you can use different data types or instances of function blocks. Moreover, you assign a data type to every identifier. The data type defines how much memory CODESYS reserves and how these values are interpreted.

The following group of data types are provided:

User-defined data types

You can create user-defined data types in two ways:

  • DUT object in the POU window
  • data type in a block in the declaration

Hint

Please note the recommendations for naming and object.

Data Type ‘ARRAY’

Structure

Enumerations

Reference

Pointer

Subrange Types

Identifier