Download here

Transcript
DirectSOFT5 IBox Instructions for DL06 PLCs
Filter Over Time - Binary (FILTERB) (IB-402)
1
2
3
4
S
6
7
8
9
10
11
12
13
14
A
B
C
D
DS5
Used
HPP
N/A
Filter Over Time in Binary (decimal) will perform a first-order filter on the Raw Data on a
defined time interval. The equation is
New = Old + [(Raw - Old) / FDC] where
New: New Filtered Value
Old: Old Filtered Value
FDC: Filter Divisor Constant
Raw: Raw Data
The Filter Divisor Constant is an integer in the
range K1 to K100, such that if it equaled K1
then no filtering would be done.
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 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 Filter Value is initialized to 0 to give the
calculation a consistent starting point.
FILTERB Parameters
• 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
• Raw Data (Binary): specifies the V-memory location of the raw unfiltered binary (decimal) value
• Filter Divisor (1-100): this constant 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.
• Filtered Value (Binary): specifies the V-memory location where the filtered binary (decimal) value
will be placed
Parameter
Filter Frequency Timer . . . . . . . . . . . . . . . . . . . T
Filter Frequency Time (0.01 sec) . . . . . . . . . . . K
Raw Data (Binary) . . . . . . . . . . . . . . . . . . . . . . . V
Filter Divisor (1-100) . . . . . . . . . . . . . . . . . . . . . K
Filtered Value (Binary) . . . . . . . . . . . . . . . . . . . . V
18
DL06 Range
T0-377
K0-9999
See DL06 V-memory map - Data Words
K1-100
See DL06 V-memory map - Data Words
DL06 Micro PLC User Manual Supplement - IBox Instructions