[RT.Equipment]

函数DoIfInterlockEnabled更名为DoIfInterlockNotBypassed。
修正DoIfInterlockNotBypassed方法读取PM BypassInterlock参数路径错误的问题。
This commit is contained in:
SL 2023-08-15 12:38:56 +08:00
parent 53432a840a
commit 5aba7fa7de
1 changed files with 3 additions and 3 deletions

View File

@ -60,13 +60,13 @@ namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs
/// 检查是否Bypass了Interlock。 /// 检查是否Bypass了Interlock。
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
protected void DoIfInterlockEnabled(Action action) protected void DoIfInterlockNotBypassed(Action action)
{ {
// 读取系统配置 // 读取系统配置
var byPassInterlock = SC.GetValue<bool>($"{Module}.BypassInterlock"); var byPassInterlock = SC.GetValue<bool>($"PM.{Module}.BypassInterlock");
if (byPassInterlock) if (byPassInterlock)
EV.PostWarningLog(Module, $"{Module}.BypassInterlock is True"); EV.PostWarningLog(Module, $"PM.{Module}.BypassInterlock is True");
else else
action.Invoke(); action.Invoke();
} }