F182_FILTER

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: FP_DEBOUNCE

Filter processing is executed for specified bits and output bitwise. The instruction can be useful to negate the effects of bounce, e.g. for a switching device.

Parameters

Input

s1_InputData (WORD, INT, UINT)

Input data whose bits will be filtered according to the input mask

s2_InputMask (WORD, INT, UINT)

Input mask which specifies which bits will be filtered

s3_FilterTime (WORD, INT, UINT)

Specifies the minimum off- and on-time in ms

Output

d_OutputData (WORD, INT, UINT)

Filtered data

Remarks

Time chart

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)

if the filter processing time specified by s3_FilterTime is less than 0 or greater than 30000.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)

if the filter processing time specified by s3_FilterTime is less than 0 or greater than 30000.

Related topics:

Modified on: 2024-03-06Feedback on this pagePanasonic hotline