DIV (2 Variables Division)
Function name | DIV_010 |
---|---|
Function version | 1.0 |
Function state | stable |
Compatibility with IEC61131-3 | not compatible |
Graphic symbol :
Input / Output :
Name | Belonging Group | Access | Types of data | Description |
---|---|---|---|---|
EN | Left Power Flow | IEC1131-3 enable input | ||
A | Normal | R , RW | F , B , W , L , S | Input variable A (dividing) |
B | Normal | R , RW | F , B , W , L , S | Input variable B (divisor) |
Q | Normal | W , RW | F , B , W , L , S | Result of the operation Q = (A) / (B) |
ENO | Right Power Flow | IEC1131-3 enable output |
Description :
The function Division divides A by B and place the result in the specified variable from Q.
The eventual overflow in the result (Q) is ignored.
A division by zero cause an error condition that imply ENO = 0.
Note: the numbers in floating point are represented in the format described in the standard 754-1985 ANSI/IEEE (in single precision). For further representation about the argument, refers to that law.