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: 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
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 :
CODESYS Development System
Compiler Error C0002 Message : '<operator 1>' or '<operator 2>' expected instead of '<tag>' Possible error cause : Syntax error Error correction : Use the correct syntax. Example 287 . Example of the
CODESYS Development System
Compiler Error C0003 Message : '<value>' is not a valid bit number for '<variable>' Possible error cause : Attempted access to a bit that is outside of the range for a data type. Error correction : Us
CODESYS Development System
Compiler Error C0004 Message : '<variable>' is not a component of '<structure>' Possible error cause : Component access with "." to a variable that is not a structured value or does not exist as a com
CODESYS Development System
Compiler Error C0005 Message : Constant overflow in address '<address>' Possible error cause : At least one component in the address does not fit into a 32-bit integer value. Error correction : Use a
CODESYS Development System
Compiler Error C0006 Message : '<operator>' expected instead of '<token>' Possible error cause : Syntax error Error correction : Use the correct syntax. Example 291 . Example of the error: PROGRAM PLC