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-3 operators.
Operators are used in blocks, such as functions.
For information about the processing order (binding strength) of the ST operators, see the "ST expressions" chapter.




CAUTION

For operations with floating-point data types, the computational result depends on the applied target system hardware.




CAUTION

For operations with overflow or underflow in the data type, the computational result depends on the applied target system hardware.
-
Overflow/underflow in the data type
-
Arithmetic operators
-
Bitstring operators
-
Bitshift operators
-
Selection Operators
-
Comparison Operators
-
Address operators
-
Call operators
-
Type conversion operators
-
Numeric Operators
-
Namespace operators
-
Multicore operators
-
Other operators
-
Operator: ADD
-
Operator: MUL
-
Operator: SUB
-
Operator: DIV
-
Operator: MOD
-
Operator: MOVE
-
Operator: INDEXOF
-
Operator: SIZEOF
-
Operator: XSIZEOF
-
Operator: NOT
-
Operator: AND
-
Operator: OR
-
Operator: XOR
-
Operator: AND_THEN
-
Operator: OR_ELSE
-
Operator: SHL
-
Operator: SHR
-
Operator: ROL
-
Operator: ROR
-
Operator: SEL
-
Operator: MAX
-
Operator: MIN
-
Operator: LIMIT
-
Operator: MUX
-
Operator: GT
-
Operator: LT
-
Operator: LE
-
Operator: GE
-
Operator: EQ
-
Operator: NE
-
Operator: ADR
-
Operator: Content Operator
-
Operator: BITADR
-
Operator: CAL
-
Overloading
-
Boolean Conversion
-
Integer Conversion
-
Floating-Point Number Conversion
-
String Conversion
-
Time Conversion
-
Date and Time Conversion
-
Operator: TRUNC
-
Operator: TRUNC_INT
-
Operator: ABS
-
Operator: SQRT
-
Operator: LN
-
Operator: LOG
-
Operator: EXP
-
Operator: EXPT
-
Operator: SIN
-
Operator: COS
-
Operator: TAN
-
Operator: ASIN
-
Operator: ACOS
-
Operator: ATAN
-
Operator: __DELETE
-
Operator: __ISVALIDREF
-
Operator: __NEW
-
Operator: __QUERYINTERFACE
-
Operator: __QUERYPOINTER
-
Operator: __TRY, __CATCH, __FINALLY, __ENDTRY
-
Operator: __VARINFO
-
Operator: __CURRENTTASK
-
Operator: __COMPARE_AND_SWAP
-
Operator: __XADD
-
Operator: __POSITION
-
Operator: __POUNAME
-
Operator: TEST_AND_SET
-
Operator: Global Namespace
-
Operator: Namespace for Global Variable Lists
-
Operator: Library Namespace
-
Operator: Enumeration Namespace
-
Operator: __POOL
-
Operator: INI