diff --git a/app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java b/app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java index a6982120..3f21835c 100644 --- a/app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java +++ b/app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java @@ -17,6 +17,9 @@ public class MyS7Entity { // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8") // private Date insertTime; + //S7Type.REAL 对应float或double类型 + //S7Type.WORD int + //S7Type.STRING 字符串 //必须为public 否则报错 @S7Variable(byteOffset = 0, type = S7Type.REAL)