Last modified by Xiaoling on 2025/04/23 15:57

From version 41.34
edited by Xiaoling
on 2022/06/06 11:19
Change comment: There is no comment for this version
To version 41.36
edited by Xiaoling
on 2022/06/06 11:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1183,24 +1183,47 @@
1183 1183  
1184 1184  ==== **Fast command to handle MODBUS device** ====
1185 1185  
1186 +(((
1186 1186  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]].
1188 +)))
1187 1187  
1190 +(((
1188 1188  This command is valid since v1.3 firmware version
1192 +)))
1189 1189  
1194 +(((
1195 +
1196 +)))
1190 1190  
1198 +(((
1191 1191  **AT+MBFUN has only two value:**
1200 +)))
1192 1192  
1193 -* **AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return
1202 +* (((
1203 +**AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return
1204 +)))
1194 1194  
1206 +(((
1195 1195  AT+MBFUN=1, device 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.
1208 +)))
1196 1196  
1197 -* **AT+MBFUN=0**: Disable Modbus fast reading.
1210 +* (((
1211 +**AT+MBFUN=0**: Disable Modbus fast reading.
1212 +)))
1198 1198  
1214 +(((
1199 1199  **Example:**
1216 +)))
1200 1200  
1201 -* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0).
1202 -* 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.
1203 -* 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.
1218 +* (((
1219 +AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0).
1220 +)))
1221 +* (((
1222 +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.
1223 +)))
1224 +* (((
1225 +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.
1226 +)))
1204 1204  
1205 1205  [[image:1654133913295-597.png]]
1206 1206  
... ... @@ -1208,9 +1208,13 @@
1208 1208  [[image:1654133954153-643.png]]
1209 1209  
1210 1210  
1211 -* **Downlink Commands:**
1234 +* (((
1235 +**Downlink Commands:**
1236 +)))
1212 1212  
1238 +(((
1213 1213  **A9 aa** ~-~-> Same as AT+MBFUN=aa
1240 +)))
1214 1214  
1215 1215  
1216 1216