<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki-en.lcmaker.com/index.php?action=history&amp;feed=atom&amp;title=LC-NW-3-1</id>
		<title>LC-NW-3-1 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki-en.lcmaker.com/index.php?action=history&amp;feed=atom&amp;title=LC-NW-3-1"/>
		<link rel="alternate" type="text/html" href="http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;action=history"/>
		<updated>2026-06-04T12:41:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.2</generator>

	<entry>
		<id>http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1531&amp;oldid=prev</id>
		<title>Melody: /* LC-NW-3-1 View */</title>
		<link rel="alternate" type="text/html" href="http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1531&amp;oldid=prev"/>
				<updated>2024-08-06T07:49:09Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;LC-NW-3-1 View&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:49, 6 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-01.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-01.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;'''LC-NW-3-1 reverse view '''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;'''LC-NW-3-1 reverse view '''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-02.png|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;740px&lt;/del&gt;|]]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-02.png|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;700px&lt;/ins&gt;|]]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Functional Features==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Functional Features==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Melody</name></author>	</entry>

	<entry>
		<id>http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1530&amp;oldid=prev</id>
		<title>Melody: /* LC-NW-3-1 View */</title>
		<link rel="alternate" type="text/html" href="http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1530&amp;oldid=prev"/>
				<updated>2024-08-06T07:48:42Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;LC-NW-3-1 View&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:48, 6 August 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-01.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-01.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;'''LC-NW-3-1 reverse view '''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;big&amp;gt;'''LC-NW-3-1 reverse view '''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-02.png]]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:NW-3-1-02.png&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|740px|&lt;/ins&gt;]]&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Functional Features==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Functional Features==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Melody</name></author>	</entry>

	<entry>
		<id>http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1529&amp;oldid=prev</id>
		<title>Melody: Created page with &quot;==Product Name== Modbus RTU single network relay module wired Ethernet LAN control 1 output&lt;br&gt;   ==About LC-NW-3-1== The LC single channel Modbus network relay module is equi...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki-en.lcmaker.com/index.php?title=LC-NW-3-1&amp;diff=1529&amp;oldid=prev"/>
				<updated>2024-08-06T07:46:54Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Product Name== Modbus RTU single network relay module wired Ethernet LAN control 1 output&amp;lt;br&amp;gt;   ==About LC-NW-3-1== The LC single channel Modbus network relay module is equi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Product Name==&lt;br /&gt;
