UMAX140610. LIN
– J1939 CAN Protocol Converter with PWM Output. Version 1
Page: 45-81
For the arithmetic functions (9 to 14), it is recommended to scale the data such that the
resulting operation will not exceed full scale (0 to 100%) and saturate the output result.
When dividing, a zero InB value will always result is a zero output value for the associated
function. When subtracting, a negative result will always be treated as a zero, unless the
function is multiplied by a negative one, or the inputs are scaled with a negative coefficient
first.
The resulting mathematical calculation, represented as a percentage value, can be scaled into
the appropriate physical units using the
“Math Output Minimum Range”
and
“Math Output
Maximum Range”
setpoints. These values are also used as the limits when the Math
Function is selected as the input source for another function block.
Table 27. Global Parameters Function Block Configuration Parameters
Name
Default
Value
Range
Units
Description
Math Function
Enabled
0, False
Drop List
–
True or False
Math Output
Minimum Range
0.0
[
-
10
4
…10
4
]
–
Converts calculation from
a percentage value to the
desired physical unit.
Math Output
Maximum Range
100.0
[
-10
4
…10
4
]
–
Math Decimal
Digits
0
[0…4]
–
Change the resolution of
range values
Function X Input Y
Source (X = 1 to 3,
Y = A or B)
0, Control
Source Not
Used
Drop List
–
See Table 8.
Function X Input Y
Number
0
Per Source
–
See Table 8.
Function X Input Y
Decimal Digits
0
[0…4]
–
Change the resolution of
range values
Function X Input Y
Function Number
0
[0…3]
–
See previous section
Function X Input Y
Minimum
0
[
-10
4
…10
4
]
–
Converts input to a
percentage before use in
the calculation.
Function X Input Y
Maximum
0
[
-10
4
…10
4
]
–
Function X Input Y
Scaler
1.00
[
-10
4
…10
4
]
See previous section
3.7 Constant Data
The
Constant Data
functional block gives the user access to a set of global constants. The
function block has five configurable
Constant Discrete Data
outputs, five configurable
Constant
Continuous Data
outputs.
Configuration parameters of the
Constant Data
function block are presented below: