RELE
RELE
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
7.Modbus uses
0x32-0xFFF (50-65535),
(41500)0x05DC 4 DO press width R.W. 0x03ÿ0x06ÿ0x10
duration of pulse, in ms.
0x0000-0x0002, 0x0000
0x0000, ie 1200;
0x0001, or 2400;
(42100)0x0834 1 Baud rate code R.W. 0x03ÿ0x06ÿ0x10
0x0002, or 4800;
0x0003, or 9600;
0x0004, ie 19200;
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
0x0005, or 38400;
0x0006, or 57600;
0x0007, or 115200;
0x0002, ie parity;
Use the 01 function code to read the output coil status, for example, read the two output coil states
twenty 01 00 00 00 02 XX XX
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 01 01 02 XX XX
The status data returned above 02 indicates that the output DO2 on .
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
Use the 03 function code to read one or more register values, for example, read DO1 operating mode.
twenty 03 05 78 00 01 XX XX
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 03 02 00 00 XX XX
Write a single hold register using the 06 function code, for example, set the operating mode of DO1 to pulse mode
twenty 06 05 78 00 01 XX XX
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 06 05 78 00 01 XX XX
Write multiple hold register commands using 10 function codes, for example, set the do1-DO4 operating mode at the
The number
Device Modbus The function Register The number of bytes The data CRC check
address code start address of registers written to written code
the data
When the above command is sent to the device via the 485 bus, the device returns the following values:
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
twenty 10 05 78 00 04 XX XX
If the modification is successful, the values of thefour consecutive registers with 0x 0578 as the starting address are 0
x0001, 0x0002, 0x0003, 0x0000.
Use the 05 command to write a single command, for example, to set do1 to pulse mode
twenty 05 00 00 FF 00 XX XX
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 05 00 00 FF 00 XX XX
Use the 0F function code to write a single command, for example, set do1 to pulse mode
twenty 0F 00 00 00 04 01 06 XX XX
Control the
The The number
Device Modbus The starting The number of data for the CRC check
functions of bytes of
address address coils coil code
code the data
(bit operation)
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 0F 00 00 OO O4 XX XX
The
Device Modbus CRC check
functions Register address The number of coils
address code
code
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
For example, the original value of the four AI channels is captured, and the original value of the four AI channels is
read using the 0 4 function code.
twenty 04 00 00 00 04 XX XX
The
Device Modbus The starting
functions The number of AI channels is 4 CRC check code
address address
code
When the above command is sent to the device via the 485 bus, the device returns the following values:
twenty 04 08 00 00 00 00 00 00 00 00 XX XX
Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual
Revised history
About us