IoCoolingControl.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Xml;
  6. using Aitex.Core.Common.DeviceData;
  7. using Aitex.Core.RT.DataCenter;
  8. using Aitex.Core.RT.Event;
  9. using Aitex.Core.RT.IOCore;
  10. using Aitex.Core.RT.Log;
  11. using Aitex.Core.RT.SCCore;
  12. using Aitex.Core.RT.Tolerance;
  13. using Aitex.Core.Util;
  14. //namespace Aitex.Core.RT.Device.Unit
  15. //{
  16. // public class IoCoolingControl : BaseDevice, IDevice
  17. // {
  18. // public IoCoolingControl(string module, XmlElement node)
  19. // {
  20. // base.Module = module;
  21. // base.Name = node.GetAttribute("id");
  22. // base.Display = node.GetAttribute("display");
  23. // base.DeviceID = node.GetAttribute("schematicId");
  24. // _scEnableLeftTcAsControlTc = ParseScNodeBool("scEnalbeLeftTcAsControlTc", node);
  25. // _scMaxDifferenceTcValue = ParseScNodeDouble("scElectrodeTcDifferenceMaxValue", node);
  26. // _scManualProcessElectrodeCriticalTemperature = ParseScNodeDouble("scManualProcessElectrodeCriticalTemperature", node);
  27. // _leftTc = ParseDeviceNode<IoThermalCouple>("deviceLeftElectrodeTc", node);
  28. // _rightTc = ParseDeviceNode<IoThermalCouple>("deviceRightElectrodeTc", node);
  29. // _valveElectrodeWater = ParseDeviceNode<IoValve>("deviceElectrodeWaterValve", node);
  30. // _diLogicIsRfPoweringHeatupMode = ParseDiNode("diLogicIsRfPoweringHeatupMode", node);
  31. // _diLogicManualProcessRfPowering = ParseDiNode("diLogicManualProcessRfPowering", node);
  32. // }
  33. // public bool Initialize()
  34. // {
  35. // DATA.Subscribe(string.Format("Device.{0}.{1}", Module , Name), () =>
  36. // {
  37. // AITCoolingControlData data = new AITCoolingControlData()
  38. // {
  39. // DeviceName = Name,
  40. // DeviceSchematicId = DeviceID,
  41. // DisplayName = Display,
  42. // ElectrodeTemperature = ElectrodeTemperatureFeedback,
  43. // };
  44. // return data;
  45. // }, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  46. // DEVICE.Register(String.Format("{0}.{1}", Name, AITCoolingControlOperation.SetElectrodeTemperature), (out string reason, int time, object[] param) =>
  47. // {
  48. // reason = "";
  49. // return true;
  50. // });
  51. // return true;
  52. // }
  53. // public void SetCriticalElectrodeTemperature(double value)
  54. // {
  55. // _criticalElectrodeTemperature = value;
  56. // LOG.Write("Critical TC set to " + value);
  57. // }
  58. // public void Terminate()
  59. // {
  60. // }
  61. // public void Monitor()
  62. // {
  63. // }
  64. // public void Reset()
  65. // {
  66. // }
  67. // }
  68. //}