FB_DIV
Description Function Block
The FB_DIV
function block is used to divide the AnalogIn1
input by the AnalogIn2
input and pass the result to the AnalogOut
output.
If the input AnalogIn2 = 0
, then the AnalogOut
output is set to 0
. In this case, an error is not issued.
If an overflow or underflow occurs during the division, then the ERROR
state is entered. Then the AnalogOut
output is set to 0 and the bError
output is set to 1.
The bFloor
, bCeil
, and bRound
inputs can be used to specify which rounding method to be applied.
EL6900
The FB_DIV
function block is not supported by the EL6900.

Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| 1st analog input signal for division Permitted data types: |
|
|
| 2nd analog input signal for division Permitted data types: |
|
|
| Rounding method: Decimal places are truncated. Only a constant value is permitted (no variable) Only one of the |
|
|
| Rounding method: The next largest integer is returned as the result. Only a constant value is permitted (no variable) Only one of the |
|
|
| Rounding method: Rounded away from zero (for example, 2.5 is rounded up to 3). Only a constant value is permitted (no variable) Only one of the |
Name | Data Type | Initial Value | Description, Parameter Values |
---|---|---|---|
|
|
| Analog output with the quotient Permitted data types: |
|
|
|
|