修改双晟指令点位错误
This commit is contained in:
parent
4e56ac3733
commit
f1f5af7ec9
|
@ -42,13 +42,13 @@ public class CasingMode extends Command implements Timing {
|
|||
private BigDecimal wellClosePressureValue = BigDecimal.ZERO;
|
||||
/**
|
||||
* 最小关井时间
|
||||
* 166
|
||||
* 170
|
||||
*/
|
||||
@NotBlank(message = "最小关井时间不能为空,格式:HH:mm:ss")
|
||||
private String minWellCloseTimeDuration;
|
||||
/**
|
||||
* 最大关井时间
|
||||
* 168
|
||||
* 172
|
||||
*/
|
||||
@NotBlank(message = "最大关井时间不能为空,格式:HH:mm:ss")
|
||||
private String maxWellCloseTimeDuration;
|
||||
|
@ -81,8 +81,8 @@ public class CasingMode extends Command implements Timing {
|
|||
|
||||
command.setLength(0);
|
||||
// 地址码 功能码 起始地址 连续长度 连续字长
|
||||
// 01 10 00A6 0004 08
|
||||
command.append("011000A6000204");
|
||||
// 01 10 00AA 0004 08
|
||||
command.append("011000AA000204");
|
||||
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());
|
||||
|
|
Loading…
Reference in New Issue