
Function library LenzeDrive.lib
Analog signal processing
2.2.5 Output gain and offset (L_AOUT)
2−9
L
LenzeDrive.lib EN 1.7
2.2.5 Output gain and offset (L_AOUT)
This FB is preferentially used for additional circuitry at analog output terminals, to adjust the gain and
offset.
L_AOUT
nOffset_a
nGain_a
nIn_a
+
+
nOut_a
Fig. 2−7 Output gain and offset (L_AOUT)
VariableName DataType SignalType VariableType Note
nIn_a Integer analog VAR_INPUT Input signal
nGain_a Integer analog VAR_INPUT Gain of the input signal
nOffset_a Integer analog VAR_INPUT Offset of the input signal
nOut_a Integer analog VAR_OUTPUT
Function
Gain
– The value at nIn_a is multiplied by the value at nGain_a .
– The multiplication is performed according to the formula:
[100% @ 100% + 100%]
16384 @ 16384 @ 2
*14
+ 16384
– The result of the multiplication is limited to ±2
14
Offset
– The limited value (after amplification) is added to the value at nOffset_a
– The result of the addition is limited to ±2
14
Next, the signal is limited to ±2
14
and output to nOut_a .
nGain_a
nIn_a
nOut_a
nOffset_a
Fig. 2−8 Offset and gain of the analog output
Comentarios a estos manuales