Mth_ - Math - Siemens 353 User Manual

Process automation controller
Hide thumbs Also See for 353:
Table of Contents

Advertisement

UM353-1B

3.2.49 MTH_ - Math

MTH_ function blocks provide universal arithmetic
capability. As shown in the block diagram, each input has
gain and bias scaling. The resulting signals are then applied
to configurable math operations (DIV, MUL, ADD and
SUB). Operation A will be performed first on inputs A and
B. Operation B will be performed next on the resultant and
input C.
Unused inputs to a MUL or DIV operation will be set to 1.0
and those to an ADD or SUB operation will be set equal to
0.0. The operation of those inputs will function normally
so it is important to insure that the bias and gain settings are
set properly.
In a DIV operation, when a divisor is 0.0 the output will go
to the maximum Real number with the sign determined by
the numerator. If the numerator is 0 the output will be 0.
A
Input A
B
Input B
.
C
Input C
April 2012
+
INput A
GAIN
+
INput A
BIAS
+
INput B
GAIN
Add, Sub, Mul, Div
+
INput B
BIAS
+
INput C
Add, Sub, Mul, Div
GAIN
+
INput C
BIAS
BLOCK DIAGRAM
MATH
Input A
A
Input B
B
C
Input C
O
U
T
G
A
I
N
OUTput GAIN
I
N
A
G
A
I
N
INput A GAIN
I
N
B
G
A
I
N
INput B GAIN
I
N
C
G
A
I
N
INput C GAIN
O
U
T
B
I A
S
OUTput BIAS
I
N
A
B
I A
S
INput A BIAS
I
N
B
B
I A
S
INput B BIAS
I
N
C
B
I A
S
INput C BIAS
O P
A
OPeration A
O P
B
OPeration B
I
N
P
U
T
A
INPUT A
I
N
P
U
T
B
INPUT B
I
N
P
U
T
C
INPUT C
E
S
N
Exec. Seq. No.
MATH
OPeration A
OUTput
OPeration B
GAIN
Function Blocks
MTH_
ESN = 000
MATH
O1
Output 1
ADD, SUB, MUL, DIV
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
....................................... Real
(S)
...................... Add,Sub,Mul,Div
(S)
...................... Add,Sub,Mul,Div
(S)
......................
loop tag.block tag.output (null)
(H)
......................
loop tag.block tag.output (null)
(H)
......................
(H)
loop tag.block tag.output (null)
............................ 001 to 250
(H)
+
O1
Output 1
+ +
.
OUTput
BIAS
Rev2
(1.0)
(1.0)
(1.0)
(1.0)
(0.0)
(0.0)
(0.0)
(0.0)
(Add)
(Add)
3-49

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents