refactor: 将Framework库和RT、UI放在同一个解决方案中。

This commit is contained in:
SL
2026-06-01 17:48:28 +08:00
parent 1948f4290d
commit b73d39a6b1
4331 changed files with 506148 additions and 49363 deletions
@@ -0,0 +1,69 @@
using Aitex.Core.RT.IOCore;
using System.Xml;
namespace Aitex.Core.RT.Device.Devices
{
public class IoHeat : BaseDevice, IDevice
{
private DIAccessor _diEnableFaceBack = null;
private DOAccessor _doEnableSetPoint = null;
public bool HeatEnableFeedback
{
get
{
return _diEnableFaceBack.Value;
}
}
public IoHeat(string module, XmlElement node, string ioModule = "")
{
var attrModule = node.GetAttribute("module");
base.Module = string.IsNullOrEmpty(attrModule) ? module : attrModule;
base.Name = node.GetAttribute("id");
base.Display = node.GetAttribute("display");
base.DeviceID = node.GetAttribute("schematicId");
_diEnableFaceBack = ParseDiNode("diEnable", node, ioModule);
_doEnableSetPoint = ParseDoNode("doEnable", node, ioModule);
}
public bool SetHeatEnable(bool setValue)
{
string reason = "";
if (!_doEnableSetPoint.Check(setValue, out reason))
{
return false;
}
if (!_doEnableSetPoint.SetValue(setValue, out reason))
{
return false;
}
return true;
}
public bool Initialize()
{
return true;
//throw new NotImplementedException();
}
public void Monitor()
{
//throw new NotImplementedException();
}
public void Reset()
{
//throw new NotImplementedException();
}
public void Terminate()
{
//throw new NotImplementedException();
}
}
}