Arithmetic instructions
395
Part III FP Instructions
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the result calculated exceeds the 16-bit
area specified at output b.
R900B %MX0.900.11 for an instant the result calculated is 0.
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
F34_MULW(input_value_1, 5, output_value);
END_IF;