Chapter 5: Intelligent Box (IBox) Instructions
Filter Over Time - Binary (FILTERB) (IB-402)
1
Filter Over Time in Binary (decimal) will perform a first-order filter on the Raw Data on a
defined time interval. The equation is:
230
2
New = Old + [(Raw - Old) / FDC] where
240
New: New Filtered Value
250-1
3
Old: Old Filtered Value
260
FDC: Filter Divisor Constant
4
Raw: Raw Data
DS5 Used
The Filter Divisor Constant is an integer in the
N/A
HPP
5
range K1 to K100, such that if it equaled K1
then no filtering would be done.
6
The rate at which the calculation is performed
is specified by time in hundredths of a second (0.01 seconds) as the Filter Freq Time
7
parameter. Note that this Timer instruction is embedded in the IBox and must NOT be used
anywhere else in your program. Power flow controls whether the calculation is enabled. If it is
disabled, the Filter Value is not updated. On the first scan from Program to Run mode, the
8
Filter Value is initialized to 0 to give the calculation a consistent starting point.
9
FILTERB Parameters
10
• Filter Frequency Timer: specifies the Timer (T) number which is used by the Filter instruction
• Filter Frequency Time (0.01sec): specifies the rate at which the calculation is performed
11
• Raw Data (Binary): specifies the V-memory location of the raw unfiltered binary (decimal) value
• Filter Divisor (1 to 100): this constant is used to control the filtering effect. A larger value will
increase the smoothing effect of the filter. A value of 1 results with no filtering.
12
• Filtered Value (Binary): specifies the V-memory location where the filtered binary (decimal) value
will be placed
13
14
Filter Frequency Timer . . . . . . . . . . . . . . . . . . . T
Filter Frequency Time (0.01 sec) . . . . . . . . . . . K
A
Raw Data (Binary) . . . . . . . . . . . . . . . . . . . . . . . V
Filter Divisor (1-100) . . . . . . . . . . . . . . . . . . . . . K
Filtered Value (Binary) . . . . . . . . . . . . . . . . . . . . V
B
C
D
5–242
DL205 User Manual, 4th Edition, Rev. B
Parameter
DL205 Range
T0-377
K0-9999
See DL205 V-memory map - Data Words
K1-100
See DL205 V-memory map - Data Words
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?