ReferencesΒΆ

You can use the user-defined reference data type to create an alternative name for a variable, constant or function block.

Create your references as objects in the Object Organizer under the register card 23840fb34373a6de0a33139018bd1ba8_10635f69c47d4d460a33139036a026c1 Data types. They begin with the keyword TYPE and end with END_TYPE.

Syntax:

TYPE <Identifier>: <Assignment term>;
END_TYPE

Example:

TYPE message:STRING[50];
END_TYPE;