Method for transmitting Modbus RTU protocol on TCP/IP network
An IP network and protocol technology, applied in the field of communication, can solve the problems of distinguishing between two frames, the difficulty of realizing ModbusRTU protocol transmission, and the inability to use time gaps, etc., to achieve a stable transmission effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, the method for transmitting the Modbus RTU protocol on a TCP / IP network, which includes a client and a server in the TCP / IP network, includes the following steps:
[0040] In step S0, the server starts monitoring on a socket port, and the client establishes a connection to the socket port to start communication.
[0041] Step S1, the client sends a request to the server, the request includes several request frames, and waits for the server to respond.
[0042] Step S2, the server side receives the request frames sequentially, for each request frame:
[0043] The server reads the first byte of the current request frame and obtains the address of the slave station;
[0044] The server reads the next byte of the current request frame to obtain the function code;
[0045] Judge the byte length of the data area of the current request frame according to the function code; if the byte length of the data area of the request frame is N, the serv...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap