From 3196d8cbfbfe995381814f21baafba7a807921aa Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 10 Jan 2024 17:52:41 +0800 Subject: [PATCH] 9 --- .../bonait/bnframework/common/modbus/S7/mode/MyS7Entity.java | 3 +++ 1 file changed, 3 insertions(+) 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)