| | |
| | | WriteLog.GetLog("è¾é线").Write($"ç«å°ç¼å·ï¼{task.TargetAddress},ä»»å¡å·ï¼{task.TaskNum},ä¿¡æ¯ï¼åå
¥è¾é线æ¸
é¤-å åæºæ¾ä¸ä¿¡å·å¤±è´¥", $"ï¼æ¾è´§ï¼è¯»å{task.TargetAddress}"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | // æ¸
é¤è¾é线 |
| | | if (PLCSignal(conveyorLine, task.TargetAddress, 0)) |
| | | { |
| | | WriteLog.GetLog("è¾é线").Write($"ç«å°ç¼å·ï¼{task.TargetAddress},ä»»å¡å·ï¼{task.TaskNum},ä¿¡æ¯ï¼åå
¥è¾é线æ¸
é¤-å åæºæ¾ä¸ä¿¡å·æå", $"ï¼æ¾è´§ï¼è¯»å{task.TargetAddress}"); |
| | | } |
| | | else |
| | | { |
| | | WriteLog.GetLog("è¾é线").Write($"ç«å°ç¼å·ï¼{task.TargetAddress},ä»»å¡å·ï¼{task.TaskNum},ä¿¡æ¯ï¼åå
¥è¾é线æ¸
é¤-å åæºæ¾ä¸ä¿¡å·å¤±è´¥", $"ï¼æ¾è´§ï¼è¯»å{task.TargetAddress}"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | else |
| | |
| | | if (SetStacker(commonStackerCrane, deviceProDTO.DeviceProAddress, SCcrane).Status) { return true; } |
| | | } |
| | | } |
| | | if (Destinationaddress == "R01-003-041-011-01") |
| | | if (Destinationaddress == "R01-002-041-011-01") |
| | | { |
| | | DeviceProDTO? deviceProDTO = GetDeviceProDTO2(commonStackerCrane, commonStackerCrane.DeviceCode, "DeliveryPermission_Dout"); |
| | | if (deviceProDTO != null) |
| | |
| | | } |
| | | if (Destinationaddress == "R02-002-027-011-01") |
| | | { |
| | | DeviceProDTO? deviceProDTO = GetDeviceProDTO2(commonStackerCrane, commonStackerCrane.DeviceCode, "DeliveryCompletion_Din"); |
| | | DeviceProDTO? deviceProDTO = GetDeviceProDTO2(commonStackerCrane, commonStackerCrane.DeviceCode, "DeliveryCompletion_Dout"); |
| | | if (deviceProDTO != null) |
| | | { |
| | | if (SetStacker(commonStackerCrane, deviceProDTO.DeviceProAddress, SCcrane).Status) { return true; } |
| | |
| | | if (SetStacker(commonStackerCrane, deviceProDTO.DeviceProAddress, SCcrane).Status) { return true; } |
| | | } |
| | | } |
| | | if (Destinationaddress == "R01-002-043-001-01") |
| | | if (Destinationaddress == "R01-002-044-001-01") |
| | | { |
| | | DeviceProDTO? deviceProDTO = GetDeviceProDTO2(commonStackerCrane, commonStackerCrane.DeviceCode, "DeliveryCompletion_Aout"); |
| | | if (deviceProDTO != null) |