MODBUS IO8R A - Ver5.0
MODBUS IO8R A - Ver5.0
the cover
MODBUS-IO8R-A module
User Manual--V5.0
Machine Translated by Google
Table of contents
Table of contents
4.1, switch value, analog quantity acquisition and output function................................... ................................................... ................................ 10
4.2. MODBUS RTU communication function........................... ................................................... ................................................... ...... 10 4.3. Modify
MODBUS Debugging Tool" to configure...................... ................................................... .............. 11 5.2.1. Connection steps of debugging
revise history
about Us
Machine Translated by Google
1. Product overview
MODUBS-IO8R-A is a collection of digital acquisition control, analog acquisition output, with 485 serial port MODUBUS RTU
The module of communication and other functions is a product with stable economy, easy installation and strong applicability.
ÿ 8-way photoelectric isolation digital input, 8-way relay digital output (corresponding to the quantity status indicator light)
ÿ Using standard MODBUS RTU communication, it can be networked with PLC, configuration, host computer, etc.
ÿ With the baud rate and station address dial switch of this module, it is convenient to set the module parameters
MODUBS-IO8R-A module can be used in a wide range, such as: PLC control, industrial automation, building automation, POS system,
Power monitoring, access control medical care, attendance system, self-service banking system, telecommunications room monitoring, information home appliances, LED information display equipment, test
Equipment or systems with RS485 serial ports, such as measuring instruments, environmental power monitoring systems, and rice selling systems.
2. Product specifications
8 relay
serial port parameters 0~10V or 0~20ma can be selected for each channel, independent terminal
Baud Rate 1200~115200 (default 9600, determined by the baud rate DIP switch) default 8-bit data,
Communication 1-bit stop, no parity (fixed) When the baud rate is 9600, 485 serial communication 1200
Consumption Working
Temperature Other
2
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
3
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
24+ DC 24V power supply positive 0.6 The 7th digital output The 8th
0V DC 24V power supply negative pole 0.7 digital output Analog voltage
3M 1st ~8th digital input channel common port 1st digital V2 The second analog 0~10V voltage input
0.0 input 2nd digital input 3rd digital input 4th V3 The third analog 0~10V voltage input analog current input common
0.1 digital input 5th digital input 6th digital input 1M terminal
0.2 7th Digital input 8th digital input 1st~4th I1 The first analog 0~20ma current input
0.3 digital output channel common terminal I2 The second analog 0~20ma current input
0.4 1st digital output 2nd digital output 3rd I3 The third analog 0~20ma current input
0.5 digital output 4th digital output 5th~8th 4M The common port of the first analog output
0.6 digital Quantity output channel common I4 The first analog current 0~20ma output
0.7 end No. 5 digital output No. 6 digital output V4 The first analog voltage 0~10V output The second analog output
1L 5M common terminal
0.1 V5 Second channel analog voltage 0~10V Output baud rate DIP
2L Reset button:
Reset
0.4 Reset module bus error parameters
0.5
name illustrate
RUN system indicator light: blinks slowly for one second when the module is normal, and blinks quickly when reset
COMM COM port communication indicator light, flashes when COM port communicates
ÿ When the input terminal is connected to the positive power/high power signal, the corresponding input common terminal 3M is connected to the negative pole of the power supply;
ÿ When the input terminal is connected to negative power/low power signal is valid, the corresponding input common terminal 3M is connected to the positive pole of the power supply.
4
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
PLC MODBUS
name Read/write value range illustrate
corresponding address corresponding address
8 10007 0x06
10008 0x07
Example of ModBus RTU message for reading discrete input (0x02 function code):
Send MODBUS RTU message to read the status of 1~8 input channels of the machine, in the example, input channels 1, 3, 6, and 8 are valid.
Request message 01 02 00 00 00 08 79 CC
Byte number 1 1 2 2 2
Meaning Station number Function code Discrete starting address Number of addresses CRC check code
number Function code Data byte length 8-way digital input status CRC check code
The 8-way digital input state value A5 in the response message corresponds to an 8-bit binary number: 1010 0101, 1 means the input signal is valid,
The indicator light is on; 0 means there is no valid input signal, and the indicator light is off; from the high bit to the low bit corresponds to the digital input 8-1 channel in turn, then
At this time, the 1, 3, 6, and 8 input states are valid, and the indicator lights are on, and the other inputs are inactive, and the indicator lights are off.
5
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
PLC MODBUS
name Read/write value range illustrate
corresponding address corresponding address
0x07
1) Example of ModBus RTU message for reading output coils (0x01 function code):
Send MODBUS RTU message to read the status of 1~8 output channels of the machine, in the example output channels 1 and 3 are valid.
code Data byte length 8-way digital output status CRC check code
The 8-way digital output status value in the response message is 05, corresponding to 8-bit binary numbers: 0000 0101, 1 means the output channel is closed,
The indicator light is on; 0 means that the output channel is disconnected, and the indicator light is off; from the high bit to the low bit corresponds to the digital output 8-1 channel in turn, then this
When the 1 and 3 digital output channels are closed, the indicator light is on, and the other channels are disconnected, the indicator light is off.
6
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
2) Write a single output coil ModBus RTU message example (0x05 function code):
Send the MODBUS RTU message to write the status of the single output coil of the machine. In the example, channel 7 is closed through the message.
1 1 2 2 2
1 1 2 2 2
3) Example of ModBus RTU message for writing multiple output coils in batches (0x0F function code):
Send MODBUS RTU message to write the status of multiple output coils of the machine. In the example, channel 1, 3, and 8 are closed through the message.
1 1 2 2 1 1 2
data
Meaning Station No. Function Code Coil Start Address Address Quantity Write status value CRC check code
bytes
1 1 2 2 2
Meaning Station No. Function Code Coil Start Address Address Quantity CRC Check Code
The 8-way digital output in the sending message writes a state value of 85, corresponding to an 8-bit binary number: 1000 0101, 1 means to enable the output
When the channel is closed, the indicator light is on; 0 means that the output channel is disconnected, and the indicator light is off; from the high bit to the low bit, it corresponds to the digital input 8-1 in sequence
channel, at this time 1, 3, 8 digital output channels are closed, the indicator light is on, and the other channels are disconnected, the indicator light is off.
7
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
PLC MODBUS
name Read/write value range illustrate
corresponding address corresponding address
V1input
Analog (V1)channel 30002 0x01
Analog input value: 0-10V, 0-20ma, linear corresponding input
V2input
Analog (V2)channel 30003 0x02
read only 0-4095 register value: 0-4095 (default value 0)
V3input
Analog (V3)channel 30004 0x03
A1input
Analog (I1) channel 30005 0x04
A2input
Analog (I2) channel 30006 0x05
A3ÿI3ÿ
Read input register ModBus RTU message example (0x04 function code):
Send the MODBUS RTU message to read the analog input channel value of the machine. In the example, the analog V1 channel inputs 10V.
1 1 2 2 2
meaning Station No Function code input register start address address quantity CRC check code
count 1 1 2 12 2
Data length (unit: 6 channels of analog input channel data, each data occupies 2 bytes,
Meaning Station number function code CRC check code
byte) corresponding to V1-A3 channels from left to right
PLC MODBUS
name Read/write value range illustrate
corresponding address corresponding address
Analog output channel 1 40001 0x00 Holding register value: 0-4095 (default value 0), linearly
Analog output channel 2 40002 0x01 Read/write 0-4095 corresponding to analog output value:
8
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
1) Read holding register ModBus RTU message example (0x03 function code):
Send MODBUS RTU message to read the analog output channel value of the machine. In the example, the first channel of analog output outputs 10V or
1 1 2 2 2
meaning Station No Function code Analog output start address address quantity CRC check code
count 1 1 2 4 2
The high word data is the first channel analog output value, the low word
2) Write a single holding register ModBus RTU message example (0x06 function code):
Send the MODBUS RTU message to set the analog output channel value of the machine. In the example, write the first analog output 10V or
20Maÿ
count 1 1 2 2 2
Analog Write value, range 00 00-0F FF, converted to decimal number 0~4095, corresponding CRC
Meaning Station number function code
output address to analog output 0~10V or 0~20ma check code
count 1 1 2 2 2
Analog Write value, range 00 00-0F FF, converted to decimal number 0~4095, corresponding CRC
Meaning Station number function code
output address to analog output 0~10V or 0~20ma check code
9
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
4. Product function
The function of switch value acquisition and control of this module can support the acquisition of switch signal states such as button switches and proximity switches, and control electromagnetic
The analog acquisition function can be connected to various sensors with output specifications of 0~10V and 0~20ma, and the analog output can be used to control the inverter
The 485 interface of this module is A, B terminal and DB9 female head. As long as it supports standard MODBUS RTU master equipment (PLC,
Configuration, touch screen, host computer, etc.), the switch data of the control module can be collected by connecting the module 485 interface.
The bus error judgment function is mainly used to determine the status of all digital outputs of this module after a bus error occurs in the communication connected to this module.
When the communication of the MODBUS RTU master station connected to the RS485 serial port of this module is normal, the bus communication is normal; when the MODBUS RTU
When the master fails to connect the module successfully and exceeds a certain period of time, the bus communication will judge that the bus error is reset.
Users can set the bus error mode (reset or hold), bus error judgment time
When the module is powered on, press and hold the Reset button until the MODBUS-IO8R-A light flashes 6 times, then release the button, and then RUN
The light becomes fast flashing, and after the RUN light returns to slow flashing, power off the module for at least 3 seconds and then power on, the module will restore the factory parameters, as shown in the table below.
The baud rate of the serial port parameters is determined by the baud rate dial state, the parity bit is None, and the stop bit is 1 bit
Local address When the station address dial code is not all ON, it is determined by the station address dial state; when the dial code is all ON, the address is 32
The bus error mode is bus error hold, and the judgment time threshold is 200 (unit 10ms)
10
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
This chapter introduces the parameter configuration of MODUBS-IO8R-A. The baud rate and station address need to be combined with the DIP switch.
For some parameters, users need to choose Aimoxun MODBUS debugging tool to realize the corresponding functional requirements.
ÿ Use the USB to 485 serial cable to connect the module 485 port and the computer USB port
ÿ Connect the DC 24V external power supply to the module and power it on. Before powering on, please check whether the positive and negative poles of the power supply are connected correctly
The use of the Aimoxun MODBUS debugging tool (configuration or debugging function) is the same as other host computers, and it is necessary to establish the host computer and the module
block communication, please follow the steps below to connect the configuration tool:
A. Open the configuration tool, select "MODBUS RTU-KEY" in the "Interface Model" column
B. Select the corresponding product category (host model), this host is I8-Q8-AI6-AO2
C. Fill in the module address (1~126), the module address is 1 when leaving the factory
D. Select the serial port number, that is, the port number of the USB to 485 serial cable connected to the module in the computer device manager
E. Select the baud rate, parity bit, data bit, and stop bit, which should be consistent with the current parameters of the module. Generally, there is no need to choose by default.
F. Click the start scanning button. After successful connection, the text of the button will change to stop scanning, and the color of the communication status icon on the right will change from black to
for red
11
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
Communication parameter type of COM port (485 terminal block and DB9 female head)
1200~115200
8 bits (fixed) 1 (can be modified) None (modifiable)
Only support DIP switch settings
The baud rate of the RS485 interface is determined by the status of the "baud rate" DIP switch on the module, pay attention to adjust the DIP status when the module is powered on
, the module needs to be powered off for at least 3 seconds, and then powered on again to take effect. The specific relationship can be seen in the table below (all dials are OFF when leaving the factory).
As shown in the figure below, in the "Serial Port Settings" area, after selecting the communication parameters of the corresponding serial port (check digit and stop bit) from the drop-down list,
Click the "Setting" button at the same vertical line position on the right, and then power off the module for at least 3 seconds, then power on, and the newly set serial port parameters will take effect.
12
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
To modify the station number range from 1 to 32, you must adjust the state setting of the "station address" dial switch on the module. Note that when the module is powered on
When adjusting the dial status at any time, it is necessary to power off the module for at least 3 seconds, and then power on to take effect. The specific corresponding relationship is shown in the following table (the
The highest station number that can be set for this module is 126.
The station number is 32), and the station number between 33 and 126 can be set for the module through the debugging tool.
As shown in the figure below, after filling in the module address to be set in the "configure slave address" area, click on the same horizontal line on the right
Press the "Setting" button, then power off the module for at least 3 seconds and then power on, the newly set module address will take effect.
13
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
As shown in the figure below, in the "Mode Configuration" area, check the bus error reset or bus error hold according to the requirements, and
Fill in the value at the judgment bus error time threshold (200~6000, unit 10ms) (that is, access the module through the 485 serial port
If the MODBUS RTU master station has no successful connection with this module for more than this set value, it will be judged as a bus error), click
Press the "Setting" button, and the newly set bus error mode and judgment time will take effect.
ÿNote:
ÿWhen leaving the factory or pressing the button to reset, the mode is bus error reset, and the bus error judgment time threshold is 2s
ÿThe bus error judgment time threshold setting range is: 2s~60s, when the set value exceeds the range, it will be the bus hold
ÿThe bus error judgment time is the duration time, that is, when the module is connected again after no connection time exceeds the bus error time,
The judgment time starts from zero seconds when there is no connection next time.
14
Dongguan Aimoxun Automation Technology Co., Ltd.
Machine Translated by Google
revise history
about Us