Ebyte MA02-AAC 2240 Series User manual

1
【2DI + 2AI + 4DO】
MA02-AACX2240

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
2
Content
Disclaimer............................................................................................................................................................. 4
1. Product introduction..........................................................................................................................................5
1.1 Brief Introduction................................................................................................................................... 5
2 Quick Start......................................................................................................................................................... 6
2.1 Preparation..............................................................................................................................................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.................................................................................................................................... 8
2.3.1 Device connection...................................................................................................................... 8
2.3.2 Equipment test............................................................................................................................ 9
3 Product description.......................................................................................................................................... 10
3.1 Product specifications...........................................................................................................................10
3.2 Technical parameter..............................................................................................................................11
3.3 Port description.................................................................................................................................... 12
3.4 Dimensions...........................................................................................................................................12
3.5 Installation method............................................................................................................................... 13
4 Product Features...............................................................................................................................................14
4.1 Analog input AI................................................................................................................................. 14
4.1.1 Analog input AI description......................................................................................................14
4.1.2 Analog input AI filter parameters............................................................................................. 14
4.1.3 Analog input AI sampling range...............................................................................................14
4.1.4 Analog input AI raw value, engineering value......................................................................... 14
4.1.5 Analog input AI calibration...................................................................................................... 15
4.2 Switch input DI.................................................................................................................................... 15
4.2.1 Switch input DI description......................................................................................................15
4.2.2 Switch input DI description......................................................................................................15
4.3 Switch output DO.................................................................................................................................16
4.3.1 Switch output DO description.................................................................................................. 16
4.3.2 Switch output DO mode setting................................................................................................17
4.4 Device address......................................................................................................................................17
4.4.1 Device address..........................................................................................................................17
4.4.2 Hardware address (dip switch)................................................................................................. 18
4.4.3 Software address (offset address)............................................................................................. 19
5 Port wiring........................................................................................................................................................20
5.1 Analog input AI port wiring................................................................................................................. 20
5.1.1 Two-wire sensor wiring............................................................................................................ 20
5.1.2 Three-wire sensor wiring..........................................................................................................20
5.1.3 Four-wire sensor wiring............................................................................................................21
5.2 Switch input DI port wiring................................................................................................................. 21
5.2.1 Two-wire switch wiring............................................................................................................ 21

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
3
5.2.2 Three-wire switch wiring..........................................................................................................21
5.2.3 Three-wire sensor wiring..........................................................................................................22
5.3 Switch output port wiring.....................................................................................................................22
5.3.1 The output terminal directly controls the load (small power equipment within 1kW)............ 22
5.3.2 Output terminal control contactor (contactor controls high-power 220V equipment)............. 23
5.3.3 Output terminal control contactor (contactor controls high-power 380V equipment)............. 24
6 Software use.....................................................................................................................................................25
6.1 Software Installation.............................................................................................................................25
6.2 Software function introduction.............................................................................................................25
6.2.1 IO Demo interface.................................................................................................................... 26
6.2.2 Basic setting interface...............................................................................................................29
6.2.3 Advanced settings interface...................................................................................................... 30
6.3 Device status query.............................................................................................................................. 31
6.4 Equipment status control......................................................................................................................33
7 Modbus use...................................................................................................................................................... 35
7.1 Register list...........................................................................................................................................35
7.2 AI related register list........................................................................................................................... 37
7.3 Instruction format (partial)................................................................................................................... 37
7.3.1 Read DO output coil status.......................................................................................................37
7.3.2 Read holding register................................................................................................................38
7.3.3 Write a single holding register..................................................................................................38
7.3.4 Write multiple holding registers............................................................................................... 38
7.3.5 Write the status of a single DO coil..........................................................................................39
7.3.6 Write multiple DO coil states................................................................................................... 39
7.3.7 Read input register....................................................................................................................40
Revise history...................................................................................................................................................... 41
About us.............................................................................................................................................................. 41

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 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. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
5
1. Product introduction
MA02-AACX2240 supports the acquisition of 2-channel sensor switch input (DI) and 2-channel sensor analog
input (AI), which is converted into 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.1 Brief Introduction
Support Modbus RTU protocol;
Support various configuration software/PLC/touch screen;
RS232 acquisition and control IO;
DC 8~28V power supply;
2-way switch input DI (dry node);
2 analog inputs AI (0~20mA/4~20mA);
4-channel switch output DO (relay);
The switch input (DI) supports counting function;
The switch input (DI) supports rising edge, falling edge, and level trigger mode;
Switch output (DO) supports level mode, pulse mode, follow mode;
Isolation and protection of input and acquisition ports;
Communication baud rate 1200~115200 (default 9600), support custom setting;
Support 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. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
6
2 Quick Start
If there is any questions during use, click this link to get technical support: https://www.ebyte.com/product-class.aspx
2.1 Preparation
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:
Order
Device
Number
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
(1)Power supply, using DC 8-28V power supply, can also use DC 12V or 24V power supply.
Figure 2-2-1 Wiring diagram of power

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 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) Switch input DI wiring, connect the control button to the switch input DI port as shown in the figure.
(3)Analog input AI wiring, connect the signal generator to the analog input AI port as shown in the figure.
(4) Switch output DO wiring, connect the load to the switch output DO port as shown in the figure.
Figure 2-2-3 Overall wiring diagram

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
8
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

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
9
(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.
Figure 2-3-3 get connected to the device
2.3.2 Equipment test
Figure 2-3-4 testing
Figure 2-3-5 Actual test results

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
10
3 Product description
3.1 Product specifications
Table 3-1-1 Product specifications
product
version
DI
AI
DO
RS485
RS232
MA01-AXCX4020
4DI+2DO
4 way
—
2 way
●
×
MA02-AXCX4020
4 way
—
2 way
×
●
MA01-XACX0420
4AI+2DO
—
4 way
2 way
●
×
MA02-XACX0420
—
4 way
2 way
×
●
MA01-AACX2220
2DI+2AI+2DO
2 way
2 way
2 way
●
×
MA02-AACX2220
2 way
2 way
2 way
×
●
MA01-AXCX4040
4DI+4DO
4 way
—
4 way
●
×
MA02-AXCX4040
4 way
—
4 way
×
●
MA01-XACX0440
4AI+4DO
—
4 way
4 way
●
×
MA02-XACX0440
—
4 way
4 way
×
●
MA01-AACX2240
2DI+2AI+4DO
2 way
2 way
4 way
●
×
MA02-AACX2240
2 way
2 way
4 way
×
●
MA01-XXCX0080
8DO
—
—
8 way
●
×
MA02-XXCX0080
—
—
8 way
×
●

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
11
3.2 Technical parameter
category
name
parameter
power supply
Operating Voltage
DC 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 bit
Check Digit
No parity, odd parity, even parity (no parity by default)
Stop bit
1 bit
Protocol
Modbus RTU protocol
Device address
1~247 (Default address 32: software 1, hardware 31)
AI input
AI channels
2way
Acquisition range
0~20mA / 4~20mA
Resolution
12 bits
Acquisition accuracy
3‰
Acquisition
frequency
10 Hz
Acquisition
characteristics
Single-ended input
input resistance
100Ω
DI input
Number of DI
channels
2 channels
Interface type
Dry node
Trigger mode
Rising edge, falling edge, level (default rising edge
trigger)
Filter parameter
1~16 (default 6)
Acquisition
frequency
1 kHz
Input indication
Green LED indication
DO output
Number of DO
channels
4 channels
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
Others
Product Size
80 mm * 50mm * 30mm (length * width * height)
product weight
80g ± 5g

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
12
Working temperature
and humidity
-40 ~+85℃, 5%~95%RH (non-condensing)
Storage temperature
and humidity
-60 ~+125℃, 5%~95%RH (non-condensing)
Installation method
Rail installation/location hole installation
3.3 Port description
Figure 3-3-1 Interface diagram
Table3-3-1 Port Function Table
number
pin
definition
note
1
+
Power +
Suggest RVV 2*0.75 wire
2
﹣
Ground-
3
B/RX
RS232 corresponds to RX
Recommend RVSP 3*0.5 wire
4
A/TX
RS232 corresponds to TX
5
GND
Signal ground
6
COM
Input channel common
Recommend RVV 2*0.5 wire
7
DI1
Switch input channel 1
8
DI2
Switch input channel 2
9
AI1
Analog input channel 1
10
AI2
Analog input channel 2
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
3.4 Dimensions

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
13
Figure 3-4-1 Dimensional drawing
3.5 Installation method
The equipment supports positioning hole installation or rail installation.
Figure 3-5-1 Installation method

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
14
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 time 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, the 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. For example, 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
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:
(1) 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

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
15
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.
(2)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.
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 input DI
4.2.1 Switch input DI description
Switch input DI to measure level signal or edge pulse signal (rising edge, falling edge). Support dry node collection,
support DI counting function, the maximum count is 65535 (the count is automatically cleared when 65535 is exceeded).
The switch input DI supports three trigger modes of rising edge, falling edge and level (the default rising edge
trigger mode).
The clearing method supports automatic clearing and manual clearing (default automatic clearing).
4.2.2 Switch input DI description
When the switch inputs the DI to collect the signal, it needs to keep multiple sampling periods before confirming.
The filter parameter can be set from 1 to 16 (default 6 sampling periods). The DI filter parameters can be set through the
configuration software

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
16
Figure 4-2-1 Setting DI filter parameters
4.3 Switch output DO
4.3.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 (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-3-1 Switch output DO interface

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
17
4.3.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.4 Device address
4.4.1 Device address
Device address composition: hardware address + software offset address
Figure 4-4-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.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
18
4.4.2 Hardware address (dip switch)
Figure 4-4-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 (default), binary code.
Figure 4-4-3 Hardware address 0
Example 2: Set the hardware address to 8, binary code.
Figure 4-4-4 Hardware address 8
Example 3: Set hardware address 31, binary code.

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
19
Figure 4-4-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.4.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:
Figure 4-4-7 Software address (offset address)

Chengdu Ebyte Electronic Technology Co.,Ltd. 【2DI + 2AI + 4DO】MA02-AACX2240 User Manual
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
20
5 Port wiring
5.1 Analog input AI port wiring
5.1.1 Two-wire sensor wiring
Figure 5-1-1 Two-wire sensor wiring diagram
5.1.2 Three-wire sensor wiring
Figure 5-1-2 Three-wire sensor wiring diagram
This manual suits for next models
13
Table of contents
Other Ebyte Modem manuals

Ebyte
Ebyte E34-DTU User manual

Ebyte
Ebyte ECAN-401S User manual

Ebyte
Ebyte ME31-XXXA0006 User manual

Ebyte
Ebyte E890-470LG27 User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte E78-DTU(470LN22) User manual

Ebyte
Ebyte 230SL37 User manual

Ebyte
Ebyte NB124S User manual

Ebyte
Ebyte E90-DTU 230SL22-GPRS User manual

Ebyte
Ebyte E810-DTU User manual

Ebyte
Ebyte E90-DTU 900SL22-GPRS User manual

Ebyte
Ebyte E842-DTU User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte E820-AIO User manual

Ebyte
Ebyte NB144ES User manual

Ebyte
Ebyte ME31-AAAX2240 User manual

Ebyte
Ebyte E70-DTU User manual

Ebyte
Ebyte E180-DTU(Z20-ETH) User manual

Ebyte
Ebyte E90-DTU User manual

Ebyte
Ebyte E95-DTU User manual