CtrlLagDelay (FB)
FUNCTION_BLOCK CtrlLagDelay EXTENDS AbbETrig3
This signal processing function block processes the input signal with Lag algorithm with defined delay cycle.
Transfer Function = U(s)/ E(s) = Gain * [ 1 / (1+ Ti * s ) * e - Ls ]
- InOut:
Scope
Name
Type
Initial
Comment
Input
InREAL0
3: Input of the signal to be processed by CtrlLagDelay function block
ModeBYTE1
- 4: Process mode:
0 = Out = In = Disable Lag Delay Function
1 = Out = Gain*1/(1+Ti*s)*e-Ls*In = Start Lag Delay Function
KpREAL1
4: Propotional gain of CtrlLagDelay function block
TiREAL1
5: Lag time of CtrlLagDelay function block (Unit: Second) 10000>=Ti>= 0.1
DelayCycleINT1
6: Delay cycle of CtrlLagDelay function block (600> = DelayCycle >= 0). Delay cycle depends on the cycle time of the task configuration, that is, Delay before integration = Delay cycle * Task cycle time
Output
ErrorID3: Error identifier if an invalid value was applied to an input
OutREAL0
4: Input signal In is processed by CtrlLagDelay function block, the manipulated output signal is sent to Out