Arithmetic instructions
351
Part III FP Instructions
For Relay T/C Register Constant
s 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 result exceeds the range of 4-digit
BCD data (overflow).
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 changes from FALSE to TRUE, the function is carried out.
LD
ST
IF start THEN
F40_BADD(summand, output_value);
END_IF;