258
Operation
Inputs
Outputs
SQRT
(10008)
Illustration
Execution time
Operation
Inputs
Outputs
SUB
-
(10009)
Illustration
Execution time
Operation
Inputs
Outputs
Standard function blocks
The output (O) is the product of input IN and input MUL divided by input DIV.
Output = (I × MUL) / DIV
O = whole value. REM = remainder value.
Example: I = 2, MUL = 16 and DIV = 10:
(2 × 16) / 10 = 3.2, i.e. O = 3 and REM = 2
The output value is limited to the maximum and minimum values defined by the data
type range.
Input (I): DINT
Multiplier input (MUL): DINT
Divider input (DIV): DINT
Output (O): DINT
Remainder output (REM): DINT
2.09 µs
Output (OUT) is the square root of the input (IN).
OUT = sqrt(IN)
Output is 0 if the input value is negative.
The input data type is selected by the user.
Input (IN): REAL, REAL24
Output (OUT): REAL, REAL24
2.33 µs
Output (OUT) is the difference between the input signals (IN):
OUT = IN1 - IN2
The output value is limited to the maximum and minimum values defined by the selected
data type range.
The input data type is selected by the user.
Input (IN1, IN2): INT, DINT, REAL, REAL24
Output (OUT): INT, DINT, REAL, REAL24