From 8125e32d7efd14ead2fec4a41264ea226a4d9d92 Mon Sep 17 00:00:00 2001 From: thesai <1021828630@qq.com> Date: Thu, 18 Jul 2024 16:45:00 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E6=88=90=E9=83=BD=E5=B7=A5=E4=B8=9A?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E4=BF=A1=E5=8F=B7=E6=9C=BA=E9=BB=84=E7=81=AF?= =?UTF-8?q?=E3=80=81=E7=BB=BF=E7=81=AF=E6=8E=A7=E5=88=B6=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/real/modbustcp/cgy/CgySignalServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/cgy/CgySignalServiceImpl.java b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/cgy/CgySignalServiceImpl.java index bc5229e83..6ca537226 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/cgy/CgySignalServiceImpl.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/device/real/modbustcp/cgy/CgySignalServiceImpl.java @@ -64,7 +64,7 @@ public class CgySignalServiceImpl implements RealDeviceService { plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_zxj(), true, channel); break; case Y: - plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_ddj(), false, channel); + plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_ddj(), true, channel); plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_lxj(), true, channel); plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_yxj(), false, channel); plcGatewayService.writeSingleCoil(baseAddr, configVO.getW_zxj(), false, channel); @@ -138,8 +138,8 @@ public class CgySignalServiceImpl implements RealDeviceService { channel); break; case G: - plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj, - false, channel); + plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj, true, + channel); plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true, channel); plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_yxj(), w_yxj, @@ -150,7 +150,7 @@ public class CgySignalServiceImpl implements RealDeviceService { break; case Y: plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj, - false, + true, channel); plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true, channel);