Add I/O to Amax and Adam
This commit is contained in:
parent
4e09e29496
commit
cdfc10b684
|
@ -5,6 +5,8 @@ namespace InnovEnergy.Lib.Devices.Adam6060;
|
|||
|
||||
[SuppressMessage("ReSharper", "UnusedAutoPropertyAccessor.Local")]
|
||||
[SuppressMessage("ReSharper", "UnusedMember.Global")]
|
||||
[AddressOffset(-1)]
|
||||
|
||||
public class Adam6060Registers
|
||||
{
|
||||
[DiscreteInput(1)] public Boolean DigitalInput0 { get; private set; }
|
||||
|
|
|
@ -38,4 +38,32 @@ public class Adam6360DRegisters
|
|||
[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)] public UInt16 PulseOut0LowTime { get; set; }
|
||||
[HoldingRegister(122)] public UInt16 PulseOut1LowTime { get; set; }
|
||||
[HoldingRegister(123)] public UInt16 PulseOut2LowTime { get; set; }
|
||||
[HoldingRegister(124)] public UInt16 PulseOut3LowTime { get; set; }
|
||||
[HoldingRegister(125)] public UInt16 PulseOut4LowTime { get; set; }
|
||||
[HoldingRegister(126)] public UInt16 PulseOut5LowTime { get; set; }
|
||||
|
||||
[HoldingRegister(127)] public UInt16 PulseOut0HighTime { get; set; }
|
||||
[HoldingRegister(128)] public UInt16 PulseOut1HighTime { get; set; }
|
||||
[HoldingRegister(129)] public UInt16 PulseOut2HighTime { get; set; }
|
||||
[HoldingRegister(130)] public UInt16 PulseOut3HighTime { get; set; }
|
||||
[HoldingRegister(131)] public UInt16 PulseOut4HighTime { get; set; }
|
||||
[HoldingRegister(132)] public UInt16 PulseOut5HighTime { get; set; }
|
||||
|
||||
[HoldingRegister(145)] public UInt16 DigitalOutput0Mode { get; set; }
|
||||
[HoldingRegister(146)] public UInt16 DigitalOutput1Mode { get; set; }
|
||||
[HoldingRegister(147)] public UInt16 DigitalOutput2Mode { get; set; }
|
||||
[HoldingRegister(148)] public UInt16 DigitalOutput3Mode { get; set; }
|
||||
[HoldingRegister(149)] public UInt16 DigitalOutput4Mode { get; set; }
|
||||
[HoldingRegister(150)] public UInt16 DigitalOutput5Mode { get; set; }
|
||||
}
|
|
@ -8,7 +8,7 @@ namespace InnovEnergy.Lib.Devices.Amax5070
|
|||
[AddressOffset(-1)]
|
||||
public class Amax5070Registers
|
||||
{
|
||||
[Coil(1)] public Boolean DigitalOutput0 { get; private set; }
|
||||
[Coil(1)] public Boolean DigitalOutput0 { get; set; }
|
||||
[Coil(2)] public Boolean DigitalOutput1 { get; private set; }
|
||||
[Coil(3)] public Boolean DigitalOutput2 { get; private set; }
|
||||
[Coil(4)] public Boolean DigitalOutput3 { get; private set; }
|
||||
|
|
Loading…
Reference in New Issue