|
|
@ -6,7 +6,9 @@ import com.my.graphiteDigesterBg.diframe.actuator.DiActCameraBasler; |
|
|
|
import com.my.graphiteDigesterBg.diframe.actuator.DiActMotor; |
|
|
|
import com.my.graphiteDigesterBg.diframe.actuator.DiActPeristalticPump; |
|
|
|
import com.my.graphiteDigesterBg.diframe.actuator.DiActServo; |
|
|
|
import com.my.graphiteDigesterBg.diframe.model.DiMdbNotification; |
|
|
|
import com.my.graphiteDigesterBg.model.MdbOperationLog; |
|
|
|
import com.my.graphiteDigesterBg.move.MoveMoveTubeRackFromLiquidPlateToHeatPlate; |
|
|
|
import com.my.graphiteDigesterBg.resource.ResHeatingTubeRackSlotManager; |
|
|
|
@Task(name="StartReset") |
|
|
|
public class TaskStartReset extends DiTaskBase { |
|
|
@ -85,6 +87,11 @@ public class TaskStartReset extends DiTaskBase { |
|
|
|
var slotMan = this.getResourceManager(ResHeatingTubeRackSlotManager.class); |
|
|
|
slotMan.startTemperatureRefresh(); |
|
|
|
|
|
|
|
this.setProgressMessage("设备初始化 : 放入异常处理试管架"); |
|
|
|
doorMotor.reset(); // 打开设备门 |
|
|
|
DiMdbNotification.taskAction(this, "TaskStartResetErrorTubeRackPutIn"); |
|
|
|
this.waitAction("TaskStartResetErrorTubeRackPutIn"); |
|
|
|
|
|
|
|
this.setProgressMessage("设备初始化 : 完成"); |
|
|
|
runtimeVars.setString("YES","IsDeviceReady"); |
|
|
|
runtimeVars.setString("NO", "IsTaskStartResetExecuting"); |
|
|
@ -92,6 +99,24 @@ public class TaskStartReset extends DiTaskBase { |
|
|
|
this.setStatus(TaskStatus.FINISHED); |
|
|
|
} |
|
|
|
|
|
|
|
// 放入异常处理位试管架 |
|
|
|
public void actionErrorTubeRackPutIn() { |
|
|
|
var slotMan = this.getResourceManager(ResHeatingTubeRackSlotManager.class); |
|
|
|
var slot = slotMan.getErrorSlot(); |
|
|
|
|
|
|
|
// 关闭设备门 |
|
|
|
DiActMotor doorMotor = this.getActuator(MyDevice.ACT_DOOR_MOTOR, DiActMotor.class); |
|
|
|
doorMotor.moveToIO(1, 1); |
|
|
|
|
|
|
|
var move = new MoveMoveTubeRackFromLiquidPlateToHeatPlate(); |
|
|
|
move.slotIndex = slot.index; |
|
|
|
move.setDevice(this.getDevice()); |
|
|
|
move.run(); |
|
|
|
|
|
|
|
var action = this.getAction("TaskStartResetErrorTubeRackPutIn"); |
|
|
|
action.finish(); |
|
|
|
} |
|
|
|
|
|
|
|
// set progress message |
|
|
|
private void setProgressMessage(String message) { |
|
|
|
var runtimeVars = this.getDevice().getRuntimeVariables(); |
|
|
|