You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

  1. package com.iflytop.sgs.common.service;
  2. import com.iflytop.sgs.hardware.exception.HardwareException;
  3. import com.iflytop.sgs.hardware.type.IO.InputIOMId;
  4. import com.iflytop.sgs.hardware.type.Servo.LeisaiServoMId;
  5. import com.iflytop.sgs.hardware.type.StepMotor.StepMotorMId;
  6. import com.iflytop.sgs.hardware.type.driver.HeaterRodSlavedId;
  7. public interface GDDeviceStatusService {
  8. /**
  9. * 获取步进电机的原点状态
  10. * @param stepMotorMId
  11. * @return true 在原点 false 不在原点
  12. */
  13. Boolean stepMotorIsOrigin(StepMotorMId stepMotorMId) throws HardwareException;
  14. /**
  15. * 获取XY 伺服的原点状态
  16. * @param mid
  17. * @return
  18. * @throws HardwareException
  19. */
  20. Boolean getXYServoIsOrigin(LeisaiServoMId mid) throws HardwareException;
  21. /**
  22. * 获取 传感器信号
  23. * @param inputIOMId
  24. * @return
  25. * @throws HardwareException
  26. */
  27. Boolean getInputState(String inputIOMId) throws HardwareException;
  28. /**
  29. * 获取加热棒温度
  30. * @param heaterRodSlavedId
  31. * @return
  32. * @throws Exception
  33. */
  34. Double getHeaterRodTemperature(String heaterRodSlavedId) throws Exception;
  35. /**
  36. * 获取电机位置
  37. * @param stepMotorMId
  38. * @return
  39. * @throws HardwareException
  40. */
  41. Double getStepMotorPostion(String stepMotorMId) throws HardwareException;
  42. /**
  43. * 获取伺服类电机位置
  44. * @param mid
  45. * @return
  46. * @throws HardwareException
  47. */
  48. Double getXYServoPosition(LeisaiServoMId mid) throws HardwareException;
  49. }