Remove InvertersAreConnectedToAc enum. no longer used.
This commit is contained in:
parent
ba8bce65bd
commit
e400c11d3c
|
@ -2,19 +2,11 @@ using InnovEnergy.Lib.Devices.Adam6360D;
|
||||||
|
|
||||||
namespace InnovEnergy.App.SaliMax.SaliMaxRelays;
|
namespace InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||||
|
|
||||||
public enum InvertersAreConnectedToAc
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
Some,
|
|
||||||
All
|
|
||||||
}
|
|
||||||
|
|
||||||
public class RelaysRecord
|
public class RelaysRecord
|
||||||
{
|
{
|
||||||
private readonly Adam6360DRegisters _Regs;
|
private readonly Adam6360DRegisters _Regs;
|
||||||
|
|
||||||
public RelaysRecord(Adam6360DRegisters regs) => _Regs = regs;
|
public RelaysRecord(Adam6360DRegisters regs) => _Regs = regs;
|
||||||
|
|
||||||
|
|
||||||
public Boolean K1GridBusIsConnectedToGrid => _Regs.DigitalInput6;
|
public Boolean K1GridBusIsConnectedToGrid => _Regs.DigitalInput6;
|
||||||
public Boolean K2IslandBusIsConnectedToGridBus => !_Regs.DigitalInput4;
|
public Boolean K2IslandBusIsConnectedToGridBus => !_Regs.DigitalInput4;
|
||||||
|
@ -39,16 +31,9 @@ public class RelaysRecord
|
||||||
public Boolean FiWarning => !_Regs.DigitalInput5;
|
public Boolean FiWarning => !_Regs.DigitalInput5;
|
||||||
public Boolean FiError => !_Regs.DigitalInput7;
|
public Boolean FiError => !_Regs.DigitalInput7;
|
||||||
|
|
||||||
public Boolean K2ConnectIslandBusToGridBus { get => _Regs.Relay0; set => _Regs.Relay0 = value;}
|
public Boolean K2ConnectIslandBusToGridBus { get => _Regs.Relay0; set => _Regs.Relay0 = value;}
|
||||||
|
|
||||||
public static implicit operator Adam6360DRegisters(RelaysRecord d) => d._Regs;
|
public static implicit operator Adam6360DRegisters(RelaysRecord d) => d._Regs;
|
||||||
public static implicit operator RelaysRecord(Adam6360DRegisters d) => new RelaysRecord(d);
|
public static implicit operator RelaysRecord(Adam6360DRegisters d) => new RelaysRecord(d);
|
||||||
|
|
||||||
//
|
|
||||||
// public HighActivePinState F1Inverter1 => _Regs.DigitalInput8.ConvertTo<HighActivePinState>(); // 1 = Closed , 0 = open
|
|
||||||
// public HighActivePinState F2Inverter2 => _Regs.DigitalInput9.ConvertTo<HighActivePinState>(); // 1 = Closed , 0 = open
|
|
||||||
// public HighActivePinState F3Inverter3 => _Regs.DigitalInput10.ConvertTo<HighActivePinState>(); // 1 = Closed , 0 = open
|
|
||||||
// public HighActivePinState F4Inverter4 => _Regs.DigitalInput11.ConvertTo<HighActivePinState>(); // 1 = Closed , 0 = open
|
|
||||||
//
|
|
||||||
// public HighActivePinState Di12 => _Regs.DigitalInput12.ConvertTo<HighActivePinState>();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue