Browse Source

9

燃气自翻炒锅
fyf 11 months ago
parent
commit
3196d8cbfb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java

+ 3
- 0
app/src/main/java/com/bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java View File

@@ -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)


Loading…
Cancel
Save