using System.Diagnostics.CodeAnalysis; using InnovEnergy.Lib.Protocols.Modbus.Reflection.Attributes; namespace InnovEnergy.Lib.Devices.Adam6360D; [SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")] [SuppressMessage("ReSharper", "UnusedMember.Global")] [AddressOffset(-1)] public class Adam6360DRegisters { [DiscreteInput(1)] public Boolean DigitalInput0 { get; private set; } [DiscreteInput(2)] public Boolean DigitalInput1 { get; private set; } [DiscreteInput(3)] public Boolean DigitalInput2 { get; private set; } [DiscreteInput(4)] public Boolean DigitalInput3 { get; private set; } [DiscreteInput(5)] public Boolean DigitalInput4 { get; private set; } [DiscreteInput(6)] public Boolean DigitalInput5 { get; private set; } [DiscreteInput(7)] public Boolean DigitalInput6 { get; private set; } [DiscreteInput(8)] public Boolean DigitalInput7 { get; private set; } [DiscreteInput(9)] public Boolean DigitalInput8 { get; private set; } [DiscreteInput(10)] public Boolean DigitalInput9 { get; private set; } [DiscreteInput(11)] public Boolean DigitalInput10 { get; private set; } [DiscreteInput(12)] public Boolean DigitalInput11 { get; private set; } [DiscreteInput(13)] public Boolean DigitalInput12 { get; private set; } [DiscreteInput(14)] public Boolean DigitalInput13 { get; private set; } [Coil(33)] public Boolean Relay0 { get; set; } [Coil(34)] public Boolean Relay1 { get; set; } [Coil(35)] public Boolean Relay2 { get; set; } [Coil(36)] public Boolean Relay3 { get; set; } [Coil(37)] public Boolean Relay4 { get; set; } [Coil(38)] public Boolean Relay5 { get; set; } [Coil(39)] public Boolean Relay6 { get; set; } [Coil(40)] public Boolean Relay7 { get; set; } [Coil(41)] public Boolean DigitalOutput0 { get; set; } [Coil(42)] public Boolean DigitalOutput1 { get; set; } [Coil(43)] public Boolean DigitalOutput2 { get; set; } [Coil(44)] public Boolean DigitalOutput3 { get; set; } [Coil(45)] public Boolean DigitalOutput4 { get; set; } [Coil(46)] public Boolean DigitalOutput5 { get; set; } [Coil(89)] public Boolean Do0Pulse { get; set; } [Coil(90)] public Boolean Do1Pulse { get; set; } [Coil(91)] public Boolean Do2Pulse { get; set; } [Coil(92)] public Boolean Do3Pulse { get; set; } [Coil(93)] public Boolean Do4Pulse { get; set; } [Coil(94)] public Boolean Do5Pulse { get; set; } [HoldingRegister(121, writable: true)] public UInt16 PulseOut0LowTime { get; set; } [HoldingRegister(122, writable: true)] public UInt16 PulseOut1LowTime { get; set; } [HoldingRegister(123, writable: true)] public UInt16 PulseOut2LowTime { get; set; } [HoldingRegister(124, writable: true)] public UInt16 PulseOut3LowTime { get; set; } [HoldingRegister(125, writable: true)] public UInt16 PulseOut4LowTime { get; set; } [HoldingRegister(126, writable: true)] public UInt16 PulseOut5LowTime { get; set; } [HoldingRegister(127, writable: true)] public UInt16 PulseOut0HighTime { get; set; } [HoldingRegister(128, writable: true)] public UInt16 PulseOut1HighTime { get; set; } [HoldingRegister(129, writable: true)] public UInt16 PulseOut2HighTime { get; set; } [HoldingRegister(130, writable: true)] public UInt16 PulseOut3HighTime { get; set; } [HoldingRegister(131, writable: true)] public UInt16 PulseOut4HighTime { get; set; } [HoldingRegister(132, writable: true)] public UInt16 PulseOut5HighTime { get; set; } [HoldingRegister(145, writable: true)] public UInt16 DigitalOutput0Mode { get; set; } [HoldingRegister(146, writable: true)] public UInt16 DigitalOutput1Mode { get; set; } [HoldingRegister(147, writable: true)] public UInt16 DigitalOutput2Mode { get; set; } [HoldingRegister(148, writable: true)] public UInt16 DigitalOutput3Mode { get; set; } [HoldingRegister(149, writable: true)] public UInt16 DigitalOutput4Mode { get; set; } [HoldingRegister(150, writable: true)] public UInt16 DigitalOutput5Mode { get; set; } }