The invention provides a multi-discontinuous register reading method for improving
Modbus protocol communication rate and a
function code. The multi-discontinuous register reading method comprises the following steps: defining a
function code 43H in a
Modbus protocol; the method comprises the following steps: determining the type, address
list and number of discontinuous registers to be
read through a master device, assembling a request frame, and sending the request frame to a slave device; after the slave device receives the request frame, address matching and
verification are carried out on the request frame, and if the address is not matched or
verification fails, the frame is discarded; if the address is matched and the
verification is passed, analyzing, judging whether abnormity exists or not, and executing related operation based on a judgment result; the master device receives the response frame returned by the slave device, verifies the response frame, and analyzes a data
list in the response frame to obtain data of each register if the response frame passes the verification and is a normal response frame; if verification fails or the frame is responded abnormally,
error processing is carried out, and the multi-discontinuous register reading method which can improve the communication rate, reduce the communication overhead and enhance the real-time performance and is high in compatibility is provided.