ST_CM_ComplexDataHandling_InitPars
Function block-specific structure with initialization parameters, which are analyzed when the function block is initialized.
TYPE ST_CM_ComplexDataHandling_InitPars EXTENDS ST_CM_Object_InitPars :
STRUCT
eComplexDataHandling : E_CM_ComplexDataHandling := E_CM_ComplexDataHandling.eCM_CplxReal; (* Extraction of real or imaginary part or calculation of absolute value or phase of complex data. *)
nInLength : UDINT := 256; (* Length of input data array. *)
fPhaseThreshold : LREAL := 3.14159265358979; (* Threshold value for phase unwrapping. *)
nChannels : UDINT := 1; (* Number of channels. *)
END_STRUCT
END_TYPE
eComplexDataHandling
defines the action that is performed using Call(), e.g. extracting real or imaginary parts, calculating the amount or phase of the complex input data.nInLength
is the length of the input array.fPhaseThreshold
defines the limit value for rolling out the phase. The value Pi is used as a rule.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 |