|
|
@ -235,7 +235,6 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
if (pathSpray(emitter, frontCmdId, frontCmdName, volume, pathList, movingSpeed)) |
|
|
|
return;//路径喷涂 |
|
|
|
if (i + 1 != times) { //如果不是最后一次,执行完毕后回到玻片原点 |
|
|
|
log.info("123"); |
|
|
|
latch = new CountDownLatch(2); |
|
|
|
deviceMessageHandler.setLatch(latch); |
|
|
|
if (moveX(emitter, slide[0], frontCmdId, frontCmdName)) return; |
|
|
@ -265,7 +264,6 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
if (pathSpray(emitter, frontCmdId, frontCmdName, volume, pathList, movingSpeed)) |
|
|
|
return;//路径喷涂 |
|
|
|
if (i + 1 != times) { //如果不是最后一次,执行完毕后回到玻片原点 |
|
|
|
log.info("123"); |
|
|
|
latch = new CountDownLatch(2); |
|
|
|
deviceMessageHandler.setLatch(latch); |
|
|
|
if (moveX(emitter, slide[0], frontCmdId, frontCmdName)) return; |
|
|
@ -306,7 +304,6 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
if (pathSpray(emitter, frontCmdId, frontCmdName, volume, pathList, movingSpeed)) |
|
|
|
return;//路径喷涂 |
|
|
|
if (i + 1 != times) { //如果不是最后一次,执行完毕后回到玻片原点 |
|
|
|
log.info("123"); |
|
|
|
latch = new CountDownLatch(2); |
|
|
|
deviceMessageHandler.setLatch(latch); |
|
|
|
if (moveX(emitter, slide[0], frontCmdId, frontCmdName)) return; |
|
|
@ -384,11 +381,13 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean motorXSpeedSetStatus = motorXSpeedSetResult.getBool("result"); |
|
|
|
if (!motorXSpeedSetStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "x轴电机速度设置指令执行失败", motorXSpeedSetResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object motorXSpeedSetStatus = motorXSpeedSetResult.getObj("result"); |
|
|
|
if (motorXSpeedSetStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) motorXSpeedSetStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "x轴电机速度设置指令执行失败", motorXSpeedSetResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "x轴电机速度设置指令反馈", motorXSpeedSetResult), MediaType.APPLICATION_JSON); |
|
|
|
|
|
|
@ -481,11 +480,13 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
Boolean highVoltageCloseStatus = highVoltageCloseResult.getBool("result"); |
|
|
|
if (!highVoltageCloseStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "关闭高压电指令执行失败", highVoltageCloseResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object highVoltageCloseStatus = highVoltageCloseResult.getObj("result"); |
|
|
|
if (highVoltageCloseStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) highVoltageCloseStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "关闭高压电指令执行失败", highVoltageCloseResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "关闭高压电指令反馈", highVoltageCloseResult), MediaType.APPLICATION_JSON); |
|
|
@ -541,12 +542,15 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean nozzleValveCloseCMDToDeviceResultStatus = nozzleValveCloseCMDToDeviceResult.getBool("result"); |
|
|
|
if (!nozzleValveCloseCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "关闭喷嘴阀指令执行失败", nozzleValveCloseCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object nozzleValveCloseCMDToDeviceResultStatus = nozzleValveCloseCMDToDeviceResult.getObj("result"); |
|
|
|
if (nozzleValveCloseCMDToDeviceResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) nozzleValveCloseCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "关闭喷嘴阀指令执行失败", nozzleValveCloseCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "关闭喷嘴阀指令反馈", nozzleValveCloseCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
|
} |
|
|
@ -572,11 +576,14 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean syringePumpStopCMDToDeviceResultStatus = syringePumpStopCMDToDeviceResult.getBool("result"); |
|
|
|
if (!syringePumpStopCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "停止推动注射泵指令执行失败", syringePumpStopCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
|
|
|
|
Object syringePumpStopCMDToDeviceResultStatus = syringePumpStopCMDToDeviceResult.getObj("result"); |
|
|
|
if (syringePumpStopCMDToDeviceResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) syringePumpStopCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "停止推动注射泵指令执行失败", syringePumpStopCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "停止推动注射泵指令反馈", syringePumpStopCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
@ -762,12 +769,16 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean motorXOriginResultStatus = motorXOriginResult.getBool("result"); |
|
|
|
if (!motorXOriginResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "x轴回原点指令执行失败", motorXOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
|
|
|
|
Object motorXOriginResultStatus = motorXOriginResult.getObj("result"); |
|
|
|
if (motorXOriginResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) motorXOriginResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "x轴回原点指令执行失败", motorXOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "x轴回原点指令反馈", motorXOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
|
} |
|
|
@ -795,11 +806,13 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean motorYOriginResultStatus = motorYOriginResult.getBool("result"); |
|
|
|
if (!motorYOriginResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "y轴回原点指令执行失败", motorYOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object motorYOriginResultStatus = motorYOriginResult.getObj("result"); |
|
|
|
if (motorYOriginResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) motorYOriginResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "y轴回原点指令执行失败", motorYOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "y轴回原点指令反馈", motorYOriginResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
@ -826,12 +839,15 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean threeWayValveOpenSyringePipelineCMDToDeviceResultStatus = threeWayValveOpenSyringePipelineCMDToDeviceResult.getBool("result"); |
|
|
|
if (!threeWayValveOpenSyringePipelineCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "打开三通阀喷嘴管路指令执行失败", threeWayValveOpenSyringePipelineCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object threeWayValveOpenSyringePipelineCMDToDeviceResultStatus = threeWayValveOpenSyringePipelineCMDToDeviceResult.getObj("result"); |
|
|
|
if (threeWayValveOpenSyringePipelineCMDToDeviceResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) threeWayValveOpenSyringePipelineCMDToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "打开三通阀喷嘴管路指令执行失败", threeWayValveOpenSyringePipelineCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "打开三通阀喷嘴管路指令反馈", threeWayValveOpenSyringePipelineCMDToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
|
} |
|
|
@ -857,11 +873,13 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
Boolean highVoltageOpenStatus = highVoltageOpenResult.getBool("result"); |
|
|
|
if (!highVoltageOpenStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "开启高压指令执行失败", highVoltageOpenResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object highVoltageOpenStatus = highVoltageOpenResult.getObj("result"); |
|
|
|
if (highVoltageOpenStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) highVoltageOpenStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "开启高压指令执行失败", highVoltageOpenResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "开启高压指令反馈", highVoltageOpenResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
@ -889,12 +907,15 @@ public class MatrixSprayStart implements CommandHandler { |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
Boolean motorZPositionSetDownCmdToDeviceResultStatus = motorZPositionSetDownCmdToDeviceResult.getBool("result"); |
|
|
|
if (!motorZPositionSetDownCmdToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "移动z轴到指定位指令执行失败", motorZPositionSetDownCmdToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
Object motorZPositionSetDownCmdToDeviceResultStatus = motorZPositionSetDownCmdToDeviceResult.getObj("result"); |
|
|
|
if (motorZPositionSetDownCmdToDeviceResultStatus instanceof Boolean) { |
|
|
|
if (!(Boolean) motorZPositionSetDownCmdToDeviceResultStatus) { |
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.ERROR, "移动z轴到指定位指令执行失败", motorZPositionSetDownCmdToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
emitter.complete(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.send(FrontCommandAck.backstageAck(frontCmdId, frontCmdName, CommandStatus.RESULT, "移动z轴到指定位指令反馈", motorZPositionSetDownCmdToDeviceResult), MediaType.APPLICATION_JSON); |
|
|
|
return false; |
|
|
|
} |
|
|
|