[RT.Equipment]

移除IoInterlock对象中关于DO-100互锁处理。
IoValve中新增注册Status数据。
This commit is contained in:
SL 2023-09-01 10:26:42 +08:00
parent dbacb5a041
commit d841220f69
2 changed files with 37 additions and 25 deletions

View File

@ -168,21 +168,21 @@ namespace Aitex.Core.RT.Device.Devices
No related alarm according to the interlock table
<Limit ai="PM1.AI_ActualSpeed" value="0" tip="" tip.zh-CN="" tip.en-US="AI-118" /> ChamMoveBodyUpDownEnableCanDo函数里
*/
[Subscription("PSU1.AllHeatEnable")]
public bool AllHeatEnable { get; set; }
//[Subscription("PSU1.AllHeatEnable")]
//public bool AllHeatEnable { get; set; }
[Subscription("IsService")]
public bool IsService { get; set; }
/// <summary>
/// DO-100
/// </summary>
public bool ChamMoveBodyUpDownEnable
{
get
{
return this.ChamMoveBodyUpDownEnableCanDo();
}
}
//[Subscription("IsService")]
//public bool IsService { get; set; }
///// <summary>
///// DO-100
///// </summary>
//public bool ChamMoveBodyUpDownEnable
//{
// get
// {
// return this.ChamMoveBodyUpDownEnableCanDo();
// }
//}
#endregion
@ -583,7 +583,7 @@ namespace Aitex.Core.RT.Device.Devices
public bool Initialize()
{
DATA.Subscribe($"{Module}.{Name}.ChamMoveBodyUpDownEnable", () => ChamMoveBodyUpDownEnable);
//DATA.Subscribe($"{Module}.{Name}.ChamMoveBodyUpDownEnable", () => ChamMoveBodyUpDownEnable);
return true;
@ -1207,18 +1207,29 @@ namespace Aitex.Core.RT.Device.Devices
}
/// <summary>
/// ChamMoveBodyUpDownEnableCanDo
/// </summary>
/// <returns></returns>
public bool ChamMoveBodyUpDownEnableCanDo()
{
//PSU disable
///// <summary>
///// ChamMoveBodyUpDownEnableCanDo
///// </summary>
///// <returns></returns>
//public bool ChamMoveBodyUpDownEnableCanDo()
//{
// //PSU disable
//Service mode
// //Service mode
// var v39 = (bool)DATA.Poll(Module, "V39.Status");
// var v40 = (bool)DATA.Poll(Module, "V40.Status");
// var v41 = (bool)DATA.Poll(Module, "V41.Status");
// var v53 = (bool)DATA.Poll(Module, "V53.Status");
// var v54 = (bool)DATA.Poll(Module, "V54.Status");
// var v55 = (bool)DATA.Poll(Module, "V55.Status");
// var v59 = (bool)DATA.Poll(Module, "V59.Status");
return (!AllHeatEnable) && IsService && (_aiActualSpeed.Value == 0);
}
// var isService = (bool)DATA.Poll(Module, "IsService");
// var heaterEnabled = (bool)DATA.Poll(Module, "PSU1.AllHeatEnable");
// return (!AllHeatEnable) && IsService && (_aiActualSpeed.Value == 0);
//}
}
}

View File

@ -165,6 +165,7 @@ namespace Aitex.Core.RT.Device.Devices
{
DATA.Subscribe($"Device.{Module}.{GVName}", () => DeviceData);
DATA.Subscribe($"{_uniqueName}.DeviceData", () => DeviceData);
DATA.Subscribe($"{_uniqueName}.Status", () => Status);
OP.Subscribe($"{_uniqueName}.{AITValveOperation.GVTurnValve}", InvokeOpenCloseValve);