5018modbusTcp协议上传寄存器内容说明

5018modbusTcp协议上传寄存器内容说明


00 77 00 00 00 AC 01 23 04 B0 00 20 10 0B 16 11 0F 36 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00 03 00 00 00 00

00 77 事物标识

00 00 协议标识

00 AC 长度,0xAC=10进制172,表示后面有172个字节

01 单元标识,设备Modbus地址

23 功能码(Modbus协议:2264 保留作扩展功能备用)

04 B0 起始地址,0x04B0=10进制1200

00 20 写寄存器数量,0x0020=10进制32RTU设备全部的32个寄存器)

10 0B 16 11 0F 36 时间的16进制,YY MM DD HH MM SS,161122171554

03 00 00 00 00 一个寄存器数据(类型和值),其中03表示数据类型中的浮点数(小数),后面的00 00 00 00是值(0);

数据类型说明:

00=Coil,当值为0是表示0,不为0时表示1

01=无符号整数(只有正值)

02=有符号整数(可以为负)

      03=浮点数(小数)


相关: