指令错误

This commit is contained in:
wangshilong 2024-12-11 14:54:47 +08:00
parent b656b86725
commit 1601ac38cd
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class CasingMode extends Command implements Timing {
command.setLength(0);
// 地址码 功能码 起始地址 连续长度 连续字长
// 01 10 00AA 0004 08
command.append("011000AA000204");
command.append("011000AA000408");
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.minWellCloseTimeDuration)), 8, "0"));
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.maxWellCloseTimeDuration)), 8, "0"));
resultList.add(ModbusCommandDto.builder().command(command.toString()).length(16).build());