M-3001 User Manual V3.0 16-Channel Current Type Analog Input Module Based On Modbus

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

6/7/2021 M-3001 User Manual V3.

0 16-channel current type analog input module based on Modbus

Page 1

M-3001 User Manual V3.0

M-3001 User Manual V3.0

16 current type analog input module based on Modbus

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.

1.1 System overview

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

Influence, make communication stable and reliable.

1.2 Main technical indicators

1) System parameters

Power supply voltage: 12~40VDC, power supply reverse connection protection


Power consumption: 0.5W

Working temperature: -10℃~60℃

Storage temperature: -40℃~85℃

Relative humidity: 5%~95% non-condensing

2) Analog input parameters

Number of input channels: 16 single-ended inputs

Normal input range: 0~20mA, 4~20mA

Maximum input range: 0~21mA

Page 2

M-3001 User Manual V3.0

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Ω

ADC resolution: 12 bits

Sampling accuracy: 0.5%

3) Communication interface

Communication interface: RS485 interface, isolation 1500VDC, ±15kV ESD protection, overcurrent protection

Isolation voltage: 1500V

Communication protocol: Modbus RTU protocol

Baud rate: 1.2k, 2.4k, 4.8k, 9.6k, 19.2k, 38.4k, 57.6k

Communication data format: 1 start bit, 8 data bits, none, odd or even parity, 1 or 2 stop bits

1.3 Shape and size

Shell material: ABS engineering plastics

Size: 145mm (length) * 90mm (width) * 40mm (height)

Installation method: standard DIN35 rail installation and screw installation, the installation dimensions are shown in the figure:

2 Module function

2.1 Analog input

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

M-3001 User Manual V3.0

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

3 Terminals and DIP switches

3.1 Terminal description

1) Power and communication terminal T1

T1 definition Description

1 V+
Input power supply voltage 12~40VDC, such as 24VDC
2 GND

3 A RS485+

4 B RS485-

5 SG RS485 signal ground

2) Analog input terminal T2

Page 4

M-3001 User Manual V3.0

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

3.2 DIP switch S1

1) Node address ADDR (The factory default node address is 1)

node S6 S7 S8 S9 S10

0 OFF OFF OFF OFF OFF

1 OFF OFF OFF OFF ON

2 OFF OFF OFF ON OFF

3 OFF OFF OFF ON ON

4 OFF OFF ON OFF OFF

5 OFF OFF ON OFF ON

6 OFF OFF ON ON OFF


4

Page 5

M-3001 User Manual V3.0

7 OFF OFF ON ON ON

8 OFF ON OFF OFF OFF

9 OFF ON OFF OFF ON

10 OFF ON OFF ON OFF

11 OFF ON OFF ON ON

12 OFF ON ON OFF OFF

13 OFF ON ON OFF ON

14 OFF ON ON ON OFF

15 OFF ON ON ON ON

16 ON OFF OFF OFF OFF

17 ON OFF OFF OFF ON

18 ON OFF OFF ON OFF

19 ON OFF OFF ON ON

20 ON OFF ON OFF OFF

twenty one ON OFF ON OFF ON

twenty two ON OFF ON ON OFF

twenty three ON OFF ON ON ON

twenty four ON ON OFF OFF OFF

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

2) Baud rate BAUD (factory default baud rate is 9600bps)

Baud rate S3 S4 S5

1200bps OFF OFF OFF

2400bps OFF OFF ON

Page 6

M-3001 User Manual V3.0

4800bps OFF ON OFF

9600bps OFF ON ON

19200bps ON OFF OFF

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

No parity, 1 stop bit OFF OFF

No parity, 2 stop bits OFF ON

Odd parity, 1 stop bit ON OFF

Even parity, 1 stop bit ON ON

3.3 Status indicator

Working status description

Steady red Module failure


D1
Steady green Module is normal

Flashing red or steady on Communication failure or communication timeout


D2
Flashing green Sending and receiving communication packets

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.

4 IO and module parameters

The MODBUS protocol stipulates 4 kinds of components, namely: Discrete Input, Wire

Coil, Holding Register, Input Register. mold

All IOs and parameters in the block are mapped to specific MODBUS components, and you can read and write these components

The operation module completes various functions.

4.1 Analog input


6

Page 7

M-3001 User Manual V3.0

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

Input register 30001 0 Read only


AI0
Holding register 40001 0 Read only

Input register 30002 1 Read only


AI1
Holding register 40002 1 Read only

Input register 30003 2 Read only


AI2
Holding register 40003 2 Read only

Input register 30004 3 Read only


AI3
Holding register 40004 3 Read only

Input register 30005 4 Read only


AI4
Holding register 40005 4 Read only

Input register 30006 5 Read only


AI5
Holding register 40006 5 Read only

Input register 30007 6 Read only


AI6
Holding register 40007 6 Read only

Input register 30008 7 Read only


AI7
Holding register 40008 7 Read only

Input register 30009 8 Read only


AI8
Holding register 40009 8 Read only

Input register 30010 9 Read only


AI9
Holding register 40010 9 Read only

