Delete the hard coded value for Dc Bus Voltage

This commit is contained in:
atef 2023-09-07 17:25:56 +02:00
parent bcaab09190
commit f8b13a9814
1 changed files with 19 additions and 17 deletions

View File

@ -401,31 +401,33 @@ public static class Controller
.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 = 750;
s.Config.MinDcLinkVoltageFromAcDc = 690;
s.Config.MaxDcLinkVoltageFromAcDc = 810;
// Dc Link Windows on DcDc +-55
s.Config.ReferenceDcLinkVoltageFromDc = 750;
s.Config.UpperDcLinkVoltageFromDc = 55;
s.Config.LowerDcLinkVoltageFromDc = 55;
// // 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;
//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 RelaysRecord? relays)