Configuring the debounce filter
If you want to use debounce filters, these are made as configuration output and configured as Off-task connector (OTK) or function block.
Meaning of the outputs:
DebounceType_Ch[00…03]: Debounce filter for digital signals
DebounceTime_Ch[00…03]: Debounce time for the respective digital signal
First, drag the output signals defined in the I/O configurator to the margin of the programming surface, in this example “X1_DebType_Ch00” and “X1_DebTime_Ch00” for the digital input 0.
Create a new Off-task connector in the programming window, assign a meaningful name to the connector, e.g. “Filter type” and choose “Input” and Data type “UINT” under the Connector type option.
Meaning of the default values for the debounce filter:
0: Debounce filter switched off 1: Stretch rising edge 2: Stretch falling edge 3: Stretch both edges 4: Delay both edges
You find the explanations of the settings in chapter Debounce filter inputs.
Now, connect the OTK and the signal on the margin of the programming surface.
Create a new OTK, assign a meaningful name, e.g. debounce time and choose “Input” as type. Enter the debounce time in µs in the Default value field. The value can be 65535 at max.
Now, connect the OTK and the signal on the margin of the programming surface.
Enable analog filters
If you want to use debounce filters, these are created as configuration output and configured as Off-task connector (OTC) or function block.
First, drag the output signals defined in the I/O configurator to the margin of the programming surface, in this example “X2_EnableFilter_Ch00” for the analog input 0.
Create a new Off-task connector in the programming window, assign a meaningful name to the connector, e.g. “Filter” and choose “Input” under the Connector type option. The data type must be defined as BOOL.
Meaning of the default values for the anti-aliasing filter:
FALSE: switched off TRUE: switched on
Now, connect the OTC and the signal on the margin of the programming surface.
The configuration of the following functions is similar to that of the analog filter described above. The meaning of the parameters in detail:
Digital anti-aliasing filter (DigitalFilterMode)
The digital anti-aliasing filter can only be enabled when sampling rate > 500 Hz.
0: off (default setting) 2: Digital anti-aliasing filter enabled (once for all channels) Data type: DINT
Cutoff frequency of the digital anti-aliasing filter (AntiAliasingFrequency)
≤0: Auto = 1/3 of the sampling rate (default setting) >0: cutoff frequency in Hz (permissible values: 100 Hz … 0,5*sampling rate) Data type: LREAL
Setting of the interval for power frequency measurement (PwrFrwqMode)
1: Measuring interval 1s 2: Measuring interval 10s (according to DIN EN 61000-4-30): Data type: USINT








