1.修正Interlock有时不起作用的BUG

This commit is contained in:
HCL 2024-04-28 15:41:53 +08:00
parent 18a505cc30
commit 3442df5741
1 changed files with 6 additions and 1 deletions

View File

@ -172,7 +172,12 @@ namespace Aitex.Core.RT.IOCore.Interlock
return true;
if (_dictINTLKActionsFileLoader.TryGetValue((doName, onOff), out var ilAction))
ilAction.CanDo(out reason);
{
if(!ilAction.CanDo(out reason))
{
return false;
}
}
/*
foreach (var action in _lstActions.Where(action => action.IsSame(doName, onOff)))