Arithmetic instructions
381
Part III FP Instructions
For Relay T/C Register Constant
s1, s2 DWX DWY DWR DWL DSV DEV DDT DLD DFL dec. or hex.
d - DWY DWR DWL DSV DEV DDT DLD DFL -
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 8-digit
BCD data (overflow).
Operands
Error flags
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
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
F48_DBSUB2(minuend, subtrahend, output_value);
END_IF;