Method and device for polling IO modules, storage medium and electronic device

A polling method and polling technology, applied in the field of mobile communications, can solve problems such as long polling time and low efficiency, and achieve the effect of improving polling efficiency and saving polling time

Inactive Publication Date: 2019-06-28
北京龙鼎源科技股份有限公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a polling method and device, a storage medium, and an electronic device for an IO module, so as to at least solve the problem of low efficiency caused by too long polling time in a PLC system in the related art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for polling IO modules, storage medium and electronic device
  • Method and device for polling IO modules, storage medium and electronic device
  • Method and device for polling IO modules, storage medium and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of the mobile terminal of the polling method of the IO module in the embodiment of the present invention. like figure 1 As shown, the mobile terminal 10 may include one or more ( figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above-mentioned mobile terminal also A transmission device 106 for communication functions as well as input and output devices 108 may be included. Those of ordinary skill in the art can understand that, figure 1 The shown structure is only for illustration, and does not limit the st...

Embodiment 2

[0039] In this embodiment, a polling device for an IO module is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and those that have already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0040] Figure 4 It is a structural block diagram of the polling device of the IO module according to the embodiment of the present invention, such as Figure 4 As shown, the device is applied to the main control module, including: a first sending module 40, configured to send a first polling request to the first IO module, wherein the main control module is connected to the first data bus and the second data bus at t...

Embodiment 3

[0046] An embodiment of the present invention also provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the steps in any one of the above method embodiments when running.

[0047] Optionally, in this embodiment, the above-mentioned storage medium may be configured to store a computer program for performing the following steps:

[0048] S1, the main control module sends a first polling request to the first IO module, wherein the main control module is connected to the first data bus and the second data bus at the same time, and the first IO module is connected to the first data bus;

[0049] S2. While waiting for data feedback from the first IO module, the main control module sends a second polling request to the second IO module, wherein the second IO module is connected to the second data bus.

[0050] Optionally, the storage medium is also configured to store a computer program for performing the following steps:

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a device for polling IO (Input / output) modules, a storage medium and an electronic device. The method comprises the following steps that: a main control module sends a first polling request to the first IO module, wherein the main control module is connected with a first data bus and a second data bus simultaneously, and the first IO module is connected with thefirst data bus; while waiting for feedback data from the first IO module, the main control module sends a second polling request to the second IO module, wherein the second IO module is connected with the second data bus. The problem of low efficiency caused by too long polling time in a PLC system in a related technology is solved.

Description

technical field [0001] The invention relates to the technical field of mobile communication, in particular to a polling method and device for an IO module, a storage medium, and an electronic device. Background technique [0002] In the application of the safety programmable logic controller (Programmable Logic Controller, referred to as PLC) system, the running state of the safety PLC system needs to poll the information of each input and output IO module in each cycle. This stage is called IO bus polling ( IOBUS Polling) stage; in order to improve the response time of PLC, it is necessary to shorten the operation cycle, most of the equipment cannot shorten the time in the IOBUS Polling stage at present. [0003] In the related art, there is no better solution to the problem of low efficiency caused by too long polling time in the PLC system. Contents of the invention [0004] Embodiments of the present invention provide a polling method and device, a storage medium, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G05B19/05
Inventor 宋晋泉赵伟雄
Owner 北京龙鼎源科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products