西铁院屏蔽门
This commit is contained in:
parent
90a6f2c916
commit
ebfb324072
@ -61,12 +61,26 @@ public class XtyPsdServiceImpl implements RealDeviceService {
|
||||
int wvgm = configVO.getWvgm();// 关门控制值
|
||||
|
||||
if (vrPsd.isTurning()) { // 屏蔽门设置中且为信号系统可操作状态
|
||||
if (autoMode && vrPsd.isCommandOpen() && (cv & wvkm) != wvkm) { // 开门
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvkm, plcGateway.getChannel());
|
||||
if (autoMode && vrPsd.isCommandOpen() /*&& (cv & wvkm) != wvkm*/) { // 开门
|
||||
if ((cv & wvkm) != wvkm) {
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvkm, plcGateway.getChannel());
|
||||
} else if (vrPsd.isLockAndClose()) {
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvgm, plcGateway.getChannel());
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvkm, plcGateway.getChannel());
|
||||
}
|
||||
} else if(autoMode && !vrPsd.isCommandOpen() && (cv & wvgm) != wvgm){ // 关门
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvgm, plcGateway.getChannel());
|
||||
if ((cv & wvgm) != wvgm) {
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvgm, plcGateway.getChannel());
|
||||
} else if (vrPsd.isOpen2End()) {
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvkm, plcGateway.getChannel());
|
||||
this.plcGatewayService.checkEqualAndWriteSingleRegister(plcGateway.getConfig().getAddr(),
|
||||
configVO.getWbi(), cv, wvgm, plcGateway.getChannel());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (rbkmdw && rbgmdw) { // 开关门进行中
|
||||
|
Loading…
Reference in New Issue
Block a user