BLIIoT M Series Ethernet IO Module - User Manual - V3.1
BLIIoT M Series Ethernet IO Module - User Manual - V3.1
BLIIoT M Series Ethernet IO Module - User Manual - V3.1
M series
User Manual
Version:V3.1
Date:2023-6-9
Website:https://www.bliiot.com
Ethernet I/O Module M series
Preface
Thanks for choosing BLIIoT Industrial Ethernet I/O Module. These operating
instructions contain all the information you need for operation of a device in the M
series Ethernet I/O module.
Copyright
This user manual is owned by Shenzhen Beilai Technology Co., Ltd. No one is
authorized to copy, distribute or forward any part of this document without written
approval of Shenzhen Beilai Technology. Any violation will be subject to legal liability.
Disclaimer
This document is designed for assisting user to better understand the device. As the
described device is under continuous improvement, this manual may be updated or
revised from time to time without prior notice. Please follow the instructions in the
manual. Any damages caused by wrong operation will be beyond warranty.
Revision History
Update Date Version Description
2017-04-17 V1.0 First Edition
2019-11-18 V2.0 New version
Revised PT temperature measurement
2020-04-07 V2.1
range
1, Add detailed description of I/O interface
2020-07-29 V2.2 2, Add I/O interface internal schematic block
diagram and wiring diagram
1, Add DIN2~DIN12 pulse counting function
2020-10-28 V2.3 2, Add Modbus protocol example
3, Add MQTT protocol
Delete “User can change the AI signal type
2023-02-03 V2.4
through DIP switch”
Add models: M170T, M180T, M350T, and
2023-03-01 V3.0
M360T
2023-06-09 V3.1 Modified some functions
Content
1 Product Introduction ...................................................................................................... 6
2 Hardware .......................................................................................................................13
AO wiring .............................................................................................................. 22
3 Configuration ................................................................................................................ 26
3 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
6 Warranty ........................................................................................................................ 71
1 Product Introduction
1.1 Overview
The M series Ethernet Remote I/O Module is an industrial class, isolated designed,
high reliability, high stability and high precision data acquisition module, embedded
32-Bit High Performance Microprocessor MCU, Integrated 1 Industrial 10/100M
adaptive Ethernet module inside. It comes with multi I/O, supports standard Modbus
TCP, supports Modbus master and slave, can be integrated into SCADA, OPC server,
and other automation systems. It is design for working in the harsh industrial
application environment, widely used in a variety of industrial automation, security
monitoring system, automatically measurement and control system.
The M series Ethernet Remote I/O module comes with a RS485 interface, through the
RS485 bus, it can cascade Modbus I/O devices or Modbus meters, e.g.: a variety of
digital input or digital outputs, analog inputs or outputs, thermal resistance IO module
combination, save costs. At the same time, the Ethernet Remote I/O module has
register mapping function, the cascade Modbus I/O data are automatically collected to
the register mapping area, the TCP Client polling without waiting then can get a quick
response to meet the industrial timely requirements.
The M series Ethernet Remote I/O module features different I/O ports for variety
applications. Includes optical-isolated digital inputs, compatibles dry contact and wet
contact, supports max 700KHz high speed pulse counter; digital outputs supports
10Hz~300Khz high speed pulse output or relay outputs; isolated 12bit and 16bit
analog inputs, support 0~5V, 0~10V, 4~20mA, 0~20mA analog signal; 12bits analog
outputs, supports 0~10VDC signal output; resistance thermal detector inputs
compatible 2/3 wires PT100 and PT1000, and thermocouple inputs. All the I/O
interfaces are high sampling frequency and special filtering strategy to ensure its
reliability.
The M series Ethernet Remote I/O module can work at wide working voltage range,
the range is 12 ~ 36VDC with anti-reverse protection design. Also, it provides
1channel 12~36VDC power output for external device to save wiring cost.
1xM series I/O module, 1xDIN 35mm rail buckle, Wiring terminal
1.4 Features
Standard Modbus TCP protocol, Modbus RTU over TCP protocol, and MQTT
protocol;
Embedded 32-Bit High Performance Microprocessor MCU, inbuilt watchdog;
Optical isolated digital input(Compatible Dry or Wet type), supports max 700KHz
high speed pulse counter;
Support DIN2~DIN12 as a low-speed pulse counter. The anti-jitter time can be set
to 1~2000ms, the default is 1ms, and the corresponding pulse frequency is up to
7 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
1KHz;
DO supports Sink output, DO1 can be used as high-speed pulse output, supports
10Hz~300KHz;
Isolated analog input, 12-bit and 16-bit resolution, supports 0~20mA, 4~20mA,
0-5VDC, 0-10VDC;
1 RS485 Serial port, supports Modbus RTU Master/Slave, can extend I/O
modules;
Supports TCP Client and TCP Server, supports max. 5 TCP Client connections;
1 channel VDC power source output for external device, saving wiring cost;
LED instructions work status, with reset button to reset, easy on-site installation
and commissioning;
Using metal shell, protection class IP30. Metal shell and system security isolation,
especially suitable for industrial applications in the field;
QTY 8 channels(Max)
Method Differential input
Type 4-20mA, 0-20mA, 0-5V, 0-10V
Resolution 12Bit
Analog input ±0.1% FSR @ 25°C
(12bit) Accuracy ±0.3% FSR @ -10 and 60°C
±0.5% FSR @ -40 and 75°C
Sampling Rate 20Hz
Voltage type: >1M ohms
Input Impedance
Current type: 162 ohms
QTY 8 channels(Max)
Method Differential input
Type 4-20mA, 0-20mA, 0-5V, 0-10V
Analog input
Resolution 16Bit
(16bit)
Accuracy ±0.5‰FSR @ 25°C
Voltage type: >1M ohms
Input Impedance
Current type: 162 ohms
QTY 8 channels(Max)
Range -50 ~ +300°C
Type 2/3 wire PT100/PT1000
Resolution 12Bit
RTD
±0.1% FSR @ 25°C
Accuracy ±0.3% FSR @ -10 and 60°C
±0.5% FSR @ -40 and 75°C
Sampling Rate 20Hz
QTY 2 channels
Method Single-ended to ground
Type 0~10VDC
Analog Resolution 12Bit
output ±0.1% FSR @ 25°C
Accuracy ±0.3% FSR @ -10 and 60°C
±0.5% FSR @ -40 and 75°C
Maximum load 1000mA
QTY 8 channels(Max)
Support types B, E, J, K, N, R, S, T
TC
Accuracy ±1.5°C
Cold Junction -8°C~7.9°C
Compensation
Range
Sampling Rate 20Hz
IPV4, TCP/UDP, DNS, Modbus RTU, Modbus TCP,
Protocols
MQTT
Support Modbus TCP and RTU protocol conversion
Protocol
Support Modbus RTU to MQTT and Modbus TCP to
conversion
MQTT
Indicator light Power, Link, RS485_RXD, RS485_TXD, IO status
Software User PC software configuration, support WIN XP, WIN 7, WIN
configuration 8, WIN 10
bool: 300
Map data
16bit: 300
Login Package Support custom login package
Heartbeat
Support custom heartbeat package
Package
Working -20~70°C, 5~95%RH
Environment
Storage -40~85°C, 5~95%RH
Case Metal
Dimension 82mm×40mm×100mm
Others Protection grade IP30
Net Weight 450g
Installation DIN rail mounted, Wall-mounted
Ordering Instructions
Dry contact is optional, if you need dry contact, please note when placing an order, because
the input type cannot be changed by users.
If you need low-speed counting mode, please open the case and change it through the jumper
cap.
If DIN1 high-speed pulse counting mode is required, then the input type must be wet contact.
DO1 supports high-speed pulse, and DO2 can be used to control the direction of stepper
motors and motors.
12 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
Please select the signal type when placing an order, and the input type cannot be changed by
users.
If you use PT1000 type thermal resistance, please note when ordering.
6, All models support register mapping, and can expand the remote I/O acquisition module or
instrument of the Modbus RTU protocol through the serial port.
7, M series I/O modules use same housing, the number of I/O ports corresponding to the
model description.
2 Hardware
LED indicator
The power indicator light will always be on when the
PWR
device is powered on.
Light on after the Modbus TCP client connection is
Link
successful
RS485_RXD Light flickering when receiving data by RS485.
2.3 Interface
2.3.1 DI&DO
DI&DO Interface
DI1-DI16 1 to 16 digital input
COM DI common ground
DO1-DO16 1 to 16 digital output
GND DO common ground
PWR Clamps protection for the external power supply at the GND
14 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
DIN1 supports high-speed pulse counting and low-speed pulse counting. The factory
default is high-speed pulse counting mode. To switch to low-speed pulse counting
mode, you can open the case and short the jumper caps of J2 and J3 to the two pins
below. As shown in the figure below:
2.3.1.2 DI Wiring
DI wiring(Dry contact)
DI wiring(NPN sensor)
DI wiring(PNP sensor)
2.3.1.3 DO Wiring
DO wiring (sink)
2.3.2 RTD/AI/AO/TC
The terminal pins on the top are multiplex functions, and the specific function
definitions are determined according to the model list.
RTD/AI/AO Interface
PT1+ ~ PT8+ 1st ~ 8th PT100/PT1000 input positive
PT1- ~ PT8- 1st ~ 8th PT100/PT1000 input negative
GND PT100/PT1000 input ground
AI1 ~ AI8 1st ~ 8th analog input positive
COM 1st ~ 8th analog input common ground
AO1&AO2 1st & 2nd analog output positive
COM 1st & 2nd analog output common ground
RTD Wiring(PT100)
2.3.2.2 AI Wiring
The user needs to select the correct type according to the output type of the
transmitter, and also needs to select the corresponding type in configuration software.
The analog input type cannot be changed by users, please choose analog input type
when ordering device.
AI wiring (2 wire)
AI Wiring (3 wire)
2.3.2.3 AO Wiring
AO wiring
2.3.2.4 TC Wiring
2.3.3 RS485
RS485
A RS485 Data A
B RS485 Data B
RS485 Wiring
Ethernet
Power Input/Output
V+ Power input positive
DC IN 9~36V
V- Power input negative
V+ Power output positive
DC OUT 9~36V
V- Power output negative
2.6 Reset
Reset steps:
3) Plug in the power and turn on the device, wait for about 3 seconds until the 4
indicators(PWR, Link, RS485_RXD, and RS485_TXD) are all on, then release the
button. Except the PWR power indicator, the other 3 indicators flash 5 times and then
go off.
3 Configuration
M series I/O module comes with standard Ethernet port, which can be connected to
routers, switches, and HUBs through straight-through cables, or connected to terminal
devices such as PCs through crossover cables, and parameter settings can be
performed through configuration software.
The host computer software or cloud platform reads and writes the register address of
the device through Modbus protocol to control the device I/O and slave I/O.
3.2 Selection
System Settings
[Login Password]: Default password is 1234.
[Loading Data]: Read the parameter configuration of the device. Please read the
current configuration before setting the parameters.
[Time/MAC address]: Read and modify the device time and MAC address (Restart
device to take effect after the MAC address is modified).
Device Search
Search device
File operation
[Load file]: Import and load the previously exported configuration file parameter
information to the configuration software.
[Save file]: Export the current parameter information on the configuration software to
the computer configuration file, which is convenient for next configuration.
Language Selection
[English]: Click English to switch the language to English.
Click [Device Search], then click [Find Devices] to search for all devices in the current
LAN, double-click the device, next enter the password (Default: 1234).
Note: After successful log in, click [System Settings] - [Loading data] to read the
current configuration of the device, and then modify the configuration. After the
modification, click [System Settings] - [Save data] to save parameters to device.
[Current value]: Automatically converted to the real value according to the range.
[DIN setting]: Normal mode or counter mode; DIN1 supports high-speed pulse and
low-speed pulse mode, the default high-speed pulse frequency is up to 700KHz, and
the optional low-speed pulse frequency is up to 10KHz. DIN2~DIN12 can be used as
low-speed pulse counters: the anti-shake time can be set from 1 to 2000ms, the
default is 1ms, and the corresponding pulse frequency is up to 1KHz.
[DIN input status]: Status of digital input. When digital input is closed, the
corresponding value is 1, otherwise it is 0.
[DIN1 counter default trigger direction]: Rising edge or Falling edge. Restart
device to take effect.
[DO output status]: It is the status of digital output. When digital output is closed, the
29 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
[DO1 for pulse output, DO2 for direction control]: Check [Enable], it means that
DO1 is used as pulse output and DO2 is used as direction control after the device
restarts.
[Thermocouple Setting]: Under Mode Selection, you can select the corresponding
thermocouple model, the cold junction compensation range is -8°C to 7.9°C, and the
unit of the current value is °C.
[AO output test]: Adjust the DAC value of AO output by sliding the slider. The output
values of AO1 and AO2 cannot be set in advance, they are set by the host computer,
with 12-bit precision, the set value is 0~4095, the corresponding output voltage is
0~10VDC, and the maximum load is 1A.
Note: After setting, please click "System Settings" - "Save Data" to save the set
parameters.
[Got the IP address Auto]: The device automatically obtains the IP address in the
local area network, which can only be used when the router in the local area network
allows dynamic allocation of IP addresses.
[User specifies the IP address]: The user can set the IP address of the device
according to the IP address allocation in the LAN.
[IP Address], [Gateway], [Netmask]: These parameters can only be set after
selecting"User Specified IP Address", please set relevant parameters according to the
local area network.
[Modbus TCP listening port]: 1~65535, default is 502, it is used to monitor TCP
client connections, and a device supports up to 5 TCP client connections at the same
time.
[TCP Active Connection Settings]: Check [Active Connection], the device will
actively connect to the server, otherwise it will not connect.
[Server 1/2 IP/Domain Name], [Server Port 1/2]: The device will first connect to
31 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
[Login Msg]: The registration package sent by the device to the server when
connecting to the server.
[Login ACK Msg]: When registering to connect to the server, the server must send
corresponding data to the device, otherwise the device will consider the registration
connection failure.
[Heartbeat Msg]: The heartbeat packet sent by the device to the server to maintain
the link.
[Heartbeat ACK Msg]: The server must send the corresponding data to the device
when receiving the heartbeat packet. Connection break if the device does not receive
this data for 3 times in a row.
[Logout Msg]: When the device receives this data from the server, it will actively
disconnect.
[Server Strategy]: Send once when Login Server, Put it in front of every packet, Both
of them
[Resend Times]: 1~10 times, the default is 3 times, which means that when the
device sends data to the server, if the server does not respond, it will resend 3 times.
[MQTT Client ID]: The client identifier used in the MQTT connection message. The
server uses the client identifier to identify the client. Each client connected to the
server has a unique client identifier.
[MQTT User Name]: The user name used in the MQTT connection message, which
can be used by the server for authentication and authorization.
[MQTT Password]: The password used in the MQTT connection message, which can
be used by the server for authentication and authorization.
[Subscribe Topic]: The name of the topic used in the MQTT subscription message.
After subscription, the server can send a publish message to the client for control.
[Publish Topic]: The topic name used by MQTT to publish messages. The topic
name is used to identify which information channel the payload data should be
published to. The topic name in the published message cannot contain wildcards.
collected during the network disconnection will be temporarily stored in the device,
and will be republished when the network is restored.
[TCP Client/Slave settings]: Slave IP, Slave port, up to 5 Modbus TCP slaves can be
set.
Note: After setting, please click "System Settings" - "Save Data" to save the
parameters.
M series I/O module comes with a serial port and a network port. In the internal
storage area of the device, 300 BIT bit registers and 300 16-bit register mapping
areas are provided. This storage area is used to store slave data, which can reduce
the communication response waiting time of the entire network device and improve
communication efficiency.
RS485 Connection:
If the slave only has RS-232 interface, it can be connected to 485 network through
RS-232/RS-485 converter; it is recommended to use 485 converter with isolation to
improve the reliability of the system.
The A+ terminals of all devices on a bus are connected in parallel, and the B-
terminals are connected in parallel, and cannot be reversed. The signal ground GND
terminals of the 485 should be shorted together and grounded at a single point at the
host.
The RS-485 communication line should be shielded twisted pair, and the shielding
layer should be grounded at one end; the communication distance of 485 can reach
1200 meters. When there are many RS485 devices connected to a bus, or when the
baud rate is high, the communication distance will be shortened accordingly, at this
time, 485 repeaters can be used for expansion.
[Baud Rate]: 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000
[Over Time]: Wait for the command reply time, the next command will be sent after
timeout, default is 200ms.
[Interval]: The polling time, the sending time of each command interval, default is
200ms, if there are too many slaves, please increase the time appropriately.
[Retry Counts]: Resend times when the command reply times out, default is 3 times.
Note: After the RS485 serial port parameters are modified, please restart device.
[Function code]: The type of action that the device performs on the slave, including
02 read input coils, 01 read coils, 04 read input register, 03 read holding register, in
which the values of input coil and hold coil are automatically assigned to the transfer
Bit In the mapping storage area of the bit register, the values of the input register and
the holding register are automatically allocated to the mapping storage area of the
transfer 16-bit register.
[Mapped Address 100~399]: Register start address of the device mapping area(The
mapping area that stores the slave register value read by device), can be set to
100~399 ; the mapping address of the transfer bit and the 16-bit register are
separately, each occupies 300; the mapping addresses of the same type cannot be
the same, and the mapping addresses for reading and writing cannot be the same.
[Collection target]: RS485, TCP slave 1~5 (Corresponding to the Modbus TCP slave
setting in the network settings).
[Add]: After editing a slave, click Add to map the slave register address to the mapped
storage area of the device.
[Function code]: The type of action that the device performs on the slave, including
05/15 write coil, 06/16 write register, in which the value of the hold coil is automatically
assigned to the mapping storage area of the transfer bit register, and value of hold
register is automatically allocated to the mapped storage area of the transfer 16-bit
register.
[Mapped address 100~399]: Register start address of the device mapping area(The
register value written by device to slave is taken from this area), can be set to
100~399; the mapping address of the transfer bit and the 16-bit register are
separately, each occupies 300; the mapping addresses of the same type cannot be
35 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
the same, and the mapping addresses for reading and writing cannot be the same.
[Collection target]: RS485, TCP slave 1~5 (Corresponding to the Modbus TCP slave
setting in the network settings).
[Add]: After editing a slave, click Add to map the slave register address to the mapped
storage area of the device.
Note: After setting, please click "System Settings" - "Save Data" option to save the
parameters.
The register list in the configuration software can only be read, cannot be written. It is
used to display the current value of the register in the mapping area, which is
convenient for users to debug.
There are 300 transfer bit registers, which are used to store data that can represent
the state with one bit, that is, the values of the input coil and the hold coil.
There are 300 transfer 16-bit registers, which are used to store the data of input
registers and holding registers. The device will be automatically classified according
to the coils or registers.
4 Modbus Protocol
Modbus TCP and RTU protocols are very similar. For Modbus TCP protocol, add a
MBAP header to the Modbus RTU protocol and remove the two-byte CRC check code
of the Modbus RTU protocol.
Register PLC or
configuration
Channel Address Data Type Description
use address
(Decimal ) (Decimal )
0=Open,1=Close.
Holding Coils (Function Code 1: Read Coil, Function Code 5: Write Single Coil,
Function Code 15: Write multi Coils.)
Modbus PLC or
register configuration use Data
Channel Description
address address Type
(Decimal ) (Decimal )
DO15Value, Read/Write,
DO15 14 00015 Bit
0=Open,1=Close.
DO16Value, Read/Write,
DO16 15 00016 Bit
0=Open,1=Close.
This list corresponds to all M series models. If a model do not have some
Notice channels, the register address corresponding to the channel is empty. For
example, if M100T only has DO1 and DO2, then the DIN3 to DIN16
41 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
PLC or
Register
configuration
Channel Address Data Type Description
use address
(Decimal)
(Decimal)
RTD 3
2 30003 16 Bit int RTD3 ADC Value, Read Only.
ADC
RTD 4
3 30004 16 Bit int RTD4 ADC Value, Read Only.
ADC
RTD 5
4 30005 16 Bit int RTD5 ADC Value, Read Only.
ADC
RTD 6
5 30006 16 Bit int RTD6 ADC Value, Read Only.
ADC
RTD 7
6 30007 16 Bit int RTD7 ADC Value, Read Only.
ADC
RTD 8
7 30008 16 Bit int RTD8 ADC Value, Read Only.
ADC
Converted RTD1 Value, Read
RTD1 Only.
8 30009 16 Bit int
Temp Real value= Current value
stored in register/10.
Converted RTD2 ADC Value,
RTD 2 Read Only.
9 30010 16 Bit int
Temp Real value= Current value
stored in register/10.
Converted RTD3 ADC Value,
RTD 3 Read Only.
10 30011 16 Bit int
Temp Real value= Current value
stored in register/10.
Converted RTD4 ADC Value,
RTD 4 Read Only.
11 30012 16 Bit int
Temp Real value= Current value
stored in register/10.
Converted RTD5 ADC Value,
RTD 5 Read Only.
12 30013 16 Bit int
Temp Real value= Current value
stored in register/10.
Converted RTD6 ADC Value,
RTD 6 Read Only.
13 30014 16 Bit int
Temp Real value= Current value
stored in register/10.
RTD 7 Converted RTD7 ADC Value,
14 30015 16 Bit int
Temp Read Only.
43 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
Product 16 Bit
26 30027 Product Model Number
Model unsigned
Product 16 Bit
27 30028 Product LOT
LOT unsigned
Product 16 Bit
28 30029 Product Serial Number
SN unsigned
Power
16 Bit
On 29 30030 Power On Times
unsigned
Times
Hardwar 16 Bit
30 30031 Hardware Version
e Version unsigned
Firmware 16 Bit
31 30032 Firmware Version
Version unsigned
100(Low) 32-bit
IP unsigned A.B.C.D
101(High)
int DCBA
102(Low) 32-bit
Gateway unsigned A.B.C.D
103(High)
int DCBA
104(Low) 32-bit
Subnet
unsigned A.B.C.D
mask 105(High)
int DCBA
106(Low) 32-bit
Primary
unsigned A.B.C.D
DNS 107(High)
int DCBA
108(Low) 32-bit
Seconda
unsigned A.B.C.D
ry DNS 109(High)
int DCBA
This list corresponds to all M series models. If a model do not have some
channels, the register address corresponding to the channel is empty. For
Notice
example, if M100T only has AIN1 and AIN2, then the AIN3 to AIN8 registers are
empty.
Holding Register (Function Code 3: Read Holding Register, Function Code 6: Write
single Holding Register, Function Code 16: Write multi Holding Registers
)
PLC or
Register
configuration Data
Channel Address Description
use address Type
(Decimal)
(Decimal)
16 Bit AO1/AO2 output value, resolution
AO 1 0 40001 unsigne 12bits, Range = 0 - 4095
d corresponds to output voltage 0-10V,
DO2
16 Bit 1 =stands for output high level,
Pulse
9 40010 unsigne 0=stands for output low level. Can be
Output d changed in operation.
Direction
DO1 10(High) 40011(High)
32 Bit Range=0-4294967295. Only can be
Pulse
unsigne changed after finished present
Output 11(Low) 40012(Low) d ABCD operation.
Quantity
0=No Action, 1=Output specified
DO1
pulse quantity. 2= Continuous
16 Bit
Pulse output pulse. Complete the action
12 40013 unsigne
Output automatically reset to zero, the user
d
can read the register to determine
Control
whether the action is complete.
The anti-shake time can be set from
DIN2 13(High) 40014(High)
32 Bit
1 to 2000ms, the default is 1ms, and
pulse unsigne
d ABCD the corresponding pulse frequency is
count 14(Low) 40015(Low)
up to 1KHz.
up to 1KHz.
This list corresponds to all M series models. If a model do not have some
Notice channels, the register address corresponding to the channel is empty. For
example, M240T,M340T without AO, DI, DO.
Data
Content Bytes Description
(H: HEX)
Device Address 1 01H 01H Device, according to the data Master sent
Function Code 1 02H Read holding coil
Return Byte
1 02H Return Data Length
Length
Returning Data 2 03 90H Returned input coil status
16CRC Verify 2 B9 24H CRC0 CRC1 low byte in front, high byte behind
Example: Query 16 DIN data of this device at the same time, then:
Server send: 01 02 00 00 00 10 79 C6
If you want to query certain DIN statuses, you only need to change the "register starting
address" and "read register number", recalculate the CRC check.
Example: Query the 16 DO status of this device at the same time, the device address is 1,
Server send: 01 01 00 00 00 10 3D C6
01= Device address;
01= Read DO function code;
00 00=DO register starting address;
00 10 = Read 16 DO data continuously;
3D C6 = CRC verify.
Device answer: 01 01 02 05 C3 FA FD
01= Device address;
01= Read DO function code;
02= Return Byte Length;
05 C3= The returned DO status data, each bit represents a DO status, 0 represents open,
1 represents closed; the first byte 05H is converted into binary: 0000 0101, corresponding to
DO1-DO8 status from low to high; second The byte C3H converted into binary is: 1100 0011,
corresponding to the state of DO9-DO16 from low to high.
DO8 DO7 DO6 DO5 DO4 DO3 DO2 DO1
0 0 0 0 0 1 0 1
open open open open open closed open closed
DO16 DO15 DO14 DO13 DO12 DO11 DO10 DO9
1 1 0 0 0 0 1 1
closed closed open open open open closed closed
FA FD = CRC verify
If you want to read the state of a DO or some certain DO, you only need to modify the "register
50 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
starting address" and "number of reading registers", and then recalculate the CRC check.
1) Control single DO
Master Send Data Format:
Data
Content Bytes Description
(H: HEX)
01H Device, Range: 1-247, according to
Device Address 1 01H
setting address
Function Code 1 05H Write a single holding coil, function code 05
DO register
2 00 00H Register address
address
This value is: FF 00H or 00 00H, FF 00H
Action
2 FF 00H means control DO to close, 00 00H means
performed
control DO to open.
CRC0 CRC1 low byte in front, high byte
16 CRC Verify 2 8C 3AH
behind
Data
Content Bytes Description
(H: HEX)
Device Address 1 01H 01H Device, according to the data Master sent
Function Code 1 05H Execute a single DO command
DO register
2 00 00H Register address
address
This value is: FF 00H or 00 00H, FF 00H
Action
2 FF 00H means control DO to close, 00 00H means
performed
control DO to open.
16 CRC Verify 2 8C 3AH CRC0 CRC1 low byte in front, high byte behind
Data
Content Bytes Description
(H: HEX)
Device Address 1 01H 01H Device, according to the data Master sent
Function Code 1 0FH Write multiple holding coils
DO register
2 00 00H Register starting address
starting address
5D 0F = CRC verify.
Device answer: 01 0F 00 00 00 10 54 07
01= Device address;
0F= Control multiple DOs;
00 00= DO1 register starting address;
00 10 = 16 DO performed actions.
54 07 = CRC verify.
address
Function Code 1 04H Read input register, function code 04
Mapping Register Register starting address, every 2 16-bit
2 00 00H
starting Address addresses corresponds to 1 32-bit register
A total of 16 16-bit addresses are read, and
Number of read every 2 16-bit addresses are combined into a
2 00 10H
registers 32-bit address, a total of 8 32-bit addresses, that
is, the number of AIs is 8
16 CRC Verify 2 F1 C6H CRC0 CRC1 low byte in front, high byte behind
46 A0 = CRC verify
If you want to read certain input registers, you only need to modify the "register starting
address" and "number of read registers", and then recalculate the CRC check.
Return the
1 46H Return data length
number of bytes
00 00 00 00 00
00 00 65 C2 A8
00 00 00 00 00
00 00 00 00 00
00 00 00 00 00
00 00 77 9C 3D
00 05 16 15 00 Return data, Please refer to the holding
Return data 70 00 00 04 00 00 register address and corresponding data
00 05 00 00 00 type analysis data.
06 00 00 00 07
00 00 00 08 00
00 00 09 00 00
00 0A 00 00 00
0B 00 00 00
0CH
CRC0 CRC1 low byte in front, high byte
16 CRC Verify 2 F6 9DH
behind
If you want to read certain holding registers, you only need to modify the "register
starting address" and "number of read registers", and then recalculate the CRC check.
Data
Content Bytes Description
(H: HEX)
01H Device, Range: 1-247, according to
Device Address 1 01H
setting address
Write a single holding register, use function
Function Code 1 06H
code 06
Register address 2 00 00H Register address
Action
2 00 64H Set execution data as needed
performed
16 CRC Verify 2 88 21H CRC0 CRC1 low byte in front, high byte behind
00 02 = Control 2 AO;
04=Number of data sent;
00 64 00 C8= The execution data sent is as follows:
Types AO1 AO2
Hexadecimal data sent 00 64 00 C8
Converted to true value 100 200
B3 E6 = CRC verify.
Device answer: 01 10 00 00 00 02 41 C8
01= Device address;
10= Write multiple holding registers;
00 00= AO1 register starting address;
00 02 = 2 AO executed data.
41 C8 = CRC verify.
Platform can access slave by accessing the mapping address of the local device
through the Modbus protocol. The corresponding relationship between the mapping
address and the slave device address needs to be configured through the slave
device configuration page.
Transit BIT Register Address (Function Code 1: Read Coil, Function Code 5: Write
Single Coil, Function Code 15: Write Multi Coils.)
Transit BIT
PLC or configuration
Register Data Type Description
using address
Address
The BIT type mapping
registers in the internal
memory of the module. The
100~399 Bit 00101~00400
register address of the slave
is mapped to the mapped
storage area of the device
length
Return Data 2 73 01H Return Bit status
CRC0 CRC1 low byte in front, high byte
16 CRC Verify 2 5D 0CH
behind
Example: Starting from address 100, read the value of 10 Bit mapping data,
Server send: 01 01 00 64 00 0A FD D2
01= Device address;
01= Read holding coil;
00 64=Read data starting from the starting address 100;
00 0A = Continuously read 10 bit status;
FD D2 = CRC verify.
Device answer:01 01 02 73 01 5D 0C
01= Device address;
01= Read holding coil;
02= Return Byte Length;
73 01= The returned 10 Bit data status. The high byte represents the low address data,
and the low byte represents the high address data. According to the Modbus protocol, the
actual value of 73 01H is 01 73H and converted into binary as follows:
Register mapping invalid invalid invalid invalid invalid invalid 109 108
address
value 0 0 0 0 0 0 0 1
Register mapping 107 106 105 104 103 102 101 100
address
value 0 1 1 1 0 0 1 1
Address values higher than 10 bits are considered invalid values.
5D 0C = CRC verify.
If you want to control the status of the holding coils connected to the slave, you must
configure the mapping for adding slave 01 function code. After the mapping address
value is changed, the corresponding slave address data will be written.
Master Send Data Format:
Data
Content Bytes Description
(H: HEX)
01H Device, Range: 1-247, according to setting
Device Address 1 01H
address
Function Code 1 05H Write a single holding coil, use function code 05
62 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
value
FB 34 = CRC verify.
If you want to rewrite data of the slave, you must configure the mapping for adding
slave 03 function code. After the mapping address value is changed, the
corresponding slave address data will be rewritten.
If the data type of the mapped slave at the mapped address 100 is signed integer, the
order is AB.
Master Send Data Format:
Data
Content Bytes Description
(H: HEX)
01H Device, Range: 1-247, according to setting
Device Address 1 01H
address
Function Code 1 06H Write a single holding register, function code 06
Mapping register For address correspondence, please refer to
2 00 64H
address the mapping register address
The data sample write value is a decimal
Value written 2 00 64H
number 100
16 CRC Verify 2 C9 FEH CRC0 CRC1 low byte in front, high byte behind
C9 FE = CRC verify.
Device answer: 01 06 00 64 00 64 C9 FE
01= Device address;
06= Rewrite a single holding register value;
00 64= Rewrite address 100 register value;
00 64 =Has been rewritten to the decimal value 100.
C9 FE = CRC verify.
If you need to write multiple data type mapping addresses, please read Modbus protocol
16 function code.
5 MQTT Protocol
1) Connect to platform: You can connect to the BLIIoT Cloud 2.0 platform (The server
is mqtt.dtuip.com, the port number is 1883), or enter the corresponding IP and port of
other cloud platforms
2) Connection protocol: MQTT protocol
3) MQTT client ID: The unique identification of the device, which can be serial number,
device ID, or IMEI code. If you need to connect to BLIIoT Cloud 2.0, please contact
the sales representative.
4) MQTT user name: The account that the device requests to connect to the proxy
server. BLIIoT Cloud 2.0: MQTT .
5) MQTT password: The account password that the device requests to connect to the
proxy server. BLIIoT Cloud 2.0: MQTTPW .
6) Subscription topic: Refers to the topic subscribed when the device receives
downlink data. BLIIoT Cloud 2.0: Cloud platform serial number/+
7) Publish topic: Refers to the topic that the device publishes uplink data to the
platform. BLIIoT Cloud 2.0: Cloud platform serial number
8) Active upload data cycle: MQTT data publish interval cycle, unit second, range
10~9999 seconds
9) MQTT data retransmission: Check Enable retransmission, after enabling it, when
reconnecting to the cloud platform, the data during the disconnection period will be
retransmitted
After the configuration is complete, the client will initiate a connection to the server:
CONNECT: The client sends a CONNECT connection message request to the server;
CONNACK: The server responds with a CONNACK to confirm the connection
message, indicating that the connection is successful;
After the client establishes a connection, it is a long connection, and the client can
publish or subscribe to the message on the server;
Take the device and the customer's mobile phone as the client as an example:
After the device publishes the topic on the proxy server, the client can view the data
by subscribing. That is, the device is the publisher, and the client mobile phone is the
subscriber.
Similarly, users can also publish topics through the MQTT server to control devices.
That is, users are publishers and devices are subscribers.
{
//value type
"flag":"AI1",
"value":10.00
},
{
//slave value type
"flag":"REG100",
"value":1234
}
],
"time":"1602324850",
///Time , data release timestamp UTC format
"retransmit":"enable"
//Retransmission flag, indicating historical data (Only retransmission
historical data has this flag, real-time data does not have this flag)
}
Note:
//Read-write flag: The character is "flag", followed by "read-write flag representing the
68 Shenzhen Beilai Technology Co., Ltd. V3.1
Ethernet I/O Module M series
//Time mark: The character is "time", followed by "specific reporting time stamp"
//Read-write flag: The character is "flag", followed by "read-write flag representing the
I/O data point"
//Platform downlink message identifier: The character is "down", followed by "down",
which means that this is platform downlink data.
6 Warranty
1) This equipment will be repaired free of charge for any material or quality problems
within one year from the date of purchase.
2) This one-year warranty does not cover any product failure caused by man-made
damage, improper operation, etc.
7 Technical Support