Information
Item weight
Barcode
Created time
Last updated on
Item description

วิธีการใช้งาน

กรณีใช้ RS485 ให้สลับจั้มเปอร์ให้ DI ต่อกับ TXD และ RO ต่อกับ RXD กรณีใช้ Uart ให้ต่อ DI/RO กับ NC 

1.Overview
LC single way Modbus relay module equipped with mature and stable 8-bit MCU and RS485 level communication chip,adopt standard MODBUS RTU format RS485 communication protocol ,It can realize 1 way optocoupler input signal detection and 1 way relay output, can be used for digital detection or power control occasions.

Functions:
1.Onboard mature and stable 8-bit MCU and RS485 level communication chip.
2.Communication protocol:support standard Modbus RTU protocol
Communication Interface:support RS485/TTL UART interface
4.Communication baud rate: 4800/9600/19200,default 9600bps, Support power-down save.
5.Optocoupler input signal range, DC3.3-30V(this input not available for relay control)
6.Output signal:relay switch signal, support manual control,flash OFF/ON mode,The delay base is 0.1S,the maximum allowable flash OFF/ON time is 0xFFFF*0.1S=65535*0.1S=6553.5S
7.Device address:range:1-255,default 255,Support power-down save
8.Baud rate/optocoupler input status/relay status/device address can be read by software/commands.
9.On-board 1 way 5V,10A/250V AC 10A/30V DC relay,can continuously sucking 100,000 times, it has Diode flow protection for short response times.
10. On-board relay switch indicator.
11.supply voltage:DC7-24V,with input anti-reverse protection





Arduino Library

https://robokits.co.in/downloads/Modbus%20Relay.zip


Modbus RTU Command

Suppose the device address is 0xFF so return 00 10 00 00 00 01 02 00 FF EB 80 and the 9th btye is the devices address.

Turn ON CH_1 Relay(Normal Mode)

  • Send: FF 05 00 00 FF 00 99 E4
  • Return: FF 05 00 00 FF 00 99 E4
  • The 3rd and 4th byte are relay addresses. So it can be 0x0000,0x0001,0x0002,0x0003
  • The 5th and 6th byte are relay data .0xFF00 means turn ON relay and 0x0000 means turn OFF relay

Turn OFF CH_1 Relay(Normal Mode)

  • Send: FF 05 00 00 00 00 D8 14
  • Return: FF 05 00 00 00 00 D8 14

Turn ON All relays

  • Send: FF 0F 00 00 00 08 01 FF 30 1D
  • Return: FF 0F 00 00 00 08 41 D3

Turn OFF All relays

  • Send: FF 0F 00 00 00 08 01 00 70 5D
  • Return: FF 0F 00 00 00 08 41 D3

Set device address to 0x01

  • Send: 00 10 00 00 00 01 02 00 01 6A 00
  • Return: 00 10 00 00 00 01 02 00 01 6A 00
  • Note: The 9th btye is the device address

Set device address to 0xFF

  • Send: 00 10 00 00 00 01 02 00 FF EB 80
  • Return: 00 10 00 00 00 01 02 00 FF EB 80

Read device address

  • Send: 00 03 00 00 00 01 85 DB
  • Return: 00 03 02 00 FF C5 C4
  • Note: The 5th btye is the device address

Read relay status

  • Send: FF 01 00 00 00 08 28 12
  • Return: FF 01 01 01 A1 A0
  • Note: The 4th means which one relay.0 means OFF and 1 means ON

Read optocoupler input staturs

  • Send: FF 02 00 00 00 08 6C 12
  • Return: FF 02 01 01 51 A0
  • Note: The 4th means which one input.0 means low level signal input and 1 means high level signal input

Set baud rate 4800bps

  • Send: FF 10 03 E9 00 01 02 00 02 4A 0C
  • Return: FF 10 03 E9 00 01 C5 A7
  • Note: The 9th btye is baud rate value.0x02 is 4800bps.0x03 is 9600bps.0x04 is 19200bps

Set baud rate 9600bps

  • Send: FF 10 03 E9 00 01 02 00 03 8B CC
  • Return: FF 10 03 E9 00 01 C5 A7

Set baud rate 19200bps

  • Send: FF 10 03 E9 00 01 02 00 04 CA 0E
  • Return: FF 10 03 E9 00 01 C5 A7

Turn ON CH_1 Relay(2S Flashing Mode)

  • Send: FF 10 00 03 00 02 04 00 04 00 14 C5 9F
  • Return: FF 10 00 03 00 02 A4 16
  • Note: The 3rd and 4th byte are relay addresses.So CH1~CH4 can be 0x0003,0x0008,0x000D,0x0012
    The 10th and 11th byte are delay time in second.The minimum delay time is 0.1s.Relay will OFF after delay time.So the delay time in this command is : 0x0014*0.1=2S

Turn OFF CH_1 Relay(3S Flashing Mode)

  • Send: FF 10 00 03 00 02 04 00 02 00 1E A5 99
  • Return: FF 10 00 03 00 02 A4 16
  • Note: Relay will ON after delay time.So the delay time in this command is : 0x001E*0.1=3S
Conditions


