Skip to content

Y301-220/222 Technical Manual

Y301-220Y301-222
Y301-220Y301-222

Table of Contents

  1. Overview
  2. Default Settings
  3. Modbus Register Map
  4. Command Examples
  5. Configuration
  6. Linkage Rules
  7. Troubleshooting

1. Overview

This manual covers Modbus-RTU commands for Y301-220 and Y301-222 I/O modules.

ModelDIDOAIDescription
Y301-220220Dual input + dual relay
Y301-222222Dual input + dual relay + dual analog input

Frame Format: [Slave ID][Function][Data][CRC Lo][CRC Hi]

All examples use slave address 0x01. Replace with your device address.


2. Default Settings

ParameterDefault
Slave Address1
Baud Rate9600 bps
Data Bits8
ParityNone
Stop Bits1

3. Modbus Register Map

3.1 Digital Inputs (DI) — Function 0x02

ChannelAddressModels
DI10x0000Y301-220, Y301-222
DI20x0001Y301-220, Y301-222

Response: 0 = no signal, 1 = signal present.

3.2 Digital Outputs (DO) — Function 0x01/0x05

ChannelAddressModels
DO10x0000Y301-220, Y301-222
DO20x0001Y301-220, Y301-222

Write value: 0x0000 = open (OFF), 0xFF00 = close (ON).

3.3 Analog Inputs (AI) — Function 0x04 (Y301-222 only)

ChannelAddressDescription
AI1 Voltage0x0000Voltage reading (mV)
AI1 Current0x0001Current reading (µA)
AI2 Voltage0x0002Voltage reading (mV)
AI2 Current0x0003Current reading (µA)

Each AI channel accepts either voltage or current input; the other reading is invalid.

3.4 Configuration Registers — Function 0x03/0x06

AddressParameterRangeDefault
0x003ESlave Address1–2551
0x0057Baud Rate600–2304009600
0x0059Data Bits8 or 98
0x005AStop Bits1 or 21
0x005BParity0=none, 1=odd, 2=even0

4. Command Examples

4.1 Read Digital Input

Read DI1:

Request:  01 02 00 00 00 01 B9 CA
Response: 01 02 01 [status] [CRC]

Read DI2:

Request:  01 02 00 01 00 01 E8 0A

4.2 Read Digital Output State

Read DO1:

Request:  01 01 00 00 00 01 FD CA
Response: 01 01 01 [status] [CRC]

Read DO2:

Request:  01 01 00 01 00 01 AC 0A

4.3 Control Digital Output

ActionCommand
DO1 OFF01 05 00 00 00 00 CD CA
DO1 ON01 05 00 00 FF 00 8C 3A
DO2 OFF01 05 00 01 00 00 9C 0A
DO2 ON01 05 00 01 FF 00 DD FA

4.4 Read Analog Input (Y301-222 only)

Read AI1 Voltage:

Request:  01 04 00 00 00 01 31 CA
Response: 01 04 02 [high byte] [low byte] [CRC]

Read AI1 Current:

Request:  01 04 00 01 00 01 60 0A

Read AI2 Voltage:

Request:  01 04 00 02 00 01 90 0A

Read AI2 Current:

Request:  01 04 00 03 00 01 C1 CA

4.5 Quick Reference Table

OperationRequest (hex)
Read DI101 02 00 00 00 01 B9 CA
Read DI201 02 00 01 00 01 E8 0A
Read DO101 01 00 00 00 01 FD CA
Read DO201 01 00 01 00 01 AC 0A
DO1 OFF01 05 00 00 00 00 CD CA
DO1 ON01 05 00 00 FF 00 8C 3A
DO2 OFF01 05 00 01 00 00 9C 0A
DO2 ON01 05 00 01 FF 00 DD FA
Read AI1 Voltage01 04 00 00 00 01 31 CA
Read AI1 Current01 04 00 01 00 01 60 0A
Read AI2 Voltage01 04 00 02 00 01 90 0A
Read AI2 Current01 04 00 03 00 01 C1 CA

5. Configuration

5.1 Change Slave Address

Set slave address to 5:

Request:  01 06 00 3E 00 05 E8 00
Response: 01 06 00 3E 00 05 E8 00

After changing, use the new address for subsequent commands.

5.2 Change Baud Rate

Common baud rate values:

Baud RateValue
96000x00002580
192000x00004B00
384000x00009600
1152000x0001C200

Power cycle the device after changing baud rate.

5.3 Factory Reset

Hold the Reload button for 3–15 seconds. The device restores:

  • Slave address → 1
  • Baud rate → 9600
  • All parameters → factory defaults

6. Linkage Rules

Y301-220/222 support DI→DO linkage. Y301-222 also supports AI threshold triggers.

6.1 Linkage Register Map

Rules start at address 0x0080. Each rule uses 8 registers (16 bytes). Maximum 4 rules (2 per DO).

OffsetFieldDescription
+0ModeRule type (see below)
+1Action0=open, 1=close, 2=toggle
+2DO IndexTarget relay (1-based)
+3Trigger IndexSource DI or AI (1-based)
+4–5Param1Mode-specific (32-bit)
+6–7Param2Mode-specific (32-bit)

6.2 Linkage Modes

ModeNameDescription
0DI FollowDO mirrors DI state
1DI ReverseDO inverts DI state
2PulseDO pulses for Param1 ms when DI triggers
3Delay OnDO closes Param1 ms after DI closes
4Delay OffDO opens Param1 ms after DI opens
5CycleDO toggles periodically; Param1=ON time, Param2=OFF time
10AI ThresholdTrigger when AI exceeds Param1 (Y301-222 only)

6.3 Example: DO1 Follows DI1

Configuration:

FieldValue
Mode0x0000 (DI Follow)
Action0x0001 (close when DI=1)
DO Index0x0001
Trigger Index0x0001
Param10x00000000
Param20x00000000

Modbus Command:

01 10 00 80 00 08 10 00 00 00 01 00 01 00 01 00 00 00 00 00 00 00 00 0D FE

6.4 Example: DO1 Closes When AI1 Exceeds 5V (Y301-222 only)

Configuration:

FieldValue
Mode0x000A (AI Threshold)
Action0x0001 (close)
DO Index0x0001
Trigger Index0x0001 (AI1)
Param10x00001388 (5000 mV)
Param20x000003E8 (min trigger interval 1000 ms)

7. Troubleshooting

SymptomCauseSolution
No responseWrong address or baud rateVerify settings; try broadcast address 0
CRC errorWiring issue or noiseCheck RS485 A/B polarity; add termination
DO not switchingRelay load exceeds ratingReduce load; check contact rating
DI always shows 0Wiring incorrectVerify COM/DI connection; check input voltage
AI reading abnormalWrong wiring modeConfirm voltage/current wiring; use only one per channel

LED Indicators

LEDStateMeaning
POWERSteadyPower OK
TXBlinkSending data
RXBlinkReceiving data
DI1/DI2OnInput active
DO1/DO2OnRelay closed