17 Function library
17.1 Function blocks | L_GainOffsetP_1
1387
Lenze · 8400 HighLine · Reference manual · DMS 12.0 EN · 06/2017 · TD23
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
17.1.89 L_GainOffsetP_1
This FB can amplify an analog input signal and add an offset to it afterwards. Preferably to be
interconnected directly after the analog input terminals.
• The internal calculations (addition and subtraction) are carried out with 32 bits without
overflow/underflow. Division is not remainder considered.
• Gain and offset are selected via parameters.
• The value provided at the nOut_a output is internally limited to ±199.99 %.
Inputs
Outputs
Parameters
Function
Designator
Data type
Information/possible settings
nIn_a
INT
Input signal
• Scaling: 16384 ≡ 100 %
Designator
Data type
Value/meaning
nOut_a
INT
Output signal
• Internal limitation to ±199.99 %
Parameters Possible settings Info
C00677/1 -199.99 % 199.99 Gain factor
• Lenze setting: 100.00 %
• 199.99 % ≈2
C00677/2
-199.99 % 199.99 Offset
• Lenze setting: 0.00 %
/B*DLQ2IIVHW3B
Q,QBD Q2XWBD
2IIVHW*DLQ
& &
nOut_a nIn_a Gain factor⋅()Offset+=