FB_Gain (Function Block)
Scales the input signal by a fixed gain.
A value greater than 1 amplifies the signal. A value between 0 and 1 attenuates it. A negative value inverts and scales. A value of 0 holds the output at zero.
Extends: FB_SisoComponent
Properties
Gain
Type: LREAL
Gets or sets the scaling factor.
A value greater than 1 amplifies the signal. A value between 0 and 1 attenuates it. A value of -1 inverts the signal. A value of 0 holds the output at zero.
Methods
FB_init
Inputs
Name |
Type |
Description |
|---|---|---|
|
|
if TRUE, the retain variables are initialized (warm start / cold start) |
|
|
if TRUE, the instance afterwards gets moved into the copy code (online change) |
|
|
Factor the input is scaled by. |
Run
Scales the current input by Gain.