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