跳动符号大板开关Modbus通讯协议

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

跳动符号大板开关Modbus通讯协议

智能开关寄存器位置图

跳动符号大板开关Modbus通讯协议插图

RS485 通讯模式
주소01
报文格式HEX
默认波特率9600 8 N 1
CRC16低字节在前

기능 코드

读寄存器03
write single register06
write multiple registers10

读单个寄存器

读单个주소기능 코드register 주소读取几个寄存器CRC check
send010327 1000 0112 34

返回数据

주소기능 코드byte count데이터CRC check
返回01030211 3312 34

读单个寄存器

写单个주소기능 코드register 주소CRC check
send010627 1000 0112 34

返回数据

주소기능 코드register 주소CRC check
返回010627 1000 0112 34

write multiple registers

写多个주소기능 코드Starting register 주소写几个寄存器byte count데이터데이터CRC check
send011027 1000 020433 4455 6612 34

返回数据

주소기능 코드Starting register 주소写几个寄存器CRC check
返回011027 1000 0212 34

Modbus寄存器说明

功能寄存器地址
Serial number名字读/写register 주소
decimal
register 주소
hexadecimal
含义举例备注
1주소读/写0001000100 01地址范围01-FE00 01
2开关波特率读/写0002000200 0100对应115200
01对应76800
02对应57600
03对应38400
04对应19200
05对应14400
06对应9600
07对应4800
08对应2400
09对应1200
00 0606对应9600
修改成功会以当前波特率回复
回复后切换为新的波特率
31-16输出操作
支持读写
读/写10013E900 01
No.1字节00无意义
No.2字节00关01开02翻转03点动
00 01输出1 开  --Relay1
4读/写10023EA00 00输出2 关  --Relay2
5读/写10033EB00 02输出3 翻转  --Relay3
6读/写10043EC00 03输出4 点动  --指示灯4
7读/写10053ED00 02输出5 翻转  --指示灯5
8读/写10063EE00 01输出6 开  --指示灯6
9读/写10073EF00 01输出7 开  --无用
10读/写10083F000 01输出8 开  --无用
11读/写10093F100 01输出9 开  --背景灯1
12读/写10103F200 01输出10 开  --背景灯2
13读/写10113F300 01输出11 开  --背景灯3
14读/写10123F400 01输出12 开  --背景灯4
15读/写10133F500 01输出13 开  --背景灯5
16读/写10143F600 01输出14 开  --背景灯6
17读/写10153F700 01输出15 开  --无用
18读/写10163F800 01输出16 开  --无用

举例

读多个寄存器

读多个주소기능 코드Starting register 주소读取几个寄存器CRC check
send010303 E900 0215 BB

返回数据

주소기능 코드byte count데이터CRC check
返回01030400 01 00 016A 33

write single register

写单个주소기능 코드register 주소CRC check
send010600 0100 0259 CB

返回数据

주소기능 코드register 주소CRC check
返回010600 0100 0259 CB

write multiple registers

写多个주소기능 코드Starting register 주소写几个寄存器byte count데이터CRC check
send011000 0100 060C00 01 00 01 00 00 01 00 00 00 00 00 00BA 51

返回数据

주소기능 코드Starting register 주소写几个寄存器CRC check
返回011000 0100 0611 CB

产品购买:https://item.taobao.com/item.htm?ft=t&id=671086569988

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC 검증 and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email 주소 will not be published. Required fields are marked *.