CODESYS Development System
Operator: __POOL The operator is an extension of the IEC 61131-3 standard. The operator is used to reference objects which are managed in the global POU pool (in the POUs view). The operator directly
CODESYS Development System
Operator: INI Tip The INI operator is an operator of CoDeSys V2.3 . This operator is replaced by the FB_Init method as of CODESYS V3. However, you can still use this operator in projects that are impo
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: 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
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
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
ST Comments Comment Description Example Single-line There are two ways of marking: Starts with // and ends at the end of the line Starts with /// and ends at the end of the line In CODESYS , these com
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,