Chengdu Ebyte Electronic Technology Co.,Ltd.
ME31-XAAX0440_UserManul_EN
Copyright ©2012–2021,Chengdu Ebyte Electronic Technology Co.,Ltd.
7
2.4 Control test
2.4.1 Modbus TCP control
Use the network assistant to control the first DO output of ME31-XAAX0440.
You can test other functions through the commands in the following table.
Function (function code)
Instruction
Pull in the first coil (0x05)
01 00 00 00 00 06 01 05 00 00 FF 00
Full open command (0x0F) 02 00 00 00 00 08 01 0F 00 00 00 04 01 0F
Full close instruction (0x0F) 02 00 00 00 00 08 01 0F 00 00 00 04 01 00
Read all AI inputs (0x04)
01 00 00 00 00 06 01 04 00 64 00 04
Read all DO status (0x01)
01 00 00 00 00 06 01 01 00 00 00 04
The input register read by the demo case is engineering quantity (16-bit integer value, 32-bit floating point value
can also be obtained by reading 0x00C8 register)
Convert the value read from the input register to decimal, and compare it with the value displayed on the screen
after dividing by 1000.