5.3.1
Addition and subtraction
5.3.1.1
[330] Add. O1=-O2=I1+I2-I3+P1-P2
Type
I1
%
positive input I1
%
positive input I2
I2
I3
%
negative input I3
b
Master Reset
I4
Description:
This function adds inputs I1 and I2 and subtracts input I3. In addition, a positive and negative
offset can be defined via P1 and P2, respectively.
O1
O2
I1
=
−
=
+
The result of the addition is limited to ±327.67%. Interim results are not limited.
As long as status TRUE is present at I4 (Master Reset), the output value at O1 is 0.
Example:
I1=3240 (=32.40%)
I2=5613 (=56.13%)
I3=27028 (=270.28%)
P1=390 (=3.90%)
P2=322 (=3.22%)
Input for parameters, e.g.:
32.40%
P2 = 390
Note:
Percentages [%] have two decimals.
For example: Value 12345
5.3.1.2
Type
I1
Pos
positive input I1
Pos
positive input I2
I2
Pos
negative input I3
I3
I4
b
Master Reset
Description:
This function adds inputs I1 and I2 and subtracts input I3. In addition, an offset can be speci-
fied.
O2
|
O1
I1
I2
=
+
The output value comprises a High word (O1) and a Low word (O2). The positions offset which
is added is also separated in High word and Low word.
As long as status TRUE is present at I4 (Master Reset), the output value is 0.
Note:
Output value O2 is not the inverted value of O1.
The output can be combined with inputs for position values (Long).
The function can also be used for ramp settings in configurations x40.
The availability of configuration x40 depends on the device series.
08/10
08/10
Function
O1
O2
P1
P2
I2
I3
P1
P2
−
+
−
O1
= 32.40% + 56,13% - 270.28% + 3.90% - 3.22%
= -181,07%
= 123.45% = 1.2345
IN
[331] Addition position with offset
Function
O1
O2
P1
P2
I3
P2
|
P1
−
+
;
Type
Function
%
=
O1
I1
+
I2
−
I3
+
P1
%
inverted output = -1
%
positive offset
%
negative offset
Type
Function
Pos
=
O
I1
+
I2
−
I3
+
P
Pos
Pos
Positions offset P
Pos
O2
=
|
O1
High
−
word
P2
=
|
P1
High
−
word
|
VPLC / PLC
VPLC / PLC
−
P2
Low word
High word
Low word
High word
|
Low
−
word
;
Low
−
word
91
91
Need help?
Do you have a question about the AGILE and is the answer not in the manual?
Questions and answers