| 
															
																@@ -28,7 +28,7 @@ namespace Venus_RT.Devices 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         bool[] LastAlarmflag = new bool[48]; 
															 | 
															
															 | 
															
																         bool[] LastAlarmflag = new bool[48]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         string[] AlarmMsg = new string[48]; 
															 | 
															
															 | 
															
																         string[] AlarmMsg = new string[48]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         bool[] NeedToStop = new bool[48]; 
															 | 
															
															 | 
															
																         bool[] NeedToStop = new bool[48]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-        private ToleranceChecker _toleranceChecker = new ToleranceChecker(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        //private ToleranceChecker _toleranceChecker = new ToleranceChecker(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private float _controlTcSetPoint; 
															 | 
															
															 | 
															
																         private float _controlTcSetPoint; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private float _controlTcFeedback; 
															 | 
															
															 | 
															
																         private float _controlTcFeedback; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         private readonly double _scSetPointLimitMax; 
															 | 
															
															 | 
															
																         private readonly double _scSetPointLimitMax; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -161,9 +161,9 @@ namespace Venus_RT.Devices 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _driver = ChillerFactory.QuoteDrive(SC.GetStringValue($"{mod}.{Name}.Port"), _address, $"{mod}.{Name}"); 
															 | 
															
															 | 
															
																             _driver = ChillerFactory.QuoteDrive(SC.GetStringValue($"{mod}.{Name}.Port"), _address, $"{mod}.{Name}"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _scSetPointLimitMax = SC.GetValue<double>($"{mod}.{name}.SetPointLimitMax"); 
															 | 
															
															 | 
															
																             _scSetPointLimitMax = SC.GetValue<double>($"{mod}.{name}.SetPointLimitMax"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _scSetPointLimitMin = SC.GetValue<double>($"{mod}.{name}.SetPointLimitMin"); 
															 | 
															
															 | 
															
																             _scSetPointLimitMin = SC.GetValue<double>($"{mod}.{name}.SetPointLimitMin"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            _scEnableAlarm = SC.GetConfigItem($"{mod}.{name}.EnableToleranceAlarm"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            _scAlarmRange = SC.GetConfigItem($"{mod}.{name}.ToleranceAlarmRange"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            _scAlarmTime = SC.GetConfigItem($"{mod}.{name}.ToleranceAlarmTime"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            //_scEnableAlarm = SC.GetConfigItem($"{mod}.{name}.EnableToleranceAlarm"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            //_scAlarmRange = SC.GetConfigItem($"{mod}.{name}.ToleranceAlarmRange"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            //_scAlarmTime = SC.GetConfigItem($"{mod}.{name}.ToleranceAlarmTime"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             jetChamber = (JetChamber)SC.GetValue<int>($"{mod}.ChamberType"); 
															 | 
															
															 | 
															
																             jetChamber = (JetChamber)SC.GetValue<int>($"{mod}.ChamberType"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             message = new SMCMutiChillerMessage(_address); 
															 | 
															
															 | 
															
																             message = new SMCMutiChillerMessage(_address); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             _timerQueryStatus.Start(CHK_ST_INTERVAL); 
															 | 
															
															 | 
															
																             _timerQueryStatus.Start(CHK_ST_INTERVAL); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -216,22 +216,22 @@ namespace Venus_RT.Devices 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     LastAlarmflag[i] = Alarmflag[i]; 
															 | 
															
															 | 
															
																                     LastAlarmflag[i] = Alarmflag[i]; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 } 
															 | 
															
															 | 
															
																                 } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                if (IsRunning && _scEnableAlarm != null && _scEnableAlarm.BoolValue) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    var range = _scAlarmRange.IntValue; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    var time = _scAlarmTime.IntValue; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    _toleranceChecker.Monitor(_controlTcFeedback, _controlTcSetPoint - Math.Abs(range), _controlTcSetPoint + Math.Abs(range), time); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																- 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    if (_toleranceChecker.Trig) 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        LOG.Write(eEvent.ERR_DEVICE_CHILLER, Module, Display + $" temperature out of tolerance in {time:0} seconds"); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																- 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                else 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    _toleranceChecker.RST = true; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                } 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //if (IsRunning && _scEnableAlarm != null && _scEnableAlarm.BoolValue) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    var range = _scAlarmRange.IntValue; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    var time = _scAlarmTime.IntValue; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    _toleranceChecker.Monitor(_controlTcFeedback, _controlTcSetPoint - Math.Abs(range), _controlTcSetPoint + Math.Abs(range), time); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                // 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    if (_toleranceChecker.Trig) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //        LOG.Write(eEvent.ERR_DEVICE_CHILLER, Module, Display + $" temperature out of tolerance in {time:0} seconds"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                // 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //else 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //    _toleranceChecker.RST = true; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                //} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             catch (Exception ex) 
															 | 
															
															 | 
															
																             catch (Exception ex) 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -244,7 +244,7 @@ namespace Venus_RT.Devices 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																         public override void Reset() 
															 | 
															
															 | 
															
																         public override void Reset() 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         { 
															 | 
															
															 | 
															
																         { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            _toleranceChecker.RST = true; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            //_toleranceChecker.RST = true; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         } 
															 | 
															
															 | 
															
																         } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																         public override void SetChillerTemp(float value, float offset) 
															 | 
															
															 | 
															
																         public override void SetChillerTemp(float value, float offset) 
															 |