[bug]成都工业实体信号机黄灯、绿灯控制逻辑不对

This commit is contained in:
thesai 2024-07-29 13:43:06 +08:00
parent 8125e32d7e
commit 4cd80bbec5

View File

@ -138,7 +138,8 @@ public class CgySignalServiceImpl implements RealDeviceService {
channel);
break;
case G:
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj, true,
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj,
false,
channel);
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
channel);
@ -150,7 +151,7 @@ public class CgySignalServiceImpl implements RealDeviceService {
break;
case Y:
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj,
true,
false,
channel);
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
channel);