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,
CODESYS Development System
Variable: VAR_OUTPUT Output variables are used at the outputs of function blocks. You declare VAR_OUTPUT variables between the VAR_OUTPUT and END_VAR keywords in the declaration part of POUs. The valu
CODESYS Development System
Variable: VAR_TEMP This functionality is an extension of the IEC 61131-3 standard. You declare temporary variables locally between the keywords VAR_TEMP and END_VAR . VAR_TEMP declarations are possibl
CODESYS Development System
Variable: VAR_STAT This functionality is an extension of the IEC 61131-3 standard. You declare static variables locally between the keywords VAR_STAT and END_VAR . Static variables are initialized on
CODESYS Development System
Variable: VAR_EXTERNAL External variables are global variables that are "imported" into a POU. You declare these variables between the keywords VAR_EXTERNAL and END_VAR . If the global variable does n