CODESYS Development System
ExST Assignment: R= When the operand of the Reset assignment switches to TRUE , then FALSE is assigned to the variable to the left of the operator. The variable is reset. <variable name> R= <operand n
CODESYS Development System
ExST Assignment as An Expression In ExST , as an extension to the IEC 61131-3 standard, CODESYS permits the use of assignments as expressions. Example 57 . Examples int_var1 := int_var2 := int_var3 +
CODESYS Development System
Assignment Operator: REF= The operator generates a reference (pointer) to a value. Syntax: <variable name> REF= <variable name> ; Example 58 . Example refA : REFERENCE TO DUT; B : DUT; C : DUT; A REF=
CODESYS Development System
ST Statement: IF The IF statement is used for checking a condition and, depending on this condition, for executing the subsequent statements. A condition is coded as an expression that returns a Boole
CODESYS Development System
ST Statement: FOR The FOR loop is used to execute statements with a certain number of repetitions. Syntax: FOR <counter> := <start value> TO <end value> {BY <increment> } DO <instructions> END_FOR; Th
CODESYS Development System
ST Statement: CASE The CASE statement is a conditional control structure which causes a statement or a section of a statement to be executed only under a specific condition. The section which is execu
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
Keywords In all editors, you must capitalize keywords that for example denote scopes, data types, or operators. Keywords cannot be used as variable names. Example 282 . Example VAR END_VAR BOOL_TO_INT
CODESYS Development System
Error Messages and Warnings :