|
|
@@ -1408,13 +1408,13 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.rollerLineTwo.OutMaterialingSingle = data[4]; |
|
|
|
globalVar.rollerLineThree.OutMaterialingSingle = data[5]; |
|
|
|
|
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LineOneRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LineTwoRollerRunning = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LineThreeRollerRunning = data[5]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LineOneRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LineTwoRollerRunning = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LineThreeRollerRunning = data[5]; |
|
|
|
|
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble = data[6]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble = data[7]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble = data[8]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble = data[6]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble = data[7]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble = data[8]; |
|
|
|
|
|
|
|
})); |
|
|
|
GetAddressData("D2040", new Action<ushort[]>((data) => |
|
|
@@ -1425,11 +1425,11 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.fryPotFour.InputMaterialRollerRunningSingle = data[3]; |
|
|
|
globalVar.fryPotFive.InputMaterialRollerRunningSingle = data[4]; |
|
|
|
|
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotOneRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotTwoRollerRunning = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotThreeRollerRunning = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFourRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFiveRollerRunning = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotOneRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotTwoRollerRunning = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotThreeRollerRunning = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFourRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFiveRollerRunning = data[4]; |
|
|
|
|
|
|
|
})); |
|
|
|
GetAddressData("D2045", new Action<ushort[]>((data) => |
|
|
@@ -1456,11 +1456,11 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.fryPotFour.EmptyBarrelRollerRunningSingle = data[3]; |
|
|
|
globalVar.fryPotFive.EmptyBarrelRollerRunningSingle = data[4]; |
|
|
|
|
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotOneEmptyRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotTwoEmptyRollerRunning = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotThreeEmptyRollerRunning = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFourEmptyRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFiveEmptyRollerRunning = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotOneEmptyRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotTwoEmptyRollerRunning = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotThreeEmptyRollerRunning = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFourEmptyRollerRunning = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFiveEmptyRollerRunning = data[4]; |
|
|
|
})); |
|
|
|
GetAddressData("D2070", new Action<ushort[]>((data) => |
|
|
|
{ |
|
|
@@ -1469,11 +1469,11 @@ namespace FryPot_DosingSystem.Control |
|
|
|
//globalVar.fryPotThree.RollerTroubleSingle = data[2]; |
|
|
|
//globalVar.fryPotFour.RollerTroubleSingle = data[3]; |
|
|
|
//globalVar.fryPotFive.RollerTroubleSingle = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotOneRollerTrouble = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotTwoRollerTrouble = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotThreeRollerTrouble = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFourRollerTrouble = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.FryPotFiveRollerTrouble = data[4]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotOneRollerTrouble = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotTwoRollerTrouble = data[1]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotThreeRollerTrouble = data[2]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFourRollerTrouble = data[3]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().FryPotFiveRollerTrouble = data[4]; |
|
|
|
})); |
|
|
|
GetAddressData("D2078", new Action<ushort[]>(data => |
|
|
|
{ |
|
|
@@ -1483,7 +1483,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
})); |
|
|
|
GetAddressData("D2075", new Action<ushort[]>(data => |
|
|
|
{ |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning = data[0]; |
|
|
|
globalVar.CleadBarrelEnterSingle = data[0]; |
|
|
|
})); |
|
|
|
GetAddressData("2076", new Action<ushort[]>(data => |
|
|
@@ -1493,7 +1493,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
})); |
|
|
|
GetAddressData("D2077", new Action<ushort[]>(data => |
|
|
|
{ |
|
|
|
AlarmHelper<AlarmInfo>.Alarm.CleanOutputRollerRunning = data[0]; |
|
|
|
AlarmHelper<AlarmInfo>.GetInstance().CleanOutputRollerRunning = data[0]; |
|
|
|
globalVar.CleadBarrelExitSingle = data[0]; |
|
|
|
})); |
|
|
|
//炒锅1状态数据 |
|
|
@@ -1826,7 +1826,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
hardWareStatusModel.RollerOneModel.LocSixRollerSerial = globalVar.rollerLineOne.StationSix; |
|
|
|
hardWareStatusModel.RollerOneModel.LocSevenRollerSerial = globalVar.rollerLineOne.StationSeven; |
|
|
|
hardWareStatusModel.RollerOneModel.LocEightRollerSerial = globalVar.rollerLineOne.StationEight; |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 0) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 0) |
|
|
|
{ |
|
|
|
|
|
|
|
hardWareStatusModel.RollerOneModel.RollerAlarmState = Color.FromRgb(130, 232, 139);//无故障 |
|
|
@@ -1854,7 +1854,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
hardWareStatusModel.RollerTwoModel.LocSixRollerSerial = globalVar.rollerLineTwo.StationSix; |
|
|
|
hardWareStatusModel.RollerTwoModel.LocSevenRollerSerial = globalVar.rollerLineTwo.StationSeven; |
|
|
|
hardWareStatusModel.RollerTwoModel.LocEightRollerSerial = globalVar.rollerLineTwo.StationEight; |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 0) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 0) |
|
|
|
{ |
|
|
|
hardWareStatusModel.RollerTwoModel.RollerAlarmState = Color.FromRgb(130, 232, 139);//无故障 |
|
|
|
} |
|
|
@@ -1880,7 +1880,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
hardWareStatusModel.RollerThreeModel.LocSixRollerSerial = globalVar.rollerLineThree.StationSix; |
|
|
|
hardWareStatusModel.RollerThreeModel.LocSevenRollerSerial = globalVar.rollerLineThree.StationSeven; |
|
|
|
hardWareStatusModel.RollerThreeModel.LocEightRollerSerial = globalVar.rollerLineThree.StationEight; |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 0) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 0) |
|
|
|
{ |
|
|
|
hardWareStatusModel.RollerThreeModel.RollerAlarmState = Color.FromRgb(130, 232, 139);//无故障 |
|
|
|
} |
|
|
@@ -2123,7 +2123,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
globalVar.agvArriveCleanLoad = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog("AGV到达清洗台空桶上料位置"); |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.CleanOutputRollerRunning == 0) |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().CleanOutputRollerRunning == 0) |
|
|
|
{ |
|
|
|
//plc交互 |
|
|
|
WritePlcData("D1066", 1);//AGV空桶出桶就位信号下发PlC |
|
|
@@ -2131,7 +2131,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.CleanOutputRollerRunning == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().CleanOutputRollerRunning == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -2148,7 +2148,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
private void AgvFromLineOneToCleanPlate() |
|
|
|
{ |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
//线体1到清洗台 |
|
|
|
if (!globalVar.rollerLineOne.IsEpmtyBefore && globalVar.rollerLineOne.CanRun) |
|
|
@@ -2192,7 +2192,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
|
|
|
|
// 线体2到清洗台 |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
if (!globalVar.rollerLineTwo.IsEpmtyBefore && globalVar.rollerLineTwo.CanRun) |
|
|
|
{ |
|
|
@@ -2234,7 +2234,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
private void AgvFromLineThreeToCleanPlate() |
|
|
|
{ |
|
|
|
//线体3到清洗台 |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
if (!globalVar.rollerLineThree.IsEpmtyBefore && globalVar.rollerLineThree.CanRun) |
|
|
|
{ |
|
|
@@ -2279,7 +2279,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.rollerLineOne.agvArriveCleanUnLoad = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog("空桶从线体1到达清洗位置,准备卸桶"); |
|
|
|
|
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 0) |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 0) |
|
|
|
{ |
|
|
|
//plc交互 |
|
|
|
WritePlcData("D1065", 1);//AGV空桶洗桶就位信号下发PLC |
|
|
@@ -2287,7 +2287,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -2311,7 +2311,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.rollerLineTwo.agvArriveCleanUnLoad = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog("空桶从线体2到达清洗位置,准备卸桶"); |
|
|
|
|
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 0) |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 0) |
|
|
|
{ |
|
|
|
//plc交互 |
|
|
|
WritePlcData("D1065", 1);//AGV空桶洗桶就位信号下发PLC |
|
|
@@ -2319,7 +2319,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -2342,7 +2342,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
globalVar.rollerLineThree.agvArriveCleanUnLoad = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog("空桶从线体3到达清洗位置,准备卸桶"); |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 0) |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 0) |
|
|
|
{ |
|
|
|
//plc交互 |
|
|
|
WritePlcData("D1065", 1);//AGV空桶洗桶就位信号下发PLC |
|
|
@@ -2350,7 +2350,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.CleanEnterRollerRunning == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().CleanEnterRollerRunning == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -3014,7 +3014,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
globalVar.LThreeInOrOutputLock = true; |
|
|
|
globalVar.LThreePotOutputRollerArrive = true; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@@ -3078,33 +3078,33 @@ namespace FryPot_DosingSystem.Control |
|
|
|
// FryPotOneRollerTroubleCheck(); |
|
|
|
//if (FryPotAlarm == 1 || FryPotFourAlarm == 1)//无故障 |
|
|
|
//{ |
|
|
|
if (globalVar.agvFryPotEmptyRollerArrive) |
|
|
|
if (globalVar.agvFryPotEmptyRollerArrive) |
|
|
|
{ |
|
|
|
FryPotOneOrFourOutEmpetyRollerOperate(); |
|
|
|
if (OutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
FryPotOneOrFourOutEmpetyRollerOperate(); |
|
|
|
if (OutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(1, IsBool.OnllYes); |
|
|
|
//if (globalVar.LOneFryPotSerial == 1) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(1, CartMotionTrajectory.hs_1); |
|
|
|
//} |
|
|
|
//else if (globalVar.LOneFryPotSerial == 4) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(1, CartMotionTrajectory.hs_4); |
|
|
|
//} |
|
|
|
globalVar.agvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.InOrOutputLock = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LOneFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineLoadRoller = true; |
|
|
|
globalVar.LoadRoller = false; |
|
|
|
globalVar.AgvToFryPot = false; |
|
|
|
globalVar.PotOneInputMaterialArrive = false; |
|
|
|
globalVar.PotOneOutputRollerArrive = false; |
|
|
|
globalVar.AgvArrivePot = false; |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(1, IsBool.OnllYes); |
|
|
|
//if (globalVar.LOneFryPotSerial == 1) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(1, CartMotionTrajectory.hs_1); |
|
|
|
//} |
|
|
|
//else if (globalVar.LOneFryPotSerial == 4) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(1, CartMotionTrajectory.hs_4); |
|
|
|
//} |
|
|
|
globalVar.agvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.InOrOutputLock = false; |
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LOneFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineLoadRoller = true; |
|
|
|
globalVar.LoadRoller = false; |
|
|
|
globalVar.AgvToFryPot = false; |
|
|
|
globalVar.PotOneInputMaterialArrive = false; |
|
|
|
globalVar.PotOneOutputRollerArrive = false; |
|
|
|
globalVar.AgvArrivePot = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
|
|
|
@@ -3131,37 +3131,37 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if ((globalVar.fryPotTwo.EmptyBarrelArrivedSingle == 1 || globalVar.fryPotFive.EmptyBarrelArrivedSingle == 1) && LTwoOutputMaterialQuene.Count > 0 && globalVar.LTwoAgvArrivePot) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
//if (FryPotTwoAlarm == 1 || FryPotFiveAlarm == 1)//无故障 |
|
|
|
//{ |
|
|
|
if (globalVar.LTwoagvFryPotEmptyRollerArrive) |
|
|
|
if (globalVar.LTwoagvFryPotEmptyRollerArrive) |
|
|
|
{ |
|
|
|
FryPotTwoOrFiveOutEmpetyRollerOperate(); |
|
|
|
if (LTwoOutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
FryPotTwoOrFiveOutEmpetyRollerOperate(); |
|
|
|
if (LTwoOutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(2, IsBool.OnllYes); |
|
|
|
//if (globalVar.LTwoFryPotSerial == 2) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(2, CartMotionTrajectory.hs_2); |
|
|
|
//} |
|
|
|
//else if (globalVar.LTwoFryPotSerial == 5) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(2, CartMotionTrajectory.hs_5); |
|
|
|
//} |
|
|
|
globalVar.LTwoagvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.LTwoInOrOutputLock = false; |
|
|
|
|
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LTwoFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineTwoLoadRoller = true; |
|
|
|
globalVar.LTwoLoadRoller = false; |
|
|
|
globalVar.LTwoAgvToFryPot = false; |
|
|
|
globalVar.LTwoPotInputMaterialArrive = false; |
|
|
|
globalVar.LTwoPotOutputRollerArrive = false; |
|
|
|
globalVar.LTwoAgvArrivePot = false; |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(2, IsBool.OnllYes); |
|
|
|
//if (globalVar.LTwoFryPotSerial == 2) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(2, CartMotionTrajectory.hs_2); |
|
|
|
//} |
|
|
|
//else if (globalVar.LTwoFryPotSerial == 5) |
|
|
|
//{ |
|
|
|
// AgvViewModel.GetInstance().Set小车运动(2, CartMotionTrajectory.hs_5); |
|
|
|
//} |
|
|
|
globalVar.LTwoagvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.LTwoInOrOutputLock = false; |
|
|
|
|
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LTwoFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineTwoLoadRoller = true; |
|
|
|
globalVar.LTwoLoadRoller = false; |
|
|
|
globalVar.LTwoAgvToFryPot = false; |
|
|
|
globalVar.LTwoPotInputMaterialArrive = false; |
|
|
|
globalVar.LTwoPotOutputRollerArrive = false; |
|
|
|
globalVar.LTwoAgvArrivePot = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//} |
|
|
|
} |
|
|
|
|
|
|
@@ -3187,28 +3187,28 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
//if (FryPotThreeAlarm == 1)//无故障 |
|
|
|
//{ |
|
|
|
if (globalVar.LThreeagvFryPotEmptyRollerArrive) |
|
|
|
if (globalVar.LThreeagvFryPotEmptyRollerArrive) |
|
|
|
{ |
|
|
|
FryPotThreeOutEmpetyRollerOperate(); |
|
|
|
if (LThreeOutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
FryPotThreeOutEmpetyRollerOperate(); |
|
|
|
if (LThreeOutputMaterialQuene.TryDequeue(out MaterialInfo materialInfo))//空桶出桶后,出料原料队列移除对应原料 |
|
|
|
{ |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(3, IsBool.OnllYes); |
|
|
|
//AgvViewModel.GetInstance().Set小车运动(3, CartMotionTrajectory.hs_3); |
|
|
|
globalVar.LThreeagvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.LThreeInOrOutputLock = false; |
|
|
|
|
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LThreeFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineThreeLoadRoller = true; |
|
|
|
globalVar.LThreeLoadRoller = false; |
|
|
|
globalVar.LThreeAgvToFryPot = false; |
|
|
|
globalVar.LThreePotInputMaterialArrive = false; |
|
|
|
globalVar.LThreePotOutputRollerArrive = false; |
|
|
|
globalVar.LThreeAgvArrivePot = false; |
|
|
|
//AgvViewModel.GetInstance().Set小车是否承载物品(3, IsBool.OnllYes); |
|
|
|
//AgvViewModel.GetInstance().Set小车运动(3, CartMotionTrajectory.hs_3); |
|
|
|
globalVar.LThreeagvFryPotEmptyRollerArrive = false; |
|
|
|
globalVar.LThreeInOrOutputLock = false; |
|
|
|
|
|
|
|
MessageLog.GetInstance.ShowRunLog($"AGV在【{globalVar.LThreeFryPotSerial}】号炒锅将空桶回收到4号滚筒线"); |
|
|
|
//AGV拿到空桶,让AGV运桶到指定位置,同时可以让下一个AGV从线体装料运到炒锅 |
|
|
|
globalVar.AllowAgvToLineThreeLoadRoller = true; |
|
|
|
globalVar.LThreeLoadRoller = false; |
|
|
|
globalVar.LThreeAgvToFryPot = false; |
|
|
|
globalVar.LThreePotInputMaterialArrive = false; |
|
|
|
globalVar.LThreePotOutputRollerArrive = false; |
|
|
|
globalVar.LThreeAgvArrivePot = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
@@ -3710,7 +3710,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// <param name="lineAlarm"></param> |
|
|
|
public void AgvFromLineOneToFryPot() |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 0) |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 0) |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveUpLoad && globalVar.LoadRoller && globalVar.rollerLineOne.StationEight == InputMaterialQuene.ElementAt(0).materialType.MaterialLoc && !globalVar.AgvToFryPot)//无故障 |
|
|
|
{ |
|
|
@@ -3732,7 +3732,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -3748,7 +3748,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
public void AgvFromLineOneToClean(ushort emptyRollerNum) |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 0)//无故障 |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 0)//无故障 |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveLineOneLoadEmptyRoller)//agv到达上料位置 |
|
|
|
{ |
|
|
@@ -3770,7 +3770,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -3788,7 +3788,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// <param name="lineAlarm"></param> |
|
|
|
public void AgvFromLineTwoToFryPot() |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 0)//无故障 |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 0)//无故障 |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveLTwoUpLoad && globalVar.LTwoLoadRoller && globalVar.rollerLineTwo.StationEight == LTwoInputMaterialQuene.ElementAt(0).materialType.MaterialLoc && !globalVar.LTwoAgvToFryPot)//无故障 |
|
|
|
{ |
|
|
@@ -3811,7 +3811,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineTwoTask) |
|
|
@@ -3827,7 +3827,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
public void AgvFromLineTwoToClean(ushort emptyRollerNum) |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 0)//无故障 |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 0)//无故障 |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveLineTwoLoadEmptyRoller)//agv到达上料位置 |
|
|
|
{ |
|
|
@@ -3850,7 +3850,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -3868,7 +3868,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// <param name="lineAlarm"></param> |
|
|
|
public void AgvFromLineThreeToFryPot() |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 0)//无故障 |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 0)//无故障 |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveLThreeUpLoad && globalVar.LThreeLoadRoller && globalVar.rollerLineThree.StationEight == LThreeInputMaterialQuene.ElementAt(0).materialType.MaterialLoc && !globalVar.LThreeAgvToFryPot)//无故障 |
|
|
|
{ |
|
|
@@ -3891,7 +3891,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else //有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineThreeTask) |
|
|
@@ -3907,7 +3907,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
/// </summary> |
|
|
|
public void AgvFromLineThreeToClean(ushort emptyRollerNum) |
|
|
|
{ |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 0)//无故障 |
|
|
|
erp: if (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 0)//无故障 |
|
|
|
{ |
|
|
|
if (globalVar.agvArriveLineThreeLoadEmptyRoller)//agv到达上料位置 |
|
|
|
{ |
|
|
@@ -3931,7 +3931,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
else//有故障 |
|
|
|
{ |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); |
|
|
|
if (globalVar.ExitLineOneTask) |
|
|
@@ -4038,7 +4038,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
|
|
|
|
public void AgvToLineOneLoadRoller() |
|
|
|
{ |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LOneRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LOneRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
if (InputMaterialQuene.Count > 0 && globalVar.AllowAgvToLineLoadRoller && globalVar.rollerLineOne.OutMaterialingSingle == 1 && !globalVar.LoadRoller) |
|
|
|
{ |
|
|
@@ -4099,7 +4099,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
public void AgvToLineTwoLoadRoller() |
|
|
|
{ |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LTwoRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LTwoRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
if (LTwoInputMaterialQuene.Count > 0 && globalVar.AllowAgvToLineTwoLoadRoller && globalVar.rollerLineTwo.OutMaterialingSingle == 1 && !globalVar.LTwoLoadRoller) |
|
|
|
{ |
|
|
@@ -4154,7 +4154,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
public void AgvToLineThreeLoadRoller() |
|
|
|
{ |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.LThreeRollerTrouble == 0)//输送线无故障 |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().LThreeRollerTrouble == 0)//输送线无故障 |
|
|
|
{ |
|
|
|
if (LThreeInputMaterialQuene.Count > 0 && globalVar.AllowAgvToLineThreeLoadRoller && globalVar.rollerLineThree.OutMaterialingSingle == 1 && !globalVar.LThreeLoadRoller) |
|
|
|
{ |
|
|
@@ -4452,7 +4452,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
switch (OutputMaterialQuene.ElementAt(0).materialType.MaterialLoc / 100) |
|
|
|
{ |
|
|
|
case 1: |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.FryPotOneRollerTrouble == 1) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().FryPotOneRollerTrouble == 1) |
|
|
|
{ |
|
|
|
FryPotAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【1】输送滚筒发生故障"); |
|
|
|
} |
|
|
@@ -4461,7 +4461,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
FryPotAlarm = 1; return; |
|
|
|
|
|
|
|
} |
|
|
|
while (AlarmHelper<AlarmInfo>.Alarm.FryPotOneRollerTrouble == 1) |
|
|
|
while (AlarmHelper<AlarmInfo>.GetInstance().FryPotOneRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); if (globalVar.ExitLineOneTask) |
|
|
|
return; |
|
|
@@ -4469,7 +4469,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
MessageLog.GetInstance.ShowRunLog("炒锅【1】输送滚筒故障解除,继续运行"); |
|
|
|
FryPotAlarm = 1; break; |
|
|
|
case 4: |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.FryPotFourRollerTrouble == 1) { FryPotFourAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【4】输送滚筒发生故障"); } else { FryPotFourAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.Alarm.FryPotFourRollerTrouble == 1) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().FryPotFourRollerTrouble == 1) { FryPotFourAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【4】输送滚筒发生故障"); } else { FryPotFourAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.GetInstance().FryPotFourRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); if (globalVar.ExitLineOneTask) |
|
|
|
return; |
|
|
@@ -4489,7 +4489,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
switch (LTwoOutputMaterialQuene.ElementAt(0).materialType.MaterialLoc / 100) |
|
|
|
{ |
|
|
|
case 2: |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.FryPotTwoRollerTrouble == 1) { FryPotTwoAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【1】输送滚筒发生故障"); } else { FryPotTwoAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.Alarm.FryPotTwoRollerTrouble == 1) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().FryPotTwoRollerTrouble == 1) { FryPotTwoAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【1】输送滚筒发生故障"); } else { FryPotTwoAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.GetInstance().FryPotTwoRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); if (globalVar.ExitLineTwoTask) |
|
|
|
return; |
|
|
@@ -4497,7 +4497,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
MessageLog.GetInstance.ShowRunLog("炒锅【1】输送滚筒故障解除,继续运行"); |
|
|
|
FryPotTwoAlarm = 1; break; |
|
|
|
case 5: |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.FryPotFiveRollerTrouble == 1) { FryPotFiveAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【4】输送滚筒发生故障"); } else { FryPotFiveAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.Alarm.FryPotFiveRollerTrouble == 1) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().FryPotFiveRollerTrouble == 1) { FryPotFiveAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【4】输送滚筒发生故障"); } else { FryPotFiveAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.GetInstance().FryPotFiveRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); if (globalVar.ExitLineTwoTask) |
|
|
|
return; |
|
|
@@ -4512,7 +4512,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
public void FryPotThreeRollerTroubleCheck() |
|
|
|
{ |
|
|
|
FryPotThreeAlarm = 0; |
|
|
|
if (AlarmHelper<AlarmInfo>.Alarm.FryPotThreeRollerTrouble == 1) { FryPotThreeAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【3】输送滚筒发生故障"); } else { FryPotThreeAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.Alarm.FryPotThreeRollerTrouble == 1) |
|
|
|
if (AlarmHelper<AlarmInfo>.GetInstance().FryPotThreeRollerTrouble == 1) { FryPotThreeAlarm = -1; MessageLog.GetInstance.ShowRunLog("警告:炒锅【3】输送滚筒发生故障"); } else { FryPotThreeAlarm = 1; return; } while (AlarmHelper<AlarmInfo>.GetInstance().FryPotThreeRollerTrouble == 1) |
|
|
|
{ |
|
|
|
Thread.Sleep(1000); if (globalVar.ExitLineThreeTask) |
|
|
|
return; |
|
|
|