| | |
| | | { |
| | | // è·åå®å
¨é¨ä¿¡æ¯ |
| | | AQMReturnnormal aQMConveyor = AQMStoticCommand(conveyorLine, Stations.ChildPosiDeviceCode); |
| | | if(aQMConveyor != null) |
| | | { |
| | | if (aQMConveyor.SafetyLockStatus == 1) |
| | | { |
| | | //åå
¥æ¥è¦ |
| | | GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "AlarmSummary", 0); |
| | | //åå
¥å¼é¨ä¿¡å· |
| | | GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "OpenDoor", 0); |
| | | } |
| | | |
| | | if (aQMConveyor.SafetyLockStatus == 1) |
| | | { |
| | | //åå
¥æ¥è¦ |
| | | GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "AlarmSummary", 0); |
| | | //åå
¥å¼é¨ä¿¡å· |
| | | GetDeviceAddress.WriteSecurityDoorpolice(Stations.ChildPosiDeviceCode, "OpenDoor", 0); |
| | | // æ ¹æ®ä»»å¡ç±»åéæ©å¤ççç¥ |
| | | if (Stations.Station_tasktype == (int)RGVTasktype.Outbound) |
| | | { |
| | | if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.WriteOutbuttonpause(null); |
| | | HandleDoorRequest(aQMConveyor, Stations, 2); |
| | | } |
| | | else |
| | | { |
| | | if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.InWriteOutbuttonpause(null); |
| | | HandleDoorRequest(aQMConveyor, Stations, 1); |
| | | } |
| | | } |
| | | |
| | | // æ ¹æ®ä»»å¡ç±»åéæ©å¤ççç¥ |
| | | if (Stations.Station_tasktype == (int)RGVTasktype.Outbound) |
| | | { |
| | | if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.WriteOutbuttonpause(null); |
| | | HandleDoorRequest(aQMConveyor, Stations, 2); |
| | | } |
| | | else |
| | | { |
| | | if (aQMConveyor.EmergencyStopStatus == 0) _gvOperationService.InWriteOutbuttonpause(null); |
| | | HandleDoorRequest(aQMConveyor, Stations, 1); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | catch (Exception ex) |
| | |
| | | try |
| | | { |
| | | PlatformStatus aQMConveyor = StoticCommand(conveyorLine, Stations.ChildPosiDeviceCode); |
| | | if (aQMConveyor.HCJ_GoodsStatus == 0) //å¯è¿è¡æ¾è´§ |
| | | if (aQMConveyor != null) |
| | | { |
| | | WebResponseContent webResponseContent = new WebResponseContent(); |
| | | //æ ¹æ®ç±»åæ¥æ¾ä»»å¡ |
| | | if (Stations.Station_material == (int)RGVEquipment.AbnormalOutbound) |
| | | if (aQMConveyor.HCJ_GoodsStatus == 0) //å¯è¿è¡æ¾è´§ |
| | | { |
| | | //æ¥æ¾æ¯å¦æå¼å¸¸æ¬è¿ä»»å¡ |
| | | webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 1); //è¿éè¦ä¼ å
¥å°å |
| | | } |
| | | else |
| | | { |
| | | //åºåºç«å°çä»»å¡ |
| | | webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 2); |
| | | WebResponseContent webResponseContent = new WebResponseContent(); |
| | | //æ ¹æ®ç±»åæ¥æ¾ä»»å¡ |
| | | if (Stations.Station_material == (int)RGVEquipment.AbnormalOutbound) |
| | | { |
| | | //æ¥æ¾æ¯å¦æå¼å¸¸æ¬è¿ä»»å¡ |
| | | webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 1); //è¿éè¦ä¼ å
¥å°å |
| | | } |
| | | else |
| | | { |
| | | //åºåºç«å°çä»»å¡ |
| | | webResponseContent = _taskService.UpdateDeliveryAddress(Stations.HCJStorageaddress.ToString(), 2); |
| | | } |
| | | } |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | catch (Exception ex) |