|
@ -43,43 +43,50 @@ public class PipetteCtrlDriver { |
|
|
final Integer overtime = 10000; |
|
|
final Integer overtime = 10000; |
|
|
|
|
|
|
|
|
static class FnOrder { |
|
|
static class FnOrder { |
|
|
public static final int zMotorEnable = 1; |
|
|
|
|
|
public static final int moduleStop = 2; |
|
|
|
|
|
public static final int zMotorMoveZeroBlock = 3; |
|
|
|
|
|
public static final int zMotorMoveToZeroPointQuickBlock = 4; |
|
|
|
|
|
public static final int zMotorMoveByBlock = 5; |
|
|
|
|
|
public static final int zMotorMoveToBlock = 6; |
|
|
|
|
|
public static final int zMotorMeasureDistance = 7; |
|
|
|
|
|
public static final int zMotorReadMeasureDistanceResult = 8; |
|
|
|
|
|
public static final int initDeviceBlock = 9; |
|
|
|
|
|
public static final int putTipBlock = 11; |
|
|
|
|
|
public static final int setStartZ = 12; |
|
|
|
|
|
public static final int setEndZ = 12; |
|
|
|
|
|
public static final int setLldType = 13; |
|
|
|
|
|
public static final int setLldCThreshold = 14; |
|
|
|
|
|
public static final int setLldPThreshold = 15; |
|
|
|
|
|
public static final int lldPrepareBlock = 16; |
|
|
|
|
|
public static final int lldBlock = 17; |
|
|
|
|
|
public static final int lldCalibrationBlock = 18; |
|
|
|
|
|
public static final int lldIsDetectLiquid = 19; |
|
|
|
|
|
public static final int getSensorSampleData = 20; |
|
|
|
|
|
public static final int readCapacitance = 21; |
|
|
|
|
|
public static final int aspiratePrepareBlock = 22; |
|
|
|
|
|
public static final int aspirateSetLlfVelocity = 23; |
|
|
|
|
|
public static final int aspirateSetOperationVerifPThre = 24; |
|
|
|
|
|
public static final int aspirateSetOperationVerifEigenTime = 25; |
|
|
|
|
|
public static final int aspirateSetOperationVerifTolerance = 26; |
|
|
|
|
|
public static final int aspirateBlock = 27; |
|
|
|
|
|
public static final int aspirateAndVerifyBlock = 27; |
|
|
|
|
|
public static final int shakeUpBlock = 28; |
|
|
|
|
|
public static final int aspirateInferPressureBlock = 29; |
|
|
|
|
|
public static final int aspirateInferEigenTimeBlock = 30; |
|
|
|
|
|
public static final int getAspirateInferPressureResult = 31; |
|
|
|
|
|
public static final int getAspirateInferEigenTimeResultBlock = 32; |
|
|
|
|
|
public static final int zAixsZeroPointIsTrigger = 33; |
|
|
|
|
|
public static final int setReg = 34; |
|
|
|
|
|
public static final int getReg = 35; |
|
|
|
|
|
public static final int getAllRegs = 36; |
|
|
|
|
|
|
|
|
public static final int zMotorEnable = 1; |
|
|
|
|
|
public static final int moduleStop = 2; |
|
|
|
|
|
public static final int zMotorMoveZeroBlock = 3; |
|
|
|
|
|
public static final int zMotorMoveToZeroPointQuickBlock = 4; |
|
|
|
|
|
public static final int zMotorMoveByBlock = 5; |
|
|
|
|
|
public static final int zMotorMoveToBlock = 6; |
|
|
|
|
|
public static final int zMotorMeasureDistance = 7; |
|
|
|
|
|
public static final int zMotorReadMeasureDistanceResult = 8; |
|
|
|
|
|
public static final int initDeviceBlock = 9; |
|
|
|
|
|
public static final int putTipBlock = 11; |
|
|
|
|
|
|
|
|
|
|
|
public static final int setLLDStartZ = 20; |
|
|
|
|
|
public static final int setLLDEndZ = 21; |
|
|
|
|
|
public static final int setLldType = 22; |
|
|
|
|
|
public static final int setLldCThreshold = 23; |
|
|
|
|
|
public static final int setLldPThreshold = 24; |
|
|
|
|
|
public static final int lldPrepareBlock = 25; |
|
|
|
|
|
public static final int lldBlock = 26; |
|
|
|
|
|
public static final int lldCalibrationBlock = 27; |
|
|
|
|
|
public static final int lldIsDetectLiquid = 28; |
|
|
|
|
|
public static final int getSensorSampleData = 29; |
|
|
|
|
|
public static final int readCapacitance = 30; |
|
|
|
|
|
|
|
|
|
|
|
public static final int aspiratePrepareBlock = 30; |
|
|
|
|
|
public static final int aspirateSetLlfVelocity = 31; |
|
|
|
|
|
public static final int setLlfStartZ = 32; |
|
|
|
|
|
public static final int setLlfEndZ = 33; |
|
|
|
|
|
public static final int aspirateSetOperationVerifPThre = 34; |
|
|
|
|
|
public static final int aspirateSetOperationVerifEigenTime = 35; |
|
|
|
|
|
public static final int aspirateSetOperationVerifTolerance = 36; |
|
|
|
|
|
public static final int aspirateBlock = 37; |
|
|
|
|
|
public static final int aspirateAndVerifyBlock = 38; |
|
|
|
|
|
public static final int shakeUpBlock = 39; |
|
|
|
|
|
public static final int aspirateInferPressureBlock = 40; |
|
|
|
|
|
public static final int aspirateInferEigenTimeBlock = 41; |
|
|
|
|
|
public static final int getAspirateInferPressureResult = 42; |
|
|
|
|
|
public static final int getAspirateInferEigenTimeResultBlock = 43; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final int zAixsZeroPointIsTrigger = 50; |
|
|
|
|
|
|
|
|
|
|
|
public static final int setReg = 100; |
|
|
|
|
|
public static final int getReg = 101; |
|
|
|
|
|
public static final int getAllRegs = 102; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@PostConstruct |
|
|
@PostConstruct |
|
@ -148,16 +155,16 @@ public class PipetteCtrlDriver { |
|
|
pipetteInitDeviceBlock(); |
|
|
pipetteInitDeviceBlock(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLDAndLLF起始位置", order = FnOrder.setStartZ) |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLD起始位置", order = FnOrder.setLLDStartZ) |
|
|
public void setStartZ(Integer startZ) throws AppException { |
|
|
public void setStartZ(Integer startZ) throws AppException { |
|
|
log.info("setStartZ:{}", startZ); |
|
|
log.info("setStartZ:{}", startZ); |
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_set_startz.toInt(), startZ); |
|
|
|
|
|
|
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_set_lld_startz.toInt(), startZ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLDAndLLF结束位置", order = FnOrder.setEndZ) |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLD结束位置", order = FnOrder.setLLDEndZ) |
|
|
public void setEndZ(Integer endZ) throws AppException { |
|
|
public void setEndZ(Integer endZ) throws AppException { |
|
|
log.info("setEndZ:{}", endZ); |
|
|
log.info("setEndZ:{}", endZ); |
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_set_endz.toInt(), endZ); |
|
|
|
|
|
|
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_set_lld_endz.toInt(), endZ); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLD类型", order = FnOrder.setLldType) |
|
|
@ExtApiFn(name = "设置LLD类型", order = FnOrder.setLldType) |
|
@ -247,6 +254,18 @@ public class PipetteCtrlDriver { |
|
|
public void aspirateSetLlfVelocity(Integer llf_zm_rpm) throws AppException { |
|
|
public void aspirateSetLlfVelocity(Integer llf_zm_rpm) throws AppException { |
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_aspirate_set_llf_velocity.toInt(), llf_zm_rpm); |
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.pipette_aspirate_set_llf_velocity.toInt(), llf_zm_rpm); |
|
|
} |
|
|
} |
|
|
|
|
|
// kpipette_set_llf_startz |
|
|
|
|
|
//kpipette_set_llf_endz |
|
|
|
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLF起始位置", order = FnOrder.setLlfStartZ) |
|
|
|
|
|
public void setLlfStartZ(Integer startZ) throws AppException { |
|
|
|
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.kpipette_set_llf_startz.toInt(), startZ); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置LLF结束位置", order = FnOrder.setLlfEndZ) |
|
|
|
|
|
public void setLlfEndZ(Integer endZ) throws AppException { |
|
|
|
|
|
canBusService.callcmd(MId.PipetteMod.toInt(), CmdId.kpipette_set_llf_endz.toInt(), endZ); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ExtApiFn(name = "设置操作验证压力阈值", order = FnOrder.aspirateSetOperationVerifPThre) |
|
|
@ExtApiFn(name = "设置操作验证压力阈值", order = FnOrder.aspirateSetOperationVerifPThre) |
|
|
public void aspirateSetOperationVerifPThre(Integer p_thre) throws AppException { |
|
|
public void aspirateSetOperationVerifPThre(Integer p_thre) throws AppException { |
|
|