Modbus communication method and device based on polling optimization strategy, terminal and medium
A technology for optimizing strategies and communication methods, applied in the field of communication, can solve problems such as reducing the overall communication efficiency, achieve the effect of shortening time consumption and improving communication performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Such as figure 2 As shown in FIG. 1 , a schematic flowchart of a Modbus communication method based on a polling optimization strategy in an embodiment of the present invention is shown. It should be understood that the Modbus communication method provided in this embodiment is applied to a communication master station, and the Modbus communication method mainly includes the following steps.
[0029] In step S21, a data request is sent to the current slave station in the current polling.
[0030] Specifically, the Modbus master station conducts polling visits to multiple Modbus slave stations connected to it, and the Modbus master station sends data requests to each Modbus slave station in turn in each round of polling visits, and waits for the Modbus slave stations to station's response. After visiting each Modbus slave station in this round, it means that the Modbus master station has completed this round of polling visit, so the next round of polling visit can be p...
Embodiment 2
[0045] Such as image 3 As shown, a schematic structural diagram of a Modbus communication device based on a polling optimization strategy in an embodiment of the present invention is shown. The Modbus communication device 30 of this embodiment includes a sending module 31 , a judging module 32 , a recording module 33 , an accumulating module 34 and a processing module 35 .
[0046] Sending module 31 is used for sending data request to slave station; Judging module 32 is used for judging whether slave station responds abnormally; Recording module 33 is used for recording information; Accumulating module 34 is used for accumulating record times; Make described sending module 31 send data request to current slave station; And make described judgment module 32 judge whether current slave station responds abnormally; If if respond normally, then make described sending module 31 continue to the current polling queue The next slave station sends a data request; if the response is a...
Embodiment 3
[0052] Such as Figure 4 As shown in FIG. 2 , a schematic structural diagram of another electronic terminal provided by an embodiment of the present invention is shown. The electronic terminal provided by this example includes: a processor 41, a memory 42, and a communicator 43; the memory 42 is connected to the processor 41 and the communicator 43 through a system bus and completes mutual communication, and the memory 42 is used to store computer programs and communicate The device 43 is used for communicating with other devices, and the processor 41 is used for running a computer program, so that the computer device executes the above steps of the Modbus communication method based on the polling optimization strategy.
[0053]The system bus mentioned above may be a Peripheral Component Interconnect (PCI for short) bus or an Extended Industry Standard Architecture (EISA for short) bus or the like. The system bus can be divided into address bus, data bus, control bus and so o...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



