Skip to content

Y301-110/200/020 Serial I/O Modules Technical Manual ​

Y301-110Y301-200Y301-020
Y301-110 Product ImageY301-200 Product ImageY301-020 Product Image

Contents ​

  1. Overview
  2. Default Settings
  3. Modbus Register Map (Modbus Address Only)
  4. Command Examples (CRC Included)
  5. Parameter Configuration
  6. Automation Rules
  7. Troubleshooting

1. Overview ​

Y301-110, Y301-200, and Y301-020 use Modbus RTU for digital input monitoring and relay control.

ModelDIDODescription
Y301-11011Single input + single relay
Y301-20020Dual input monitoring
Y301-02002Dual relay control

Frame format: [slave address][function code][data][CRC low][CRC high]

Command examples use slave address 0x01. Replace it with the configured device address and recalculate the CRC.

2. Default Settings ​

ParameterDefault
Slave address1
Baud rate9600 bps
Data bits8
Stop bits1
ParityNone
Pulse debounce50 ms (0x0042 = 50)

3. Modbus Register Map (Modbus Address Only) ​

3.1 Digital Input (DI) - Function Code 0x02 ​

ChannelModbus AddressSupported ModelsR/W
DI10x0000Y301-110, Y301-200RO
DI20x0001Y301-200RO

Return value: 0 = inactive, 1 = active.

3.2 Digital Output (DO) - Function Code 0x01/0x05/0x0F ​

ChannelModbus AddressSupported ModelsR/W
DO10x0000Y301-110, Y301-020RW
DO20x0001Y301-020RW

For function code 0x05, write 0x0000 to open the NO contact or 0xFF00 to close it. Function code 0x0F uses packed bits: 0 = open, 1 = closed.

3.3 Common Holding Registers - Function Code 0x03/0x06/0x10 ​

Holding-register data uses big-endian order. For a 32-bit value, the lower register address contains the high 16-bit word. Each register transmits its high byte first. Read or write both registers together.

Modbus AddressParameterBytesR/WRange / Enum
0x002ARuntime slave address2RO0-255
0x003ESlave address2RW1-255
0x003FBroadcast mode2RW0 = disabled; 1 = receive and respond; 2 = receive without response
0x0041Pulse count edge2RW0 = falling; 1 = rising
0x0042Pulse debounce (ms)2RW5-255
0x0055RTC Unix time4RWuint32
0x0057Baud rate4RW600-230400
0x0059Data bits2RW8 or 9
0x005AStop bits2RW1 or 2
0x005BParity2RW0 = none; 1 = odd; 2 = even

3.4 DI Pulse Counter Registers ​

ChannelModbus AddressBytesR/WSupported ModelsDescription
DI1 count0x0500 (0x0500~0x0501)4RWY301-110, Y301-200Only 0 is allowed for write (clear)
DI2 count0x0502 (0x0502~0x0503)4RWY301-200Only 0 is allowed for write (clear)

Each count is a 32-bit unsigned integer (uint32). Use function code 0x03 to read two consecutive registers. For DI1:

text
count = (register[0x0500] << 16) | register[0x0501]

For example, data bytes 00 01 00 02 represent 65538. To clear a count, use 0x10 to write zero to both registers.

DI inputs sample at 100 Hz. Register 0x0042 sets the debounce interval in milliseconds. After a counted edge, signals within this interval do not generate another count. Select the interval to reject contact bounce without suppressing valid pulses.

3.5 Automation Rule Register Groups ​

Rule groups = DO * 2:

ModelDO CountRule GroupsStart Addresses
Y301-110120x0080, 0x0088
Y301-20000N/A
Y301-020240x0080, 0x0088, 0x0090, 0x0098

3.6 Reboot and Factory Reset Register ​

Write to 0x0800 with function code 0x06 to reboot or restore factory settings. This register is write-only.

ValueOperation
0x5500Reboot
0x0055 or 0x5555Restore factory settings and reboot

