
6F3B0250
7. Instructions
FUN 061
DFL
Digital Filter
T1S only
Expression
Input
Function
When the input is ON, this instruction calculates the following formula to perform digital filtering for input data A by filter constant by B, and stores the result in C.
yn = (1- FL) ´ xn + FL ´ yn - 1
Here; xn is input data specified by A
FL is filter constant, 1/10000 of data specified by B (data range: 0 to 9999) yn is output data to be stored in C
This instruction is useful for filtering the analog input signal. C+1 is used for internal work data.
Execution condition
Input | Operation | Output |
OFF | No execution | OFF |
ON | Execution (FL is limited within the range of 0 to 9999) | ON |
Operand
| Name |
|
| Device |
|
|
|
|
|
| Register |
|
|
|
| Constant | Index | ||
|
| X | Y | R | S | T. | C. | XW | YW | RW | SW | T | C | D | I | J | K |
|
|
A | Input data |
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö | Ö |
|
B | Filter constant |
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö | Ö |
|
|
|
|
|
C | Output data |
|
|
|
|
|
|
| Ö | Ö | Ö | Ö | Ö | Ö |
|
|
|
|
|
Example
The filtered data of XW04 is stored in D0110. (D0111 is used for internal work data)
When D0100 value is small | When D0100 value is large |
XW04 | XW04 |
D0110 | D0110 |
Time | Time |
178 T1/T1S User’s Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net