We have to program a low pass first order filter in Siemens S7.
From an engineering company we got following transfer function :
��(��=(1/��/(��+1/��
��=50
I found following on this forum as implementation :
Y0 = (Y-1 * Kf) + (X * (1 - Kf))
where:
Y0 is the filtered output
Y-1 is the filtered output from the previous scan
X is the input to be filtered
Kf is the first order filter constant
Kf = e-t/T
where"
t is the time between scans
T is the first order time constant
Can I use the above formula : Y0 = (Y-1 * Kf) + (X * (1 - Kf))
where I can set T (Kf = e-t/T) to 50?
Or is this the wrong approach?
From an engineering company we got following transfer function :
��(��=(1/��/(��+1/��
��=50
I found following on this forum as implementation :
Y0 = (Y-1 * Kf) + (X * (1 - Kf))
where:
Y0 is the filtered output
Y-1 is the filtered output from the previous scan
X is the input to be filtered
Kf is the first order filter constant
Kf = e-t/T
where"
t is the time between scans
T is the first order time constant
Can I use the above formula : Y0 = (Y-1 * Kf) + (X * (1 - Kf))
where I can set T (Kf = e-t/T) to 50?
Or is this the wrong approach?