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
(iCOMnum:=1); com0: serialdevice(iCOMnum:=0
CODESYS Development System
Error Messages and Warnings :
CODESYS Development System
Compiler Error C0001 Message : Constant '<constant value>‘ too large for type '<data type>‘ Possible error cause : A typed constant is too large for the given data type or a constant is too large for
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