|
|
@ -147,7 +147,7 @@ public class DeviceRunner implements CommandLineRunner { |
|
|
// - 大卷B分切信号:0x502 |
|
|
// - 大卷B分切信号:0x502 |
|
|
int cuta = 500; |
|
|
int cuta = 500; |
|
|
int cutb = 502; |
|
|
int cutb = 502; |
|
|
int cutab = 508; |
|
|
|
|
|
|
|
|
int cutab = 506; |
|
|
int bit1 = collectUtil.readHoldingRegister(ip, port, cuta); |
|
|
int bit1 = collectUtil.readHoldingRegister(ip, port, cuta); |
|
|
logger.info("卷A分切信号:{}", bit1); |
|
|
logger.info("卷A分切信号:{}", bit1); |
|
|
// 卷B分切信号 |
|
|
// 卷B分切信号 |
|
|
@ -190,6 +190,7 @@ public class DeviceRunner implements CommandLineRunner { |
|
|
String rollNo = (String) redisTemplate.opsForValue().get("device:" + ip); |
|
|
String rollNo = (String) redisTemplate.opsForValue().get("device:" + ip); |
|
|
// 触发分切,执行方法扫描卷处理 |
|
|
// 触发分切,执行方法扫描卷处理 |
|
|
deviceGatherService.scanRollNo(deviceInfo, rollNo, nextRollNo); |
|
|
deviceGatherService.scanRollNo(deviceInfo, rollNo, nextRollNo); |
|
|
|
|
|
collectUtil.writeHoldingRegister(ip, port, cutab, 0); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|