aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-09-23 18:22:32 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-09-23 18:22:32 +0300
commitb5c5758e431077d84fb53a3ff62f8e751fca2731 (patch)
treeb866fcbb29e2346f121455f503bde63071c2af5e /Software/Visual_Studio/PPC/Tango.PPC.Common
parentd6974df76b1401f101ca3c7fc3182f73e493ca51 (diff)
downloadTango-b5c5758e431077d84fb53a3ff62f8e751fca2731.tar.gz
Tango-b5c5758e431077d84fb53a3ff62f8e751fca2731.zip
Implemented Insufficient liquid levels !!!
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs11
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs8
2 files changed, 12 insertions, 7 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
index cd432538c..a16e2f649 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
@@ -89,6 +89,11 @@ namespace Tango.PPC.Common.Connection
MachineOperator.GradientGenerationConfiguration.IsEnabled = settings.EnableGradientGeneration;
MachineOperator.GradientGenerationConfiguration.ResolutionCM = settings.GradientGenerationResolution;
+
+ MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
+ MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
+
+ MachineOperator.EnableJobLiquidQuantityValidation = settings.EnableJobLiquidQuantityValidation;
}
private async void ConnectionThreadMethod()
@@ -159,9 +164,6 @@ namespace Tango.PPC.Common.Connection
await Task.Delay(1000);
await MachineOperator.UploadHardwareConfiguration(Machine.Configuration.HardwareVersion, Machine.Configuration);
MachineOperator.UseKeepAlive = true;
-
- MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
- MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
}
}
else
@@ -184,9 +186,6 @@ namespace Tango.PPC.Common.Connection
await Task.Delay(1000);
await MachineOperator.UploadHardwareConfiguration(Machine.Configuration.HardwareVersion, Machine.Configuration);
-
- MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
- MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
}
}
catch (Exception ex)
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
index b495ec54d..b1bc3faad 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCSettings.cs
@@ -133,6 +133,11 @@ namespace Tango.PPC.Common
public String EmergencyComPort { get; set; }
/// <summary>
+ /// Gets or sets a value indicating whether to enable the job liquid quantity validation.
+ /// </summary>
+ public bool EnableJobLiquidQuantityValidation { get; set; }
+
+ /// <summary>
/// Gets the machine service address.
/// </summary>
/// <returns></returns>
@@ -160,7 +165,8 @@ namespace Tango.PPC.Common
DeploymentSlot = DeploymentSlot.TEST;
EnableWatchDog = true;
EnableEmergencyNotifications = true;
- EmergencyComPort = "COM1";
+ EmergencyComPort = "COM2";
+ EnableJobLiquidQuantityValidation = true;
}
}
}