Commit c4649a17 张东亮

横移测试

1 个父辈 464cd09b
...@@ -55,7 +55,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -55,7 +55,7 @@ namespace OnlineStore.DeviceLibrary
tryCount--; tryCount--;
if (tryCount <= 0) if (tryCount <= 0)
{ {
LogUtil.error("IO操作失败,未能设置到目标值[" + ioValue + "],请检查设备连接或配置![" + ioType + "][" + subType + "]"); //LogUtil.error("IO操作失败,未能设置到目标值[" + ioValue + "],请检查设备连接或配置![" + ioType + "][" + subType + "]");
break; break;
} }
} }
......
...@@ -497,6 +497,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -497,6 +497,8 @@ namespace OnlineStore.DeviceLibrary
from.TranverseRun(); from.TranverseRun();
from.Transition_RollerRunAtoB(); from.Transition_RollerRunAtoB();
to.TranverseBackRun(); to.TranverseBackRun();
if (to.isBoxA())
{
bool result = WaitIo(to.DI_CacheBackCheck, IO_VALUE.HIGH, 600_000); bool result = WaitIo(to.DI_CacheBackCheck, IO_VALUE.HIGH, 600_000);
if (!result) if (!result)
{ {
...@@ -506,6 +508,22 @@ namespace OnlineStore.DeviceLibrary ...@@ -506,6 +508,22 @@ namespace OnlineStore.DeviceLibrary
{ {
LogUtil.info(logname + $"已收到 {to.DI_CacheBackCheck} =High "); LogUtil.info(logname + $"已收到 {to.DI_CacheBackCheck} =High ");
} }
}
else
{
bool result = WaitIo(to.DI_CacheFrontCheck, IO_VALUE.HIGH, 600_000);
if (!result)
{
LogUtil.error(logname + $" 等待 {to.DI_CacheFrontCheck} =High 超时");
}
else
{
LogUtil.info(logname + $"已收到 {to.DI_CacheFrontCheck} =High ");
}
}
Thread.Sleep(2000);
LogUtil.info(logname + "横移停止"); LogUtil.info(logname + "横移停止");
from.TranverseStopRun(); from.TranverseStopRun();
to.TranverseStopRun(); to.TranverseStopRun();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!