修改双晟指令点位错误
This commit is contained in:
parent
f1f5af7ec9
commit
328c5f0f9d
|
@ -82,7 +82,7 @@ public class CasingMode extends Command implements Timing {
|
||||||
command.setLength(0);
|
command.setLength(0);
|
||||||
// 地址码 功能码 起始地址 连续长度 连续字长
|
// 地址码 功能码 起始地址 连续长度 连续字长
|
||||||
// 01 10 00AA 0004 08
|
// 01 10 00AA 0004 08
|
||||||
command.append("011000AA000204");
|
command.append("011000E0000204");
|
||||||
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.minWellCloseTimeDuration)), 8, "0"));
|
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.minWellCloseTimeDuration)), 8, "0"));
|
||||||
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.maxWellCloseTimeDuration)), 8, "0"));
|
command.append(StringUtils.leftPad(Long.toHexString(this.toSeconds(this.maxWellCloseTimeDuration)), 8, "0"));
|
||||||
resultList.add(ModbusCommandDto.builder().command(command.toString()).length(16).build());
|
resultList.add(ModbusCommandDto.builder().command(command.toString()).length(16).build());
|
||||||
|
|
Loading…
Reference in New Issue