Example:
I1= 35468240 O = 35468240 + 5613 + 27028 + 270000
= 35770881
= 221D201
hex
O1= D201
hex
[= 53761]
O2= 0221
hex
[= 545]
I2= 5613
I3= 27028
P= 270000 = 41EB0
hex
P1= 1EB0
hex
= 7856
P2= 0004
hex
= 4
5.3.2 Multiplication
5.3.2.1 [332] Multiplication
Type Function
Type Function
I1 % input value 1
O1 %
P1I2I1O1 ××=
I2 % input value 2
O2 % inverted output = -1
I3 - -
P1 % Factor (numerator)
I4 b Master Reset
P2 - -
Description:
This function multiplies inputs I1 by I2 and by factor P1.
P1I2I1-O2O1 ××==
The result of the multiplication is limited to ±327.67%.
As long as status TRUE is present at I4 (Master Reset), the output value O1 is 0.
Note:
100.00% * 100.00% = 100.00%
Example:
I1=3240 (=32.40%) O1 = 32.40% * 3.58% * 270.00%
= 0.324 * 0.0358 * 2.70
= 0.0313 = 3.13%
I2=358 (=3.58%)
P1=270 (=270.00%)
Note:
Percentages [%] have two decimals.
For example: Value 12345
IN
= 123.45% = 1.2345
5.3.2.2 [333] Multiplication, Long result
Type Function
Type Function
I1 % positive input I1
O1 %
P1I2I1O ××=
Low word
I2 % positive input I2
O2 % High word
I3 - -
P1 % Factor
I4 b Master Reset
P2 - -
Description:
Inputs I1 and I2 as well as Factor P1 are multiplied by one another.
The result at the output is divided in a High word (O1) and a Low word (O2).
P1I2I1O1|O2 ××=
;
wordLow|wordHighO1|O2 −−=
The result of the multiplication (long) is not limited.
As long as status TRUE is present at I4 (Master Reset), the output value is 0.
If P1 is set to value 0, O = I1 x I2 is calculated.
Note:
The output value at O2 is not the inverted value of O1.