Internal calculation channels
198
A4354-2.2
HBM: public
PMX
13.2.2.8 Moving Average
Function
A moving average for an assigned number of samplings.
The filter settling time is the number of samplings
multiplied by the computation cycle (default 1s/19200, see
section 1).
Inputs
X: : the signal being averaged
Outputs
Y: : the moving average of input X
Parameters
The number of samplings (filter width)
Range 1...385
Default
Number of samplings: p. 385
Exception handling
If the input is marked as invalid (invalid bit), the filter is
deactivated and the output is blocked and marked as
invalid. Invalid input values are not fed into the filter.
If the input becomes invalid, the filter is reactivated and the
output immediately becomes valid again. A filter settling
time is required until the filter buffer is filled with sequential
samplings.
The moving average is an efficient option for eliminating
narrow band noise, for example from the power supply
(50 or 60 Hz).
Width = 19200 Hz/50 Hz = 384 eliminates 50Hz noise
(and the harmonics at 100, 150, 200, 250, etc. Hz)
Width = 19200 Hz/60 Hz = 320 eliminates 60Hznoise
(and the harmonics at 120, 180, 240, 300... Hz) ...where
19200 is the sampling rate.
This function requires a lot of internal memory. Generally
it is not possible to create more than 6 or 7 blocks of
moving averages, or even fewer if other blocks have
already been created.
If there is not enough memory for a new function block, a
message is logged.
Summary of Contents for PX401
Page 1: ...Operating Manual English PMX...
Page 104: ...Electrical connections PMX 104 A4354 2 2 HBM public PMX...
Page 141: ...Startup PMX A4354 2 2 HBM public 141 Network settings...
Page 239: ...Internal calculation channels PMX A4354 2 2 HBM public 239...
Page 241: ...Internal calculation channels PMX A4354 2 2 HBM public 241...
Page 246: ...Internal calculation channels 246 A4354 2 2 HBM public PMX...
Page 264: ...Internal calculation channels 264 A4354 2 2 HBM public PMX...
Page 272: ...Parameter sets measurement programs 272 A4354 2 2 HBM public PMX...
Page 295: ...Communication with a control system PMX A4354 2 2 HBM public 295...
Page 297: ...Communication with a control system PMX A4354 2 2 HBM public 297...
Page 300: ...Communication with a control system 300 A4354 2 2 HBM public PMX...
Page 376: ...CODESYS V3 Soft PLC WGX001 only 376 A4354 2 2 HBM public PMX...
Page 378: ...CODESYS V3 Soft PLC WGX001 only 378 A4354 2 2 HBM public PMX...
Page 381: ...CODESYS V3 Soft PLC WGX001 only PMX A4354 2 2 HBM public 381...
Page 392: ...CODESYS V3 Soft PLC WGX001 only 392 A4354 2 2 HBM public PMX Dialog Updating the PMX device...
Page 489: ...Object directory PMX A4354 2 2 HBM public 489...
Page 523: ...Diagnosis and maintenance PMX A4354 2 2 HBM public 523 Network settings...