
2.2.3 Input gain and offset (L_AIN)
Function library LenzeDrive.lib
Analog signal processing
2−6
L
LenzeDrive.lib EN 1.7
2.2.3 Input gain and offset (L_AIN)
This FB is preferentially used for addition circuitry at the analog input terminals, to adjust the gain and
offset.
nOffse t_ a
L_AIN
nOut_a
nGain_a
+
+
nIn_a
Fig. 2−4 Input gain and offset (L_AIN)
VariableName DataType SignalType VariableType Note
nIn_a Integer analog VAR_INPUT Input signal
nOffset_a Integer analog VAR_INPUT Offset of the input signal
nGain_a Integer analog VAR_INPUT Gain of the input signal
nOut_a Integer analog VAR_OUTPUT
Function
Offset
– The value at nOffset_a is added to the value of nIn_a
– The result of the addition is limited to ±32767.
Gain
– The limited value (after the offset) is multiplied by the value at nGain_a .
– Next, the signal is limited to ±32767.
The signal is given out at nOut_a .
nOffset_a
nGain_a
nIn_a
nOut_a
Fig. 2−5 Offset and gain of the analog input
Comentarios a estos manuales