123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Xml;
- using Aitex.Core.Common.DeviceData;
- using Aitex.Core.RT.DataCenter;
- using Aitex.Core.RT.Event;
- using Aitex.Core.RT.IOCore;
- using Aitex.Core.RT.Log;
- using Aitex.Core.RT.SCCore;
- using Aitex.Core.RT.Tolerance;
- using Aitex.Core.Util;
- //namespace Aitex.Core.RT.Device.Unit
- //{
- // public class IoCoolingControl : BaseDevice, IDevice
- // {
- // public IoCoolingControl(string module, XmlElement node)
- // {
- // base.Module = module;
- // base.Name = node.GetAttribute("id");
- // base.Display = node.GetAttribute("display");
- // base.DeviceID = node.GetAttribute("schematicId");
- // _scEnableLeftTcAsControlTc = ParseScNodeBool("scEnalbeLeftTcAsControlTc", node);
- // _scMaxDifferenceTcValue = ParseScNodeDouble("scElectrodeTcDifferenceMaxValue", node);
- // _scManualProcessElectrodeCriticalTemperature = ParseScNodeDouble("scManualProcessElectrodeCriticalTemperature", node);
- // _leftTc = ParseDeviceNode<IoThermalCouple>("deviceLeftElectrodeTc", node);
- // _rightTc = ParseDeviceNode<IoThermalCouple>("deviceRightElectrodeTc", node);
- // _valveElectrodeWater = ParseDeviceNode<IoValve>("deviceElectrodeWaterValve", node);
- // _diLogicIsRfPoweringHeatupMode = ParseDiNode("diLogicIsRfPoweringHeatupMode", node);
- // _diLogicManualProcessRfPowering = ParseDiNode("diLogicManualProcessRfPowering", node);
- // }
- // public bool Initialize()
- // {
- // DATA.Subscribe(string.Format("Device.{0}.{1}", Module , Name), () =>
- // {
- // AITCoolingControlData data = new AITCoolingControlData()
- // {
- // DeviceName = Name,
-
- // DeviceSchematicId = DeviceID,
- // DisplayName = Display,
- // ElectrodeTemperature = ElectrodeTemperatureFeedback,
-
- // };
- // return data;
- // }, SubscriptionAttribute.FLAG.IgnoreSaveDB);
- // DEVICE.Register(String.Format("{0}.{1}", Name, AITCoolingControlOperation.SetElectrodeTemperature), (out string reason, int time, object[] param) =>
- // {
- // reason = "";
- // return true;
- // });
- // return true;
- // }
- // public void SetCriticalElectrodeTemperature(double value)
- // {
- // _criticalElectrodeTemperature = value;
- // LOG.Write("Critical TC set to " + value);
- // }
- // public void Terminate()
- // {
- // }
- // public void Monitor()
- // {
- // }
- // public void Reset()
- // {
- // }
- // }
- //}
|