Reconfigure
The method is called in order to reconfigure the function block during the runtime.
Syntax
METHOD Reconfigure : BOOL
VAR_INPUT
fMinFreq : LREAL;
fMaxFreq : LREAL;
nPeriods : UDINT;
nFilterOrder : UINT;
fCutoff : LREAL;
eInputSelect : E_PMA_InputSelect;
fMinInput : LREAL;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
fMinFreq |
LREAL |
Minimum expected measuring frequency |
fMaxFreq |
LREAL |
Maximum expected measuring frequency |
nPeriods |
UDINT |
Number of periods that influence the calculation. (Period length = sample rate/frequency) |
nFilterOrder |
UINT |
Indicates the order of the low-pass filter. The stability of the filter must be considered for the setting. Only values up to the tenth order are allowed. |
fCutoff |
LREAL |
Specifies the limit frequency of the low-pass filter. |
eInputSelect |
Here you can configure whether the frequency of the voltage or the current should be calculated. | |
fMinInput |
LREAL |
Minimum input value (RMS) over one period. This prevents the calculation of input values that are too small. |
Return value
Name |
Type |
Description |
---|---|---|
Reconfigure |
BOOL |
Indicates whether the method was executed successfully. Further information is provided in the Event interface of the function block. |