Arithmetic instructions
401
Part III FP Instructions
Variable Data type Function
s1 DWORD multiplicand, 32-bit area for 8-digit BCD data or equivalent
constant
s1 DWORD multiplier, 32-bit area for 8-digit BCD data or equivalent
constant
d ARRAY [0..1] of
DWORD
result
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.
Data types
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
F51_DBMUL(multiplicand, multiplicator, output_value);
END_IF;