Commit 05a1d4dc 张东亮

关闭复位

1 个父辈 047cd333
...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
public int LastPosition = 0; public int LastPosition = 0;
public string AxisName; public string AxisName;
public AxisBean(ConfigMoveAxis axisConfig, string deviceName, bool needHome = true) public AxisBean(ConfigMoveAxis axisConfig, string deviceName, bool needHome = false)
{ {
this.IsNeedHome = needHome; this.IsNeedHome = needHome;
this.Config = axisConfig; this.Config = axisConfig;
......
...@@ -46,17 +46,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -46,17 +46,17 @@ namespace OnlineStore.DeviceLibrary
{ {
try try
{ {
//是否自动进入出库状态
if (!autoNext)
{
return;
}
CurrInOutCount++; CurrInOutCount++;
if (CurrInOutCount >= boxBean.Config.Box_ResetCount) if (CurrInOutCount >= boxBean.Config.Box_ResetCount)
{ {
boxBean.LogInfo($"存储机构出入库达到{CurrInOutCount}次数,需要复位"); boxBean.LogInfo($"存储机构出入库达到{CurrInOutCount}次数,需要复位");
boxBean.Reset(); boxBean.Reset();
} }
//是否自动进入出库状态
if (!autoNext)
{
return;
}
if (storeMoveType.Equals(MoveType.InStore)) if (storeMoveType.Equals(MoveType.InStore))
{ {
int newIndex = positionIndex - 1; int newIndex = positionIndex - 1;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!