|
@ -353,8 +353,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver.writing(3); |
|
|
conveyorBarcodeDeviceDriver.writing(3); |
|
|
if (conveyorBarcodeDeviceDriver.getMode() != 0 |
|
|
if (conveyorBarcodeDeviceDriver.getMode() == 2 |
|
|
&& conveyorBarcodeDeviceDriver.getMove() != 0 |
|
|
|
|
|
) { |
|
|
) { |
|
|
inst.setExecute_status("1"); |
|
|
inst.setExecute_status("1"); |
|
|
instructionService.update(inst); |
|
|
instructionService.update(inst); |
|
@ -592,7 +591,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver.writing(3); |
|
|
conveyorBarcodeDeviceDriver.writing(3); |
|
|
if (conveyorBarcodeDeviceDriver.getMode() != 0) { |
|
|
if (conveyorBarcodeDeviceDriver.getMode() == 2) { |
|
|
inst.setExecute_status("5"); |
|
|
inst.setExecute_status("5"); |
|
|
instructionService.update(inst); |
|
|
instructionService.update(inst); |
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
@ -855,8 +854,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
if(device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver){ |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver.writing(4); |
|
|
conveyorBarcodeDeviceDriver.writing(4); |
|
|
if (conveyorBarcodeDeviceDriver.getMode() != 0 |
|
|
if (conveyorBarcodeDeviceDriver.getMode() == 2){ |
|
|
&& conveyorBarcodeDeviceDriver.getMove() == 0){ |
|
|
|
|
|
inst.setExecute_status("3"); |
|
|
inst.setExecute_status("3"); |
|
|
instructionService.update(inst); |
|
|
instructionService.update(inst); |
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
|
data = AgvService.sendAgvOneModeInst(phase, index, 0); |
|
@ -1102,8 +1100,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic |
|
|
//标准版-下发条码输送线 需要下发条码
|
|
|
//标准版-下发条码输送线 需要下发条码
|
|
|
if (device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver) { |
|
|
if (device.getDeviceDriver() instanceof ConveyorBarcodeDeviceDriver) { |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
conveyorBarcodeDeviceDriver = (ConveyorBarcodeDeviceDriver) device.getDeviceDriver(); |
|
|
if (conveyorBarcodeDeviceDriver.getMode() != 0 |
|
|
if (conveyorBarcodeDeviceDriver.getMode() == 2){ |
|
|
&& conveyorBarcodeDeviceDriver.getMove() != 0){ |
|
|
|
|
|
inst.setExecute_status("6"); |
|
|
inst.setExecute_status("6"); |
|
|
instructionService.update(inst); |
|
|
instructionService.update(inst); |
|
|
conveyorBarcodeDeviceDriver.writing(5); |
|
|
conveyorBarcodeDeviceDriver.writing(5); |
|
|