12V weak current Modbus switch intelligent panel

freeFree Technical Resource

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

12V weak current Modbus switch intelligent panel
12V weak current Modbus switch intelligent panelFigure

1. Protocol Introduction

1.1. FF 03 10 0B 00 01 E4 D6

Address codeInstruction codeRegister addressCommunication dataCRC Verification code
1Byte1Byte2BytenByte2Byte

1.2. Address code

The communication address of the smart panel , Address range:  1~42 ( 0x01 ~0x2A)  ,  255 For broadcasting addresses (0xFF) .

1.3. Command code list

Instruction codeDescription
0x03Read panel data
0x06Modify panel data
0x10Set multiple register address parameters

1.4. CRC Verification algorithm

Modbus Protocol standard verification algorithm.

1.5. Panel control instructions

1.5.1. Modify the communication address of the panel

Register addressDescription
0x1000Address range 0x01~0x2A ,  The factory default is: 0x01.

Example of instruction:

postal address 0x01 Change to 0x02
01 06 10 00 00 02 0C CB
Change the mailing address to 0x01 (Broadcast mode)
FF 06 10 00 00 01 59 14

1.5.2. Set panel working mode

Register addressDescription
0x1003The default value is 0x0000
Register bitsmeaning
Bit15~Bit6retain ,  Fixed as 0
Bit5Release the button to actively send dataBit5 =1 And Bit2 =1: Enable proactive sendingBit5 =0: Prohibit active sending
Bit4retain ,  Fixed as 0
Bit3Set the button backlight to turn off with a delayBit3 =1: Key 10 No action within seconds , The backlight automatically turns offBit3 =0: The button backlight is always on
 Bit2Press the button to actively send dataBit2 =1: Enable proactive sending , Active sending modeBit2 =0: Prohibit active sending , Master-slave polling mode ,  The host sends instructions to read key values
Bit1retain ,  Fixed as 0
 Bit0Set demonstration modeBit0 =1: Demonstration mode , Press the button to control the backlight to turn on and off , Mainly used for demonstrating functional effectsBit0 =0: Normal Mode ,  From RCU Send instructions to control the backlight to turn on and off

Example of instruction:

Demonstration mode , Button not actively sending , The backlight is always on
01 06 10 03 00 01 BC CA
Demonstration mode , Press the button to send actively , Release the button and do not actively send , The backlight is always on
01 06 10 03 00 05 BD 09
Demonstration mode , Press and release the button to actively send , The backlight is always on
01 06 10 03 00 25 BC D1
Normal mode , Button not actively sending , The backlight is always on
01 06 10 03 00 00 7D 0A
Normal mode , Press the button to send actively , Release the button and do not actively send , The backlight is always on
01 06 10 03 00 04 7C C9
Normal mode , Press and release the button to actively send , The backlight is always on
01 06 10 03 00 24 7D 11
Normal mode , Button not actively sending , Backlight delay 10 Instantly extinguished
01 06 10 03 00 08 7C CC
Normal mode , Press the button to send actively , Release the button and do not actively send , Backlight delay 10 Instantly extinguished
01 06 10 03 00 0C 7D 0F
Normal mode , Press and release the button to actively send , Backlight delay 10 Instantly extinguished
01 06 10 03 00 2C 7C D7

1.5.3. Control backlight and button lights

Register addressDescription
0x1008The backlight and button lights of the panel are controlled in real-time by setting the value of this register
Register bitsmeaning
Bit15~Bit9retain
Bit8Control the backlightBit8 =1: The backlight lights of all buttons on the panel are onBit8 =0: The backlight of all buttons on the panel is turned off
Bit7Control buttons 8 indicator lightBit7 =1: Key 8 The indicator light is on , Key 8 The backlight is turned offBit7 =0: Key 8 The indicator light is off
Bit6Control buttons 7 indicator lightBit6 =1: Key 7 The indicator light is on , Key 7 Backlight offBit6 =0: Key 7 The indicator light is off
Bit5Control buttons 6 indicator lightBit5 =1: Key 6 The indicator light is on , Key 6 The backlight is turned offBit5 =0: Key 6 The indicator light is off
 Bit4Control buttons 5 indicator lightBit4 =1: Key 5 The indicator light is on , Key 5 The backlight is turned offBit4 =0: Key 5 The indicator light is off
 Bit3Control buttons 4 indicator lightBit3 =1: Key 4 The indicator light is on , Key 4 The backlight is turned offBit3 =0: Key 4 The indicator light is off
 Bit2Control buttons 3 indicator lightBit2 =1: Key 3 The indicator light is on , Key 3 The backlight is turned offBit2 =0: Key 3 The indicator light is off
 Bit1Control buttons 2 indicator lightBit1 =1: Key 2 The indicator light is on , Key 2 The backlight is turned offBit1 =0: Key 2 The indicator light is off
 Bit0Control buttons 1 indicator lightBit0 =1: Key 1 The indicator light is on , Key 1 The backlight is turned offBit0 =0: Key 1 The indicator light is off