Input register 30011 10 Read only


AI10
Holding register 40011 10 Read only

Input register 30012 11 Read only


AI11
Holding register 40012 11 Read only

AI12 Input register 30013 12 Read only

Page 8

M-3001 User Manual V3.0

Holding register 40013 12 Read only

Input register 30014 13 Read only


AI13
Holding register 40014 13 Read only

Input register 30015 14 Read only


AI14
Holding register 40015 14 Read only

Input register 30016 15 Read only


AI15
Holding register 40016 15 Read only

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

4.2 Module parameters

After the node address, baud rate and data format of the M-3001 module are set by the software and the DIP switch,

It is automatically configured at power-on, no software configuration is required.

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

Use the timeout function to set the value to 0x00000000.

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

Setting method High 8 bits


430019 30018 03 or 16
Node address Low 8 bits
Communication settings
Baud rate High 8 bits
430020 30019 03 or 16
Data Format Low 8 bits

Note 1: Setting method (the factory default communication setting is the DIP switch hardware setting method)

Page 9

M-3001 User Manual V3.0

Set value Setting method

0x00 Software setting

0x01 DIP switch hardware setting

Note 2: Node address (the factory default node address is 1)

Set value Node address

0x01~0xfe 0x01~0xfe

Note 3: Baud rate (factory default baud rate is 9600bps)

Set value Baud rate

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)

Set value Data Format

0x00 No parity, 1 stop bit

0x01 No parity, 2 stop bits

0x02 Odd parity, 1 stop bit

0x03 Even 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

Briefly introduce the MODBUS RTU protocol.


9

Page 10

M-3001 User Manual V3.0

5.1 MODBUS communication mode

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

To perform the next step.

5.2 Function codes supported by the module

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.

element Function code reading and writing Features

Holding register 03 read Read multiple holding registers


I/O
Input register 04 read Read multiple input registers

03 read Read multiple holding registers


Parameter configuration holding register
16 write Write multiple holding registers

5.2.1 Function code 03

1) Master station request message

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x03 0x03

initial address 2 bytes 0x0000~0x001F 0x0000

Input quantity 2 bytes 0x0001~0x0020 0x0001

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,

It is mapped to the first analog input AI0 of the module).

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

M-3001 User Manual V3.0

2) Normal response message from the station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x03 0x03

Number of bytes 1 byte N 0x02

Input data N bytes 0x16EE

CRC check 2 bytes 0x0000~0xFFFF 0x3668

Note 1: N = the number of bytes of data in the response.

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).

3) Abnormal response message from the slave station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x83 0x83

0x01 (not a supported function code)

0x02 (The starting address is not in the range)


Error code 1 byte 0x01
0x03 (the number of registers is not in the range)

0x04 (data check error)

CRC check 2 bytes 0x0000~0xFFFF 0x80F0

5.2.2 Function code 04

1) Master station request message

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x04 0x04

initial address 2 bytes 0x0000~0x001F 0x0000

Input quantity 2 bytes 0x0001~0x0020 0x0001

CRC check 2 bytes 0x0000~0xFFFF 0x31CA

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

M-3001 User Manual V3.0

It is mapped to the first analog input AI0 of the module).

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.

2) Normal response message from the station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x04 0x04

Number of bytes 1 byte N 0x02

Input data N bytes 0x16EE

CRC check 2 bytes 0x0000~0xFFFF 0x371C

Note 1: N = the number of bytes of data in the response.

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).

3) Abnormal response message from the slave station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x84 0x84

0x01 (not a supported function code)

0x02 (The starting address is not in the range)


Error code 1 byte 0x01
0x03 (the number of registers is not in the range)

0x04 (data check error)

CRC check 2 bytes 0x0000~0xFFFF 0x82C0

5.2.3 Function code No. 16

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.

1) Master station request message

Message content length Ranges Example

12

Page 13

M-3001 User Manual V3.0

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x10 0x10

initial address 2 bytes 0x7540 0x7540

Number of registers 2 bytes N 0x0002

Number of bytes 1 byte 2*N 0x04

Register value 2*N bytes 0x0000, 0x2710

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.

2) Normal response message from the station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x10 0x10

initial address 2 bytes 0x7540 0x7540

Number of registers 2 bytes N 0x0002

CRC check 2 bytes 0x0000~0xFFFF 0x5A10

3) Abnormal response message from the slave station

Message content length Ranges Example

Slave address 1 byte 0x01~0x1F 0x01

function code 1 byte 0x90 0x90

0x01 (not a supported function code)

0x02 (The starting address is not in the range)


Error code 1 byte 0x01
0x03 (the number of registers is not in the range)

0x04 (data check error)

CRC check 2 bytes 0x0000~0xFFFF 0x8DC0

13

Page 14

M-3001 User Manual V3.0

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:

1) Modbus host, such as PC, PLC, industrial computer, etc.;

2) DC power supply (12~40V), such as 12V or 24V power supply;

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

See the corresponding instructions for use.

14

https://translate.googleusercontent.com/translate_f 12/12

You might also like