CODESYS Development System
. BOOL_TO_DT : DT#1970-01-01-0:0 [...] _TO_TOD : TOD#0:0:0 [...] LTIME#0NS BOOL
CODESYS Development System
Return_tod: INT; iReturn_tod_0 [...] _TO_INT(TOD#23:59:59.999); iReturn_tod_0 :=
CODESYS Development System
. For 5 to 9 [...] value of -1.5 can
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
CODESYS Development System
Operator: EXPT The IEC operator raises a number to a higher power and returns the power of the base raised to the exponent: power = base exponent . The input values (parameters) are the base and the e