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: 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. :
CODESYS Development System
EXST Statement: CONTINUE CONTINUE is an statement of the Extended Structured Text (ExST). The statement is used inside a FOR loop, WHILE loop, or REPEAT loop in order to jump to the beginning of the n
CODESYS Development System
ST Function Block Call Calling a function block in ST Syntax <FB instance>(<FB input variable>:=<value or address>\|, <other FB input variables>); Example 67 . Example TMR:TON; TMR (IN:=%OX5, PT:=T#30
CODESYS Development System
Variables The scope of a variable defines how and where you can use a variable. You define the scope in the variable declaration. :
CODESYS Development System
Variable: VAR_INPUT Input variables are used at the inputs of function blocks. You declare VAR_INPUT variables between the VAR_INPUT and END_VAR keywords in the declaration part of POUs. When called,
CODESYS Development System
Operator: MAX The IEC operator is used for the maximum function. It yields the greatest value of all inputs. OUT := MAX(IN0,IN1,IN2,...) Permitted data types: all Example 110 . Examples Result: 90 ST