Commit 1d5a6205 几米阳光

叉子料盘检测发送给服务器显示

1 个父辈 78de907a
...@@ -40,7 +40,7 @@ namespace OnlineStore.ACSingleStore ...@@ -40,7 +40,7 @@ namespace OnlineStore.ACSingleStore
} }
private void InitStoreValue() private void InitStoreValue()
{ {
this.store = ACStoreManager.InitStore(); this.store = StoreManager.InitStore();
if (store == null) if (store == null)
{ {
LogUtil.error(LOGGER, "找不到对应的料仓"); LogUtil.error(LOGGER, "找不到对应的料仓");
...@@ -692,7 +692,7 @@ namespace OnlineStore.ACSingleStore ...@@ -692,7 +692,7 @@ namespace OnlineStore.ACSingleStore
if (needUpdate) if (needUpdate)
{ {
//更新缓存 //更新缓存
ACStoreManager.UpdateBoxConfig(store.Config); StoreManager.UpdateBoxConfig(store.Config);
} }
} }
...@@ -1323,7 +1323,7 @@ namespace OnlineStore.ACSingleStore ...@@ -1323,7 +1323,7 @@ namespace OnlineStore.ACSingleStore
} }
private void btnOpen_Click(object sender, EventArgs e) private void btnOpen_Click(object sender, EventArgs e)
{ {
if (ACStoreManager.OpenShuoKe(store)) if (StoreManager.OpenShuoKe(store))
{ {
store.SetShuokeSpeed(); store.SetShuokeSpeed();
FormComStatus(true); FormComStatus(true);
......
...@@ -1765,8 +1765,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -1765,8 +1765,16 @@ namespace OnlineStore.DeviceLibrary
{ {
boxStatus.msg = CodeMsg; boxStatus.msg = CodeMsg;
lineOperation.msg = CodeMsg; lineOperation.msg = CodeMsg;
CodeMsg = "";
} }
if (CodeMsg.Equals(""))
{
if (storeRunStatus.Equals(StoreRunStatus.Runing) && KNDIOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.HIGH))
{
boxStatus.msg = "叉子料盘检测有料,请检查";
lineOperation.msg = "叉子料盘检测有料,请检查";
}
}
CodeMsg = "";
//WarnMsg = ""; //WarnMsg = "";
//状态 //状态
boxStatus.status = (int)storeStatus; boxStatus.status = (int)storeStatus;
......
...@@ -624,6 +624,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -624,6 +624,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (StoreMove.MoveStep == StoreMoveStep.SO_06_BagDeviceBack) else if (StoreMove.MoveStep == StoreMoveStep.SO_06_BagDeviceBack)
{ {
if (KNDIOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW))
{
string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PositionNum : "";
CodeMsg = "出库[" + posId + "]叉子从库位退出后,未检测到料盘有料";
LogUtil.error(CodeMsg);
}
if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0)) if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0))
{ {
StoreMove.NextMoveStep(StoreMoveStep.SO_08_ToDoorPosition); StoreMove.NextMoveStep(StoreMoveStep.SO_08_ToDoorPosition);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!