|
|
|
|
@ -97,22 +97,17 @@ public class PlcService {
|
|
|
|
|
if(street == null){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(times == 1 || times == 3){
|
|
|
|
|
//找到球机IO配置的预置点
|
|
|
|
|
log.info("预置点:{}",code);
|
|
|
|
|
move(street.getCamera1Id(),street.getCamera2Id(),code);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//拍照 需要知道是哪个货架
|
|
|
|
|
//拍照,转动 需要知道是哪个货架
|
|
|
|
|
//1 判断是左右货架 1:左货架 2:右货架
|
|
|
|
|
//判断左右 行列号
|
|
|
|
|
Integer leftRight = 0;
|
|
|
|
|
Integer row = 0;
|
|
|
|
|
Integer column = 0;
|
|
|
|
|
if(times == 2){
|
|
|
|
|
if(times == 2 || times == 1){
|
|
|
|
|
leftRight = plcOrderInfo.getLeftRight1();
|
|
|
|
|
row = plcOrderInfo.getRow1();
|
|
|
|
|
column = plcOrderInfo.getColumn1();
|
|
|
|
|
}else if(times == 4){
|
|
|
|
|
}else if(times == 4 || times == 3){
|
|
|
|
|
leftRight = plcOrderInfo.getLeftRight2();
|
|
|
|
|
row = plcOrderInfo.getRow2();
|
|
|
|
|
column = plcOrderInfo.getColumn2();
|
|
|
|
|
@ -120,6 +115,18 @@ public class PlcService {
|
|
|
|
|
log.error("异常的任务次数,orderInfo:{},plcId:{},time:{}",plcOrderInfo.toString(),plcId,times);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(times == 1 || times == 3){
|
|
|
|
|
//找到球机IO配置的预置点
|
|
|
|
|
if(leftRight == 1){
|
|
|
|
|
code = code+"-L";
|
|
|
|
|
}else if(leftRight == 2){
|
|
|
|
|
code = code+"-R";
|
|
|
|
|
}
|
|
|
|
|
log.info("预置点:{}",code);
|
|
|
|
|
|
|
|
|
|
move(street.getCamera1Id(),street.getCamera2Id(),code);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//2 得到相应的货架号(目前订单 只支持单伸货架)
|
|
|
|
|
//todo 后面可能会有双伸,这里要改,plc那里也要改
|
|
|
|
|
String shelveId;
|
|
|
|
|
|