Commit 56da2e9f 几米阳光

自动出入库修改

1 个父辈 451bd5fb
...@@ -134,11 +134,10 @@ namespace OnlineStore.ACSingleStore ...@@ -134,11 +134,10 @@ namespace OnlineStore.ACSingleStore
btnOutStore.Enabled = isOpen; btnOutStore.Enabled = isOpen;
btnInStore.Enabled = isOpen; btnInStore.Enabled = isOpen;
btnAxisAMove.Enabled = isOpen; //btnAxisAMove.Enabled = isOpen;
//btnAxisReturnHome.Enabled = isOpen;
btnAxisReturnHome.Enabled = isOpen; //btnAxisRMove.Enabled = isOpen;
btnAxisRMove.Enabled = isOpen; //btnAxisVMove.Enabled = isOpen;
btnAxisVMove.Enabled = isOpen;
启动ToolStripMenuItem.Enabled = !isOpen; 启动ToolStripMenuItem.Enabled = !isOpen;
停止ToolStripMenuItem.Enabled = isOpen; 停止ToolStripMenuItem.Enabled = isOpen;
...@@ -912,6 +911,7 @@ namespace OnlineStore.ACSingleStore ...@@ -912,6 +911,7 @@ namespace OnlineStore.ACSingleStore
{ {
int currIndex = cmbPosition.SelectedIndex; int currIndex = cmbPosition.SelectedIndex;
store.autoPositionIndex = currIndex; store.autoPositionIndex = currIndex;
store.AutoStartIndex = currIndex;
string poText = cmbPosition.Text; string poText = cmbPosition.Text;
store.autoMsg = "自动出库:" + poText; store.autoMsg = "自动出库:" + poText;
LogUtil.info(LOGGER, store.StoreName + "开启自动出入库模式,开始位置【" + poText + "】(索引=" + currIndex + "),间隔=" + jiange + ",入库开始!"); LogUtil.info(LOGGER, store.StoreName + "开启自动出入库模式,开始位置【" + poText + "】(索引=" + currIndex + "),间隔=" + jiange + ",入库开始!");
......
...@@ -16,32 +16,21 @@ ...@@ -16,32 +16,21 @@
20181221调试 20181221调试
复位时有时旋转轴没有复位,,但是正常到p1点了. 复位时有时旋转轴没有复位,,但是正常到p1点了.
料仓门口的料盘检测信号亮时,才需要判断高度。 料仓门口的料盘检测信号亮时,才需要判断高度。
伺服回原点时如果原点亮就需要反向走。 伺服回原点时如果原点亮就需要反向走。
启用压紧轴计量检测。 启用压紧轴计量检测。
料仓一TeamViewer:1138154807
料仓二TeamViewer:1146354610
料仓三TeamViewer:1146369170
料仓四TeamViewer:1144730865
20190108 20190108
报警时只需要红灯闪烁。 报警时只需要红灯闪烁。
出库时修改:出料口有料时,出料仍继续。 出库时修改:出料口有料时,出料仍继续。
20190114 20190114
增加一维码类型,Barcode,可与二维码一起配置 增加一维码类型,Barcode,可与二维码一起配置
20190114 20190114
改为伺服串联兼容模式 改为伺服串联兼容模式
20190116 20190116
从RC33珠海料仓拉取分支,作为RC29-33项目,即西安料仓三台,苏州博世料仓二台。 从RC33珠海料仓拉取分支,作为RC29-33项目,即西安料仓三台,苏州博世料仓二台。
...@@ -62,4 +51,7 @@ ...@@ -62,4 +51,7 @@
\ No newline at end of file \ No newline at end of file
...@@ -177,6 +177,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -177,6 +177,10 @@ namespace OnlineStore.DeviceLibrary
private static bool CheckByte(byte[] bits) private static bool CheckByte(byte[] bits)
{ {
string strSend = ""; string strSend = "";
if (bits == null)
{
return false;
}
for (int i = 0; i < bits.Length; i++) for (int i = 0; i < bits.Length; i++)
{ {
strSend += string.Format("{0:X2} ", bits[i]); strSend += string.Format("{0:X2} ", bits[i]);
......
...@@ -25,6 +25,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -25,6 +25,7 @@ namespace OnlineStore.DeviceLibrary
public int autoJiange = 3; public int autoJiange = 3;
public int autoPositionIndex = 0; public int autoPositionIndex = 0;
public string autoMsg = ""; public string autoMsg = "";
public int AutoStartIndex = -1;
#endregion #endregion
#region 出入库参数 #region 出入库参数
...@@ -821,15 +822,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -821,15 +822,23 @@ namespace OnlineStore.DeviceLibrary
if (storeMoveType.Equals(StoreMoveType.InStore)) if (storeMoveType.Equals(StoreMoveType.InStore))
{ {
int newIndex = autoPositionIndex - 1; int newIndex = autoPositionIndex - 1;
if (autoJiange == 0) //if (autoJiange == 0)
{ //{
newIndex = autoPositionIndex; // newIndex = autoPositionIndex;
} //}
if (newIndex < 0) if (newIndex < 0)
{ {
autoNext = false; if (AutoStartIndex >= 0 && AutoStartIndex < PositionNumList.Count)
autoMsg = "自动出入库结束!"; {
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,自动 出入库结束!"); newIndex = AutoStartIndex;
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,重新开始自动出入库,索引【" + AutoStartIndex + "】");
}
else
{
autoNext = false;
autoMsg = "自动出入库结束!";
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,自动 出入库结束!");
}
} }
else else
{ {
...@@ -864,9 +873,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -864,9 +873,17 @@ namespace OnlineStore.DeviceLibrary
int newIndex = autoPositionIndex - autoJiange; int newIndex = autoPositionIndex - autoJiange;
if (newIndex < 0) if (newIndex < 0)
{ {
autoNext = false; if (AutoStartIndex >= 0 && AutoStartIndex < PositionNumList.Count)
autoMsg = "自动出入库结束!"; {
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,自动 出入库结束!"); newIndex = AutoStartIndex;
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,重新开始自动出入库,索引【" + AutoStartIndex + "】");
}
else
{
autoNext = false;
autoMsg = "自动出入库结束!";
LogUtil.info(LOGGER, StoreName + "下一个索引不存在,自动 出入库结束!");
}
} }
else else
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!