From 1efefc6af47311f1decea4168b0a288c5c9ee71e Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 2 Aug 2024 13:25:18 +0200 Subject: [PATCH] Add the DC link Active Voltage reading --- .../Trumpf/TruConvertAc/Status/ActiveVoltages.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 csharp/Lib/Devices/Trumpf/TruConvertAc/Status/ActiveVoltages.cs diff --git a/csharp/Lib/Devices/Trumpf/TruConvertAc/Status/ActiveVoltages.cs b/csharp/Lib/Devices/Trumpf/TruConvertAc/Status/ActiveVoltages.cs new file mode 100644 index 000000000..7e6932481 --- /dev/null +++ b/csharp/Lib/Devices/Trumpf/TruConvertAc/Status/ActiveVoltages.cs @@ -0,0 +1,13 @@ +using InnovEnergy.Lib.Units; + +namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertAc.Status; + +public class ActiveVoltages +{ + public Voltage ActiveUpperVoltage => _Self.DcMaxVoltage; + public Voltage ActiveLowerVoltage => _Self.DcMinVoltage; + public Voltage ActiveRefVoltage => _Self.DcReferenceVoltage; + + internal ActiveVoltages(AcDcRecord self) => _Self = self; + private readonly AcDcRecord _Self; +} \ No newline at end of file