Modbus RTU single network relay module wired Ethernet LAN control 1 output&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==About LC-NW-3-1==&lt;br /&gt;
The LC single channel Modbus network relay module is equipped with a mature and stable 32-bit MCU and W5500 full hardware TCP/IP protocol stack network chip. Reserved MCU debugging interface supports secondary development&amp;lt;br&amp;gt;&lt;br /&gt;
Using the standard MODBUS RTU communication protocol, it is possible to control one relay output within a local area network, which can be used for power control in wired networks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LC-NW-3-1 View==&lt;br /&gt;
&amp;lt;big&amp;gt;'''LC-NW-3-1 Front View'''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-01.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;'''LC-NW-3-1 reverse view '''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-02.png]]&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Functional Features==&lt;br /&gt;
*On board mature and stable 32-bit MCU STM32F103C6T6 chip&amp;lt;br&amp;gt;&lt;br /&gt;
*Onboard W5500 full hardware TCP/IP protocol stack Ethernet chip, supporting 10/100M bps speed&amp;lt;br&amp;gt;&lt;br /&gt;
*Communication protocol: Supports standard Modbus RTU protocol&amp;lt;br&amp;gt;&lt;br /&gt;
*The device serves as a TCP server and supports IP address DHCP functionality, with port number 5000&amp;lt;br&amp;gt;&lt;br /&gt;
*Module IP address can be viewed through serial port, UART communication baud rate: 115200&amp;lt;br&amp;gt;&lt;br /&gt;
*Output signal: Relay switch signal, supporting manual, flash close, and flash off modes. The delay base for flash close/flash off is 0.1s, and the maximum allowable flash close/flash off time is 0xFFFF * 0.1S=6553.5S&amp;lt;br&amp;gt;&lt;br /&gt;
*Device address: Range 1-255, default 255, supports power down saving&amp;lt;br&amp;gt;&lt;br /&gt;
*Relay status and device address can be read using software/instructions&amp;lt;br&amp;gt;&lt;br /&gt;
*Onboard 1-channel 5V, 10A/250V AC 10A/30V DC relay, capable of continuous closing up to 100000 times, with diode leakage protection and short response time&amp;lt;br&amp;gt;&lt;br /&gt;
*Onboard power supply and relay switch indicator lights&amp;lt;br&amp;gt;&lt;br /&gt;
*On board MCU reset button&amp;lt;br&amp;gt;&lt;br /&gt;
*Reserve UART serial port and SWD program programming port, support secondary development&amp;lt;br&amp;gt;&lt;br /&gt;
*Power supply voltage: DC7-28V, supports 5.08mm terminal power supply, with input anti reverse protection&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Hardware Introduction and Explanation==&lt;br /&gt;
'''&amp;lt;big&amp;gt;Board size and weight&amp;lt;/big&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
Board size: 73 * 45mm/32g&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-03.png|550px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''&amp;lt;big&amp;gt;Interface Introduction&amp;lt;/big&amp;gt;'''&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-04.png|550px|]]&amp;lt;br&amp;gt;&lt;br /&gt;
1. Main control MCU: STM32F103C6T6&amp;lt;br&amp;gt;&lt;br /&gt;
2. Network chip: W5500 full hardware TCP/IP protocol stack Ethernet chip&amp;lt;br&amp;gt;&lt;br /&gt;
3. Network interface: 10Mbps/100Mbps HR911105A network transformer&amp;lt;br&amp;gt;&lt;br /&gt;
4.5.08mm terminal power supply port: DC7-28V power input, where GND is negative&amp;lt;br&amp;gt;&lt;br /&gt;
5. MCU reset button: Short press to reset&amp;lt;br&amp;gt;&lt;br /&gt;
6. MCU SWD debugging interface: for secondary development programming&amp;lt;br&amp;gt;&lt;br /&gt;
7. MCU UART debugging interface: GND, RXD, TXD: TTL level UART communication interface, GND, RXD, TXD are respectively connected to the external control terminal GND, TXD, RXD&amp;lt;br&amp;gt;Support connection to 3.3V/5V external TTL serial port, default for serial port viewing device IP address and port number, baud rate 115200&amp;lt;br&amp;gt;&lt;br /&gt;
8.1 Relay switch signal output:&amp;lt;br&amp;gt;&lt;br /&gt;
NC: normally closed end, short circuited to COM before relay closing, suspended after closing&amp;lt;br&amp;gt;&lt;br /&gt;
COM: Public End&amp;lt;br&amp;gt;&lt;br /&gt;
NO: Normal start, the relay is suspended before closing, and short circuited to COM after closing&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Introduction to Modbus RTU Instructions'''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Modbus devices perform related operations by receiving Modbus RTU instructions from external control terminals (such as upper computers). A frame of instructions generally consists of device address, function code, register address, register data, and checksum. The frame length is related to the function code&amp;lt;br&amp;gt;&lt;br /&gt;
Generally, the first byte of each frame of data is the device address, which can be set within the range of 1-255. The default is 255 (i.e. 0xFF), and the last 2 bytes are the CRC checksum&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Assuming the device address is 255, the commonly used Modbus RTU instructions are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
1. Turn on relay 1 (manual mode)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 00 FF 00 99 E4&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 00 FF 00 99 E4&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&amp;lt;br&amp;gt;(1) The 3rd to 4th bytes of the sent frame represent relay addresses, with relay addresses #1 to #32 being 0x0000-0x001F&amp;lt;br&amp;gt;&lt;br /&gt;
(2) The 5th to 6th bytes of the sending frame represent data, 0xFF00 represents opening the relay, and 0x0000 represents closing the relay&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
2. Turn off relay 1 (manual mode)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 00 00 00 D8 14 &amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 00 00 D8 14&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. Turn on relay 2 (manual mode)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 01 FF 00 C8 24  &amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 01 FF 00 C8 24&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
4. Turn off relay 2 (manual mode)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 01 00 00 89 D4  &amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 01 00 89 D4&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
5. Turn on all relays&amp;lt;br&amp;gt;&lt;br /&gt;
Send: FF 0F 00 00 20 01 FF B0 15&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 0F 00 00 20 41 CD&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
6. Turn off all relays&amp;lt;br&amp;gt;&lt;br /&gt;
Send: FF 0F 00 00 00 20 01 00 F0 55&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 0F 00 00 20 41 CD&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
7. Set the device address to 1&amp;lt;br&amp;gt;&lt;br /&gt;
Send: 00 10 00 00 00 01 02 00 01 6A 00&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: 00 10 00 00 00 01 02 00 01 6A 00&amp;lt;br&amp;gt;&lt;br /&gt;
Note: The 9th byte 0x01 of the sending frame is the device address written&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
8. Set the device address to 255&amp;lt;br&amp;gt;&lt;br /&gt;
Send: 00 10 00 00 00 01 02 00 FF EB 80&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: 00 10 00 00 00 01 02 00 FF EB 80&amp;lt;br&amp;gt;&lt;br /&gt;
Note: The 9th byte 0xFF of the sending frame is the device address written&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
9. Read device address&amp;lt;br&amp;gt;&lt;br /&gt;
Sent: 00 03 00 00 01 85 DB&amp;lt;br&amp;gt;&lt;br /&gt;
Return: 00 03 02 00 FF C5 C4&amp;lt;br&amp;gt;&lt;br /&gt;
Note: The 5th byte 0xFF of the returned frame is the device address read&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
10. Read relay status&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 01 00 00 00 20 28 0C&amp;lt;br&amp;gt;&lt;br /&gt;
return: FF 01 04 00 00 00 01 25 DE&amp;lt;br&amp;gt; &lt;br /&gt;
Note: Bit31-Bit0 in the 4th to 7th bytes of the return frame represent the status of relay #32- #1, with 0 indicating off and 1 indicating on&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
11. Turn on relay 1 (flash off mode 2S)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 10 00 00 00 02 04 00 04 00 14 85 8A&amp;lt;br&amp;gt;&lt;br /&gt;
return: FF 10 00 00 00 02 A4 16&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&amp;lt;br&amp;gt;(1) The 3rd to 4th bytes of the sent frame represent relay addresses, with relay addresses #1 to #32 being 0x0000-0x001F&amp;lt;br&amp;gt;&lt;br /&gt;
(2) The 10-11 bytes of the sending frame represent the delay setting value, with a delay base of 0.1S. Therefore, the delay time is 0x0014*0.1=20*0.1S=2S, and the relay will automatically turn off after 2 seconds of opening&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
12. Turn off relay 1 (flash mode 3S)&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 10 00 00 00 02 04 00 02 00 1E E5 8C&amp;lt;br&amp;gt;&lt;br /&gt;
return: FF 10 00 00 00 02 54 16&amp;lt;br&amp;gt;&lt;br /&gt;
Note:&amp;lt;br&amp;gt;(1) The 3rd to 4th bytes of the sent frame represent relay addresses, with relay addresses # 1 to # 32 being 0x0000-0x001F&amp;lt;br&amp;gt;&lt;br /&gt;
(2) The 10-11 bytes of the sending frame represent the delay setting value, with a delay base of 0.1S. Therefore, the delay time is 0x001E * 0.1=30 * 0.1S=3S. The relay will automatically turn on after being turned off for 3S&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Simple usage instructions'''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''1. View device parameters'''&amp;lt;br&amp;gt;&lt;br /&gt;
After the device is powered on, it will automatically obtain an IP address using DHCP function. You need to use the serial port debugging assistant to check the device IP and port number (note: all devices have a port number of 5000). The method is as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
(1) Plug in the internet cable, connect the UART debugging port to the USB to TTL module (such as CH340), and connect the power supply. The UART wiring is as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px;text-align:center&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Network relay module || TTL module&lt;br /&gt;
|-&lt;br /&gt;
| GND || GND  &lt;br /&gt;
|-&lt;br /&gt;
| TXD || RXD  &lt;br /&gt;
|-&lt;br /&gt;
| RXD || TXD  &lt;br /&gt;
|}&lt;br /&gt;
[[Image:NW-3-1-05.png|550px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
(2) Open the serial port debugging assistant (such as SSCOM), select the correct COM port with a baud rate of 115200. After powering on the module or pressing the reset button for more than 6 seconds, the IP address will be automatically obtained. Please remember this IP address and port number as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-06.png|650px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''2. Using the Network Debugging Assistant to Control Devices'''&amp;lt;br&amp;gt;&lt;br /&gt;
After the device successfully obtains an IP address, it will generate a TCP Server for the client to connect to. Taking sending a TCP command to control the relay as an example (assuming the device address is 255), the steps are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
(1) Open the Network Debugging Assistant, select the protocol type: TCP Client, as well as the IP address and port number obtained in the previous step, and click Connect&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-07.png|650px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
(2) After successful connection, enter the command to open relay 1 in the data transmission window: FF 05 00 00 FF 00 99 E4. If the relay is activated, it indicates normal communication&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-08.png|650px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''How to validate checksum'''&amp;lt;/big&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
When Modbus RTU instructions are sent through existing upper computer software (such as Modbus RTU configuration tool), the CRC checksum is automatically generated. If you want to use network debugging software (such as NetAssist)&amp;lt;br&amp;gt;&lt;br /&gt;
When testing Modbus relay modules, it is necessary to manually generate a CRC checksum and place it at the end of the transmission frame, such as turning on the first relay (manual mode):&amp;lt;br&amp;gt;&lt;br /&gt;
1. The frame composition for opening/closing the relay (manual mode) is:&amp;lt;br&amp;gt;&lt;br /&gt;
Device address (1Byte)+Function code (1Byte)+Register address (2Byte)+Register data (2Byte)+CRC checksum (2Byte)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
2. Assuming the device address is 0xFF, the first 6 bytes of the sent frame are: FF 05 00 00 FF 00&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. Use CRC verification tool to calculate the verification code for these 6 bytes: http://www.ip33.com/crc.html &amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-09.png|650px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
4. Exchange the high and low byte positions of the verification calculation result E499 to obtain the CRC verification code 99E4, as well as the completed transmission frame: FF 05 00 FF 00 99 E4&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
5. Send the sent frame to the Modbus relay module through the network debugging assistant to turn on the first relay.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Detailed Explanation of Modbus RTU Instructions==&lt;br /&gt;
'''1. Turn on relay 1 (manual mode)'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 00 FF 00 99 E4&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|05 || Function code || Write a single coil&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || 0x0000--0x0007 respectively represent # 1 relay -- # 8 relay&lt;br /&gt;
|-&lt;br /&gt;
|FF 00 || On/Off command || 0x0000 is off, 0xFF00 is on&lt;br /&gt;
|-&lt;br /&gt;
|99 E4 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 00 FF 00 99 E4&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|05 || Function code || Write a single coil&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || 0x0000--0x0007 respectively represent #1 relay -- #8 relay&lt;br /&gt;
|-&lt;br /&gt;
|FF 00 || On/Off command || 0x0000 is off, 0xFF00 is on&lt;br /&gt;
|-&lt;br /&gt;
|99 E4 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''2. Turn off relay 1 (manual mode)'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 05 00 00 00 00 D8 14&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|05 || Function code || Write a single coil&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || 0x0000--0x0007 respectively represent #1 relay -- #8 relay&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || On/Off command || 0x0000 is off, 0xFF00 is on&lt;br /&gt;
|-&lt;br /&gt;
|D8 14 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: FF 05 00 00 00 D8 14&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|05 || Function code || Write a single coil&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || 0x0000--0x0007 respectively represent #1 relay -- #8 relay&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || On/Off command || 0x0000 is off, 0xFF00 is on&lt;br /&gt;
|-&lt;br /&gt;
|D8 14 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''3. Turn on all relays'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 0F 00 00 00 20 01 FF B0 15&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|0F || Function code || Write multiple coils&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address || #1 relay address&lt;br /&gt;
|-&lt;br /&gt;
|00 20 || Number of relays || Total number of relays to be controlled&lt;br /&gt;
|-&lt;br /&gt;
|01 || Command byte count || Control command word length&lt;br /&gt;
|-&lt;br /&gt;
|FF || Control command || 0x00 is fully closed, 0xFF is fully open&lt;br /&gt;
|-&lt;br /&gt;
|B0 15 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 0F 00 00 20 41 CD&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|0F || Function code || Write multiple coils&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address || #1 relay address&lt;br /&gt;
|-&lt;br /&gt;
|00 20 || Number of relays || Total number of relays to be controlled&lt;br /&gt;
|-&lt;br /&gt;
|41 CD || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''4. Turn off all relays'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 0F 00 00 00 20 01 00 F0 55&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|0F || Function code || Write multiple coils&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address || #1 relay address&lt;br /&gt;
|-&lt;br /&gt;
|00 20 || Number of relays || Total number of relays to be controlled&lt;br /&gt;
|-&lt;br /&gt;
|01 || Command byte count || Control command word length&lt;br /&gt;
|-&lt;br /&gt;
|00 || Control command || 0x00 is fully closed, 0xFF is fully open&lt;br /&gt;
|-&lt;br /&gt;
|F0 15 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 0F 00 00 20 41 CD&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|0F || Function code || Write multiple coils&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address || #1 relay address&lt;br /&gt;
|-&lt;br /&gt;
|00 20 || Number of relays || Total number of relays to be controlled&lt;br /&gt;
|-&lt;br /&gt;
|41 CD || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''5. Set the device address to 255'''&amp;lt;br&amp;gt;&lt;br /&gt;
Send: 00 10 00 00 00 01 02 00 FF EB 80&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|00 || Fixed value||&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address||&lt;br /&gt;
|-&lt;br /&gt;
|00 01 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|02 || Write register byte count || Write register data length&lt;br /&gt;
|-&lt;br /&gt;
|00 FF || Register data || Write device address 0x00FF, range: 0x0001-0x00FF&lt;br /&gt;
|-&lt;br /&gt;
|E8 80 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return as is: 00 10 00 00 00 01 02 00 FF EB 80&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|00 || Fixed value||&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address||&lt;br /&gt;
|-&lt;br /&gt;
|00 01 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|02 || Write register byte count || Write register data length&lt;br /&gt;
|-&lt;br /&gt;
|00 FF || Register data || That is, write device address 0x00FF, range: 0x0001-0x00FF&lt;br /&gt;
|-&lt;br /&gt;
|EB 80 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''6. Read device address 255'''&amp;lt;br&amp;gt;&lt;br /&gt;
Sent: 00 03 00 00 01 85 DB&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|00 || Fixed value||&lt;br /&gt;
|-&lt;br /&gt;
|03 || Function code || Read and hold register&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address||&lt;br /&gt;
|-&lt;br /&gt;
|00 01 || Number of registers || Number of read registers&lt;br /&gt;
|-&lt;br /&gt;
|85 DB || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: 00 03 02 00 FF C5 C4&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|00 || Fixed value||&lt;br /&gt;
|-&lt;br /&gt;
|03 || Function code || Read and hold register&lt;br /&gt;
|-&lt;br /&gt;
|02 || Number of data bytes || Length of data read from registers&lt;br /&gt;
|-&lt;br /&gt;
|00 FF || Register data || Device address read as 0x00FF&lt;br /&gt;
|-&lt;br /&gt;
|C5 C4 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''7. Read relay status'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 01 00 00 00 20 28 0C &amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|01 || Function code || Read coil status&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Starting address || #1 relay address&lt;br /&gt;
|-&lt;br /&gt;
|00 20 || Number of registers || The total number of relays to be read is 0x0008&lt;br /&gt;
|-&lt;br /&gt;
|28 0C || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 01 04 00 00 01 25 DE&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Fixed value||&lt;br /&gt;
|-&lt;br /&gt;
|01 || Function code || Read and hold register&lt;br /&gt;
|-&lt;br /&gt;
|04 || Number of data bytes || Length of data read from registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00&amp;lt;br&amp;gt;00 01 || Data || The read data, Bit0-Bit3 respectively represent the status of relay # 1- # 32, with 0 being off and 1 being on&lt;br /&gt;
|-&lt;br /&gt;
|25 DE || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''8. Turn on relay 1 (flash off mode 2S)'''&amp;lt;br&amp;gt;&lt;br /&gt;
send out: FF 10 00 00 00 02 04 00 04 00 14 85 8A &amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || # 1 relay -- # 32 relay addresses are 0x0000-0x001F respectively&lt;br /&gt;
|-&lt;br /&gt;
|00 02 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|04 || Write register byte count || Write register data length&lt;br /&gt;
|-&lt;br /&gt;
|00 04 || Register 1 data || Flash off/flash off value, 0x0004 represents flash off, 0x0002 represents flash off&lt;br /&gt;
|-&lt;br /&gt;
|00 14 || Register 2 data || Delay setting value, range: 0x0001--0xFFFF. The delay base is 0.1S, so the delay time is 0x0014 * 0.1=20 * 0.1S=2S. Relay # 1 will automatically disconnect after closing for 2S&lt;br /&gt;
|-&lt;br /&gt;
|C5 9F || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
return: FF 10 00 00 00 02 A4 16&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay Address || #1 Relay -- # 32 Relay addresses are: 0x0000-0x001F&lt;br /&gt;
|-&lt;br /&gt;
|00 02 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|54 16 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''9. Turn off relay 1 (flash mode 3S)'''&amp;lt;br&amp;gt;&lt;br /&gt;
Sent: FF 10 00 00 00 02 04 00 02 00 1E E5 8C&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay address || #1 relay -- # 32 relay addresses are 0x0000-0x001F respectively&lt;br /&gt;
|-&lt;br /&gt;
|00 02 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|04 || Write register byte count || Write register data length&lt;br /&gt;
|-&lt;br /&gt;
|00 02 || Register 1 data || Flash off/flash off value, 0x0004 represents flash off, 0x0002 represents flash off&lt;br /&gt;
|-&lt;br /&gt;
|00 1E || Register 2 data || Delay setting value, range: 0x0001--0xFFFF. The delay base is 0.1S,&amp;lt;br&amp;gt; so the delay time is 0x001E * 0.1=30 * 0.1S=3S. Relay # 1 will automatically disconnect after being closed for 3S&lt;br /&gt;
|-&lt;br /&gt;
|E5 8C || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: FF 10 00 00 02 54 16&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|FF || Device Address || Range 1-255, default 255&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Write multiple registers&lt;br /&gt;
|-&lt;br /&gt;
|00 00 || Relay Address || #1 Relay -- # 32 Relay addresses are: 0x0000-0x001F&lt;br /&gt;
|-&lt;br /&gt;
|00 02 || Write the number of registers||&lt;br /&gt;
|-&lt;br /&gt;
|54 16 || CRC16 || CRC-16/MODBUS checksum&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Detailed Explanation of Serial Port Instructions==&lt;br /&gt;
'''1. Set the default MAC address to 00.00.00.58.58.58'''&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 01 00 00 00 58 58 58 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|01 || Function code || Set default MAC address&lt;br /&gt;
|-&lt;br /&gt;
|00 00&amp;lt;br&amp;gt;00 58&amp;lt;br&amp;gt;58 58 || Default MAC Address || 6-byte MAC Address&amp;lt;br&amp;gt;Note: Do not use consecutive A0/AA when setting to avoid conflicts with the frame header/footer! &amp;lt;br&amp;gt;Factory default value: 00:08: dc: 11:11:11&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 01 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|01 || Function code || Set default MAC address&lt;br /&gt;
|-&lt;br /&gt;
|01 || Setting Status || Returning 01 indicates successful setting&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''2. Set the default IP address to 192.168.0.88'''&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 02 C0 A8 00 58 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
| A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
| 02 || Function code || Set default IP address&lt;br /&gt;
|-&lt;br /&gt;
| C0 A8&amp;lt;br&amp;gt;00 58&amp;lt; || Default IP address || Hexadecimal data C0 A8 00 58 represents decimal IP address 192.168.0.88&amp;lt;br&amp;gt;Note: Do not use consecutive A0/consecutive AA when setting to avoid conflicts with frame header/footer!&amp;lt;br&amp;gt; Factory default value: 192.168.1.88&lt;br /&gt;
|-&lt;br /&gt;
| AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 02 01 AA AA&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|02 || Function code || Set default IP address&lt;br /&gt;
|-&lt;br /&gt;
|01 || Setting Status || Returning 01 indicates successful setting&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''3. Set the default gateway to 192.168.0.1'''&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 03 C0 A8 00 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|03 || Function code || Set default gateway&lt;br /&gt;
|-&lt;br /&gt;
|C0 A8&amp;lt;br&amp;gt;00 01&amp;lt;|| Default gateway || Hexadecimal data C0 A8 00 01 represents decimal gateway 192.168.0.1&amp;lt;br&amp;gt;Note: Do not use consecutive A0/consecutive AA when setting to avoid conflicts with frame header/footer!&amp;lt;br&amp;gt; Factory default value: 192.168.1.1&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 03 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|03 || Function code || Set default gateway&lt;br /&gt;
|-&lt;br /&gt;
|01 || Setting Status || Returning 01 indicates successful setting&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''4. Send query settings parameters: A0 A0 10 AA AA'''&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Field || Meaning || Annotation&lt;br /&gt;
|-&lt;br /&gt;
|A0 A0 || Frame header || Starting byte&lt;br /&gt;
|-&lt;br /&gt;
|10 || Function code || Query set parameters&lt;br /&gt;
|-&lt;br /&gt;
|AA AA || Frame Tail || End Byte&lt;br /&gt;
|}&lt;br /&gt;
Return: Default MAC, default IP, and default gateway parameters saved by Flash&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Instructions for using serial port commands==&lt;br /&gt;
'''Regarding the default MAC address: '''&amp;lt;br&amp;gt;&lt;br /&gt;
Only when there are multiple Modbus network relay modules in the same LAN, it is necessary to set it according to actual needs&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''Regarding the default IP address and gateway:'''&amp;lt;br&amp;gt;&lt;br /&gt;
The module obtains the IP address and gateway parameters from the router through DHCP by default,&amp;lt;br&amp;gt; and generally does not need to set these two parameters. Only in the case of DHCP acquisition failure, it is necessary to set them according to actual needs, as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-10.png|500px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Taking the example of setting network parameters using serial debugging software sscom5.13.1, the steps are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
1. Connect the serial port of the module through a USB to TTL module (such as CH340/FT232 module), and the wiring is as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width:800px&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|USB to TTL module || Network relay module&lt;br /&gt;
|-&lt;br /&gt;
| 3V3 || 3V3&lt;br /&gt;
|-&lt;br /&gt;
| GND || GND&lt;br /&gt;
|-&lt;br /&gt;
| TXD ||RXD&lt;br /&gt;
|-&lt;br /&gt;
| RXD ||TXD&lt;br /&gt;
|}&lt;br /&gt;
Then plug the USB to TTL module into the computer's USB port&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;When setting parameters, you don't need to plug in an Ethernet cable!'''&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
2. Open the sscom5.13.1 software, select the correct COM port, set the baud rate to 115200, and 8 seconds before power on, the module will attempt to obtain network parameters through DHCP and output corresponding debugging information&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-11.png|700px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. After the debugging information is displayed, you can set the default network parameters through the serial port. Since the command is in hexadecimal, you need to check &amp;quot;HEX Display&amp;quot; and &amp;quot;HEX Send&amp;quot;, enter the command in the command area, and then click &amp;quot;Send&amp;quot; to set it.&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-12.png|700px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
'''Here is a list of settings:'''&amp;lt;br&amp;gt;&lt;br /&gt;
1. Set the default MAC address to 00.00.00.58.58.58&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 01 00 00 00 58 58 58 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 01 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-13.png|500px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
2. Set the default IP address to 192.168.0.88&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 02 C0 A8 00 58 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 02 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-14.png|500px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. Set the default gateway to 192.168.0.1&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 03 C0 A8 00 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
Return: A0 A0 03 01 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-15.png|500px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
4. Query the set parameters&amp;lt;br&amp;gt;&lt;br /&gt;
Because the parameters are displayed in text form, it is necessary to uncheck the &amp;quot;HEX display&amp;quot; option first&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-16.png|700px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Send: A0 A0 10 AA AA&amp;lt;br&amp;gt;&lt;br /&gt;
Return:&amp;lt;br&amp;gt;&lt;br /&gt;
The network parameters for Flash storage are as follows:&amp;lt;br&amp;gt;&lt;br /&gt;
MAC address for Flash storage: 0.0.0.58.58.58&amp;lt;br&amp;gt;&lt;br /&gt;
Flash storage IP address: 192.168.0.88&amp;lt;br&amp;gt;&lt;br /&gt;
Gateway for Flash storage: 192.168.0.1&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-17.png|500px|]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;After completing the parameter settings, power off and restart/press the onboard RST key to make the settings effective!&amp;lt;/div&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remarks:&amp;lt;br&amp;gt;&lt;br /&gt;
1. The set parameters support power-off saving&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
2. When setting the default IP and gateway, the third data indicates that the network segment is critical. For example, if the IP address of other devices connected to the router is 192.168.0.XXX, then the default IP address and gateway can only be set to 192.168.0.XXX and 192.168.0.1, respectively&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
3. When setting the default IP address, you can enter the router backend to confirm whether the IP address is already occupied. Only idle addresses can be used.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
4. The conversion between hexadecimal and decimal can be viewed using the built-in calculator software in Win10.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:NW-3-1-18.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Download LC-NW-3-1 User Manual==&lt;br /&gt;
For more information on the use of LC-NW-3-1, please refer to[https://pan.baidu.com/s/15MhK9NX3ELquwE4JZ4qWjw Baidu Netdisk] Extraction code: ug7n&lt;/div&gt;</summary>
		<author><name>Melody</name></author>	</entry>

	</feed>