|
@@ -1,5 +1,4 @@
|
|
|
-using PlcSiemens.Core.Extension;
|
|
|
-using ServiceCenter.Extensions;
|
|
|
+using ServiceCenter.Extensions;
|
|
|
using ServiceCenter.Logs;
|
|
|
using ServiceCenter.Redis;
|
|
|
using ServiceCenter.WebApi;
|
|
@@ -88,22 +87,57 @@ namespace WCS.WorkEngineering.WebApi.Controllers
|
|
|
/// </summary>
|
|
|
/// <param name="position">取货机台</param>
|
|
|
/// <param name="taskCode">WMS任务号</param>
|
|
|
+ /// <param name="station">站台</param>
|
|
|
/// <returns></returns>
|
|
|
- public static GenAgvSchedulingTaskResponse 托盘回库(string position, string taskCode)
|
|
|
+ public static GenAgvSchedulingTaskResponse 托盘回库(string position, string taskCode, string station)
|
|
|
{
|
|
|
-
|
|
|
+ var position1 = "";
|
|
|
+ var position2 = "";
|
|
|
+ switch (station)
|
|
|
+ {
|
|
|
+ case "2501": //分拣一北
|
|
|
+ position1 = "LX002";
|
|
|
+ position2 = "LXSS1";
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "2701": //分拣一南
|
|
|
+ position1 = "LX004";
|
|
|
+ position2 = "LXSS4";
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "2901": //分拣二北
|
|
|
+ position1 = "LX006";
|
|
|
+ position2 = "LXSS2";
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "3101": //分拣二南
|
|
|
+ position1 = "LX008";
|
|
|
+ position2 = "LXSS5";
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "3301": //分拣三北
|
|
|
+ position1 = "LX010";
|
|
|
+ position2 = "LXSS3";
|
|
|
+ break;
|
|
|
+
|
|
|
+ case "3501": //分拣三南
|
|
|
+ position1 = "LX012";
|
|
|
+ position2 = "LXSS6";
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
return GenAgvSchedulingTask("iwms_third", "", "4", new List<positionCodeClass>()
|
|
|
{
|
|
|
new positionCodeClass(){ //取货机台
|
|
|
positionCode=position,
|
|
|
type="00"
|
|
|
},
|
|
|
- new positionCodeClass(){ //巷道分配点
|
|
|
- positionCode="LX002",
|
|
|
+ new positionCodeClass(){ //巷道分配点
|
|
|
+ positionCode=position1,
|
|
|
type="00"
|
|
|
},
|
|
|
new positionCodeClass(){ //预分配放货点
|
|
|
- positionCode="LXSS2",
|
|
|
+ positionCode=position2,
|
|
|
type="00"
|
|
|
}
|
|
|
}, "1", taskCode, "ZTGT31", "1");
|