ActivePowerImport and Export added

This commit is contained in:
atef 2024-01-19 16:57:02 +01:00
parent e56cad22a9
commit 9ce9d76794
1 changed files with 23 additions and 0 deletions

View File

@ -13,6 +13,16 @@ using Float32 = Single;
[AddressOffset(-2)] // why?
public class EmuMeterRegisters : IAc3Meter
{
[HoldingRegister<UInt64>(6004)] private UInt64 _ActivePowerImportT1;
[HoldingRegister<UInt64>(6024)] private UInt64 _ActivePowerExportT1;
[HoldingRegister<UInt64>(6008)] private UInt64 _ActivePowerImportT2;
[HoldingRegister<UInt64>(6028)] private UInt64 _ActivePowerExportT2;
[HoldingRegister<UInt64>(6012)] private UInt64 _ActivePowerImportT3;
[HoldingRegister<UInt64>(6032)] private UInt64 _ActivePowerExportT3;
[HoldingRegister<UInt64>(6016)] private UInt64 _ActivePowerImportT4;
[HoldingRegister<UInt64>(6036)] private UInt64 _ActivePowerExportT4;
[HoldingRegister<Float32>(9002)] private Float32 _ActivePowerL1;
[HoldingRegister<Float32>(9004)] private Float32 _ActivePowerL2;
[HoldingRegister<Float32>(9006)] private Float32 _ActivePowerL3;
@ -53,6 +63,19 @@ public class EmuMeterRegisters : IAc3Meter
},
Frequency = _Frequency
};
public UInt64 ActivePowerImportT1 => _ActivePowerImportT1;
public UInt64 ActivePowerExportT1 => _ActivePowerExportT1;
public UInt64 ActivePowerImportT2 => _ActivePowerImportT2;
public UInt64 ActivePowerExportT2 => _ActivePowerExportT2;
public UInt64 ActivePowerImportT3 => _ActivePowerImportT3;
public UInt64 ActivePowerExportT3 => _ActivePowerExportT3;
public UInt64 ActivePowerImportT4 => _ActivePowerImportT4;
public UInt64 ActivePowerExportT4 => _ActivePowerExportT4;
}