Panasonic FP Series Programming Manual page 552

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F182_FILTER
Filter processing is executed for specified bits and output bitwise. The instruction can be useful to
Description
negate the effects of bounce, e.g. for a switching device.
For bits stored in the area specified by s1_InputData a debouncing is executed if the resulting
value for s2_InputMask is "1". The result of the debouncing operation is output to d_OutputData.
The debouncing time is defined via s3_FilterTime (0 to 30000ms). If s2_InputMask is "0" no
debouncing takes place and the corresponding bit at s1_InputData passes unchanged to
d_OutputData.
In the following figure, the bits in d_OutputData and their values will be the same as s1_InputData
after the filter time has elapsed or, for example, if no masking takes place, e.g. s2_InputMask is
assigned the value 0.
s1_InputData
s2_InputMask
s3_FilterTime
(if InputMask = 1)
d_OutputData
Time constant processing
Bit 0
1
1
0
0
1
1
12
12
9
3
9
3
6
6
0
1
0
Bitwise Boolean instructions
Bit F
. . .
0
0
. . .
. . .
0
551

Advertisement

Table of Contents
loading

Table of Contents