Modbus Communication Protocol for KeXing Interconnect Relay Module

freeFree Technical Resource

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

Modbus Communication Protocol for KeXing Interconnect Relay Module

Relay switch control-05 00 00 restore disconnect relay-00 00

AddressPower codeRegister addressdata VerificationStarting address
010500 0000 00CRC16HCRC16L
  Perform conduction 00 00Disconnect action Action conducting relayFF 00  Restore the disconnect relay 00 00  give an example 

The:
Road open 1 The (05) : 01050000FF008C3A
Road Pass 1 The (05) : 010500000000CDCA
Road open 2 The (05) : 01050001FF00DDFA
Road Pass 2 The (05) : 0105000100009C0A
Road open 3 The (05) : 01050002FF002DFA
Road Pass 3 The (05) : 0105000200006C0A
Road open 4 The (05) : 01050003FF007C3A
Road Pass 4 The (05) : 0105000300003DCA
Road open 5 The (05) : 01050004FF00CDFB
Road Pass 5 The (05) : 0105000400008C0B
Road open 6 The (05) : 01050005FF009C3B
Road Pass 6 The (05) : 010500050000DDCB
Road open 7 The (05) : 01050006FF006C3B
Road Pass 7 The (05) : 0105000600002DCB
Road open 8 The (05) : 01050007FF003DFB
Road Pass 8 The (05) : 0105000700007C0B
Road open 9 The (05) : 01050008FF000DF8
Road Pass 9 The (05) : 0105000800004C08
Road open 10 The (05) : 01050009FF005C38
Road Pass 10 The (05) : 0105000900001DC8
Road open 11 The (05) : 0105000AFF00AC38
Road Pass 11 The (05) : 0105000A0000EDC8
Road open 12 The (05) : 0105000BFF00FDF8
Road Pass 12 No. (05) : 0105000B0000BC08
No. 13 Road open (05) : 0105000CFF004C39
The 13 Road Pass (05) : 0105000C00000DC9
The 14 Road open (05) : 0105000DFF001DF9
The 14 Road Pass (05) : 0105000D00005C09
The 15 Road open (05) : 0105000EFF00EDF9
The 15 Road Pass (05) : 0105000E0000AC09
The 16 Road open (05) : 0105000FFF00BC39
The 16 Road Pass (05) : 0105000F0000FDC9

Relay pulse control-05 Function code- Fixed 2S

AddressFunction codeRegister addressdata VerificationStarting address
010530 0000 00CRC16H
CRC16L
  Execute point pulse 30 00
Conduction 2S  Automatic disconnection 2S Move
FF   00    Make a conducting relay Hui
00  00    Disconnecting the relay an electric appliance give an example
 

The:
Road 1 Jog (The 2S) : 01053000FF00833A
Road 2 Jog (The 2S) : 01053001FF00D2FA
Road 3 Jog (The 2S) : 01053002FF0022FA
Road 4 Jog (The 2S) : 01053003FF00733A
Road 5 Jog (The 2S) : 01053004FF00C2FB
Road 6 Jog (The 2S) : 01053005FF00933B
Road 7 Jog (The 2S) : 01053006FF00633B
Road 8 Jog (The 2S) : 01053007FF0032FB
Road 9 jog (jog 2S) : 01053008FF0002F8
The 10 Road (Jog 2S) : 01053009FF005338
The 11 Road (Jog 2S) : 0105300AFF00A338
The 12 Road (Jog 2S) : 0105300BFF00F2F8
The 13 Road (Jog 2S) : 0105300CFF004339
The 14 Road (Jog 2S) : 0105300DFF0012F9
The 15 Road (Jog 2S) : 0105300EFF00E2F9
The 16 Road (Jog 2S) : 0105300FFF00B339
The 17 Road (Jog 2S) : 01053010FF0082FF
The 18 Road (Jog 2S) : 01053011FF00D33F
The 19 Road (Jog 2S) : 01053012FF00233F
The 20 Road (Jog 2S) : 01053013FF0072FF
The 21 Road (Jog 2S) : 01053014FF00C33E
The 22 Road (Jog 2S) : 01053015FF0092FE
The 23 Road (Jog 2S) : 01053016FF0062FE
The 24 Road (Jog 2S) : 01053017FF00333E

