[bug]成都工业实体信号机黄灯、绿灯控制逻辑不对
This commit is contained in:
parent
8125e32d7e
commit
4cd80bbec5
|
@ -138,7 +138,8 @@ public class CgySignalServiceImpl implements RealDeviceService {
|
||||||
channel);
|
channel);
|
||||||
break;
|
break;
|
||||||
case G:
|
case G:
|
||||||
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj, true,
|
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj,
|
||||||
|
false,
|
||||||
channel);
|
channel);
|
||||||
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
|
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
|
||||||
channel);
|
channel);
|
||||||
|
@ -150,7 +151,7 @@ public class CgySignalServiceImpl implements RealDeviceService {
|
||||||
break;
|
break;
|
||||||
case Y:
|
case Y:
|
||||||
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj,
|
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_ddj(), w_ddj,
|
||||||
true,
|
false,
|
||||||
channel);
|
channel);
|
||||||
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
|
plcGatewayService.checkEqualAndWriteSingleCoil(baseAddr, configVO.getW_lxj(), w_lxj, true,
|
||||||
channel);
|
channel);
|
||||||
|
|
Loading…
Reference in New Issue