| | |
| | | using WIDESEA_Common.Log; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_DTO.Enum; |
| | | using WIDESEAWCS_ISystemServices; |
| | |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly IRouterService _routerService; |
| | | private readonly IAgvStationService _agvStationService; |
| | | IRepository<AbnormalTask> _abnormalTask; |
| | | IRgvoperainformService _rgvoperainformService; |
| | | |
| | | |
| | | public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService) |
| | | public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService, IRepository<AbnormalTask> abnormalTask, IRgvoperainformService rgvoperainformService) |
| | | { |
| | | _taskService = taskService; |
| | | _taskExecuteDetailService = taskExecuteDetailService; |
| | | _taskRepository = taskRepository; |
| | | _routerService = routerService; |
| | | _agvStationService = agvStationService; |
| | | _abnormalTask = abnormalTask; |
| | | _rgvoperainformService = rgvoperainformService; |
| | | } |
| | | |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | //WriteLog.Write_Log("23"); |
| | | |
| | | SpeStackerCrane speStackerCrane = (SpeStackerCrane)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | if (speStackerCrane != null) |
| | | { |
| | | GetStackerObject getStackerObject = new GetStackerObject(speStackerCrane); |
| | | |
| | | _rgvoperainformService.LogAlarmToDatabase(speStackerCrane.DeviceCode); |
| | | |
| | | |
| | | if (getStackerObject.RGVInitializationValue == RGVInitialize.Initialized) |
| | | { |
| | |
| | | { |
| | | CommonStackerCrane_AGVTaskCompletedEventHandler(getStackerObject, speStackerCrane); |
| | | } |
| | | |
| | | //夿å½åè®¾å¤æ¯å
¥åºè¿æ¯åºåº |
| | | if (GetDeviceAddress.OutbounMotherChildCartbool(speStackerCrane.DeviceCode)) |
| | | { |
| | | //夿å½åå®å
¨é¨æ¯å¦ä¸ºç»¿è²ç¯ |
| | | if (GetDeviceAddress.ReadAqmDecicStice(1)) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //夿å
¥åºç«¯å®å
¨é¨æ¯å¦æ£å¸¸ |
| | | if (GetDeviceAddress.ReadAqmDecicStice(2)) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | |
| | | if (getStackerObject.RgvCraneAutoStatusValue == RgvCraneAutoStatus.Automatic && |
| | | getStackerObject.StaclerkJobJobStatusValue == RGV_Rgvtaskstutas.Ready && getStackerObject.RgvCraneWorkStatusValue == RGVStepprocess.NoAction) |
| | |
| | | } |
| | | else if (getStackerObject.StaclerkJobJobStatusValue == RGV_Rgvtaskstutas.AbnormalCompletion && getStackerObject.CurrentRgvtaskid != 0 && getStackerObject.CurrentRgvtaskid != 30001) |
| | | { |
| | | string ErrorContent = RgvOperationService.AQMReadAlarminform(); |
| | | if (ErrorContent != null && ErrorContent != "") |
| | | { |
| | | _abnormalTask.AddData(new AbnormalTask |
| | | { |
| | | TaskNum = getStackerObject.CurrentRgvtaskid, |
| | | ErrorContent = ErrorContent, |
| | | CreateDate = DateTime.Now, |
| | | Creater = "system", |
| | | }); |
| | | } |
| | | //ä¿®æ¹ä»»å¡ç¶æä¸ºå¼å¸¸å®æ |
| | | _taskService.HandleInAbnormal(getStackerObject.CurrentRgvtaskid); |
| | | |
| | | //åå
¥å¼å¸¸å®ææ¥è¦ä¿¡æ¯ |
| | | speStackerCrane.Communicator.Write<short>("DB101.36", 1); |
| | | //speStackerCrane.Communicator.Write<short>("DB101.36", 1); //åå
¥æ¥è¦ |
| | | |
| | | speStackerCrane.SetValue(RGV_taskcoDBName.RGV_taskcomplete, 1); |
| | | speStackerCrane.SetValue(RGV_taskcoDBName.RGV_taskcomplete, 0); |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | => GoodsPlacedCorridor(RGVTaskdevice), //å车æ¾è´§ä»»å¡(已宿) |
| | | |
| | | ((int)RGVEquipment.Mothertrailer, RgvEquipmentStatus.HasCargo) |
| | | => MotherVehicleMovement(RGVTaskdevice), //ï¼å·²å®æï¼ |
| | | => MotherVehicleMovement(RGVTaskdevice), //æ¯è½¦ç§»å¨ï¼å·²å®æï¼ |
| | | |
| | | _ => null |
| | | }; |
| | |
| | | public Dt_Task? ForkliftUnloading(AGVStation RGVTaskdevice) |
| | | { |
| | | Dt_Task dt_Task = _taskService.GetInkouFinhuoTask(RGVTaskdevice.ChildPosiDeviceCode); |
| | | |
| | | if (dt_Task == null) return null; |
| | | //夿HCJæ¯å¦æè´§ |
| | | if (GetDeviceAddress.HCJIsstock(dt_Task.NextAddress)) |
| | | { |
| | | //夿å车æ¯å¦å¨æ¥é©³å°ä¸ |
| | | var zichestation = _agvStationService.OutGetZicheDeepHCJ(1061); |
| | | int ziche = GetDeviceAddress.GetEquipmentlocation(zichestation.ChildPosiDeviceCode); |
| | | if ((ziche == zichestation.WaitmomentOne || ziche == zichestation.WaitmomentTwo || ziche == zichestation.MotherCarDeviceCode || ziche == zichestation.MotherCardeputy || ziche == zichestation.HCJStorageaddress) && ziche != 1021) |
| | | if ((ziche == zichestation.WaitmomentOne || ziche == zichestation.WaitmomentTwo || ziche == zichestation.MotherCarDeviceCode || ziche == zichestation.MotherCardeputy || ziche == zichestation.HCJStorageaddress) && ziche != 1021 && ziche !=0) |
| | | { |
| | | //è·åè¿ä¸ªæ¥é©³å°æ¯å¦æåè´§ä»»å¡ |
| | | Dt_Task zitask = _taskService.ViceChariotPickupTask2(RGVTaskdevice.ChildPosiDeviceCode); |
| | | if (zitask == null) |
| | | { |
| | | |
| | | return dt_Task; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //å¦ææ²¡è´§ï¼åä¸åç§»å¨ä»»å¡ |
| | | RGVMovetask(RGVTaskdevice.HCJStorageaddress, RGVTaskdevice.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | //å¦ææ²¡è´§ï¼åä¸åç§»å¨ä»»å¡ |
| | | RGVMovetask(RGVTaskdevice.HCJStorageaddress, RGVTaskdevice.ChildPosiDeviceCode); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | //è·åå车åè´§ä»»å¡ |
| | | Dt_Task dt_Task = _taskService.ViceChariotPickupTask(RGVTaskdevice.ChildPosiDeviceCode); |
| | | if (dt_Task == null) return null; |
| | | |
| | | //夿HCJç«å°æ¯å¦æè´§ |
| | | if (GetDeviceAddress.HCJIsstock(dt_Task.CurrentAddress)) return null; |
| | | |
| | | if (RGVTaskdevice.Station_Area == 6) //å¤ä¾§è¿åè´§ï¼åéè¦å¤æå车å½åä½ç½® |
| | | { |
| | | if (getStackerObject.RGVCurrentlocation == RGVTaskdevice.WaitmomentOne) |
| | |
| | | } |
| | | else if (mu2 == InMotherVehicle.Motherinlaw) |
| | | { |
| | | RGVMovetask(InMotherVehicle.ZicheMotherinlaw, InMotherVehicle.ChildPosiDeviceCode); |
| | | |
| | | //夿æ¯è½¦æ¯å¦æä»»å¡ |
| | | Dt_Task muche1task = _taskService.MothermachinemovementTask2(InMotherVehicle.ChildPosiDeviceCode); |
| | | if (muche1task == null) |
| | | { |
| | | RGVMovetask(InMotherVehicle.ZicheMotherinlaw, InMotherVehicle.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //=============================æ°å¢å½å»åè´§æ¶è¿è¡å¤æå··éï¼çè½ä¸è½æåæåºæ¯è½¦ |
| | | return dt_Task; |
| | | } |
| | | //廿åå ï¼å¨è¯¥åºå车å»åè´§ï¼å¯ç´æ¥ç©¿è¿æ è´§æ¯è½¦ï¼æè½¦ |
| | | /*else |
| | | { |
| | | Dt_Task task = _taskService.MothermachinemovementTask2(RGVTaskdevice.ChildPosiDeviceCode); |
| | | if (task == null) |
| | | { |
| | | RGVMovetask(mu1rgv.Motherinlaw, mu1rgv.ChildPosiDeviceCode); |
| | | } |
| | | }*/ |
| | | |
| | | } |
| | | else if (getStackerObject.RGVCurrentlocation == RGVTaskdevice.WaitmomentTwo) //åéè¦å¤æä¸¤ä¸ªæ¯è½¦çä½å |
| | | { |
| | | //å¤æä¸¤ä¸ªå车æ¯å¦å¨å åæºåè´§å£ |
| | | //å¤æä¸¤ä¸ªæ¯è½¦æ¯å¦å¨å åæºåè´§å£ |
| | | |
| | | //æ¯è½¦1 |
| | | var mu1rgv = _agvStationService.GetMothervehicle(RGVTaskdevice.MotherCarDeviceCode); |
| | |
| | | { |
| | | return dt_Task; |
| | | } |
| | | |
| | | //夿å
ä¾§æ¯å¦æè´§ï¼æ¯å¦æä»»å¡ |
| | | |
| | | if (int.Parse(dt_Task.TargetAddress) == (int)StorageAisleEnum.LaneThree || int.Parse(dt_Task.TargetAddress) == (int)StorageAisleEnum.LaneFour) |
| | | { |
| | | int taraddress = int.Parse(dt_Task.TargetAddress); |
| | | var InMotherVehicle = _agvStationService.ObtainCcordingTunnel(taraddress); //è·åå°éè¦å
¥åºçæ¯è½¦(2å··é) |
| | | int mu2 = GetDeviceAddress.GetEquipmentlocation(InMotherVehicle.ChildPosiDeviceCode); //æ¤æ¶çRGVåºè¯¥æ è´§ |
| | | if (GetDeviceAddress.Mucheywhaddres(InMotherVehicle.ChildPosiDeviceCode)) //夿æ è´§ |
| | | { |
| | | if (mu2 == InMotherVehicle.Motherinlaw) |
| | | { |
| | | //夿æ¯è½¦æ¯å¦æä»»å¡ |
| | | Dt_Task muche1task = _taskService.MothermachinemovementTask2(InMotherVehicle.ChildPosiDeviceCode); |
| | | if (muche1task == null) |
| | | { |
| | | RGVMovetask(InMotherVehicle.ZicheMotherinlaw, InMotherVehicle.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | else if (getStackerObject.RGVCurrentlocation == RGVTaskdevice.WaitmomentTwo) //éè¦å¤æ3å··éæ¯è½¦æ¯å¦å¨åè´§ç«å° |
| | |
| | | } |
| | | else |
| | | { |
| | | RGVMovetask(Muche.ZicheMotherinlaw, Muche.ChildPosiDeviceCode); //å¦ææ²¡æä»»å¡ï¼åå¯ä»¥è¿è¡ç§»å¨åºæ¥ |
| | | //夿æ¯è½¦æ¯å¦æä»»å¡ |
| | | Dt_Task _Task1 = _taskService.MothermacTask(Muche.ChildPosiDeviceCode); |
| | | if (_Task1 == null) |
| | | { |
| | | RGVMovetask(Muche.ZicheMotherinlaw, Muche.ChildPosiDeviceCode); //å¦ææ²¡æä»»å¡ï¼åå¯ä»¥è¿è¡ç§»å¨åºæ¥ |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | Dt_Task task = _taskService.MothermachinemovementTask2(Muche2.ChildPosiDeviceCode); //è·åå°æ¯è½¦ç§»å¨ä»»å¡ |
| | | if (task == null) |
| | | { |
| | | RGVMovetask(Muche2.ZicheMotherinlaw, Muche2.ChildPosiDeviceCode); //å¦ææ²¡æä»»å¡ï¼åå¯ä»¥è¿è¡ç§»å¨åºæ¥ |
| | | Dt_Task _Task1 = _taskService.MothermacTask(Muche2.ChildPosiDeviceCode); |
| | | if (_Task1 == null) |
| | | { |
| | | RGVMovetask(Muche2.ZicheMotherinlaw, Muche2.ChildPosiDeviceCode); //å¦ææ²¡æä»»å¡ï¼åå¯ä»¥è¿è¡ç§»å¨åºæ¥ |
| | | } |
| | | |
| | | } |
| | | } |
| | | return null; |
| | |
| | | AGVStation Muche2 = _agvStationService.GetMothervehicle(aGVStation.MotherCardeputy); //å
ä¾§æ¯è½¦ |
| | | int mucheaddre2 = GetDeviceAddress.GetEquipmentlocation(Muche2.ChildPosiDeviceCode); |
| | | |
| | | if ((neizichecurraddres == neiziche.WaitmomentOne || neizichecurraddres == neiziche.WaitmomentTwo) && task == null && mucheaddre1 == Muche.Motherinlaw && mucheaddre2 == Muche2.Motherinlaw) |
| | | if ((neizichecurraddres == neiziche.WaitmomentOne || neizichecurraddres == neiziche.WaitmomentTwo) && task == null && neizichecurraddres != neiziche.HCJStorageaddress && mucheaddre1 == Muche.Motherinlaw && mucheaddre2 == Muche2.Motherinlaw) |
| | | { |
| | | return _Task; |
| | | } |
| | |
| | | => Findshippingtask(RGVTaskdevice, getStackerObject.RGVCurrentlocation), //å车åè´§åï¼è¿è¡æ¾è´§ï¼å·²å®æï¼ |
| | | |
| | | ((int)RGVEquipment.OutRGVForklift, RgvEquipmentStatus.NoCargo) |
| | | => OutboundGateVehicle(RGVTaskdevice), //åºåºå£RGVåè´§ï¼å·²å®æï¼ |
| | | => OutboundGateVehicle(RGVTaskdevice), //åºåºå£RGVåè´§ï¼å·²å®æï¼ |
| | | |
| | | ((int)RGVEquipment.OutRGVForklift, RgvEquipmentStatus.HasCargo) |
| | | => _taskService.GetOutkouFinhuoTask(RGVTaskdevice.ChildPosiDeviceCode, |
| | |
| | | Dt_Task Muche2Task = _taskService.ObtainMuChetask(ZicheinnerSide.MotherCardeputy.ToString()); |
| | | if (Muche2Task == null) return null; |
| | | |
| | | //è·åå车æ¯å¦æä»»å¡ |
| | | Dt_Task zicheTASK = _taskService.GetChariotTaskBool(ZicheinnerSide.ChildPosiDeviceCode); |
| | | if (zicheTASK != null) return null; |
| | | |
| | | //è·å2å··éå车æ¯å¦æä»»å¡ |
| | | var muche1 = _agvStationService.GetMothervehicle(ZicheinnerSide.MotherCarDeviceCode); |
| | | Dt_Task Muche1 = _taskService.GetChariotTaskBool(muche1.ChildPosiDeviceCode.ToString()); |
| | | if(Muche1!=null) return null; |
| | | |
| | | return Muche2Task; |
| | | } |
| | |
| | | Dt_Task Muche3Task = _taskService.ObtainMuChetask(ZicheinnerSide.MotherCarDeviceCode.ToString()); |
| | | if (Muche3Task == null) return null; |
| | | |
| | | //夿å车æ¯å¦ææéè¦åè´§çä»»å¡ |
| | | Dt_Task zicheTASK = _taskService.GetChariotTaskBool(ZicheinnerSide.ChildPosiDeviceCode); |
| | | //夿å车æ¯å¦æè¦åHCJä»»å¡ |
| | | Dt_Task zicheTASK = _taskService.GetHCJTaskBool(ZicheinnerSide.ChildPosiDeviceCode, ZicheinnerSide.HCJStorageaddress); |
| | | if (zicheTASK != null) return null; |
| | | |
| | | if (curraddZiChe == ZicheinnerSide.WaitmomentTwo || curraddZiChe == ZicheinnerSide.WaitmomentOne) |
| | | { |
| | | return Muche3Task; |
| | | } |
| | | return null; |
| | | return Muche3Task; |
| | | } |
| | | public Dt_Task? OutboundSideAisle4(int curraddZiChe, AGVStation ZicheinnerSide) |
| | | { |
| | |
| | | Dt_Task Muche4Task = _taskService.ObtainMuChetask(ZicheinnerSide.MotherCardeputy.ToString()); |
| | | if (Muche4Task == null) return null; |
| | | |
| | | //夿æ¯å¦æéè¦åHCJçä»»å¡ |
| | | Dt_Task zicheTASK = _taskService.GetChariotTaskBool(ZicheinnerSide.ChildPosiDeviceCode); |
| | | if (zicheTASK != null) return null; |
| | | |
| | | if (curraddZiChe == ZicheinnerSide.WaitmomentOne) |
| | | { |
| | | //夿3巷鿝妿åºåºçä»»å¡ |
| | | var muche3 = _agvStationService.GetMothervehicle(ZicheinnerSide.MotherCarDeviceCode); |
| | | Dt_Task muchetask = _taskService.OutMothermaTask(muche3.ChildPosiDeviceCode); |
| | | if (muchetask != null) return null; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | if ( || curraddZiChe == ZicheinnerSide.WaitmomentTwo) |
| | | { |
| | | return Muche4Task; |
| | | } |
| | | return null; |
| | | return Muche4Task; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | if (muche2addres == muchestation.Motherinlaw) |
| | | { |
| | | return dtTasks; |
| | | } |
| | | else |
| | | { |
| | | //妿æ¯è½¦æ è´§ï¼åä¸å°éé¢å» |
| | | bool NoCargobool = GetDeviceAddress.Mucheywhaddres(muchestation.ChildPosiDeviceCode); |
| | | if (NoCargobool) |
| | | { |
| | | //ä¸åæ¯è½¦ç§»å¨ä»»å¡ |
| | | RGVMovetask(muchestation.Motherinlaw, muchestation.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | return dtTasks; |
| | | } |
| | | else |
| | | { |
| | | //妿æ¯è½¦æ è´§ï¼åä¸å°éé¢å» |
| | | bool NoCargobool = GetDeviceAddress.Mucheywhaddres(muchestation.ChildPosiDeviceCode); |
| | | if (NoCargobool) |
| | | { |
| | | //ä¸åæ¯è½¦ç§»å¨ä»»å¡ |
| | | RGVMovetask(muchestation.Motherinlaw, muchestation.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | var mu2rgv = _agvStationService.GetMothervehicle(GdZiche.MotherCardeputy); |
| | | int mu2 = GetDeviceAddress.GetEquipmentlocation(mu2rgv.ChildPosiDeviceCode); |
| | | |
| | | //éè¦å¤ææ¯è½¦æ¯å¦æè´§ï¼æ è´§å䏿¹è³ç§»å¨ä»»å¡ |
| | | bool NoCargobool = GetDeviceAddress.Mucheywhaddres(mu1rgv.ChildPosiDeviceCode); |
| | | if (NoCargobool) |
| | | { |
| | | //ä¸åæ¯è½¦ç§»å¨ä»»å¡ |
| | | RGVMovetask(mu1rgv.Motherinlaw, mu1rgv.ChildPosiDeviceCode); |
| | | } |
| | | |
| | | |
| | | bool NoCargobool2 = GetDeviceAddress.Mucheywhaddres(mu2rgv.ChildPosiDeviceCode); |
| | | if (NoCargobool2) |
| | | { |
| | | //ä¸åæ¯è½¦ç§»å¨ä»»å¡ |
| | | RGVMovetask(mu2rgv.Motherinlaw, mu2rgv.ChildPosiDeviceCode); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | if (mu1 == mu1rgv.Motherinlaw && mu2 == mu2rgv.Motherinlaw) |
| | | { |
| | |
| | | int mucboject4 = GetDeviceAddress.GetEquipmentlocation(muchestation2.ChildPosiDeviceCode); |
| | | if (mucboject4 == muchestation2.Motherinlaw) |
| | | { |
| | | return task; |
| | | //夿å车æ¯å¦æåè´§ä»»å¡ |
| | | Dt_Task chachetask = _taskService.ChacheGetFinhuoTask("RGV118"); |
| | | if(chachetask == null) |
| | | { |
| | | return task; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | GetStackerObject getStackerObject = GetDeviceAddress.GetChildDeviceCode(zichestation.ChildPosiDeviceCode); |
| | | |
| | | if (getStackerObject.StaclerkJobJobStatusValue != RGV_Rgvtaskstutas.Executing && getStackerObject.RgvCraneAutoStatusValue == RgvCraneAutoStatus.Automatic |
| | | && (getStackerObject.RGVCurrentlocation == zichestation.WaitmomentOne || getStackerObject.RGVCurrentlocation == zichestation.WaitmomentTwo) && getStackerObject.RGVCurrentlocation != zichestation.ZicheMotherinlaw) |
| | | && (getStackerObject.RGVCurrentlocation == zichestation.WaitmomentOne || getStackerObject.RGVCurrentlocation == zichestation.WaitmomentTwo || getStackerObject.RGVCurrentlocation==1171) && getStackerObject.RGVCurrentlocation != zichestation.ZicheMotherinlaw) |
| | | { |
| | | RGVMovetask(GdZiche.Motherinlaw, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentOne, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | | else if (GdZiche.MotherCardeputy == RGVCurrentlocation && RGVCurrentlocation == 1171) |
| | | else if (GdZiche.MotherCardeputy == RGVCurrentlocation || RGVCurrentlocation == 1171) |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentTwo, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | |
| | | { |
| | | if (GdZiche.Station_Area == 5) |
| | | { |
| | | if (GdZiche.MotherCarDeviceCode == RGVCurrentlocation || GdZiche.HCJStorageaddress == RGVCurrentlocation) |
| | | Dt_Task task = _taskService.GetChariotTaskBool(GdZiche.ChildPosiDeviceCode); |
| | | if (task == null && RgvCraneStatusValue == (int)RgvEquipmentStatus.NoCargo) |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentOne, GdZiche.ChildPosiDeviceCode); |
| | | if (GdZiche.MotherCarDeviceCode == RGVCurrentlocation || GdZiche.HCJStorageaddress == RGVCurrentlocation) |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentOne, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | | else if (GdZiche.MotherCardeputy == RGVCurrentlocation) |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentTwo, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | else if (GdZiche.MotherCardeputy == RGVCurrentlocation) |
| | | { |
| | | RGVMovetask(GdZiche.WaitmomentTwo, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | } |
| | | }else if(task != null && RgvCraneStatusValue == (int)RgvEquipmentStatus.NoCargo) |
| | | { |
| | | if (GdZiche.HCJStorageaddress == RGVCurrentlocation) |
| | | { |
| | | //妿å¨2å··éçæ¯è½¦ï¼åå¯ä»¥æ¾å车æ¥1å·çå¾
ç¹ï¼å¦æå¨HCJåå¯ä»¥è®©å车å»2å· |
| | | RGVMovetask(GdZiche.WaitmomentTwo, GdZiche.ChildPosiDeviceCode); |
| | | } |
| | | } |
| | | } |
| | | } |