Relay reversal control-05 Function code

AddressFunction codeRegister addressdata VerificationStarting address
010550 0000 00CRC16H
CRC16L
  Perform a reversal action 50 00  MoveFF   00    Perform conduction relay an electric appliance Hui00  00    Disconnecting the relay electrical appliance electrical appliance 

give an example:
The 1 Road reversal: 01055000FF009D3A
The 2 Road reversal: 01055001FF00CCFA
The 3 Road reversal: 01055002FF003CFA
The 4 Road reversal: 01055003FF006D3A
The 5 Road reversal: 01055004FF00DCFB
The 6 Road reversal: 01055005FF008D3B
The 7 Road reversal: 01055006FF007D3B
The 8 Road reversal: 01055007FF002CFB
The 9 Road reversal: 01055008FF001CF8
The 10 Road reversal: 01055009FF004D38
The 11 Road reversal: 0105500AFF00BD38
The 12 Road reversal: 0105500BFF00ECF8
The 13 Road reversal: 0105500CFF005D39
The 14 Road reversal: 0105500DFF000CF9
The 15 Road reversal: 0105500EFF00FCF9
The 16 Road reversal: 0105500FFF00AD39
The 17 Road reversal: 01055010FF009CFF
The 18 Road reversal: 01055011FF00CD3F
The 19 Road reversal: 01055012FF003D3F
The 20 Road reversal: 01055013FF006CFF
The 21 Road reversal: 01055014FF00DD3E
The 22 Road reversal: 01055015FF008CFE
The 23 Road reversal: 01055016FF007CFE
The 24 Road reversal: 01055017FF002D3E
The 25 Road reversal: 01055018FF001D3D

Relay fully open and fully closed control-05 Function code

AddressPower codeRegister addressdata VerificationRegister
010500 0000 00CRC16H
CRC16L
Fully conductive
00 32Fully conductive
00 33Completely disconnected
00 34  Reverse disconnection
FF 00    Action conducting relay
00 00    Restore the disconnect relay

Relay switch control-06 Function code

AddressMerit CodeRegister addressdata VerificationStarting address
010610 0000 00CRC16HCRC16L
  Perform conduction 10 00Disconnect action Move00  01   Perform conduction relay an electric appliance Hui00  00    Disconnecting the relay an electric appliance give an example 

The:
Road open 1 The (06) : 0106100000014CCA
Road Pass 1 The (06) : 0106100000008D0A
Road open 2 The (06) : 0106100100011D0A
Road Pass 2 The (06) : 010610010000DCCA
Road open 3 The (06) : 010610020001ED0A
Road Pass 3 The (06) : 0106100200002CCA
Road open 4 The (06) : 010610030001BCCA
Road Pass 4 The (06) : 0106100300007D0A
Road open 5 The (06) : 0106100400010D0B
Road Pass 5 The (06) : 010610040000CCCB
Road open 6 The (06) : 0106100500015CCB
Road Pass 6 The (06) : 0106100500009D0B
Road open 7 The (06) : 010610060001ACCB
Road Pass 7 The (06) : 0106100600006D0B
Road open 8 The (06) : 010610070001FD0B
Road Pass 8 The (06) : 0106100700003CCB
Road open 9 The (06) : 010610080001CD08
Road Pass 9 The (06) : 0106100800000CC8
Road open 10 Road open (06) : 0106100900019CC8
The 10 Road Pass (06) : 0106100900005D08
The 11 Road open (06) : 0106100A00016CC8
The 11 Road Pass (06) : 0106100A0000AD08
The 12 Road open (06) : 0106100B00013D08
The 12 Road Pass (06) : 0106100B0000FCC8
The 13 Road open (06) : 0106100C00018CC9
The 13 Road Pass (06) : 0106100C00004D09
The 14 Road open (06) : 0106100D0001DD09
The 14 Road Pass (06) : 0106100D00001CC9
The 15 Road open (06) : 0106100E00012D09
The 15 Road Pass (06) : 0106100E0000ECC9
The 16 Road open (06) : 0106100F00017CC9
The 16 Road Pass (06) : 0106100F0000BD09

