西铁院屏蔽门

This commit is contained in:
joylink_zhangsai 2022-06-13 17:24:06 +08:00
parent ebfb324072
commit d57c2f6c58

View File

@ -69,7 +69,7 @@ public class XtyPsdServiceImpl implements RealDeviceService {
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
configVO.getWbi(), cv, wvgm, plcGateway.getChannel()); configVO.getWbi(), cv, wvgm, plcGateway.getChannel());
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
configVO.getWbi(), cv, wvkm, plcGateway.getChannel()); configVO.getWbi(), cv -1 , wvkm, plcGateway.getChannel());
} }
} else if(autoMode && !vrPsd.isCommandOpen() && (cv & wvgm) != wvgm){ // 关门 } else if(autoMode && !vrPsd.isCommandOpen() && (cv & wvgm) != wvgm){ // 关门
if ((cv & wvgm) != wvgm) { if ((cv & wvgm) != wvgm) {
@ -79,7 +79,7 @@ public class XtyPsdServiceImpl implements RealDeviceService {
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
configVO.getWbi(), cv, wvkm, plcGateway.getChannel()); configVO.getWbi(), cv, wvkm, plcGateway.getChannel());
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
configVO.getWbi(), cv, wvgm, plcGateway.getChannel()); configVO.getWbi(), cv -1, wvgm, plcGateway.getChannel());
} }
} }
} }