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.

67 lines
1.8 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. import com.iflytop.sgs.hardware.type.driver.LiquidValveMId;
  8. public interface GDDeviceStatusService {
  9. /**
  10. * 获取步进电机的原点状态
  11. * @param stepMotorMId
  12. * @return true 在原点 false 不在原点
  13. */
  14. Boolean stepMotorIsOrigin(StepMotorMId stepMotorMId) throws HardwareException;
  15. /**
  16. * 获取XY 伺服的原点状态
  17. * @param mid
  18. * @return
  19. * @throws HardwareException
  20. */
  21. Boolean getXYServoIsOrigin(LeisaiServoMId mid) throws HardwareException;
  22. /**
  23. * 获取 传感器信号
  24. * @param inputIOMId
  25. * @return
  26. * @throws HardwareException
  27. */
  28. Boolean getInputState(String inputIOMId) throws HardwareException;
  29. /**
  30. * 获取加热棒温度
  31. * @param heaterRodSlavedId
  32. * @return
  33. * @throws Exception
  34. */
  35. Double getHeaterRodTemperature(String heaterRodSlavedId) throws Exception;
  36. /**
  37. * 获取电机位置
  38. * @param stepMotorMId
  39. * @return
  40. * @throws HardwareException
  41. */
  42. Double getStepMotorPostion(String stepMotorMId) throws HardwareException;
  43. /**
  44. * 获取伺服类电机位置
  45. * @param mid
  46. * @return
  47. * @throws HardwareException
  48. */
  49. Double getXYServoPosition(String mid) throws HardwareException;
  50. /**
  51. * 获取液体阀门位置
  52. * @param mid
  53. * @return
  54. * @throws HardwareException
  55. */
  56. public Integer readLiquidValvePosition(String mid) throws HardwareException;
  57. }