|
|
@@ -243,7 +243,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
if (GVL_SmallStation.GetInstance.WindSendDosingComple) |
|
|
|
{ |
|
|
|
//HKDevice.HK_PLC_S7.Write<bool>("DB4.DBX1.7", true); |
|
|
|
HKDevice.HK_PLC_S7.Write<bool>("DB4.DBX2.0", true); |
|
|
|
HKDevice.HK_PLC_S7.Write<bool>("DB4.DBX4.0", true); |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosingComple = false; |
|
|
|
MessageNotify.GetInstance.ShowRunLog("风送配料完成信号,发给产线plc信号"); |
|
|
|
} |
|
|
@@ -529,6 +529,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
GVL_SmallStation.GetInstance.RecipeProcessStatus[i] = 0; |
|
|
|
} |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosingStatus = 0; |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosing = false; |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
@@ -570,6 +571,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
GVL_SmallStation.GetInstance.RecipeProcessStatus[i] = 0; |
|
|
|
} |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosingStatus = 0; |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosing = false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@@ -699,6 +701,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
{ |
|
|
|
if (GVL_SmallStation.GetInstance.WindSendDosingStatus == 1) |
|
|
|
{ |
|
|
|
WindSendReset(); |
|
|
|
WindSendData.TargetRecipeCode = code; |
|
|
|
WindSendData.IsAllowDosing = true; |
|
|
|
foreach (var item in RemoteRecipes.ElementAt(index).WindSend) |
|
|
@@ -1283,6 +1286,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
GVL_SmallStation.GetInstance.SiemensSendRecipeStatus = 0; |
|
|
|
|
|
|
|
GVL_SmallStation.GetInstance.WindSendDosingStatus = 0; |
|
|
|
GVL_SmallStation.GetInstance.WindSendDosing = false; |
|
|
|
|
|
|
|
GVL_SmallStation.GetInstance.Order_Cancel = false; |
|
|
|
GVL_SmallStation.GetInstance.Order_CancelRecipeCode = ""; |
|
|
@@ -1295,6 +1299,7 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
GVL_SmallStation.GetInstance.Tray_AGVLogic[i] = 0; |
|
|
|
} |
|
|
|
StockBinInit(); |
|
|
|
WindSendReset(); |
|
|
|
//for (int i = 0; i < GVL_SmallStation.GetInstance.StockInDosingComple.Length; i++) |
|
|
|
//{ |
|
|
|
// GVL_SmallStation.GetInstance.StockInDosingComple[i] = false; |
|
|
@@ -1506,6 +1511,15 @@ namespace BPASmartClient.JXJFoodSmallStation.Model |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
private void WindSendReset() |
|
|
|
{ |
|
|
|
float weight = (float)0.0; |
|
|
|
WindSendDevice.Siemens_PLC_S7.Write("DB95.DBD0", weight); |
|
|
|
WindSendDevice.Siemens_PLC_S7.Write("DB95.DBD4", weight); |
|
|
|
WindSendDevice.Siemens_PLC_S7.Write("DB95.DBD8", weight); |
|
|
|
WindSendDevice.Siemens_PLC_S7.Write("DB95.DBD12", weight); |
|
|
|
WindSendDevice.Siemens_PLC_S7.Write("DB95.DBX38.1", false); |
|
|
|
} |
|
|
|
public void RawMaterialNameWithCode() |
|
|
|
{ |
|
|
|
GVL_SmallStation.GetInstance.RawMaterialsNameCode.Clear(); |
|
|
|