Ebyte MA02-XACX0440 User manual

【4AI + 4DO】
MA02-XACX0440

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 1
Contents
Disclaimer............................................................................................................................................................. 4
1 Introduction........................................................................................................................................................5
1.1 Brief Introduction........................................................................................................................................5
1.2 Features....................................................................................................................................................... 5
2 Quick start.......................................................................................................................................................... 6
2.1 Preparation for use...................................................................................................................................... 6
2.2 Equipment wiring........................................................................................................................................6
2.2.1 Power wiring........................................................................................................................................ 6
2.2.2 Communication wiring RS232.............................................................................................................7
2.2.3 Overall wiring diagram........................................................................................................................ 7
2.3 Software settings......................................................................................................................................... 9
2.3.1 Device connection................................................................................................................................9
2.3.2 Equipment test....................................................................................................................................10
3 Product description...........................................................................................................................................11
3.1 Model Specification.................................................................................................................................. 11
3.2 Technical Parameter..................................................................................................................................11
3.3 Port Description........................................................................................................................................ 13
3.4 Dimensions................................................................................................................................................14
3.5 Installation method....................................................................................................................................14
4 Product Features...............................................................................................................................................15
4.1 Analog Input AI........................................................................................................................................ 15
4.1.1 Analog input AI description...............................................................................................................15
4.1.2 Analog input AI filter parameters...................................................................................................... 15
4.1.3 Analog input AI sampling range........................................................................................................15
4.1.4 Analog input AI raw value, engineering value.................................................................................. 16
4.1.5 Analog input AI calibration............................................................................................................... 16
4.2 Switch output DO......................................................................................................................................16
4.2.1 Switch output DO description............................................................................................................16
4.2.2 Switch output DO mode setting......................................................................................................... 17
4.3 Device address........................................................................................................................................ 17

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 2
4.3.1 Device address................................................................................................................................... 17
4.3.2 Hardware address (dip switch)...........................................................................................................18
4.3.3 Software address (offset address).......................................................................................................19
5 Port wiring........................................................................................................................................................20
5.1Analog input AI port wiring.......................................................................................................................20
5.1.1 Two-wire sensor wiring..................................................................................................................... 20
5.1.2 Three-wire sensor wiring................................................................................................................... 21
5.1.3 Four-wire sensor wiring..................................................................................................................... 21
5.2Switch output DO port wiring....................................................................................................................22
5.2.1 The output terminal directly controls the load (small power equipment within 1kW)......................22
5.2.2 Output terminal control contactor (contactor controls high-power....................................................22
220V equipment).........................................................................................................................................22
5.2.3 Output terminal control contactor (contactor controls high-power 380V equipment)...................... 23
6 Software use.....................................................................................................................................................24
6.1Software Installation.................................................................................................................................. 24
6.2Software function introduction.................................................................................................................. 25
6.2.1 IO demo interface...............................................................................................................................25
6.2.2Basic setting interface........................................................................................................................ 27
6.2.3Advanced settings interface............................................................................................................... 29
6.3Device status query.................................................................................................................................... 30
6.4Equipment status control............................................................................................................................31
7 Modbus use...................................................................................................................................................... 32
7.1 Register list........................................................................................................................................ 32
7.2AI related register list.................................................................................................................................34
7.3Instruction format (partial).........................................................................................................................35
7.3.1 Read DO output coil status................................................................................................................ 35
7.3.2 Read holding register......................................................................................................................... 35
7.3.3 Write a single holding register........................................................................................................... 35
7.3.4 Write multiple holding registers.........................................................................................................36
7.3.5 Write the status of a single DO coil................................................................................................... 36
7.3.6 Write multiple DO coil states.............................................................................................................37
7.3.7 Read input register............................................................................................................................. 37

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 3
Revision history.................................................................................................................................................. 38
About us.............................................................................................................................................................. 38

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 4
Disclaimer
EBYTE reserves all rights to this document and the information contained herein.
Products, names, logos and designs described herein may in whole or in part be
subject to intellectual property rights. Reproduction, use, modification or disclosure to
third parties of this document or any part thereof without the express permission of
EBYTE is strictly prohibited.
The information contained herein is provided “as is” and EBYTE assumes no
liability for the use of the information. No warranty, either express or implied, is given,
including but not limited, with respect to the accuracy, correctness, reliability and
fitness for a particular purpose of the information. This document may be revised by
EBYTE at any time. For most recent documents, visit www.ebyte.com.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 5
1 Introduction
1.1 Brief Introduction
MA02-XACX0440 supports the acquisition of 4-channel sensor
analog input (AI), which is converted to serial port (RS232) and data is
transmitted to configuration software or PLC. The serial port I/O
networking module (also called "remote IO") that realizes the remote
acquisition and control function by issuing commands through the serial
port to control 4 relay switch outputs (DO).
1.2 Features
★Support Modbus RTU protocol;
★Support various configuration software/PLC/touch screen;
★RS232 acquisition and control IO;
★DC 8~28V power supply;
★4 analog inputs AI (0~20mA/4~20mA);
★4 switch output DO (relay);
★Switch output (DO) supports level mode and pulse mode;
★Input collection port isolation protection;
★Communication baud rate 1200~115200 (default 9600), support custom setting;
★Supports 1~247 slave stations, 5-digit DIP switch can set 1~31 address code, more than 31 can
be set by software.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 6
2 Quick start
If there is a problem during use, click on the official website link:
https://www.ebyte.com/product-class.aspx
2.1 Preparation for use
Before using the serial port I/O networking device (hereinafter referred to as "IO device"), you need
to prepare a computer, converter, power supply, screwdriver and other related auxiliary materials.
details as follows:
Table 2-1-1 Preparation list
Serial
Number
Device
Quantity
1
IO device
1
2
USB to serial converter
1
3
Configuration tool software
1
4
Computer
1
5
Power adapter (12V/1A)
1
6
Screwdriver (Slot SL 2)
1
7
Signal generator (or sensor)
1
2.2 Equipment wiring
2.2.1 Power wiring
Power supply, using DC 8-28V power supply, can also use DC 12V or 24V power supply.
Figure 2-2-1 Power wiring diagram

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 7
2.2.2 Communication wiring RS232
Figure 2-2-2 Communication RS232 wiring diagram
2.2.3 Overall wiring diagram
(1) After the equipment is powered on, the power indicator (POWER) is always on, and the
equipment power supply is normal.
(2) Analog input AI wiring, connect the signal generator to the analog input AI port as shown in the
figure.
(3) Switch output DO wiring, connect the load to the switch output DO port as shown in the figure.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 8
Figure 2-2-2 Overall wiring diagram

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 9
2.3 Software settings
2.3.1 Device connection
Figure 2-3-1 Software interface
Steps:
(1) Open the serial port, find the corresponding device port number, the baud rate defaults to
9600, and click ‘open serial port’.
Figure 2-3-2 Open the serial port
(2) In the device window, click ‘Search Device’, and the log window on the right will start to
refresh the search information. After the connected device is displayed in the device column
of the device window, click the "Stop Searching" menu. Then select the device and click, the
connection is successful.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 10
Figure 2-3-3 Connecting the device
2.3.2 Equipment test
Figure 2-3-4 Equipment test
Figure 2-3-5 Actual test results

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 11
3 Product description
3.1 Model Specification
Table 3-1-1 Product specifications
Product Number
Specification
Switch input
DI
Analog input
AI
Switch output
DO
RS485
RS232
MA01-AXCX4020
4DI+2DO
4
—
2
●
×
MA02-AXCX4020
4
—
2
×
●
MA01-XACX0420
4AI+2DO
—
4
2
●
×
MA02-XACX0420
—
4
2
×
●
MA01-AACX2220
2DI+2AI+2D
O
2
2
2
●
×
MA02-AACX2220
2
2
2
×
●
MA01-AXCX4040
4DI+4DO
4
—
4
●
×
MA02-AXCX4040
4
—
4
×
●
MA01-XACX0440
4AI+4DO
—
4
4
●
×
MA02-XACX0440
—
4
4
×
●
MA01-AACX2240
2DI+2AI+4D
O
2
2
4
●
×
MA02-AACX2240
2
2
4
×
●
MA01-XXCX0080
8DO
—
—
8
●
×
MA02-XXCX0080
—
—
8
×
●
3.2 Technical Parameter
Table 3-2-1 Technical parameters
Category
Name
Parameter
Power Supply
Operating
Voltage
Direct current 8~28V
Working
current
50mA @12V
Power indicator
Green LED indication
Serial Port
Communication
Interface
RS232
Baud rate
1200~115200 bps(default 9600 bps)
Data bit
8(fixed)
Check Digit
No parity, odd parity, even parity (no parity by

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 12
default)
Stop bit
1(fixed)
Protocol
Modbus RTU protocol
Device address
1~247(Default address 32: software 1,
hardware 31)
AI Input
AI channels
4 way
Collection
range
0~20mA / 4~20mA
Resolution
12 bits
Acquisition
accuracy
3‰
Acquisition
frequency
10 Hz
Acquisition
characteristics
Single-ended input
input resistance
100Ω
DO Output
Number of DO
4 way
DO output type
Type C relay (normally open + normally closed)
DO output
mode
Level mode, pulse mode
Relay contact
capacity
30V/10A、250V/10A
Output
indication
Red LED indication
Other
Product Size
115 mm * 90 mm * 40mm
(Length*width*height)
product weight
160g ± 5g
Working
temperature and
humidity
-40 ~+85℃、5%~95%RH(No condensation)
Storage
temperature and
humidity
-60 ~+125℃、5% ~95%RH(No
condensation)
Installation
method
Rail installation/location hole installation

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 13
3.3 Port Description
Figure 3-3-1 Interface diagram
Table 3-3-1 Port function table
Serial
number
Pin
Description
Remark
1
+
Power +
Suggest RVV 2*0.75 wire
2
﹣
Ground-
3
B/RX
RS232 corresponds to RX
(external connection needs
to be crossed)
Recommend RVSP 3*0.5
wire
4
A/TX
RS232 corresponds to TX
(external connection needs
to be crossed)
5
GND
Signal ground
6
COM
Input channel common
Recommend RVV 2*0.5
wire
7
AI1
Analog input channel 1
8
AI2
Analog input channel 2
9
AI3
Analog input channel 3
10
AI4
Analog input channel 4
11
DO1
Switch output channel 1
The relay has normally open
and normally closed
terminals
12
DO2
Switch output channel 2
13
DO3
Switch output channel 3
14
DO4
Switch output channel 4

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 14
3.4 Dimensions
Figure 3-4-1 Dimensions
3.5 Installation method
The equipment supports positioning hole installation or guide rail method.
Figure 3-5-1 Installation method

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 15
4 Product Features
4.1 Analog Input AI
4.1.1 Analog input AI description
The analog input AI measures the current signal, the acquisition range is 0-20mA or 4-20mA, the
accuracy is 3‰, and the resolution is 12 bits. Adopt single-ended input, sampling frequency 10Hz,
input impedance 100Ω.
4.1.2 Analog input AI filter parameters
The filter parameters of the AI channel can be set, the effective value is 1-16, and the default is 6.
Note:
(1) AI channel filter parameter is a filter parameter shared by all AI channels. The larger the filter
parameter, the stronger the anti-interference ability of AI sampling, but at the same time it has a
delay.
(2) AI channel filter parameter address is 0x04B0, and the register type is holding register. Function
code 0x06, 0x10. When writing AI filter parameters, if the written parameter value is not within the
range of 1-16, it will automatically take the closest value to write. If the write filter parameter is 0,
the device will take 1 as the filter parameter, and Modbus will not return. Wrong instruction.
4.1.3 Analog input AI sampling range
Set the sampling range of all AI channels, valid values are 1 and 0 (default 0).
0: Represents 0~20mA
1: Represents 4~20mA
(1) The AI sampling range is shared by all channels. When the AI channel sampling range is
configured for 4-20mA sampling, if the current signal is lower than 4mA, the engineering value of
the channel is converted to 0. For signals greater than 20mA, there is no conversion limit, but it
cannot exceed 25mA (there is a risk of equipment damage if it exceeds 25mA).
(2) AI channel sampling range parameter address is 0x04B2, register type is holding register,
function code 0x06, 0x10. When writing the AI channel sampling range parameter, if the value of the
parameter written is not within the range of 0 to 1, it will automatically take the closest value to write.
If the write sampling range parameter is 2, the device will take 1 as the sampling range parameter.
And MDOBUS does not return an error command.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 16
4.1.4 Analog input AI raw value, engineering value
There are two ways to read the magnitude of the current signal collected by the device:
Read the original value of AI and calculate the input current based on the input impedance.
The address of the AI original value register is 0x0000~0x0003, the register type is input register,
and the read function code is 0x04. The value returned by this method is 2 bytes representing a
channel, and the range of the value read is 0~4095. The method of calculating the current is 0~
4095 corresponding to 0~25mA.
The register type is discrete input register, and the read function code is 0x04.
which is
Read the AI engineering value and directly convert to get the input current.
The address of AI engineering value register is 0x0064~0x0067, the register type is input register,
and the read function code is 0x04. The value returned by this method is 2 bytes representing 1
channel, and the value read is 0 ~25000. The method of calculating the current is 0 ~25000
corresponding to 0~25mA. which is
4.1.5 Analog input AI calibration
When reading the AI measurement current, when the error is large, it can be calibrated by setting
the high point calibration register and low point calibration register of each channel.
Each channel of AI has an independent high (low) point calibration register. The address of the high
point calibration register is 0x0190~0x0193, and the address of the low point calibration register is
0x0258~0x025C. The register type is holding register, and the function code is 0x06, 0x10.
The calibration method can input an accurate current signal for the AI channel and write the value for
calibration. For example, if the AIx channel corresponding to the calibration device has an actual
input current of 20mA, then read the AI original value of the AIx channel and write the original value
to the high calibration register of the AI channel. Generally, the low point calibration can be set to 0
by default.
Note: This function calibration is only used when the error is large. It is not recommended under
normal circumstances.
4.2 Switch output DO
4.2.1 Switch output DO description
Switch output DO, with level mode, pulse mode, follow mode (only follow DI). Using C-type
relay output (normally open + normally closed), the single-channel output supports a maximum load

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 17
(contact capacity) of 30V/10A or 250V/10A.
Each DO output is designed with an output indicator (red LED indication) to indicate whether the
output port is on or off. When the LED indicator is on, it means the relay is closed (normally open on,
normally closed off); when the LED indicator is off, it means the relay is not closed (normally open
off, normally closed on).
Figure 4-2-1 Switch output DO interface
4.2.2 Switch output DO mode setting
(1) Level mode
Output according to the level set by the user. The switching characteristics of the level mode are
similar to the function of a self-locking switch.
(2) Pulse mode
After the switch output DO is turned on, the set pulse width time (in ms) is maintained, and the
switch output DO is automatically turned off. The pulse width setting range is 50~65535 (default
50).
(3) Follow mode
After the user sets the follow mode, set the follow input terminal. The switch output DO terminal is
consistent with the DI input terminal.
Note: Multiple switch output DO terminals can be set to follow one DI input terminal, and one
switch output DO terminal can not be set to follow multiple DI input terminals.
4.3 Device address
4.3.1 Device address
Device address composition: hardware address + software offset address

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 18
Figure 4-3-1 Device address
The default device address is 32 (hardware address 31 + software address 1 = device address 32).
Device address setting range: 1~247.
Hardware address: realized by the dial switch (5 digits) dial setting (the factory default is 31).
Software address: It is realized by the "offset address" set by the configuration tool software (the
factory default is 1).
For example:
If the hardware address is set to 5 and the software address is set to 113, the device address is 118.
4.3.2 Hardware address (dip switch)
Figure 4-3-2 Hardware address (Dip switch)
Hardware address: The DIP switch can switch different hardware addresses, and the binary system
represents the 5-digit DIP switch. The "5" direction indicates the low position, and the "1" direction
indicates the high position. The hardware address range can be adjusted from 0 to 31.
Hardware address dialing setting instructions:
Example 1: Set hardware address 0, binary code.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【4AI+4DO】MA02-XACX0440 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd. 19
Figure 4-3-3 Hardware address 0
Example 2: Set the hardware address to 8, binary code.
Figure 4-3-4 Hardware address 8
Example 3: Set hardware address 31, binary code.
Figure 4-3-5 Hardware address 31
The hardware address can be customized according to the actual situation. The setting method is
shown in the above example.
If multiple devices are required to connect to a single RS232, only the hardware address is used, and
a single bus can be connected to a maximum of 32 devices (just set the hardware address).
If you need more than 32 devices to connect to a single RS232, you need to set the software address
(offset address) to realize a single bus to connect up to 247 devices.
After changing the address, you need to power off and restart the new address to take effect.
4.3.3 Software address (offset address)
Software address: The user can make different settings according to the scene. The software address
setting range is 1~224 (device address: 1~247), and the default software address is 1.
After changing the address, you need to power off and restart the new address to take effect.
To change the software address, it needs to be realized through the configuration tool software, as
shown in the figure:
Table of contents
Other Ebyte Modem manuals

Ebyte
Ebyte E34-DTU User manual

Ebyte
Ebyte E32-DTU User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte MA02-AAC 2240 Series User manual

Ebyte
Ebyte E95-DTU User manual

Ebyte
Ebyte E890-470LG27 User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte E890-470LG12 User manual

Ebyte
Ebyte E90-DTU 230SL22-GPRS User manual

Ebyte
Ebyte 8DO User manual

Ebyte
Ebyte E831-RTU Series User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte EBT3001 User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte Wireless Modem User manual

Ebyte
Ebyte E70-DTU User manual

Ebyte
Ebyte E821-RTU User manual

Ebyte
Ebyte ECAN-E01S User manual

Ebyte
Ebyte EBT3002 T6 User manual

Ebyte
Ebyte E90-DTU User manual