CODESYS Development System
ST Statement: WHILE The WHILE loop is used like the FOR loop in order to execute statements several times until the abort condition occurs. The abort condition of a WHILE loop is a Boolean expression.
CODESYS Development System
ST Statement: REPEAT The REPEAT loop is used like the WHILE loop, but with the difference that CODESYS only checks the abort condition after the execution of the loop. The consequence of this behavior
CODESYS Development System
ST Statement: RETURN Use the RETURN statement in order to exit from a function block. You can make this dependent on a condition , for example. Example 64 . Example IF xIsDone THEN RETURN; END_IF; iCo
CODESYS Development System
ST Statement: JMP The JMP statement is used for executing an unconditional jump to a program line that is marked by a jump label. Syntax: <label>: <instructions> JMP <label>; The jump label <label> is
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
Structured Text and Extended Structured Text (ExST) :
CODESYS Development System
ST Editor The ST editor is a textual editor used for the implementation of code in Structured Text (ST) and Extended Structured Text (ExST). The line numbering is displayed on the left side of the edi
CODESYS Development System
ST Editor in Online Mode In online mode, CODESYS displays the variables and expressions in the ST editor ( Monitoring of Values ). The writing and forcing of variables and expressions as well as debu