Relay pulse output-06 Function code-Adjustable time

AddressFunction codeRegister addressdata VerificationStarting address
010600 0000 00CRC16H
CRC16L
  Execute point pulse 00 00
Automatic disconnection Time unit
give an example
ms
 

Pulse:
The 2SRoad 1 Custom jog (The) : 0106000003E88974
Road 2 Custom jog (The) : 0106000103E8D8B4
Road 3 Custom jog (The) : 0106000203E828B4
Road 4 Custom jog (The) : 0106000303E87974
Road 5 Custom jog (The) : 0106000403E8C8B5
Road 6 Custom jog (The) : 0106000503E89975
road 7 road (Custom jog) : 0106000603E86975
The 8 Road (Custom jog) : 0106000703E838B5
The 9 Road (Custom jog) : 0106000803E808B6
The 10 Road (Custom jog) : 0106000903E85976
The 11 Road (Custom jog) : 0106000A03E8A976
The 12 Road (Custom jog) : 0106000B03E8F8B6
The 13 Road (Custom jog) : 0106000C03E84977
The 14 Road (Custom jog) : 0106000D03E818B7
The 15 Road (Custom jog) : 0106000E03E8E8B7
The 16 Road (Custom jog) : 0106000F03E8B977
The 17 Road (Custom jog) : 0106001003E888B1
The 18 Road (Custom jog) : 0106001103E8D971
The 19 Road (Custom jog) : 0106001203E82971
The 20 Road (Custom jog) : 0106001303E878B1
The 21 Road (Custom jog) : 0106001403E8C970
The 22 Road (Custom jog) : 0106001503E898B0
The 23 Road (Custom jog) : 0106001603E868B0
The 24 Road (Custom jog) : 0106001703E83970
The 25 Road (Custom jog) : 0106001803E80973
The 26 Road (Custom jog) : 0106001903E858B3
The 27 road (Custom jog) : 0106001A03E8A8B3
The 28 Road (Custom jog) : 0106001B03E8F973
The 29 Road (Custom jog) : 0106001C03E848B2
The 30 Road (Custom jog) : 0106001D03E81972

Multi channel relay control-0F Function code

AddressFunction codeRegister starting addressRegister lengthData lengthdata VerificationCan be set
010F00 0000 0802FF 00CRC16H
CRC16L
Starting address1-255 Simultaneously switch 0000
Starting address
Sequential conduction 0100  
Interval 500ms Starting address
Sequential disconnection 0200  
Interval 500ms Starting address
Sequential conduction 0300  
Interval 1000ms Starting address
Sequential conduction 0400  
Interval 1000ms Starting address
Sequential conduction 0500  
Interval 2000ms Starting address
Sequential communication 0600  
Interval 2000ms Control continuity
A relay 8 The byte length of the following dataAll relays are conductingFF 8 Multi channel relay control 

Function code-10 Address

Function codeRegister starting addressRegister lengthData lengthdata VerificationCan beSet up
011000 0000 081000 00 00 01… .CRC16H
CRC16L
Place  Starting address  Simultaneously switch1-255 Starting address 0000   jog

starting address 0100  jog Time The interval is a unit of register valuems 0-65535ms
Starting address 0500  Delayed lead The communication time is measured in units of register values ms 0-65535ms 

Starting address 0600  Delay interruption The disconnection time is measured in units of register values ms 0-65535ms
Control continuity 8 A relayThe byte length of the following data00 00  to break off00 01  Conduction 

