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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4022.25

PC or CX (x86, x64)

Tc3_CM_Base