Arithmetic instructions
403
Part III FP Instructions
For Relay T/C Register Constant
s1, s2 WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
No. IEC address Set If
R900B %MX0.900.11 for an instant the calculated result is 0.
R9009 %MX0.900.9 for an instant the negative minimum value -32768
(16#8000) is divided by -1 (16#FFFF)
Operands
Error flags
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out.
LD
ST
IF start THEN
F32_DIV(dividend, divisor, output_value);
END_IF;