| | |
| | | bool sendFlag = commonStackerCrane.SendCommand(stackerCraneTaskCommand); |
| | | if (sendFlag) |
| | | { |
| | | var isWorkType = commonStackerCrane.Communicator.WriteNoRead("DB100.18.0", Convert.ToInt16(1)); |
| | | commonStackerCrane.LastTaskType = task.TaskType; |
| | | _taskService.UpdateTaskStatusToNext(task.TaskNum); |
| | | Thread.Sleep(1000); |
| | |
| | | var structs = BitConverter.GetBytes(InteractiveSignal).Reverse().ToArray().ToBoolArray(); |
| | | if (structs[0]) |
| | | { |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", 0); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", Convert.ToInt32(0)); |
| | | Thread.Sleep(1000); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", 9999); |
| | | IsWrite = conveyorLine.Communicator.WriteNoRead("DB100.0", Convert.ToInt32(9999)); |
| | | conveyorLine.Communicator.WriteNoRead("DB100.4", Convert.ToInt16(task.TaskNum)); |
| | | if (!IsWrite) |
| | | { |
| | | return; |
| | |
| | | } |
| | | |
| | | //var isWorkType = commonStackerCrane.SetValue(StackerCraneDBName.FinishConfirm, 1); |
| | | var isWorkType = commonStackerCrane.Communicator.WriteNoRead("DB100.0", 1); |
| | | var isWorkType = commonStackerCrane.Communicator.WriteNoRead("DB100.0", Convert.ToInt16(1)); |
| | | |
| | | |
| | | str = $"{commonStackerCrane.DeviceName}ãWMS|WCSä»»å¡å®æï¼ã{content.Status}{content.Message}ã,å åæºå®æä¿¡å·åå
¥ï¼ã{isWorkType}ã,ä»»å¡å·ï¼ã{e.TaskNum}ãæ¶é´ã{DateTime.Now}ãè¾é线åå
¥{IsWrite}"; |
| | |
| | | |
| | | stackerCraneTaskCommand.TaskNum = Convert.ToInt16(task.TaskNum); |
| | | stackerCraneTaskCommand.WorkType = Convert.ToInt16(1); |
| | | stackerCraneTaskCommand.StartCommand = Convert.ToInt16(1); |
| | | if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup)//夿æ¯å¦æ¯å
¥åºä»»å¡ |
| | | { |
| | | var station = _stationManagerRepository.QueryFirst(x => x.stationType == 1 && x.stationChildCode == task.CurrentAddress); |