
This component models a lead-lag function with gain, where the output can be reset to the user specified value at any instant. Maximum and minimum output limits are also included internally.
The solution method for this function is based on the value of the time constant T1 and T2 as follows:

If T2 = 0 (like a PI Controller):
![]()
If T1 = 0 & T2 = 0 (like a Gain block):
![]()
The output is then,
![]()
Where,
|
Output signal |
|
Input Signal |
|
Gain factor (can be a variable) |
|
Time constant (can be a variable) |
|
Time step interval |
More: |
Name for Identification |
Text |
Optional text parameter for identification of the component. |
||
Limit Output? |
|
Choice |
|
Select Yes or No |
|
|
|
|
|
Fortran Comment |
|
Text |
|
An optional Fortran comment. The text entered here is included in the project Fortran file |
|
|
|
|
|
Resettable? |
|
Choice |
|
Select Never, Anytime or Timezero.
Choosing Timezero will allow for the assignation of an initial value. |
|
|
|
|
|
Reset Value |
|
REAL |
Variable |
Enter the value to which to reset the output |
Gain |
|
REAL |
Variable |
Gain factor |
|
|
|
|
|
Lead Time Constant |
|
REAL |
Variable |
Lead time constant (T1) [s] |
|
|
|
|
|
Lag Time Constant |
|
REAL |
Variable |
Lag time constant (T2) [s] |
Maximum |
|
REAL |
Variable |
Limits the output to this maximum limit |
|
|
|
|
|
Minimum |
|
REAL |
Variable |
Limits the output to this minimum limit |