A factory reset restores the device parameters. Record the current settings before using it.

4. Command Examples (CRC Included) ​

4.1 Read Digital Inputs ​

OperationRequestSupported Models
Read DI101 02 00 00 00 01 B9 CAY301-110, Y301-200
Read DI201 02 00 01 00 01 E8 0AY301-200
Read DI1~DI2 in one shot01 02 00 00 00 02 F9 CBY301-200

4.2 Read Digital Output Status ​

OperationRequestSupported Models
Read DO101 01 00 00 00 01 FD CAY301-110, Y301-020
Read DO201 01 00 01 00 01 AC 0AY301-020
Read DO1~DO2 in one shot01 01 00 00 00 02 BD CBY301-020

4.3 Control Digital Outputs ​

OperationRequestSupported Models
Open DO101 05 00 00 00 00 CD CAY301-110, Y301-020
Close DO101 05 00 00 FF 00 8C 3AY301-110, Y301-020
Open DO201 05 00 01 00 00 9C 0AY301-020
Close DO201 05 00 01 FF 00 DD FAY301-020

Multi-channel control (0x0F):

OperationRequestSupported Models
Close DO1 and DO2 together01 0F 00 00 00 02 01 03 9E 96Y301-020
Open DO1 and DO2 together01 0F 00 00 00 02 01 00 DE 97Y301-020

4.4 Parameter Read/Write ​

OperationRequest
Read slave address (0x003E)01 03 00 3E 00 01 E5 C6
Write slave address = 501 06 00 3E 00 05 28 05
Read baud rate (0x0057, 2 regs)01 03 00 57 00 02 75 DB
Write baud rate = 115200 (0x0001C200)01 10 00 57 00 02 04 00 01 C2 00 B7 D5
Write 8N1 (0x0059~0x005B)01 10 00 59 00 03 06 00 08 00 01 00 00 85 EF

4.5 DI Pulse Counter Read/Write ​

OperationRequestSupported Models
Read DI1 count (0x0500, 2 regs)01 03 05 00 00 02 C4 C7Y301-110, Y301-200
Read DI2 count (0x0502, 2 regs)01 03 05 02 00 02 65 07Y301-200
Clear DI1 count (write 0)01 10 05 00 00 02 04 00 00 00 00 CC FFY301-110, Y301-200

5. Parameter Configuration ​

5.1 Serial Settings ​

  • Baud rate is a 32-bit value at 0x0057, use 0x10 to write 2 registers.
  • Data/stop/parity are located at 0x0059~0x005B.
  • Changing serial parameters or slave address requires reboot. Write 0x5500 to 0x0800 with function code 0x06, then reconnect using the new settings.
  • Other configuration parameters take effect immediately after they are written.

5.2 RTC and Scheduled Rules ​

Write the current Unix time in seconds to 0x0055~0x0056 before using modes 7, 8, or 9. Set the time after each reboot on devices without the optional hardware RTC.

5.3 Pulse Counting Edge ​

Set 0x0041 to 0 for falling-edge counting or 1 for rising-edge counting.

6. Automation Rules ​

Y301-110 supports DI -> DO local automation (1DI + 1DO).
Y301-200 has no DO and no output automation rules. Y301-020 supports output rules driven by Modbus commands or time; it has no DI for input-triggered rules.

6.1 Automation Register Map ​

Rules start at address 0x0080. Each rule uses 8 registers (16 bytes).

OffsetFieldDescription
+0ModeRule mode number
+1ActionMode-specific action
+2DO indexTarget relay, starting from 1
+3Trigger indexSource DI, starting from 1; 0 for modes 2-5 and 7-9
+4-5Parameter 1Mode-dependent, 32-bit
+6-7Parameter 2Mode-dependent, 32-bit

6.2 Rule Modes ​

