and I create a FB like "Lag" in APL.
The SCL program is shown as follows:
Code: Select all
OUT := SEL(G:=LAG_T<=0.0,IN0:=IN + (sr_lv_out-IN)*(EXP(-Sample_T/LAG_T)),IN1:=IN);
sr_lv_out := OUT;
Why?
Is floating-point calculation overflow ?
Code: Select all
OUT := SEL(G:=LAG_T<=0.0,IN0:=IN + (sr_lv_out-IN)*(EXP(-Sample_T/LAG_T)),IN1:=IN);
sr_lv_out := OUT;