Appearance
Y301-880 Technical Manual

Contents
- Overview
- Default Settings
- Modbus Register Map
- Command Examples
- Parameter Configuration
- Automation Rules
- Troubleshooting
1. Overview
This manual describes the Modbus RTU communication commands for the Y301-880 I/O module.
| Model | DI | DO | AI | Description |
|---|---|---|---|---|
| Y301-880 | 8 | 8 | 0 | Eight inputs + eight relays |
Frame format: [slave address][function code][data][CRC low][CRC high]
The examples below use slave address 0x01. Replace it with the actual device address in your application.
2. Default Settings
| Parameter | Default |
|---|---|
| Slave address | 1 |
| Baud rate | 9600 bps |
| Data bits | 8 |
| Parity | None |
| Stop bits | 1 |
3. Modbus Register Map
3.1 Digital Input (DI) - Function Code 0x02
| Channel | Address |
|---|---|
| DI1 | 0x0000 |
| DI2 | 0x0001 |
| DI3 | 0x0002 |
| DI4 | 0x0003 |
| DI5 | 0x0004 |
| DI6 | 0x0005 |
| DI7 | 0x0006 |
| DI8 | 0x0007 |
Return value: 0 = inactive, 1 = active.
3.2 Digital Output (DO) - Function Code 0x01/0x05
| Channel | Address |
|---|---|
| DO1 | 0x0000 |
| DO2 | 0x0001 |
| DO3 | 0x0002 |
| DO4 | 0x0003 |
| DO5 | 0x0004 |
| DO6 | 0x0005 |
| DO7 | 0x0006 |
| DO8 | 0x0007 |
Write value: 0x0000 = open, 0xFF00 = closed.
3.3 Configuration Registers - Function Code 0x03/0x06
| Address | Parameter | Range | Default |
|---|---|---|---|
0x003E | Slave address | 1-255 | 1 |
0x0057 | Baud rate | 600-230400 | 9600 |
0x0059 | Data bits | 8 or 9 | 8 |
0x005A | Stop bits | 1 or 2 | 1 |
0x005B | Parity | 0=None, 1=Odd, 2=Even | 0 |
4. Command Examples
4.1 Read Digital Inputs
| Operation | Request (Hex) |
|---|---|
| Read DI1 | 01 02 00 00 00 01 B9 CA |
| Read DI2 | 01 02 00 01 00 01 E8 0A |
| Read DI3 | 01 02 00 02 00 01 18 0A |
| Read DI4 | 01 02 00 03 00 01 49 CA |
| Read DI5 | 01 02 00 04 00 01 F8 0B |
| Read DI6 | 01 02 00 05 00 01 A9 CB |
| Read DI7 | 01 02 00 06 00 01 59 CB |
| Read DI8 | 01 02 00 07 00 01 08 0B |
4.2 Read Digital Output Status
| Operation | Request (Hex) |
|---|---|
| Read DO1 | 01 01 00 00 00 01 FD CA |
| Read DO2 | 01 01 00 01 00 01 AC 0A |
| Read DO3 | 01 01 00 02 00 01 5C 0A |
| Read DO4 | 01 01 00 03 00 01 0D CA |
| Read DO5 | 01 01 00 04 00 01 BC 0B |
| Read DO6 | 01 01 00 05 00 01 ED CB |
| Read DO7 | 01 01 00 06 00 01 1D CB |
| Read DO8 | 01 01 00 07 00 01 4C 0B |
4.3 Control Digital Outputs
| Operation | Command |
|---|---|
| Open DO1 | 01 05 00 00 00 00 CD CA |
| Close DO1 | 01 05 00 00 FF 00 8C 3A |
| Open DO2 | 01 05 00 01 00 00 9C 0A |
| Close DO2 | 01 05 00 01 FF 00 DD FA |
| Open DO3 | 01 05 00 02 00 00 6C 0A |
| Close DO3 | 01 05 00 02 FF 00 2D FA |
| Open DO4 | 01 05 00 03 00 00 3D CA |
| Close DO4 | 01 05 00 03 FF 00 7C 3A |
| Open DO5 | 01 05 00 04 00 00 8C 0B |
| Close DO5 | 01 05 00 04 FF 00 CD FB |
| Open DO6 | 01 05 00 05 00 00 DD CB |
| Close DO6 | 01 05 00 05 FF 00 9C 3B |
| Open DO7 | 01 05 00 06 00 00 2D CB |
| Close DO7 | 01 05 00 06 FF 00 6C 3B |
| Open DO8 | 01 05 00 07 00 00 7C 0B |
| Close DO8 | 01 05 00 07 FF 00 3D FB |
4.4 Quick Reference Table
| Operation | Request (Hex) |
|---|---|
| Read DI1 | 01 02 00 00 00 01 B9 CA |
| Read DI2 | 01 02 00 01 00 01 E8 0A |
| Read DI3 | 01 02 00 02 00 01 18 0A |
| Read DI4 | 01 02 00 03 00 01 49 CA |
| Read DI5 | 01 02 00 04 00 01 F8 0B |
| Read DI6 | 01 02 00 05 00 01 A9 CB |
| Read DI7 | 01 02 00 06 00 01 59 CB |
| Read DI8 | 01 02 00 07 00 01 08 0B |
| Open DO1 | 01 05 00 00 00 00 CD CA |
| Close DO1 | 01 05 00 00 FF 00 8C 3A |
| Open DO2 | 01 05 00 01 00 00 9C 0A |
| Close DO2 | 01 05 00 01 FF 00 DD FA |
| Open DO3 | 01 05 00 02 00 00 6C 0A |
| Close DO3 | 01 05 00 02 FF 00 2D FA |
| Open DO4 | 01 05 00 03 00 00 3D CA |
| Close DO4 | 01 05 00 03 FF 00 7C 3A |
| Open DO5 | 01 05 00 04 00 00 8C 0B |
| Close DO5 | 01 05 00 04 FF 00 CD FB |
| Open DO6 | 01 05 00 05 00 00 DD CB |
| Close DO6 | 01 05 00 05 FF 00 9C 3B |
| Open DO7 | 01 05 00 06 00 00 2D CB |
| Close DO7 | 01 05 00 06 FF 00 6C 3B |
| Open DO8 | 01 05 00 07 00 00 7C 0B |
| Close DO8 | 01 05 00 07 FF 00 3D FB |
5. Parameter Configuration
5.1 Change the Slave Address
Set the slave address to 5:
text
Request: 01 06 00 3E 00 05 E8 00
Response: 01 06 00 3E 00 05 E8 00After the change, subsequent commands must use the new address.
5.2 Change the Baud Rate
Common baud-rate values:
| Baud Rate | Value |
|---|---|
| 9600 | 0x00002580 |
| 19200 | 0x00004B00 |
| 38400 | 0x00009600 |
| 115200 | 0x0001C200 |
Power-cycle the device after changing the baud rate.
5.3 Restore Factory Defaults
Hold the Reload button for 3-15 seconds to restore:
- Slave address ->
1 - Baud rate ->
9600 - All parameters -> factory defaults
6. Automation Rules
The Y301-880 supports DI -> DO automation. Up to 16 rules are supported, with 2 rules per DO.
6.1 Automation Register Map
Rules start at address 0x0080. Each rule uses 8 registers (16 bytes).
| Offset | Field | Description |
|---|---|---|
+0 | Mode | Rule type (see table below) |
+1 | Action | 0=open, 1=close, 2=toggle |
+2 | DO index | Target relay, starting from 1 |
+3 | Trigger index | Source DI, starting from 1 |
+4-5 | Parameter 1 | Mode-dependent, 32-bit |
+6-7 | Parameter 2 | Mode-dependent, 32-bit |
6.2 Rule Modes
| Mode | Name | Description |
|---|---|---|
| 0 | DI follow | DO follows the DI state |
| 1 | DI inverse | DO is the inverse of the DI state |
| 2 | Pulse | DO outputs a pulse for parameter1 ms when DI triggers |
| 3 | Delayed ON | DO closes parameter1 ms after DI closes |
| 4 | Delayed OFF | DO opens parameter1 ms after DI opens |
| 5 | Cycle | DO toggles periodically, parameter1=ON time, parameter2=OFF time |
| 9 | Daily schedule | Execute the action daily at the time specified by parameter1 (seconds since midnight) |
| 11 | Button mode | DO closes when the DI is pressed and opens when it is released |
| 12 | Watchdog | DO acts when the DI has no signal for parameter1 ms |
| 13 | Logic combination | Apply AND/OR/XOR logic across multiple DI channels |
6.3 Example: DO1 Follows DI1
Configuration:
| Field | Value |
|---|---|
| Mode | 0x0000 (DI follow) |
| Action | 0x0001 (close when DI=1) |
| DO index | 0x0001 |
| Trigger index | 0x0001 |
| Parameter 1 | 0x00000000 |
| Parameter 2 | 0x00000000 |
Modbus command:
text
01 10 00 80 00 08 10 00 00 00 01 00 01 00 01 00 00 00 00 00 00 00 00 0D FE6.4 Example: DI1 Triggers a 1-second Pulse on DO1
Configuration:
| Field | Value |
|---|---|
| Mode | 0x0002 (pulse) |
| Action | 0x0001 (close) |
| DO index | 0x0001 |
| Trigger index | 0x0001 |
| Parameter 1 | 0x000003E8 (1000 ms) |
| Parameter 2 | 0x00000000 |
6.5 Example: Close DO1 Daily at 18:00
Configuration:
| Field | Value |
|---|---|
| Mode | 0x0009 (daily schedule) |
| Action | 0x0001 (close) |
| DO index | 0x0001 |
| Trigger index | 0x0000 |
| Parameter 1 | 0x0000FD20 (64800 seconds = 18:00) |
| Parameter 2 | 0x00000000 |
6.6 Example: Close DO1 When DI1 and DI2 Are Both Active (Logic AND)
Configuration:
| Field | Value |
|---|---|
| Mode | 0x000D (logic combination) |
| Action | 0x0001 (close) |
| DO index | 0x0001 |
| Trigger index | 0x0000 |
| Parameter 1 | 0x00000000 (DO mask) |
| Parameter 2 | 0x00000003 (DI mask: DI1 + DI2) |
7. Troubleshooting
| Symptom | Cause | Solution |
|---|---|---|
| No response | Wrong address or baud rate | Check settings and try broadcast address 0 |
| CRC error | Wiring issue or interference | Check RS485 polarity and add termination resistors |
| DO does not switch | Load exceeds rating | Reduce the load and verify contact ratings |
| DI always reads 0 | Wiring error | Check COM/DI wiring and input voltage |
LED Indicators
| LED | Status | Meaning |
|---|---|---|
| POWER | Solid on | Power is normal |
| TX | Flashing | Data is being transmitted |
| RX | Flashing | Data is being received |
| DI1-DI8 | On | Input is active |
| DO1-DO8 | On | Relay is closed |
- Manufacturer: Hunan YenGear Tech Co., Ltd.
- Email: hi@yengear.com
- Website: www.yengear.com
