LeadshineMotionCard.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using TeamAAS.Global.Devices;
  4. using TeamAAS.Motion.Models;
  5. namespace TeamAAS.Motion.Motions
  6. {
  7. public class LeadshineMotionCard : IMotionCard
  8. {
  9. private readonly MotionDeviceConfig _cfg;
  10. public string Name => _cfg.Name;
  11. public bool IsConnected { get; private set; }
  12. public int AxisCount => _cfg.AxisCount;
  13. public event EventHandler<MotionConnectionStateChangedEventArgs> ConnectionStateChanged;
  14. public event EventHandler<MotionErrorEventArgs> ErrorOccurred;
  15. public LeadshineMotionCard(MotionDeviceConfig cfg)
  16. {
  17. _cfg = cfg ?? new MotionDeviceConfig();
  18. }
  19. public bool Open() => throw new NotImplementedException();
  20. public void Close() => throw new NotImplementedException();
  21. public bool SetEnable(int axis, bool enable) => throw new NotImplementedException();
  22. public bool Home(int axis, int mode = 0) => throw new NotImplementedException();
  23. public bool IsHomed(int axis) => throw new NotImplementedException();
  24. public bool MoveAbsolute(int axis, double position, double velocity) => throw new NotImplementedException();
  25. public bool MoveRelative(int axis, double distance, double velocity) => throw new NotImplementedException();
  26. public bool JogStart(int axis, int direction, double velocity) => throw new NotImplementedException();
  27. public bool JogStop(int axis) => throw new NotImplementedException();
  28. public bool Stop(int axis = -1) => throw new NotImplementedException();
  29. public AxisStatus GetAxisStatus(int axis) => throw new NotImplementedException();
  30. public List<AxisStatus> GetAllAxisStatus() => throw new NotImplementedException();
  31. public IAxis GetAxis(int axisNo) => throw new NotImplementedException();
  32. public IList<IAxis> GetAxes() => throw new NotImplementedException();
  33. public bool MoveLinear(double[] targetPositions, double velocity) => throw new NotImplementedException();
  34. public bool MoveArc(double[] centerPoint, double[] targetPositions, double velocity) => throw new NotImplementedException();
  35. public bool EmergencyStop() => throw new NotImplementedException();
  36. public bool ReadDI(int portIndex) => throw new NotImplementedException();
  37. public bool WriteDO(int portIndex, bool value) => throw new NotImplementedException();
  38. }
  39. }