FB_WG_ComboFilter
![FB_WG_ComboFilter 1:](Images/png/15090345995__Web.png)
The function block FB_WG_ComboFilter implements a PTn, Moving Average and Notch filter connected in series.
The filter specification is transferred with the structure ST_WG_ComboFilter.
Syntax
Declaration:
fbFilter : FB_WG_ComboFilter(stConfig := ...)
Definition:
FUNCTION_BLOCK FB_WG_ComboFilter
VAR_INPUT
stConfig : ST_WG_ComboFilter;
END_VAR
VAR_OUTPUT
bError : BOOL;
bConfigured : BOOL;
ipResultMessage : I_TCMessage;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
bError | BOOL | TRUE, if an error occurs. |
bConfigured | BOOL | TRUE if the configuration was successful. |
ipResultMessage | Interface that provides properties and methods for message handling. |
Methods
Name | Definition location | Description |
---|---|---|
Configure() | Local | Loads a new (or initial) configuration structure. |
Call() | Local | Calculates the output signal for a given input signal and configuration of the function block. |
Reset() | Local | Resets internal states. |
Properties
Name | Type | Access | Definition location | Initial value | Description |
---|---|---|---|---|---|
bTraceLevelDefault | BOOL | Get, Set | Local | TRUE | TRUE, if eTraceLevel = Warning. |
eTraceLevel | Get, Set | Local | Critical | Severity of an event |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.50 | PC or CX (x64, x86) | Tc3_Weighing |