-

Data Types Parser Error (DTP0023): Constant literal expected.

The data types parser detected that a constant literal is missing at the underlined code position for the initialization of a user-defined data type. Which type of constant literal is expected depends on the base data type of the user-defined data type.

Error example:

Examples for the correct initialization of user-defined data types:

Further Info
For information on literals refer to the topic "Literals according to IEC 61131-3".
For information on user-defined data types and how to declare them refer to the chapter "User-defined data types".