|
|
|
@ -31,8 +31,8 @@ public class OrderInfo {
|
|
|
|
|
|
|
|
|
|
|
|
private Integer leftRight;
|
|
|
|
private Integer leftRight;
|
|
|
|
|
|
|
|
|
|
|
|
public OrderInfo(Street street, PlcCmdInfo plcCmdInfo, Integer times){
|
|
|
|
public OrderInfo(Street street, PlcCmdInfo plcCmdInfo, Integer times, String c) {
|
|
|
|
if(street == null){
|
|
|
|
if (street == null) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//拍照,转动 需要知道是哪个货架
|
|
|
|
//拍照,转动 需要知道是哪个货架
|
|
|
|
@ -40,34 +40,26 @@ public class OrderInfo {
|
|
|
|
//判断左右 行列号
|
|
|
|
//判断左右 行列号
|
|
|
|
|
|
|
|
|
|
|
|
isPre = true;
|
|
|
|
isPre = true;
|
|
|
|
if(times % 2 ==0){
|
|
|
|
if (times % 2 == 0) {
|
|
|
|
isPre = false;
|
|
|
|
isPre = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(times == 2 || times == 1){
|
|
|
|
if (times == 2 || times == 1) {
|
|
|
|
leftRight = plcCmdInfo.getLeftRight1();
|
|
|
|
leftRight = plcCmdInfo.getLeftRight1();
|
|
|
|
row = plcCmdInfo.getRow1();
|
|
|
|
row = plcCmdInfo.getRow1();
|
|
|
|
column = plcCmdInfo.getColumn1();
|
|
|
|
column = plcCmdInfo.getColumn1();
|
|
|
|
}else if(times == 4 || times == 3){
|
|
|
|
} else if (times == 4 || times == 3) {
|
|
|
|
leftRight = plcCmdInfo.getLeftRight2();
|
|
|
|
leftRight = plcCmdInfo.getLeftRight2();
|
|
|
|
row = plcCmdInfo.getRow2();
|
|
|
|
row = plcCmdInfo.getRow2();
|
|
|
|
column = plcCmdInfo.getColumn2();
|
|
|
|
column = plcCmdInfo.getColumn2();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//找到球机IO配置的预置点
|
|
|
|
if (leftRight == 1) {
|
|
|
|
//todo
|
|
|
|
|
|
|
|
if(!"C6".equals(code)){
|
|
|
|
|
|
|
|
if(leftRight == 1){
|
|
|
|
|
|
|
|
code = code+"-L";
|
|
|
|
|
|
|
|
}else if(leftRight == 2){
|
|
|
|
|
|
|
|
code = code+"-R";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(leftRight == 1){
|
|
|
|
|
|
|
|
shelveId = street.getLeftShelveId();
|
|
|
|
shelveId = street.getLeftShelveId();
|
|
|
|
}else {
|
|
|
|
} else {
|
|
|
|
shelveId = street.getRightShelveId();
|
|
|
|
shelveId = street.getRightShelveId();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
orderId = 0L;
|
|
|
|
orderId = 0L;
|
|
|
|
orderNum = plcCmdInfo.getOrderNum();
|
|
|
|
orderNum = plcCmdInfo.getOrderNum();
|
|
|
|
|
|
|
|
code = c;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|