Update the controller: deleting unnecessary code
This commit is contained in:
parent
35b3d91f05
commit
24d2518453
|
@ -434,7 +434,6 @@ public static class Controller
|
||||||
s.DcDc.Enable();
|
s.DcDc.Enable();
|
||||||
s.AcDc.Enable();
|
s.AcDc.Enable();
|
||||||
s.AcDc.EnableGridTieMode();
|
s.AcDc.EnableGridTieMode();
|
||||||
s.EnableDcLinkGridTie();
|
|
||||||
s.Relays.ConnectIslandBusToGrid();
|
s.Relays.ConnectIslandBusToGrid();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -487,7 +486,7 @@ public static class Controller
|
||||||
|
|
||||||
private static Boolean State27(StatusRecord s)
|
private static Boolean State27(StatusRecord s)
|
||||||
{
|
{
|
||||||
s.StateMachine.Message = "";
|
s.StateMachine.Message = "K2 open and enable island mode";
|
||||||
|
|
||||||
s.DcDc.Disable();
|
s.DcDc.Disable();
|
||||||
s.AcDc.Disable();
|
s.AcDc.Disable();
|
||||||
|
@ -506,7 +505,6 @@ public static class Controller
|
||||||
s.DcDc.Enable();
|
s.DcDc.Enable();
|
||||||
s.AcDc.Enable();
|
s.AcDc.Enable();
|
||||||
s.AcDc.EnableIslandMode();
|
s.AcDc.EnableIslandMode();
|
||||||
s.EnableDcLinkIslandMode();
|
|
||||||
s.Relays.DisconnectIslandBusFromGrid();
|
s.Relays.DisconnectIslandBusFromGrid();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
@ -675,35 +673,6 @@ public static class Controller
|
||||||
.ForAll(c => c.Ac.GridType = Island400V50Hz); // TODO: config grid type
|
.ForAll(c => c.Ac.GridType = Island400V50Hz); // TODO: config grid type
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is must be deleted , not needed anymore
|
|
||||||
private static void EnableDcLinkIslandMode(this StatusRecord s)
|
|
||||||
{
|
|
||||||
// // Dc Link Windows on AcDc +- 60
|
|
||||||
// s.Config.ReferenceDcLinkVoltageFromAcDc ;
|
|
||||||
// s.Config.MinDcLinkVoltageFromAcDc ;
|
|
||||||
// s.Config.MaxDcLinkVoltageFromAcDc ;
|
|
||||||
//
|
|
||||||
// // Dc Link Windows on DcDc +-55
|
|
||||||
// s.Config.ReferenceDcLinkVoltageFromDc = 750;
|
|
||||||
// s.Config.UpperDcLinkVoltageFromDc = 55;
|
|
||||||
// s.Config.LowerDcLinkVoltageFromDc = 55;
|
|
||||||
}
|
|
||||||
|
|
||||||
// This is must be deleted , not needed anymore
|
|
||||||
private static void EnableDcLinkGridTie(this StatusRecord s)
|
|
||||||
{
|
|
||||||
// Dc Link Windows on DcDc +-30
|
|
||||||
|
|
||||||
//s.Config.ReferenceDcLinkVoltageFromAcDc = 750;
|
|
||||||
//s.Config.MinDcLinkVoltageFromAcDc = 720;
|
|
||||||
//s.Config.MaxDcLinkVoltageFromAcDc = 780;
|
|
||||||
//
|
|
||||||
//// Dc Link Windows on DcDc +-20
|
|
||||||
//s.Config.ReferenceDcLinkVoltageFromDc = 750;
|
|
||||||
//s.Config.UpperDcLinkVoltageFromDc = 20;
|
|
||||||
//s.Config.LowerDcLinkVoltageFromDc = 20;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void DisconnectIslandBusFromGrid(this IRelaysRecord? relays)
|
private static void DisconnectIslandBusFromGrid(this IRelaysRecord? relays)
|
||||||
{
|
{
|
||||||
if (relays is not null)
|
if (relays is not null)
|
||||||
|
|
Loading…
Reference in New Issue