严智鑫
2024-03-25 6e7b0553632cae15c79c259aeb93edfd61a5f297
springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java
@@ -91,6 +91,7 @@
        public void setRatio(int ratio) {
            this.ratio = ratio;
        }
           /**
     * 获取地址
@@ -111,8 +112,8 @@
        }
        if (addressLength == 14 ) {
            int wordindex = index;
            int newIndex = wordindex + 13;
            return stringdatas[0] + "." + wordindex +"-" + newIndex;
            //int newIndex = wordindex + 13;
            return stringdatas[0] + "." + wordindex ;
        }
        return null;
    }
@@ -121,4 +122,7 @@
        return addressIndex;
    }
    public String getAddress() {
       return getAddress(this.addressIndex);
    }
}