ST_CM_OrderPowerSpectrum_InitPars

Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.

TYPE ST_CM_OrderPowerSpectrum_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
    fSampleRateSignal    : LREAL := 1000;                             (* Sample rate in Hertz of vibration signal. *)
    fSampleRatePosition  : LREAL := 1000;                             (* Sample rate in Hertz of positions. *)
    fPositionScaling     : LREAL := 1;                                (* One rotation needs to be represented by 1. *)
    fMaxRPM              : LREAL := 1800;                             (* Max. rotations per minute. *)
    nFFT_Length          : UDINT := 512;                              (* Length of FFT. *)
    nWindowLength        : UDINT := 400;                              (* Length of analysis window. *)
    fDecibelThreshold    : LREAL := cCM_MinArgLog10;                  (* Minimum argument of decadic logarithm for 64- bit IEEE 754 arithmetic. *)
    bTransformToDecibel  : BOOL := TRUE;                              (* Transform to decibel. *)
    eWindowType          : E_CM_WindowType := eCM_HannWindow;         (* Window type. *)
    aWindowParameters    : T_CM_WindowParameters := [2.5,1,1,1,1];    (* Window parameters for specific windows, e.g. FlatTop. *)
    nOverlap             : UDINT := -1;                               (* Size of overlap in samples. *)
    eScalingType         : E_CM_ScalingType := eCM_DiracScaling;      (* Scaling type. *)
    nChannels            : UDINT := 1;                                (* Number of channels. *)
END_STRUCT
END_TYPE

All other parameters are analogous to the parameterization of the power spectrum, see ST_CM_PowerSpectrum_InitPars.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x86, x64)

Tc3_CM_Base