C6 不拍照

camera_merge
王一鸣 5 years ago
parent 42f49d70d9
commit 2fa8455e7e

@ -96,9 +96,6 @@ public class MyProtocolDecoder extends FixedLengthFrameDecoder {
}else { }else {
plcService.action(plcOrderInfo, plcId, 1, code); plcService.action(plcOrderInfo, plcId, 1, code);
} }
} else if (type.equals("0D")) { } else if (type.equals("0D")) {
log.info(" warn code:{}", code); log.info(" warn code:{}", code);
if ("D0".equals(code)) { if ("D0".equals(code)) {

@ -51,6 +51,11 @@ public class PlcService {
@Resource @Resource
private CameraIOMapper ioMapper; private CameraIOMapper ioMapper;
/**
*
*/
private static String originalPoint = "C6";
public Integer plcStatus(){ public Integer plcStatus(){
List<Street> streets = streetMapper.selectByMap(new HashMap<>(0)); List<Street> streets = streetMapper.selectByMap(new HashMap<>(0));
List<Integer> connIds = StreetConn.connList(); List<Integer> connIds = StreetConn.connList();
@ -115,18 +120,18 @@ public class PlcService {
log.error("异常的任务次数orderInfo:{},plcId:{},time:{}",plcOrderInfo.toString(),plcId,times); log.error("异常的任务次数orderInfo:{},plcId:{},time:{}",plcOrderInfo.toString(),plcId,times);
return; return;
} }
if(true){ //找到球机IO配置的预置点
//找到球机IO配置的预置点 if(!originalPoint.equals(code)){
if(!"C6".equals(code)){ if(leftRight == 1){
if(leftRight == 1){ code = code+"-L";
code = code+"-L"; }else if(leftRight == 2){
}else if(leftRight == 2){ code = code+"-R";
code = code+"-R";
}
} }
log.info("预置点:{}",code); }
log.info("预置点:{}",code);
move(street.getCamera1Id(),street.getCamera2Id(),code); move(street.getCamera1Id(),street.getCamera2Id(),code);
if(originalPoint.equals(code)){
return;
} }
//2 得到相应的货架号(目前订单 只支持单伸货架) //2 得到相应的货架号(目前订单 只支持单伸货架)
//todo 后面可能会有双伸这里要改plc那里也要改 //todo 后面可能会有双伸这里要改plc那里也要改

Loading…
Cancel
Save