User Manual for LoRaWAN End Nodes - RS485-LN – RS485 to LoRaWAN Converter User Manual
Fast command to handle MODBUS device
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.
This command is valid since v1.3 firmware version
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.
Example:
• AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
• 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.
• 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.
RS485 command timeout
Some Modbus device has slow action to send replies. This command is used to configure the RS485-LN to use
longer time to wait for their action.
Page 26 / 38 - last modified by Bei Jinggeng on 2022/07/08 16:50