Product Features
DC7-30V wide voltage power supply
RS485 communication isolation
The communication interface supports network ports.
Supports standard Modbus protocol RTU format
You can set 0-255 device addresses, and the 5-digit address dip switch can set 1-31 address codes. For addresses greater than 31, they can be set through software.
Equipped with flashing and breaking functions, it can include parameters in the command and operate the relay to automatically turn off after a period of time;
Equipped with strobe function, it can control the periodic switching of relays;
Relay output contact isolation
PRODUCT FUNCTION
Four way relay control
Support 5-digit addressing address
Remote control through network
Product Selection
Main parameters
Interface Description
Connection
Relay wiring instructions
WiFi Description
The WiFi module has four modes
1. Default mode: The WiFi module serves as a hotspot and can be controlled by connecting to WiFi on a computer or mobile phone. It can also be connected through a network port.
2. WiFi AP to serial port conversion: WiFi can only be used as a hotspot. Connect to WiFi using a phone or computer, and control the module using the phone or computer.
3. Ethernet to serial port: Connect the module to a router or server via Ethernet cable. The module can be communicated through a computer or mobile phone connected to this router or server. (First, connect to WiFi for configuration)
4. WiFi Client to Serial Port: Configure the WiFi module to client mode and connect wirelessly to the router or server. Can communicate with other devices under this route.
Quick instructions for using each mode
Configuration interface:
Virtual Serial Port Description
There are two working modes for virtual serial ports
Interface:
Please refer to the detailed instructions in the relevant download for the installation method.
Mode configuration
Before configuring the mode, be sure to short-circuit the two reset pins of the WIFI module to restore it to factory settings.
The debugging process in default mode is detailed in the instruction manual.
Test software description
http://www.juyingele.com.cn/software/software/Juying Soar DAM Debugging Software User Guide. rar (software video tutorial link)
Software functions:
Relay status inquiry
Relay independent control
Analog reading
Switch status query
Debugging information query
Change of working mode
Setting of offset address
Relay overall control
Working mode functions and settings
Connected Device
http://www.juyingele.com.cn/software/software/Juying Soar DAM Debugging Software User Guide. rar (software video tutorial link)
Open the "Juying Soaring DAM Series Configuration Software"; Serial port setting column: Select the corresponding COM port of your computer for the serial port, choose the default baud rate of the device (9600) for the baud rate (before setting the baud rate yourself), fill in the device address as "254" (254 is the broadcast address of the device), select the corresponding device model, set the four parameters of the above device, click to open the serial port, and click the relay button "JD1". If the relay responds, the connection is successful.
Method for changing device address
Introduction to device address
Device offset address refers to offsetting based on the thin code switch address, with the specific relationship being: device address=dip switch address+offset address.
Reading device address
Click on 'Read Address' at the top of the software
Setting and Reading of Offset Address
Click on "Read" or "Set" after the offset address below the software to read or set the offset address of the device.
Introduction to the Address of the Device Dialing Switch
1. When all five dialing codes are dialed to the "ON" position, it is the address "31";
2. When all five dialing codes are dialed to the "OFF" position, it is the address "0";
3. The leftmost 1 is the binary lowest bit.
4. Address Table:
Reading and Setting of Baud Rate
Click on "Read" and "Set" in the baud rate settings bar below to read and set the baud rate and address respectively. After the operation, you need to restart the device and modify the computer serial port settings.
Flash on/off function and settings
Introduction to the Flashing and Breaking Function
Manual mode: For each operation of the relay, the relay will flip once (open when closed, close when open);
Flashing mode: For each operation of the relay, the relay will close for 1 second (actual time [unit second]=set number * 0.1) and then automatically disconnect;
Flashing mode: For each operation of the relay, the relay will disconnect for 1 second (adjustable time) and then automatically close;
Flashing and disconnecting settings
Open the "Juying Soaring DAM Series Configuration Software" and click the dropdown arrow behind the relay mode to select the mode. (The later time can be set by yourself, actual time=fill in the number * 0.1 [unit: second])
Example of Communication Instructions
This product supports standard Modbus instructions. For detailed instruction generation and parsing methods, please refer to the register table in this article and consult the "MODBUS Protocol Chinese Version" (available in the product download).
This product also supports Modbus RTU format.
Modbus Register Description
This control card is mainly a coil register, which mainly supports the following instruction codes: 1, 5, 15
Coil register address table:
remarks:
① Modbus device commands support the following Modbus addresses:
00001 to 09999 are discrete outputs (coils)
10001 to 19999 are discrete inputs (contacts)
30001 to 39999 are input registers (usually analog inputs) 40001 to 49999 are holding registers (usually storing device configuration information)
Using a 5-digit code format, the first character determines the register type, and the remaining 4 characters represent the address. Address 1 starts from 0, such as 00001 corresponding to 0000.
② Table of baud rate values correspondence
③ Relay status can be queried through address 30002 or address 00001--00002, but control can only use address 00001--00002.
The data length of 30002 address is 16 bits. It can represent up to 16 relays.
The corresponding results are as follows:
The bit 8 of the data in register 30009 is the same as the data in register 00001.
Similarly, the same goes for optocoupler input. The bit8 and bit9 of register 30003 and registers 10001 and 10002 correspond to the specified hardware.
The register address follows the PLC naming convention, where the real address is obtained by removing the highest bit and then subtracting one.
Instruction generation instructions
Application example and explanation: In addition to the dip switch address, the default broadcast address for this device is 254. When there is only one device on the bus, there is no need to worry about the dip switch address. Simply use the 254 address. When there are multiple devices on the bus, select different addresses through the dip switch and send control instructions based on address differentiation.
Note: The RS232 bus is a 1-on-1 bus, which means there can only be two devices on the bus, such as a computer and a relay board. Only the 485 bus can mount multiple devices.
The instructions can be obtained through the debugging information of the "Juying Soaring DAM Series Configuration Software".
Instruction generation instructions: For instructions not listed in the table below, users can generate them themselves according to the Modbus protocol. For reading and writing relay coils, it is actually reading and writing coil registers in the Modbus register. The address of the relay register has been explained in the previous text, and users only need to generate read and write instructions for register operations. For example, reading or writing the status of relay 1 is actually a read/write operation on the coil register 0001 corresponding to relay 1.
Detailed explanation:
Control 1 relay (taking the first circuit as an example, refer to this example for other channels)
Sending code: FE 05 00 00 FF 00 98 35
Relay card return information:
Return code: FE 05 00 00 FF 00 98 35
1. Relay inquiry
Query 4-channel relays
Sending code: FE 01 00 00 04 29 C6
Relay card return information:
Return code: FE 01 00 61 9C
2. Analysis of flashing open and closing instructions
Flash development code: FE 10 00 03 00 02 04 00 04 00 0A 00 D8
Flashing sending code: FE 10 00 03 00 02 04 00 02 00 14 21 62
Return code: FE 10 00 03 00 02 A5 C7
3. Analysis of fully open and fully closed commands
Full development code: FE 0F 00 00 04 01 FF 31 D2
Total disconnection sending code: FE 0F 00 00 04 01 00 71 92
Complete disconnection and full open return code: FE 0F 00 00 04 40 07
Common problems and solutions
1. Unable to establish communication using WiFi after the relay board is powered on
Reset WiFi module. Connect again with this link.
2. Unable to communicate with computer (phone)
Check if the configuration is correct.
3. No action after sending the command
Check if hexadecimal code is being sent
Is the code correct
4. I configured Ethernet mode and tried to configure it to another mode, but found that I couldn't connect to WiFi
Configure the WiFi module after resetting it