Function library
Function blocks
9.2.12 Arithmetic block (ARITPH)
9-68
L
EDSVS9332S-D11 EN 3.0
9.2.12 Arithmetic block (ARITPH)
Purpose
The FB ARITPH calculates a phase output signal from two phase input signals.
ARITPH1
+
-
*
/
C1010
x
y
ARITPH1
ARITPH1-OUT
C1012/1
± 2
30
-1
C1012/2
ARITPH1-IN1
ARITPH1-IN2
C1011/1
C1011/2
ARITPH-Modus
Fig. 9-28 Function block ARITPH1
Signal
Source Note
Name Type DIS DIS format CFG List
ARITPH1-IN1 ph C1012/1 dec [inc] C1011/1 3 -
ARITPH1-IN2 ph C1012/2 dec [inc] C1011/2 3 -
ARITPH1-OUT ph - - - -
Function
z Selection of the arithmetic function with the code ARITPH mode.
z The function block limits the result (see table)
ARITPH mode Arithmetic function Limitation
C1010 = 0 OUT = IN1 2
30
-1
C1010 = 1 OUT = IN1 + IN2 2
30
-1
C1010 = 2 OUT = IN1 - IN2 2
30
-1
C1010 = 3 OUT = (IN1 * IN2) / 2
31
2
30
-1 (remainder not considered)
C1010 = 13 OUT = IN1 * IN2 2
31
C1010 = 14 OUT = IN1 / IN2 2
30
-1 (remainder not considered)
C1010 = 21 OUT = IN1 + IN2 without with overflow
C1010 = 22 OUT = IN1 - IN2 without with overflow
z The calculation is performed cyclically in the control program.