1,VCC,GND:DC7-24V power input
2,IN,GND:  DC3.3-30V Optocoupler signal input
3,A+,B-:    RS485 communication Interface
4,Relay switch signal output
NC:Normally closed end
COM: common end
NO:normally opened end
5,Relay indicator:Lights up when the relay ON.
6,GND,RXD,TXD:TTL level UART communication Interface,GND,RXD,TXD separately connect to the external control terminal GND,TXD,RXD; support connect 3.3V/5v  external  TTL serial ports .
7. RS485 and TTL serial ports select , when use RS485 communicating, DI connect  to TXD 、RO connect to RXD: DI and RO connect NC terminal when use TTL communicating.

3. Modbus RTU introduction of instruction

Modbus device through receive from external control terminal (like Host computer/MCU )Modbus RTU  instruction to perform related operations, one frame instruction generally consists of device address, function code, register address, register data, and check code,frame length is related to function code. Each frame date’s first byte is the device address.can set range on 1-255 default 255(scilicet  0xFF),the last 2byte is CRC check code.

1, open no.1 relay (manual mode)
send : FF 05 00 00 FF 00 99 E4
return :FF 05 00 00 FF 00 99 E4
remarks: (1)send the 3--4th byte of the transmitted frame represents the relay address,the relay 1-relay 8 address are respectively 0x0000,0x0001,0x0002,0x0003,0x0004,0x0005,0x0006,0x0007.
(2)The 5--6th byte of the transmitted frame represents the data, 0xFF00 represent turn on  relay,0x0000 represent turn off relay.

2, turn off the relay No. 1 (manual mode)
send:  FF 05 00 00 00 00 D8 14
return: FF 05 00 00 00 00 D8 14 
3, turn on all relay
Send : FF 0F 00 00 00 08 01 FF 30 1D
return : FF 0F 00 00 00 08 41 D3
4, turn off all relay
send : FF 0F 00 00 00 08 01 00 70 5D
return : FF 0F 00 00 00 08 41 D3

5, set the device address to 1
send : 00 10 00 00 00 01 02 00 01 6A 00
return :00 10 00 00 00 01 02 00 01 6A 00
remark:The 9th byte of the transmitted frame,0x01 is the written device address.

6. Set the device address to 255
send : 00 10 00 00 00 01 02 00 FF EB 80
return:00 10 00 00 00 01 02 00 FF EB 80
remarks:The 9th byte of the transmitted frame, 0xFF is the written device address.

7, read device address
send : 00 03 00 00 00 01 85 DB  
Return: 00 03 02 00 FF C5 C4
remarks:The 5th byte of the Return frame, 0xFF is the read device address.

8,read relay state
send :FF 01 00 00 00 08 28 12
return:FF 01 01 01 A1 A0
remarks:The 4th byte of the Return frame,the Bit0--Bit7 of 0x01 representing relay 1-relay 8, 0 is turn off .1 is turn on.

9,Read optocoupler input status
Send:  FF 02 00 00 00 08 6C 12
Return: FF 02 01 01 51 A0
remarks:  The 4th byte of the Return frame, the Bit0--Bit7 of 0x01 represent input signal of optocoupler1- optocoupler 8, 0 represent low level ,1 represent high level

10.Set the baud rate to 4800
Send : FF 10 03 E9 00 01 02 00 02 4A 0C
return : FF 10 03 E9 00 01 C5 A7
remarks: The 9th byte of the transmitted frame is the baud rate setting value, 0x02, 0x03, 0x04 represents 4800, 9600, 19200
11,Set the baud rate to 9600
send:FF 10 03 E9 00 01 02 00 03 8B CC
return:FF 10 03 E9 00 01 C5 A7
12,Set the baud rate to 19200
send: FF 10 03 E9 00 01 02 00 04 CA 0E
return : FF 10 03 E9 00 01 C5 A7
13.Read the baud rate

Send:FF 03 03 E8 00 01 11 A4
return:FF 03 02 00 04 90 53
remarks:The 5th byte of the Return frame represent read baud rate, 0x02, 0x03, x04 represents 4800,9600,19200.

14, turn on no.1 relay (flash ON mode)
send :FF 10 00 03 00 02 04 00 04 00 14 C5 9F
return : FF 10 00 03 00 02 A4 16
remarks: the 3-4th byte of the transmitted frame is represent relay address,relay1-relay8’s address  separately is 0x0003,0x0008,0x000D,0x0012,0x0017,0x001C,0x0021,0x0026 .
The 10th-11th byte of the transmitted frame represents the delay setting value, and the delay base is 0.1S, so the delay time is 0x0014*0.1=20*0.1S=2S, and the relay automatically turns off after turned on 2S

15, turn on no.1 relay  (flash OFF mode
send :  FF 10 00 03 00 02 04 00 02 00 1E A5 99
Return : FF 10 00 03 00 02 A4 16
Remarks : (1)The 3th-4th byte of the transmitted frame is represent relay address,relay1-relay8’s address separately is 0x0003,0x0008,0x000D,0x0012,0x0017,0x001C,0x0021,0x0026
(2)The 10th-11th byte of the transmitted frame represents the delay setting value, and the delay base is 0.1S, so the delay time is 0x001E*0.1=30*0.1S=3S

 
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.

Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,073,164 view(s)
Visitors1,333,890 time(s)
Last updatedSep 7, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me