Constants
You declare constants with the keyword CONSTANT. Constants can be either local or global.
Syntax:
VAR CONSTANT <identifier>:<Type> := <initialization>; END_VAR
- BOOL Constants
- TIME Constants
- DATE Constants
- DATE_AND_TIME Constants
- TIME_OF_DAY Constants
- Numeric Constants
- REAL/LREAL Constants
- String Constants
- Typed Literals
See also