Last modified by Mengting Qiu on 2025/07/14 09:59

From version 58.8
edited by Xiaoling
on 2022/06/06 11:22
Change comment: There is no comment for this version
To version 58.9
edited by Xiaoling
on 2022/06/06 11:22
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -795,18 +795,35 @@
795 795  
796 796  ==== **Fast command to handle MODBUS device** ====
797 797  
798 +(((
798 798  AT+MBFUN is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]].
800 +)))
799 799  
802 +(((
800 800  This command is valid since v1.3 firmware version
804 +)))
801 801  
806 +(((
802 802  AT+MBFUN can auto read the Modbus function code: 01, 02, 03 or 04. AT+MBFUN has lower priority vs AT+DATACUT command. If AT+DATACUT command is configured, AT+MBFUN will be ignore.
808 +)))
803 803  
810 +(((
811 +
812 +)))
804 804  
814 +(((
805 805  **Example:**
816 +)))
806 806  
807 -* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
808 -* AT+COMMAND1= 01 03 00 10 00 08,1 ~-~-> read slave address 01 , function code 03, start address 00 01, quantity of registers 00 08.
809 -* AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10.
818 +* (((
819 +AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
820 +)))
821 +* (((
822 +AT+COMMAND1= 01 03 00 10 00 08,1 ~-~-> read slave address 01 , function code 03, start address 00 01, quantity of registers 00 08.
823 +)))
824 +* (((
825 +AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10.
826 +)))
810 810  
811 811  [[image:image-20220602165351-6.png]]
812 812