Function blocks
Function blocks for TwinSAFE logic components 135
3.19 The function block DIV
3.19.1 Functional description
The FB DIV is used to divide the AnalogIn1 input by the AnalogIn2 input and transfer the result to the
AnalogOut output. The input data types INT16, INT32, UINT16 and UINT32 are permitted. The output
must be selected to match the input types.
If the AnalogIn2 input is 0, the AnalogOut output is set to 0. In this case no error is output.
If an overflow or underflow occurs during the division, the ERROR state is assumed. The AnalogOut
output is then set to 0, the Error output is set to 1.
The Division Rounding parameter can be used to specify the rounding method to be used.