FUNCTION_BLOCK LAG1

Hover on a highlighted element
to pop up its description (if any).

ECC
ALGORITHM INIT IN ST : (* Perform Initialization *)
OUT := IN;
END_ALGORITHM
ALGORITHM LAG IN ST : (* Lag algorithm *)
OUT := OUT + (IN-OUT)/N;
END_ALGORITHM

An instance of this Basic Function Block type simulates a first-order lag driven by a simulation clock at the CLK input. Its operation is defined by the ECC and algorithms shown above. The characteristic time of the first-order lag is N clock periods.