|
@ -13,6 +13,7 @@ import com.iflytop.gd.app.service.device.module.*; |
|
|
import com.iflytop.gd.app.ws.server.WebSocketSender; |
|
|
import com.iflytop.gd.app.ws.server.WebSocketSender; |
|
|
import com.iflytop.gd.common.enums.AcidPumpDeviceCode; |
|
|
import com.iflytop.gd.common.enums.AcidPumpDeviceCode; |
|
|
import com.iflytop.gd.common.enums.HeatModuleCode; |
|
|
import com.iflytop.gd.common.enums.HeatModuleCode; |
|
|
|
|
|
import com.iflytop.gd.common.enums.HeatingType; |
|
|
import com.iflytop.gd.common.enums.data.DevicePositionCode; |
|
|
import com.iflytop.gd.common.enums.data.DevicePositionCode; |
|
|
import com.iflytop.gd.common.exception.AppException; |
|
|
import com.iflytop.gd.common.exception.AppException; |
|
|
import com.iflytop.gd.common.result.ResultCode; |
|
|
import com.iflytop.gd.common.result.ResultCode; |
|
@ -126,6 +127,10 @@ public class CraftsStepService { |
|
|
Double temperature = params.getDouble("temperature"); |
|
|
Double temperature = params.getDouble("temperature"); |
|
|
Integer second = params.getInt("second"); |
|
|
Integer second = params.getInt("second"); |
|
|
heatModuleService.heatRodOpen(heatModuleCode, temperature);//开始加热 |
|
|
heatModuleService.heatRodOpen(heatModuleCode, temperature);//开始加热 |
|
|
|
|
|
//达到目标温度后才算开始加热 |
|
|
|
|
|
while (deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode).getTemperature() + 1 < temperature) { |
|
|
|
|
|
delay(1); |
|
|
|
|
|
} |
|
|
delay(second); |
|
|
delay(second); |
|
|
heatModuleService.heatRodClose(heatModuleCode);//停止加热 |
|
|
heatModuleService.heatRodClose(heatModuleCode);//停止加热 |
|
|
heatModuleService.heaterMotorMove(heatModuleCode, trayLift);//抬升加热位托盘 |
|
|
heatModuleService.heaterMotorMove(heatModuleCode, trayLift);//抬升加热位托盘 |
|
|