| | |
| | | { |
| | | list.ForEach(a => |
| | | { |
| | | if(a.deviceType == "1") |
| | | { |
| | | PLCControl.PickUpBlank(a); |
| | | } |
| | | else |
| | | { |
| | | PLCControl.PickUpBlankTwo(a); |
| | | } |
| | | |
| | | PLCControl.PickUpBlankTwo(a); |
| | | }); |
| | | } |
| | | } |
| | |
| | | #region 10006-叠盘机满托下线(3楼叠盘下线)-3楼叠盘下线--已完成(待测试) |
| | | if (currActionModel.CN_N_ACTION_CODE == 10006) |
| | | { |
| | | var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && (a.deviceType == "15" || a.deviceType == "25")).FirstOrDefault(); |
| | | if (plc != null) |
| | | var plc = Settings.GetPlcInfo().Where(a => a.enable == 1 && (a.deviceType == "15" || a.deviceType == "25")).ToList(); |
| | | if (plc.Count >0 ) |
| | | { |
| | | if (PickUpStartFree(plc.location)) |
| | | foreach(var a in plc) |
| | | { |
| | | PLCControl.StackingLineEmpty(plc); |
| | | if (PickUpStartFree(a.location)) |
| | | { |
| | | PLCControl.StackingLineEmpty(a); |
| | | } |
| | | } |
| | | } |
| | | //Thread.Sleep(500); |
| | |
| | | list.ForEach(a => |
| | | { |
| | | // 包装机启动时读取【翻页通道】,根据页号获取五条数据,然后写入包装机 |
| | | //ERPService.WriteItemInfo(a); |
| | | //ERPService.WriteItemInfoTwo(a); |
| | | |
| | | PLCControl.CheckPackingMachineTetracobalt(a); |
| | | }); |
| | |
| | | { |
| | | lock (lock10015) |
| | | { |
| | | ERPService.insertMidTable(); |
| | | //ERPService.insertMidTable(); |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | { |
| | | if (CheckStartFree(plc.location)) |
| | | { |
| | | PLCControl.CheckPackingLineFullTwo(plc); |
| | | PLCControl.CheckPackingLineFullThree(plc); |
| | | } |
| | | } |
| | | //Thread.Sleep(500); |