| | |
| | | { |
| | | return task.TaskState switch |
| | | { |
| | | (int)TaskInStatusEnum.RGV_InNew => task, |
| | | (int)TaskInStatusEnum.RGV_InPickupFinish => HandlePickupFinish(task), |
| | | (int)TaskInStatusEnum.RGV_InNew => task, |
| | | (int)TaskInStatusEnum.RGV_InPickupFinish => HandlePickupFinish(task), |
| | | (int)TaskInStatusEnum.RGV_InReleaseFinish => task, //éè¦å¤æå车æ¯å
ä¾§åºè¿æ¯å¤ä¾§åè´§ï¼å¾
å®æï¼ |
| | | (int)TaskInStatusEnum.RGV_InZicheFinish => HandleZicheFinish(task), |
| | | (int)TaskInStatusEnum.RGV_InZicheReleaseFinish => HandleZicheReleaseFinish(task), |
| | |
| | | //è·åå
ä¾§æ¯è½¦ä½ç½® |
| | | int ncadder = GetMothercarlocation(_Task.TaskNum, _Task.NextAddress); |
| | | |
| | | if (mcadder != int.Parse(aGVStation.MotherCarDeviceCode) && ncadder == aGVStation.Station_code) |
| | | if (mcadder != int.Parse(aGVStation.MotherCarDeviceCode) && ncadder == aGVStation.Station_code) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | if (mcadder == int.Parse(aGVStation.MotherCarDeviceCode)) |
| | | if (mcadder == int.Parse(aGVStation.MotherCarDeviceCode)) |
| | | { |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCarDeviceCode); |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCarDeviceCode); |
| | | |
| | | RGVMovetask(aGVSta.ChildPosiDeviceCode, aGVSta.Station_code.ToString(), _Task.TaskId); |
| | | |
| | | } |
| | | |
| | | if (ncadder != aGVStation.Station_code) |
| | | if (ncadder != aGVStation.Station_code) |
| | | { |
| | | RGVMovetask(aGVStation.ChildPosiDeviceCode, aGVStation.Station_code.ToString(), _Task.TaskId); |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | if (mcadder == int.Parse(aGVStation.MotherCarDeviceCode)) |
| | | if (mcadder == int.Parse(aGVStation.MotherCarDeviceCode)) |
| | | { |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCarDeviceCode); |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCarDeviceCode); |
| | | |
| | | RGVMovetask(aGVSta.ChildPosiDeviceCode, aGVSta.Station_code.ToString(), _Task.TaskId); |
| | | |
| | | } |
| | | |
| | | if (ncadder == int.Parse(aGVStation.MotherCardeputy)) |
| | | if (ncadder == int.Parse(aGVStation.MotherCardeputy)) |
| | | { |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCardeputy); |
| | | AGVStation aGVSta = _agvStationService.GetMothercarCode(aGVStation.MotherCardeputy); |
| | | |
| | | RGVMovetask(aGVSta.ChildPosiDeviceCode, aGVSta.Station_code.ToString(), _Task.TaskId); |
| | | } |
| | |
| | | }; |
| | | stackerCraneTaskCommand.RGV_RGVTasklocation = locaticurr; |
| | | stackerCraneTaskCommand.RGV_RGVtasktype = (short)task.RGVTaskType; |
| | | stackerCraneTaskCommand.RGV_Rgvtaskid = (short)task.TaskNum; |
| | | stackerCraneTaskCommand.RGV_Lanjiantaskid = (short)task.TaskNum; |
| | | stackerCraneTaskCommand.RGV_Rgvtaskid = (short)task.TaskNum; |
| | | stackerCraneTaskCommand.RGV_Lanjiantaskid = (short)task.TaskNum; |
| | | return stackerCraneTaskCommand; |
| | | } |
| | | |