ModeNameAction / ParametersApplicable Models
0DisabledDisable this ruleY301-110, Y301-020
1DI follow0 = inverse, 1 = forward; select the source DIY301-110
2Pulse output0 = normally open, 1 = normally closed; parameter 1 = pulse duration (ms)Y301-110, Y301-020
3Delayed control0 = delay opening commands, 1 = delay closing commands, 2 = delay both; parameter 1 = delay (ms)Y301-110, Y301-020
4Timed change after reboot0 = open, 1 = close, 2 = toggle; parameter 1 = delay after reboot (ms)Y301-110, Y301-020
5Cyclic change0 = open first, 1 = close first; parameter 1 = open duration, parameter 2 = closed duration (ms)Y301-110, Y301-020
6Button input0 = open, 1 = close, 2 = toggle; select DI; parameter 1 = minimum active duration (ms)Y301-110
7Scheduled once0 = open, 1 = close, 2 = toggle; parameter 1 = Unix timestamp (s)Y301-110, Y301-020
8Scheduled repeating0 = open, 1 = close, 2 = toggle; parameter 1 = Unix timestamp (s), parameter 2 = repeat interval (ms)Y301-110, Y301-020
9Daily schedule0 = open, 1 = close, 2 = toggle; parameter 1 = seconds since the start of the day (0-86399)Y301-110, Y301-020
14Delayed DI follow0 = inverse, 1 = forward; select DI; parameter 1 = follow delay (ms)Y301-110
15 / 16 / 17Logic AND / OR / XORParameter 1 = DO mask, parameter 2 = DI mask; trigger an action or hold an output stateY301-110 (DI/DO conditions), Y301-020 (DO conditions)

Modes 10-13 require AI inputs. Y301-110, Y301-200, and Y301-020 have no AI inputs.

For logic modes, bit 0 selects channel 1 and bit 1 selects channel 2. Use channels present on the model. Select the logic action in the configuration tool: open, close, or toggle on a trigger, or hold the output open or closed while the condition is true.

The minimum delay or interval is 10 ms in modes 3, 4, 5, 8, and 14. In button mode, the action triggers when the DI returns inactive after meeting the minimum active duration. When rules conflict, the later rule takes precedence.

Mode 2 responds to a Modbus output-control command: configuring the rule alone does not issue the pulse. Mode 3 delays an output-control command; it is distinct from mode 14, which follows a DI change after a delay.

6.3 Rule Command Examples (Y301-110) ​

  • Case 1: DI Follow (Mode 1): DO1 follows DI1
FieldValueDescription
Mode0x0001DI follow
Action0x0001Forward follow
DO index0x0001DO1
DI index0x0001DI1
Parameter 10x00000000Not used
Parameter 20x00000000Not used
text
01 10 00 80 00 08 10 00 01 00 01 00 01 00 01 00 00 00 00 00 00 00 00 CC FE
  • Case 2: Pulse Output (Mode 2): DO1 normally open, auto-recover after 500 ms close
FieldValueDescription
Mode0x0002Pulse output
Action0x0000Normally open
DO index0x0001DO1
DI index0x0000Not used
Parameter 10x000001F4500 ms
Parameter 20x00000000Not used
text
01 10 00 80 00 08 10 00 02 00 00 00 01 00 00 00 00 01 F4 00 00 00 00 30 EA

7. Troubleshooting ​

SymptomCauseSolution
No responseWrong address, serial settings, or wiringCheck the configured slave address, baud rate, data bits, parity, stop bits, and RS485 wiring. Broadcast mode is disabled by default; address 0 is not a reliable response test.
CRC errorWiring issue or interferenceCheck RS485 polarity and add termination resistors
DO does not switchLoad exceeds ratingReduce the load and verify contact ratings
DI always reads 0Wiring errorCheck COM/DI wiring and input voltage

LED Indicators ​

LEDStatusMeaning
POWERSolid onPower is normal
TXFlashingData is being transmitted
RXFlashingData is being received