1、DeviceProfile配置如下
name: Temperature isHidden: false tag: "" properties: valueType: Float32 readWrite: R units: "" minimum: "" maximum: "" defaultValue: "" mask: "" shift: "" scale: "0.01" offset: "" base: "" assertion: "" mediaType: "" attributes: primaryTable: HOLDING_REGISTERS rawType: Int16 startingAddress: 4003
注意下面的rawType,和上面的scale,valueType
2、读取温度值如下
00 01 00 00 00 05 01 03 02 02 26
226对应550,scale 0.01代表小数点2位,实际显示的数据就是5.5
3、日志
下面的[2 38]代表,02 26的10进制,这个地方看起来好别扭。