CODESYS Development System
Floating-Point Number Conversion Important If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor ty
CODESYS Development System
String Conversion Important If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and is there
CODESYS Development System
Time Conversion Important If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and is therefo
CODESYS Development System
Date and Time Conversion Important If the operand value for a type conversion operator is outside of the value range of the target data type, then the result output depends on the processor type and i
CODESYS Development System
Operator: TRUNC The IEC operator is used for converting the REAL data type into the DINT data type. CODESYS takes only the integer part of the number. Tip In CoDeSys V2.3 , the TRUNC operator converts
CODESYS Development System
Operator: TRUNC_INT The IEC operator is used for converting the REAL data type into the INT data type. CODESYS takes only the integer part of the number. Tip TRUNC_INT corresponds to the TRUNC operato
CODESYS Development System
Operator: ABS The IEC operator yields the absolute value of a number. Permitted data types for input and output variables and numeric constants: any numeric basic data type Example 139 . Examples Resu
CODESYS Development System
Operator: SQRT The IEC operator yields the square root of a number. Permitted data types for input variables: any numeric basic data type Permitted data types for output variables: REAL and LREAL Exam
CODESYS Development System
Operator: LN The IEC operator yields the natural logarithm of a number. Permitted data types for input variables: any numeric basic data type Permitted data types for output variables: REAL and LREAL
CODESYS Development System
Operator: EXP The IEC operator yields the exponential function. Permitted data types for input variables: any numeric basic data type Permitted data types for output variables: REAL and LREAL Example