
Function library LenzeDrive.lib
Signal conversion
2.5.5 Normalization with limiting (L_CONVX)
2−53
L
LenzeDrive.lib EN 1.7
2.5.5 Normalization with limiting (L_CONVX)
This FB normalizes signals. The calculation is made with high−precision and remainder handling,
using the conversion factor for numerator and denominator.
nNum
nOut
L_CONVX
*
a
b
1
1
0
nIn
nDenom
bInvers_b
ab
±32767
Fig. 2−63 Conversion (L_CONVX)
VariableName
DataType SignalType VariableType Note
nIn Integer analog/velocity VAR_INPUT
nNum Integer analog/velocity VAR_INPUT Counter
nDenom Integer analog/velocity VAR_INPUT Denominator
bInvers_b Bool binary VAR_INPUT
nOut Integer analog/velocity VAR_OUTPUT
Function
The multiplication or division of signals is made according to the formula:
nOut + nIn @
dnNum
|
dnDenom
|
@ sgn
|
bInvers
|
Division by zero is prevented: if nDenom = 0 the the value of nDenom is set to 1.
The input value is calculated for nDenominator.
bInvers_b = TRUE means that the sign is reversed for the output variable nOut.
The calculation is made using remainder handling.
Komentáře k této Příručce