Function library
7-112
L
EDSVS9332P-D21 EN 3.0
Function
•
Selection of the arithmetic function with the code ARITPH mode.
•
The function block limits the results (see table)
Code Selection number Arithmetic function Limitation
0 OUT = IN1 Without limit
1 OUT = IN1 + IN2 2
30
-1
2 OUT = IN1 - IN2 2
30
-1
ARITPH1: C1010
ARITPH2: C1020
3 OUT = (IN1 × IN2) ÷ 2
30
2
30
-1 (Remainder not
considered)
RITPH3: C1025
13 OUT = IN1 × IN2 2
31
:
ARITPH5: C1555
RITPH6: C1560
14 OUT = IN1 ÷ IN2 2
30
-1 (Remainder not
considered)
15 OUT = IN1 % IN2 Remainder output (Modulo)
21 OUT = IN1 + IN2 no limit Without limit
22 OUT = IN1 - IN2 no limit Without limit
•
The calculation is performed cyclically in the control program.