Example of instruction:

All button indicator lights and backlight lights turn off
01 06 10 08 00 00 0C C8
All button indicator lights turn off , All button backlight lights are on
01 06 10 08 01 00 0D 58
Key 1 The indicator light is on , The backlight of other buttons lights up
01 06 10 08 01 01 CC 98
Key 1 The indicator light is on , Other key indicator lights and all key backlight lights turn off
01 06 10 08 00 01 CD 08

1.5.4. Read key values of keys

Register addressDescription
0x100BRead the real-time key value of the specified key through this register
Register bitsmeaning
Bit15~Bit8Absolute key value of keys , Calculation formula : Absolute key value  = (Panel address  - 1) * 6 +  Button number
Bit7Key 8 Key valueBit7 =1: Key 8 Press downBit7 =0: Key 8 release
Bit6Key 7 Key valueBit6 =1: Key 7 Press downBit6 =0: Key 7 release
Bit5Key 6 Key valueBit5 =1: Key 6 Press downBit5 =0: Key 6 release
 Bit4Key 5 Key valueBit4 =1: Key 5 Press downBit4 =0: Key 5 release
 Bit3Key 4 Key valueBit3 =1: Key 4 Press downBit3 =0: Key 4 release
 Bit2Key 3 Key valueBit2 =1: Key 3 Press downBit2 =0: Key 3 release
 Bit1Key 2 Key valueBit1 =1: Key 2 Press downBit1 =0: Key 2 release
 Bit0Key 1 Key valueBit0 =1: Key 1 Press downBit0 =0: Key 1 release

Attention:

1, Master-slave polling mode(0x1003 Register Bit2 =0) , Release the button 2 In seconds , Key value register automatically resets to zero , After the host sends a read command , Key value The register will also be reset to zero.

2, Active sending mode(0x1003 Register Bit2 =1) , Immediately send key value data and reset the key value register to zero after pressing the button.

3, The host sends a broadcast command (address: 0xFF)when reading key values , only working in master-slave polling mode and key release 2 panel reply within seconds , other panels no reply.

command example: read key value:

send 1 press return
 not press return 01 03 10 0B 00 01 F1 08read key value01 03 00 02 01 01 24 5A
broadcast mode01 03 00 02 00 00 E4 0A
send 1 press return (not press return)
 read button status FF 03 10 0B 00 01 E4 D6register address01 03 00 02 01 01 24 5A
descriptionkey

1.5.5. status value

offon
   0x1310long press flag 1 pressed for more than seconds0x00: key stuck flag0x01: long press for more than minutes0x02: key value reset , automatic recovery detection after key release 2 note0xFF: after the host sends a read command , automatically reset key value register 1 key , 0x100B status value , function as abovekey : status value ,  function as above 0x100B.
0x1311function 2 Same as above , buttons
0x1312status values 3 functions as above , buttons
0x1313status values 4 functions as above , Same function as above
0x1314button 5 status value , Same function as above
0x1315Key 6 Status value , Same function as above
0x1316Key 7 Status value , Same function as above
0x1317Key 8 Status value , Same function as above

Example of instruction:

Read button 1 The state of
  send out  01 03 13 10 00 01 81 4BPress to return01 03 00 01 00 01 D5 CA
Not pressed to return01 03 00 01 00 00 14 0A
Long press to return01 03 00 01 00 02 95 CB
  Stuck return01 03 00 01 00 FF 54 4A
Read button 1 To 8 The state of
send out01 03 13 10 00 08 41 4DNot pressed to return01 03 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 DA 4C
Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification 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 address will not be published. Required fields are marked *.