ST_PMA_Scaling_EL3783_InitPars

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

Syntax

Definition:

TYPE ST_PMA_Scaling_EL3783_InitPars :
STRUCT
    nOversamples                : UDINT  := 20;   // Oversampling factor
    fOffsetVoltage              : LREAL  := 0.0;  // Output = (input * gain) + offset
    fGainVoltage                : LREAL  := 1.0;  //  ||
    fOffsetCurrent              : LREAL  := 0.0;  // Output = (input * gain) + offset
    fGainCurrent                : LREAL  := 1.0;  //  ||
    fFactorCurrentTransformer   : LREAL  := 1.0;  // Factor of current tranformer (input / output)
END_STRUCT
END_TYPE

Parameter

Name

Type

Description

nOversamples

UDINT

Oversampling factor

fOffsetVoltage

LREAL

Indicates a user-defined offset for the voltage scaling.

fGainVoltage

LREAL

Indicates a user-defined gain factor for the voltage scaling.

fOffsetCurrent

LREAL

Indicates a user-defined offset for the current scaling.

fGainCurrent

LREAL

Specifies a user-defined gain factor for the current scaling.

fFactorCurrentTransformer

LREAL

Current transformer factor. This is calculated from the input current and output current.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.0

PC or CX (x86, x64)

Tc3_PowerMonitoring