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
67 lines
1.8 KiB
package com.iflytop.sgs.common.service;
|
|
|
|
import com.iflytop.sgs.hardware.exception.HardwareException;
|
|
import com.iflytop.sgs.hardware.type.IO.InputIOMId;
|
|
import com.iflytop.sgs.hardware.type.Servo.LeisaiServoMId;
|
|
import com.iflytop.sgs.hardware.type.StepMotor.StepMotorMId;
|
|
import com.iflytop.sgs.hardware.type.driver.HeaterRodSlavedId;
|
|
import com.iflytop.sgs.hardware.type.driver.LiquidValveMId;
|
|
|
|
public interface GDDeviceStatusService {
|
|
|
|
/**
|
|
* 获取步进电机的原点状态
|
|
* @param stepMotorMId
|
|
* @return true 在原点 false 不在原点
|
|
*/
|
|
Boolean stepMotorIsOrigin(StepMotorMId stepMotorMId) throws HardwareException;
|
|
|
|
/**
|
|
* 获取XY 伺服的原点状态
|
|
* @param mid
|
|
* @return
|
|
* @throws HardwareException
|
|
*/
|
|
Boolean getXYServoIsOrigin(LeisaiServoMId mid) throws HardwareException;
|
|
|
|
|
|
/**
|
|
* 获取 传感器信号
|
|
* @param inputIOMId
|
|
* @return
|
|
* @throws HardwareException
|
|
*/
|
|
Boolean getInputState(String inputIOMId) throws HardwareException;
|
|
|
|
/**
|
|
* 获取加热棒温度
|
|
* @param heaterRodSlavedId
|
|
* @return
|
|
* @throws Exception
|
|
*/
|
|
Double getHeaterRodTemperature(String heaterRodSlavedId) throws Exception;
|
|
|
|
/**
|
|
* 获取电机位置
|
|
* @param stepMotorMId
|
|
* @return
|
|
* @throws HardwareException
|
|
*/
|
|
Double getStepMotorPostion(String stepMotorMId) throws HardwareException;
|
|
|
|
/**
|
|
* 获取伺服类电机位置
|
|
* @param mid
|
|
* @return
|
|
* @throws HardwareException
|
|
*/
|
|
Double getXYServoPosition(String mid) throws HardwareException;
|
|
|
|
/**
|
|
* 获取液体阀门位置
|
|
* @param mid
|
|
* @return
|
|
* @throws HardwareException
|
|
*/
|
|
public Integer readLiquidValvePosition(String mid) throws HardwareException;
|
|
}
|