From 9ce9d7679420a1b7e179fcab45baefde774354a2 Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 19 Jan 2024 16:57:02 +0100 Subject: [PATCH] ActivePowerImport and Export added --- .../Lib/Devices/EmuMeter/EmuMeterRegisters.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/csharp/Lib/Devices/EmuMeter/EmuMeterRegisters.cs b/csharp/Lib/Devices/EmuMeter/EmuMeterRegisters.cs index 1ca402ff0..0dde9050b 100644 --- a/csharp/Lib/Devices/EmuMeter/EmuMeterRegisters.cs +++ b/csharp/Lib/Devices/EmuMeter/EmuMeterRegisters.cs @@ -13,6 +13,16 @@ using Float32 = Single; [AddressOffset(-2)] // why? public class EmuMeterRegisters : IAc3Meter { + + [HoldingRegister(6004)] private UInt64 _ActivePowerImportT1; + [HoldingRegister(6024)] private UInt64 _ActivePowerExportT1; + [HoldingRegister(6008)] private UInt64 _ActivePowerImportT2; + [HoldingRegister(6028)] private UInt64 _ActivePowerExportT2; + [HoldingRegister(6012)] private UInt64 _ActivePowerImportT3; + [HoldingRegister(6032)] private UInt64 _ActivePowerExportT3; + [HoldingRegister(6016)] private UInt64 _ActivePowerImportT4; + [HoldingRegister(6036)] private UInt64 _ActivePowerExportT4; + [HoldingRegister(9002)] private Float32 _ActivePowerL1; [HoldingRegister(9004)] private Float32 _ActivePowerL2; [HoldingRegister(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; + }