diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/xty/XtyPsdServiceImpl.java b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/xty/XtyPsdServiceImpl.java index 17841e22d..58cef650b 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/xty/XtyPsdServiceImpl.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/xty/XtyPsdServiceImpl.java @@ -69,7 +69,7 @@ public class XtyPsdServiceImpl implements RealDeviceService { this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), configVO.getWbi(), cv, wvgm, plcGateway.getChannel()); 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){ // 关门 if ((cv & wvgm) != wvgm) { @@ -79,7 +79,7 @@ public class XtyPsdServiceImpl implements RealDeviceService { this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), configVO.getWbi(), cv, wvkm, plcGateway.getChannel()); this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(), - configVO.getWbi(), cv, wvgm, plcGateway.getChannel()); + configVO.getWbi(), cv -1, wvgm, plcGateway.getChannel()); } } }