| | |
| | | } |
| | | } |
| | | |
| | | if (Settings.GetDeviceInfoList().Find(x => x.location.Contains(mst.S_END_LOC))?.deviceType == 13 && mst.S_TYPE.Contains("收缩膜叉运")) |
| | | { |
| | | end = 7682; |
| | | } |
| | | |
| | | |
| | | |
| | | LogHelper.Info("SendTask " + mst.S_TASK_NO); |
| | | Console.WriteLine("start=" + start.ToString()); |
| | | Console.WriteLine("end= " + end.ToString()); |
| | |
| | | /// <param name="trayCarryCount"></param> |
| | | /// <param name="priority"></param> |
| | | /// <returns></returns> |
| | | public static bool CreateTransport(string wWorkNo, string start, string end, string taskType, List<string> cntrs, int startLayer, int endLayer, int trayCarryCount = 1, int priority = 1, string note = "") |
| | | public static bool CreateTransport(string wWorkNo, string start, string end, string taskType, List<string> cntrs, int startLayer, int endLayer, int trayCarryCount = 1, int priority = 1, string note = "", string TwoEndLoc = "") |
| | | { |
| | | var result = false; |
| | | //批次号存托盘号,1~3个托盘 |
| | |
| | | |
| | | LogHelper.Info($"CreateTransport- " + $"{taskNo}-{start}-{end}-{taskType}"); |
| | | |
| | | var res = TaskHelper.CreateTask(wWorkNo, start.Trim(), end.Trim(), taskType, priority, trayCodes, trayCarryCount, startLayer, endLayer, note, lockLoc: true); |
| | | var res = TaskHelper.CreateTask(wWorkNo, start.Trim(), end.Trim(), taskType, priority, trayCodes, trayCarryCount, startLayer, endLayer, note, lockLoc: true, TwoEndLoc); |
| | | if (res) |
| | | { |
| | | result = true; |