ST_PMA_Energy

Structure for the output of energy values. The full kilowatt hours (kWh) and the decimal places are output.

Syntax

Definition:

TYPE ST_PMA_Energy :
STRUCT
    nEnergy                : LINT;   // Energy in kWh
    fEnergyFraction        : LREAL;  // Fraction of energy in kWh
END_STRUCT
END_TYPE

Parameter

Name

Type

Description

nEnergy

LINT

Energy in kilowatt hours (kWh) as an integral value.

fEnergyFraction

LREAL

Decimal places of the energy in kilowatt hours (kWh).

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.0

PC or CX (x86, x64)

Tc3_PowerMonitoring