|
|
@@ -850,19 +850,17 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
public void LineOneProcessExecute() |
|
|
|
{ |
|
|
|
if (!globalVar.LOneTaskLock) |
|
|
|
{ |
|
|
|
globalVar.LOneTaskLock = true; |
|
|
|
//if (!globalVar.LOneTaskLock) |
|
|
|
//{ |
|
|
|
// globalVar.LOneTaskLock = true; |
|
|
|
LOneRecipeDataToPlc(); |
|
|
|
LOneLoadRoller(); |
|
|
|
LOneFryPotInputMaterial(); |
|
|
|
LOneFallMaterial(); |
|
|
|
LOneFryPotOutputMaterial(); |
|
|
|
LOneEmptyOperate(); |
|
|
|
globalVar.LOneTaskLock = false; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
// globalVar.LOneTaskLock = false; |
|
|
|
//} |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -870,36 +868,36 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
public void LineTwoProcessExecute() |
|
|
|
{ |
|
|
|
if (!globalVar.LTwoTaskLock) |
|
|
|
{ |
|
|
|
globalVar.LTwoTaskLock = true; |
|
|
|
//if (!globalVar.LTwoTaskLock) |
|
|
|
//{ |
|
|
|
// globalVar.LTwoTaskLock = true; |
|
|
|
LTwoRecipeDataToPlc(); |
|
|
|
LTwoAgvLoadRoller(); |
|
|
|
LTwoFryPotInputMaterial(); |
|
|
|
LTwoFallMaterial(); |
|
|
|
LTwoFryPotOutputMaterial(); |
|
|
|
LTwoEmptyOperate(); |
|
|
|
globalVar.LTwoTaskLock = false; |
|
|
|
// globalVar.LTwoTaskLock = false; |
|
|
|
|
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
/// <summary> |
|
|
|
/// 线体3的执行流程 |
|
|
|
/// </summary> |
|
|
|
public void LineThreeProcessExecute() |
|
|
|
{ |
|
|
|
if (!globalVar.LThreeTaskLock) |
|
|
|
{ |
|
|
|
globalVar.LThreeTaskLock = true; |
|
|
|
//if (!globalVar.LThreeTaskLock) |
|
|
|
//{ |
|
|
|
// globalVar.LThreeTaskLock = true; |
|
|
|
LThreeRecipeDataToPlc(); |
|
|
|
LThreeAgvLoadRoller(); |
|
|
|
LThreeFryPotInputMaterial(); |
|
|
|
LThreeFallMaterial(); |
|
|
|
LThreeFryPotOutputMaterial(); |
|
|
|
LThreeEmptyOperate(); |
|
|
|
globalVar.LThreeTaskLock = false; |
|
|
|
// globalVar.LThreeTaskLock = false; |
|
|
|
|
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -2061,8 +2059,6 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.AgvToFryPot = true; |
|
|
|
//原料到位,agv到位,agv自行运料到炒锅 |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|