| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public override bool AllAxisOn() |
| | | { |
| | | List<Task<bool>> taskList = new List<Task<bool>>(); ; |
| | |
| | | responseMessage.Result = resultList.All(u => u == true); |
| | | if (!responseMessage.Result) |
| | | { |
| | | responseMessage.Message = $"点位运动异常"; |
| | | responseMessage.Message = $"点位运动异常,运动结果:{string.Join(" ", resultList.Select(u => u ? "1" : "0"))}"; |
| | | } |
| | | } |
| | | return responseMessage; |
| | |
| | | repeatTime--; |
| | | } |
| | | |
| | | return (ret == (short)GTSRetCode.GRCRunOK) && isStop; |
| | | if (repeatTime <= 0) |
| | | { |
| | | LogAsync(DateTime.Now, "轴" + optionPara.AxisIndex + "APS_absolute_move未停止", ""); |
| | | return false; |
| | | } |
| | | |
| | | //return (ret == (short)GTSRetCode.GRCRunOK) && isStop; |
| | | return true; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | OnExceptionOccured?.Invoke(DateTime.Now, ex); |
| | | return false; |
| | | } |
| | | finally |
| | | { |
| | | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | }); |
| | | |
| | | _positionWait.SpinOnce(); |
| | | Task.Delay(100).Wait(); |
| | | |
| | | //_positionWait.SpinOnce(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | } |
| | | }); |
| | | |
| | | _statusWait.SpinOnce(); |
| | | Thread.Sleep(10); |
| | | //Task.Delay(10).Wait(); |
| | | } |
| | | catch (Exception ex) |
| | | { |