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

Summary

Details

Page properties
Content
... ... @@ -795,35 +795,18 @@
795 795  
796 796  ==== **Fast command to handle MODBUS device** ====
797 797  
798 -(((
799 799  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 -)))
801 801  
802 -(((
803 803  This command is valid since v1.3 firmware version
804 -)))
805 805  
806 -(((
807 807  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 -)))
809 809  
810 -(((
811 -
812 -)))
813 813  
814 -(((
815 815  **Example:**
816 -)))
817 817  
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 -)))
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.
827 827  
828 828  [[image:image-20220602165351-6.png]]
829 829  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0