Read relay status instructions-01 Function code

send outAddressFunction codeRegister addressRead the lengthVerification 
 010100 0000 08CRC16H
CRC16L
 
returnAddressFunction codeByte countdata VerificationFrom right to left represents opening 
 01010118CRC16H
CRC16L
 
    18=00011000
Start reading the relay status give an example
  
send out
AddressFunction codeRegister addressRead the lengthVerificationRead from the beginning of the first relay 
 010100 0000 10CRC16H
CRC16L
Relay status 16return
AddressFunction codeByte countdata VerificationRepresentativeRoad 
 01010218 03CRC16H
CRC16L
 
    18 Representative 1-8 Road
03 Read the status of the relay 9- 16 Function code
  

Each status can be read separately-03 Address-Merit

CodeRegister starting address Read the number of channelsVerificationStarting addressCorresponding to the first route
010310 0000 08CRC16H
CRC16L
Example 10 00  Corresponding to the first route

Example:

Read 1-8 Road 01031000000840CC

Read the switch status-02 Function code

send outAddressFunction codeRegister addressRead the lengthVerification 
 010200 0000 08CRC16H
CRC16L
 
returnAddressFunction codeByte countdata VerificationFrom right to left represents opening 
 01020118CRC16H
CRC16L
 
    18=00011000
The initial reading of the switch status give an example
  
send out
AddressFunction codeRegister addressRead the lengthVerificationRead from the beginning of the first relay 
 010200 0000 10CRC16H
CRC16L
A switch status 16return
AddressFunction codeByte countdata VerificationRepresentativeRoad 
 01020218 03CRC16H
CRC16L
 
    18  Representative 1-8 Road
03  Read the switch status 9- 16 Function code
  

Can read the status of a single channel-03 Address-Merit

CodeRegister starting address Read the number of channelsVerificationStarting addressCorresponding to the first route
010330 0000 08CRC16HCRC16L
  Read analog data 30 00  Function code  

Address-03 Function code

Register starting addressRead the number of registersVerificationAddress of analog storage registerVerification
010300 0000       02CRC16L 
CRC16H
  Low byte before high byte after CRC Address function code
1    address  1Modbus Communication Protocol for KeXing Interconnect Relay ModuleFigure
2    function code  03     Read register dataModbus Communication Protocol for KeXing Interconnect Relay ModuleFigure
3    Register starting addressModbus Communication Protocol for KeXing Interconnect Relay ModuleFigure
4    The number of registers readModbus Communication Protocol for KeXing Interconnect Relay ModuleFigure
5    VerificationCRC16    StandardCRCVerification

Register location table

PLC Configuration addressRegister addressParametersParameter descriptionRead and write
Relay control and status reading registers 05 Control relay01  Read the status of the relay 
400010x0000The 1 Road relayReadable and writtenR/W
400020x0001The 2 Road relayReadable and writtenR/W
……    
400100x0009The 10 Road relayReadable and writtenR/W
400110x000AThe 11 Road relayReadable and writtenR/W
……    
400240x0018The 24 Road relayReadable and writtenR/W
Switch input status register 02 Function code reference 3.4 Chapter 
400010x0000The 1 Road switch quantityRead onlyR
400020x0001The 2 Road switch quantityRead onlyR
……    
400100x0009The 10 Road switch quantityRead onlyR
400110x000AThe 11 Road switch quantityRead onlyR
……    
400250x0018The 24 Road switch quantityRead onlyR
Analog data acquisition 03  Function code reference 3.5 Chapter 
Analog positionRegister address Data type 
The first route00 00 Unsigned integer 100 Multiplier value 
The second path00 01 Unsigned integer 100 Doubling value 
…..  Unsigned integer 100 Multiplier value 
The eighth route00 07 Unsigned integer 100 Multiplier value 
The ninth route00 08 Unsigned integer 100 Multiplier value 
Please refer to the actual device you received for the number of analog quantities
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 *.