Professional Documents
Culture Documents
M-3001 User Manual V3.0 16-Channel Current Type Analog Input Module Based On Modbus
M-3001 User Manual V3.0 16-Channel Current Type Analog Input Module Based On Modbus
M-3001 User Manual V3.0 16-Channel Current Type Analog Input Module Based On Modbus
Page 1
1 Product introduction
M-3001 (16-channel current analog input module based on Modbus) is used as a general-purpose analog
Set modules are widely used in metallurgy, chemical industry, machinery, fire protection, construction, electric power, transportation and other indu
Can be connected to 16 channels of temperature, humidity, liquid level, pressure, flow, PH value and other sensors output 0-20mA or
4~20mA analog signal. Support standard Modbus RTU protocol, and have communication timeout detection function,
It can be used in conjunction with other devices that follow the Modbus RTU protocol.
The M-3001 module is mainly composed of a power supply circuit, an analog input sampling circuit, and an isolated RS485 transceiver circu
And MCU and other parts. Using high-speed ARM processor as the control unit, with isolated RS485 communication
Interface, with ESD, over-voltage, over-current protection functions, to avoid the industrial field signal to the module communication interface
1) System parameters
Page 2
https://translate.googleusercontent.com/translate_f 1/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
Isolation voltage: 2500VDC
Input resistance: 120Ω
3) Communication interface
Communication interface: RS485 interface, isolation 1500VDC, ±15kV ESD protection, overcurrent protection
Communication data format: 1 start bit, 8 data bits, none, odd or even parity, 1 or 2 stop bits
Installation method: standard DIN35 rail installation and screw installation, the installation dimensions are shown in the figure:
2 Module function
The current signal output by the field sensor is connected to the input terminal of the M-3001 module, and is passed through the precision inte
The dense resistance is converted into a voltage signal, and then it is collected by an operational amplifier, multiple analog switches and A/D circui
2
Page 3
Collect the processing, get the corresponding value, the wiring principle is shown in the figure:
https://translate.googleusercontent.com/translate_f 2/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
T1 definition Description
1 V+
Input power supply voltage 12~40VDC, such as 24VDC
2 GND
3 A RS485+
4 B RS485-
Page 4
T2 definition Description
1 AI0
2 AI1
3 AI2
4 AI3
8 current-type analog inputs
5 AI4
6 AI5
7 AI6
8 AI7
9 AGND
Analog input common terminal, connected to the negative pole of the power supply
10 AGND
11 AI8
12 AI9
13 AI10
14 AI11
8 current-type analog inputs
15 AI12
16 AI13
https://translate.googleusercontent.com/translate_f 3/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
17 AI14
18 AI15
node S6 S7 S8 S9 S10
Page 5
7 OFF OFF ON ON ON
11 OFF ON OFF ON ON
13 OFF ON ON OFF ON
14 OFF ON ON ON OFF
15 OFF ON ON ON ON
19 ON OFF OFF ON ON
25 ON ON OFF OFF ON
26 ON ON OFF ON OFF
27 ON ON OFF ON ON
28 ON ON ON OFF OFF
29 ON ON ON OFF ON
30 ON ON ON ON OFF
31 ON ON ON ON ON
https://translate.googleusercontent.com/translate_f 4/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
Baud rate S3 S4 S5
Page 6
9600bps OFF ON ON
38400bps ON OFF ON
57600bps ON ON OFF
115200bps ON ON ON
3) Data format CM (factory default is 1 start bit, 8 data bits, no parity, 1 stop bit)
The communication data format is: 1 start bit, 8 data bits, check and stop bits are as follows:
description S1 S2
Note: The green flashing frequency of the D2 indicator is related to the communication status. The higher the communication baud rate, the m
Fast; the more frequent the communication, the faster the flashing; if there is no data packet transmission on the bus, no flashing.
The MODBUS protocol stipulates 4 kinds of components, namely: Discrete Input, Wire
All IOs and parameters in the block are mapped to specific MODBUS components, and you can read and write these components
Page 7
https://translate.googleusercontent.com/translate_f 5/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
The M-3001 module has 16 analog input channels, which are respectively mapped to the 0~15 input registers,
No. 0~15 holding registers, the analog quantity can be obtained by reading the input register and the value of the holding register
Enter the value as shown below:
Modbus components
Input channel Read and write
Types of PLC address Modbus address
Page 8
https://translate.googleusercontent.com/translate_f 6/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
After the node address, baud rate and data format of the M-3001 module are set by the software and the DIP switch,
The M-3001 module defines the timeout time parameter to control the communication timeout alarm function. The parameter mapping
To the holding register 30016 (upper 16 bits) and holding register 30017 (lower 16 bits), this parameter is passed
The function code No. 16 is written into the internal EEPROM of the module, and this parameter is automatically loaded when the power is turned
The timeout time parameter is a 32-bit unsigned integer, the unit is ms, and the parameter range is 0x0000000A~
0x000493E0 corresponds to 10~300000ms, such as 0x00002710 means 10000ms. If you don't need to start
The communication setting parameters are mapped to the holding register 30018 and holding register 30019, which determine the communica
The mode is software setting or hardware DIP switch setting. If it is software setting mode, the node address, wave
The special rate and data format use the values in the holding registers 30018 and 30019 as the communication setting values.
parameter Component type PLC address Modbus address function code description
overtime time
Holding register 430017 30016
High 16 bits
overtime time 03 or 16
overtime time
Holding register 430018 30017
Low 16 bits
Note 1: Setting method (the factory default communication setting is the DIP switch hardware setting method)
Page 9
0x01~0xfe 0x01~0xfe
0x00 1200bps
0x01 2400bps
0x02 4800bps
0x03 9600bps
0x04 19200bps
0x05 38400bps
https://translate.googleusercontent.com/translate_f 7/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
0x06 57600bps
0x07 115200bps
Note 4: Data format (factory default is 1 start bit, 8 data bits, no parity, 1 stop bit)
5 Communication protocol
The M-3001 module follows the standard MODBUS RTU protocol. For more information about the MODBUS communication protocol, plea
See the MODBUS Standardization Organization website:http://www.modbus.org/ , here combined with M-3001 module
Page 10
MODBUS protocol uses query/response communication mode. MODBUS master station equipment to the slave station of the selected addr
The device sends a request message, which contains the operation required by the master station to be performed by the slave station and the operat
Any additional information you want. After the selected slave station receives the request message, it executes the operation specified in the messa
Send a response message according to the execution result. If the operation is completed correctly, it responds to a normal message; if it is executin
If an error occurs during the process, an error message will be responded. The master station judges the operation result of the slave station accordi
The M-3001 module supports No. 03, 04, 16 function codes. The function codes and the operated components are shown in the table below.
Show.
https://translate.googleusercontent.com/translate_f 8/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
CRC check 2 bytes 0x0000~0xFFFF 0x840A
Note 1: The master request message example, read 1 holding register starting from 0 (that is, read holding register 0,
Note 2: The sum of the start address and the number of input registers cannot be greater than 32, otherwise it will respond with an error message.
10
Page 11
Note 2: Example of a normal response message from the slave station, the input data is 0x16EE, and the corresponding current is:
5870*20/10000=11.74mA (the input data value 0~10000 corresponds to the current value 0~20mA).
Note 1: The master request message example, read 1 input register starting from 0 (that is, read input register 0,
11
Page 12
https://translate.googleusercontent.com/translate_f 9/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
Note 2: The sum of the start address and the number of input registers cannot be greater than 32, otherwise it will respond with an error message.
Note 2: Example of a normal response message from the slave station, the input data is 0x16EE, and the corresponding current is:
5870*20/10000=11.74mA (the input data value 0~10000 corresponds to the current value 0~20mA).
Function code No. 16 is used to write holding registers, for example, write 2 or more consecutive holding registers at a time
Device. When writing, the register specified in the request message must exist and be writable, otherwise the module will respond with an error me
should.
12
Page 13
https://translate.googleusercontent.com/translate_f 10/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
CRC check 2 bytes 0x0000~0xFFFF 0xB731
Note 1: The master request message example, write 2 holding registers starting from 30016 (timeout time parameter).
Note 2: The value of N can be 2, 4, 6, 8. When writing other values, the module will respond with an error message.
13
Page 14
6 Application Guide
The M-3001 module is an IO module based on the RS485 bus. When the M-3001 module is networked, it needs to be equipped with the follow
Prepare:
3) If the Modbus host has only RS232 interface, it must be equipped with an isolated RS232/RS485 converter.
As shown in the figure below, take a PC with RS485 interface as the Modbus master as an example
https://translate.googleusercontent.com/translate_f 11/12
6/7/2021 M-3001 User Manual V3.0 16-channel current type analog input module based on Modbus
Before networking, it is necessary to determine the baud rate, data communication format, and data communication format of the RS485 bus
The node address of each module can be set by software or DIP switch. After the setting is completed, the module
When the block is powered on, the set parameters are automatically maintained without software configuration. It is worth noting that each module
The baud rate and data communication format must be consistent, and the node address of each module must be unique.
The M-3001 module follows the standard Modbus RTU protocol, and can be used with any module that follows the Modbus RTU protocol.
Use with equipment. For example, commonly used configuration software, PLC supporting Modbus RTU protocol, etc., for more information, plea
14
https://translate.googleusercontent.com/translate_f 12/12