| | |
| | | if (mst.CN_S_BUSS_TYPE == "包装线补空") PLCControl.PackingLineComplete(plc.ip); |
| | | if (mst.CN_S_BUSS_TYPE == "电梯取货") PLCControl.LiftAction(plc, mst.CN_S_TASK_NO,false); |
| | | if (mst.CN_S_BUSS_TYPE == "四钴成品出库" || mst.CN_S_BUSS_TYPE == "四钴辅材出库") PLCControl.productOutWare(mst.CN_S_END_BIT, mst.CN_S_TASK_NO, false); |
| | | if (mst.CN_S_BUSS_TYPE == "3楼缓存架入叠托") PLCControl.CacheStackingMouth6(plc); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | #region 判断输送线模式 变更注释 |
| | | bool action = true; |
| | | plc.ForEach(a => |
| | | foreach(var a in plc) |
| | | { |
| | | var modeResult = OITcpHelper.RegisterReadOutPut(new OITcpHelper.RegisterReadOutPutModel |
| | | { |
| | |
| | | { |
| | | action = false; |
| | | CMMLog.Debug($"OutWareTask:输送线为 入库模式,输送线点位:{a.location}"); |
| | | break; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | action = false; |
| | | CMMLog.Debug($"OutWareTask:中间表 ModeList为 入库模式"); |
| | | |
| | | } |
| | | else |
| | | { |
| | | int[] num = new int[1] { 1 }; |
| | | var writeRes = OITcpHelper.RegisterWriteOutPutMulti(new OITcpHelper.RegisterWriteOutPutModelMulti |
| | | { |
| | | host = a.ip, |
| | | addr = a.writeAddr, |
| | | data = num, |
| | | port = a.port |
| | | }); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | }; |
| | | if (!action) |
| | | { |
| | | return false; |
| | |
| | | } |
| | | else |
| | | { |
| | | int[] num = new int[1] { 2 }; |
| | | var writeRes = OITcpHelper.RegisterWriteOutPutMulti(new OITcpHelper.RegisterWriteOutPutModelMulti |
| | | { |
| | | host = plc.ip, |
| | | addr = plc.writeAddr, |
| | | data = num, |
| | | port = plc.port |
| | | }); |
| | | return true; |
| | | } |
| | | } |