CODESYS Development System
Variable: CONSTANT Constant variables are declared in global variable lists or in the declaration part of programming objects. In implementations, constant variables can be accessed as read-only via t
CODESYS Development System
Variable: VAR_GENERIC CONSTANT Generic Constant Variable A generic constant is a variable in the VAR_GENERIC CONSTANT declaration area of a function block which is not assigned an initialization value
CODESYS Development System
Variable: PERSISTENT Persistent variables are declared in the declaration section VAR_GLOBAL RETAIN PERSISTENT in the persistent global variable list. For variables that are marked with the PERSISTENT
CODESYS Development System
Variable: RETAIN Retain variables are declared by the keyword RETAIN is added in programming objects in the scope VAR , VAR_INPUT , VAR_OUTPUT , VAR_IN_OUT , VAR_STAT , or VAR_GLOBAL . Syntax for the
CODESYS Development System
Pointer: SUPER The SUPER pointer is a special variable which is used for object-oriented programming. SUPER is the pointer of a function block to the base function block instance from which the functi
CODESYS Development System
Pointer: THIS The THIS pointer is a special variable which is used for object-oriented programming. THIS is the pointer of a function block to its own function block instance. A THIS pointer is automa
CODESYS Development System
Data Type: Implicit Enumeration The implicit enumeration allows for an easy way to declare a new enumeration variable which is valid only within the local POU. A variable of this type can take a limit
CODESYS Development System
Operators CODESYS V3 supports all IEC 61131-3 operators. These operators are recognized implicitly throughout the project. In addition to these IEC operators, CODESYS also supports some non-IEC 61131-
CODESYS Development System
Operator: MUL The IEC operator is used to multiply variables. Permitted data types: BYTE , WORD , DWORD , LWORD , SINT , USINT , INT , UINT , DINT , UDINT , LINT , ULINT , REAL , LREAL , TIME Feature
CODESYS Development System
Operator: SUB The IEC operator subtracts variables. Permitted data types: BYTE , WORD , DWORD , LWORD , SINT , USINT , INT , UINT , DINT , UDINT , LINT , ULINT , REAL , LREAL , TIME , LTIME , TIME_OF_