|  |  |  | 
|---|
|  |  |  | Short distCode = Short.parseShort(basDevp.getQrCodeValue());//提升机口站点二维码 | 
|---|
|  |  |  | Short runDirection = ShuttleRunDirection.BOTTOM.id;//运行方向 | 
|---|
|  |  |  | //获取命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, runDirection, startCode, 1400, 1000); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(startCode, distCode, 1400, runDirection, startCode, 1400, 500); | 
|---|
|  |  |  | commands.add(0, moveCommand);//将该指令添加到队头 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | assignCommand.setCommands(commands); | 
|---|
|  |  |  | 
|---|
|  |  |  | Short endStartCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //增加移动进提升机命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, endStartCode, 1400, 1000); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, endStartCode, 1400, 500); | 
|---|
|  |  |  | commands.add(moveCommand); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //分配目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | Short endStartCode = Short.parseShort(basDevp.getQrCodeValue());//站点二维码 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //增加移动进提升机命令 | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, endStartCode, 1400, 1000); | 
|---|
|  |  |  | ShuttleCommand moveCommand = shuttleThread.getMoveCommand(endStartCode, liftProtocol.getBarcode(), 1400, ShuttleRunDirection.TOP.id, endStartCode, 1400, 500); | 
|---|
|  |  |  | commands.add(moveCommand); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //目标库位 | 
|---|
|  |  |  | 
|---|
|  |  |  | * 正常移动命令,默认移动速度1000 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public ShuttleCommand getMoveCommand(Short startCodeNum, Short distCodeNum, Integer startToDistDistance, Short runDirection, Short middleCodeNum, Integer middleToDistDistance) { | 
|---|
|  |  |  | return getMoveCommand(startCodeNum, distCodeNum, startToDistDistance, runDirection, middleCodeNum, middleToDistDistance, 1000); | 
|---|
|  |  |  | return getMoveCommand(startCodeNum, distCodeNum, startToDistDistance, runDirection, middleCodeNum, middleToDistDistance, 500); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|