ST_PMA_BasicValues_Period_InitPars

Function block-specific structure with initialization parameters which are evaluated when the function blocks FB_PMA_BasicValues_Period_1Ph and FB_PMA_BasicValues_Period_3Ph are initialized.

Syntax

Definition:

TYPE ST_PMA_BasicValues_Period_InitPars :
STRUCT
    nBufferLength    : UDINT := 200;   // Length of input buffer
    fSampleRate      : LREAL := 1000;  // in Hz
    fMinInputCurrent : LREAL := 0.0;   // Minimal input of current (RMS) to calculate outputs
    nPeriods         : UDINT := 1;     // Amount of signal periods to calculate outputs
END_STRUCT
END_TYPE

Parameter

Name

Type

Parameter

nBufferLength

UDINT

Length of the input buffer

fSampleRate

LREAL

Indicates the sampling rate (samples per second) of the input signal.

fMinInputCurrent

LREAL

Minimum input value (RMS) of the current. This prevents the calculation of input values that are too small.

nPeriods

UDINT

Number of signal periods for calculating the RMS

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.0

PC or CX (x86, x64)

Tc3_PowerMonitoring