焦作蜜雪球机的调用修改

焦作-mxbc-北起
LAPTOP-S9HJSOEB\昊天 2 years ago
parent c6571460da
commit bf29d89dc6

@ -608,6 +608,7 @@ public class PlcService {
if (type == 0) { if (type == 0) {
//单伸 //单伸
if (street.getCamera1Id() != null && street.getCamera2Id() != null && street.getCamera1Id() != 0 && street.getCamera2Id() != 0) { if (street.getCamera1Id() != null && street.getCamera2Id() != null && street.getCamera1Id() != 0 && street.getCamera2Id() != 0) {
//使用对侧
if (leftRight == 1) { if (leftRight == 1) {
return street.getCamera2Id(); return street.getCamera2Id();
} else { } else {
@ -650,8 +651,8 @@ public class PlcService {
Integer cameraId = getCameraByPlcCmd(plcCmdInfo, plcCmdInfo.getLeftRight1()); Integer cameraId = getCameraByPlcCmd(plcCmdInfo, plcCmdInfo.getLeftRight1());
//蜜雪冰城拍摄货物顶部时用同侧相机 //蜜雪冰城拍摄货物顶部时用同侧相机
Integer leftRightTop = plcCmdInfo.getLeftRight1() == 1 ? 2 : 1; //Integer leftRightTop = plcCmdInfo.getLeftRight1() == 1 ? 2 : 1;
Integer cameraIdTop = getCameraByPlcCmd(plcCmdInfo, leftRightTop); Integer cameraIdTop = getCameraByPlcCmd(plcCmdInfo, plcCmdInfo.getLeftRight1());
if (plcCmdInfo.getSeparation1() == 1 && configProperties.getScanCodeMode().getTray() == 2) { if (plcCmdInfo.getSeparation1() == 1 && configProperties.getScanCodeMode().getTray() == 2) {
//内测 //内测
String c = cmdCode + "-" + plcCmdInfo.getLeftRightStr(1); String c = cmdCode + "-" + plcCmdInfo.getLeftRightStr(1);

Loading…
Cancel
Save