UMAX030211 Version 1.0.2. Preliminary Documentation – May be subject to change
38 - 85
2.6.
Math Function Block
There are two mathematic function blocks that allow the user to define basic algorithms. Math
function block Z = 1 to 2 will be enabled based on sub-index Z in object 4000h
Math Enable
.
Figure 17 – Math Function Block Objects
A math function block can take up to four input signals, as listed in Table 23. Each input is then
scaled according the associated scaling and gain objects. A “Math Input X” is determined by the
corresponding sub-index X = 1 to 2 of the objects 4y00h
Math Y Input Source
and 4y01h
Math Y
Input Number.
Here, y = 1 to 2; corresponding the Math #1 - Math #2.
Inputs are converted into a percentage value based on objects 4y20h
Math Y Scaling 1 FV
and
4y22h
Math Y Scaling 2 FV
. Before being used in the calculation, these objects apply the resolution
shift defined by object 4y02h
Math Y Decimal Digits FV
. As with any other function block using a
control source for the X-Axis in a conversion, the scaling objects should be selected to match the
values in the control’s corresponding objects as per Table 24.
For additional flexibility, the user can also adjust object 4y40h
Math Y Input Gain.
This object has a
fixed decimal digit resolution of 2, and a range of -100 to 100. By default, each input has a gain of
1.0.
For each input pair, the appropriate arithmetic or logical operation is performed on the two inputs,
InA and InB, according the associated function in sub-index of InB in object 4y50h
Math Y Operator
.
The list of selectable function operations is defined in Table 22.