CODESYS Development System
Operator: CAL The IEC operator is used for calling function blocks. In IL, CAL calls the instance of a function block. CAL <function block> (<input variable1> := <value>, <input variableN> := <value>)
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 123 . 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
CODESYS Development System
Operator: SIN The IEC operator yields the sine value of a number. Permitted data types for input variables that measure the angle in radians: any numeric basic data type Permitted data types for outpu
CODESYS Development System
Operator: SEL The IEC operator is used for bitwise selection. OUT := SEL(G, IN0, IN1) means: OUT := IN0; if G = FALSE OUT := IN1; if G = TRUE Permitted data types IN0 , …, INn and OUT : any identical
CODESYS Development System
Operator: MAX The IEC operator is used for the maximum function. It yields the greatest value of all inputs. OUT := MAX(IN0,IN1,IN2,...) Permitted data types: all Example 110 . Examples Result: 90 ST
CODESYS Development System
Operator: MIN The IEC operator is used for the minimum function. It yields the least value of all inputs. OUT := MIN(IN0,IN1,IN2,...) Permitted data types: all Example 111 . Examples Result: 30 ST Var