CODESYS Development System
Operands Constants and literals Constants are identifiers for unchangeable values. You can declare constants locally within a POU or globally within a global variable list. The declaration segment is
CODESYS Development System
Constant: BOOL BOOL constants are the truth values TRUE (1) and FALSE (0). For more information, see: BOOL :
CODESYS Development System
Constant: Numeric Numeric values can be binary, octal, decimal, and hexadecimal numbers. If an integer value is not a decimal number, then you must write its base followed by the number sign (#) befor
CODESYS Development System
Constant: REAL, LREAL You can specify floating-point numbers as REAL and LREAL constants either in decimal notation or exponential notation with mantissa and exponent. The decimal point serves as the
CODESYS Development System
String Constants A string constant is a string enclosed in single straight quotation marks. The characters are coded according to the character set specified in ISO/IEC 8859-1. Therefore, a string con
CODESYS Development System
Constant: UTF8# String With compiler version >= 3.5.18.0, UTF-8 encoded string literals are possible as a single-byte string with base STRING . Syntax: UTF8#' <string literal> ' Example 173 . Constant
CODESYS Development System
Constant: Character The character literal for a single Unicode character has the base type UDINT . The type prefix UCHAR# is prefixed to the literal as an identifier. The numerical value of the charac
CODESYS Development System
Constant: TIME, LTIME You can use TIME constants to operate the standard timer modules. The constant has a size of 32 bits and a resolution in milliseconds. In addition, the time constant LTIME is ava
CODESYS Development System
Constant: Date and Time 32-bit date specification: DATE Use the DATE keyword ( D ) to specify a date. Syntax <date keyword>#<year>-<month>-<day> <date keyword> : DATE | date | D | d <year> : 1970-2106
CODESYS Development System
ST Statement: EXIT The EXIT statement is used in a FOR loop, WHILE loop, or REPEAT loop in order to end the loop regardless of other abort conditions. :