ST_CM_Correlation_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_Correlation_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
nNegativeShift : UDINT := 0; (* Maximum negative time shift in samples. *)
nPositiveShift : UDINT := 0; (* Maximum positive time shift in samples. *)
nStepsize : UDINT := 0; (* Stepsize in Samples. *)
eCorrelationMode : E_CM_CorrelationMode := E_CM_CorrelationMode.eCM_Normed; (* Calculation mode of correlation. *)
eWindowMode : E_CM_WindowMode := E_CM_WindowMode.eCM_FixWindow; (* Window handling, i.e. sliding, fixed, continuous. *)
nWindowLength : UDINT := 1000; (* Length of analysis window. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPE
nNegativeShift
specifies the maximum time shift in the negative direction in samples.nPositiveShift
specifies the maximum time shift in the positive direction in samples.nStepsize
defines the step size in samples in which the correlation coefficients are calculated.eCorrelationMode
defines the calculation variant for the correlation parameters.eWindowMode
defines the window on which the calculation is based. The length of the window is determined by the parameternWindowLength
.nWindowLength
is the length of the analysis window in samples. The length must be greater than one and an even number.nChannels
defines the number of independent channels. This must be greater than zero.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022.25 | PC or CX (x86, x64) | Tc3_CM_Base |