CN113472828A - Method, device and system for remote data acquisition and control - Google Patents
Method, device and system for remote data acquisition and control Download PDFInfo
- Publication number
- CN113472828A CN113472828A CN202010238864.2A CN202010238864A CN113472828A CN 113472828 A CN113472828 A CN 113472828A CN 202010238864 A CN202010238864 A CN 202010238864A CN 113472828 A CN113472828 A CN 113472828A
- Authority
- CN
- China
- Prior art keywords
- module
- configuration file
- iolink
- controller
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000004458 analytical method Methods 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 9
- 230000000737 periodic effect Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 5
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000012795 verification Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 abstract description 14
- 230000006854 communication Effects 0.000 description 22
- 238000004891 communication Methods 0.000 description 20
- 238000010586 diagram Methods 0.000 description 14
- 238000012545 processing Methods 0.000 description 10
- 239000000306 component Substances 0.000 description 9
- 238000012937 correction Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012950 reanalysis Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Selective Calling Equipment (AREA)
Abstract
A method, apparatus, system, electronic device, and computer readable medium for remote data acquisition and control are provided. The method comprises the following steps: carrying out IO module configuration through a configuration tool and issuing a configuration file to a controller; the controller analyzes the received configuration file on line and generates a first memory mirror image; the controller transmits the received configuration file and/or control command to an online IOLINK module; the IOLINK module analyzes the received configuration file on line and generates a second memory mirror image; the IOLINK module issues the control command to an IO module; the IOLINK module collects data of the IO module in real time through the second memory mirror image; and the IOLINK feeds back the data to the controller according to the control instruction. IO module configuration is carried out according to the on-site demand through the configuration tool, and customized configuration functions can be provided, so that different on-site control demands are met.
Description
Technical Field
The present application relates to the field of automated communications technologies, and in particular, to a method, an apparatus, a system, an electronic device, and a computer-readable medium for remote data acquisition and control.
Background
With the progress of scientific technology and the development of industrial control technology, the demand for remote control of field devices is becoming more and more strong, and the control environment of the field is also becoming more and more complicated.
The use of IO modules enables control of field devices. The IO module generally includes a switching value input, a switching value output, an analog value input, an analog value output, and a serial port communication template, and is a key component in the distributed acquisition system. The field device can be controlled and data can be collected on the spot through the IO module, and the quality of data collection is effectively improved.
The IO module is used for controlling the field device and collecting data, and certain limitation exists. For example, when the field device is far from the controller, the field data cannot be collected by the controller. At this time, data acquisition of the field device needs to be realized through remote control.
Disclosure of Invention
The application aims to provide a method for remote data acquisition and control, IO module configuration is carried out according to field requirements through a configuration tool, customized configuration functions can be provided, and different field control requirements are met. Meanwhile, remote communication is carried out by adopting the redundant Ethernet, so that the high efficiency and reliability of the control process and the data acquisition process are ensured.
According to an aspect of the present application, there is provided a method for remote data acquisition and control, comprising:
carrying out IO module configuration through a configuration tool and issuing a configuration file to a controller;
the controller analyzes the received configuration file on line and generates a first memory mirror image;
the controller transmits the received configuration file and/or control command to an online IOLINK module;
the IOLINK module analyzes the received configuration file on line and generates a second memory mirror image;
the IOLINK module issues the control command to an IO module;
the IOLINK module collects data of the IO module in real time through the second memory mirror image;
and the IOLINK feeds back the data to the controller according to the control instruction.
According to some embodiments of the application, the method further comprises:
the controller and the IOLINK module are communicated through a redundant Ethernet.
Further, the redundant ethernet network comprises: a star network or a ring network.
According to some embodiments of the application, the configuration file comprises:
and the IO module slot number, the IO module type, the IO module subtype and the IO module version number.
According to some embodiments of the application, the control instructions comprise: periodic polling instructions and/or aperiodic polling instructions, wherein,
the periodic query instruction comprises a real-time input data query instruction and/or an output data sending instruction;
the aperiodic query instruction: the method comprises one or more of an SOE data transmission instruction, a memory query instruction and a configuration file issuing instruction.
According to some embodiments of the application, further comprising:
the controller stores the received configuration file in a local memory.
According to some embodiments of the application, the online IOLINK module is identified by:
the controller periodically sends a data packet to the IOLINK module for online detection;
and after receiving the response message of the IOLINK module, the controller marks the IOLINK module as online.
According to some embodiments of the application, the method further comprises:
the controller and the online IOLINK module carry out configuration file verification;
and when the configuration file is absent from the IOLINK module or the configuration file is inconsistent with the configuration file, the controller issues the received configuration file to the IOLINK module.
According to an aspect of the present application, there is provided another method for remote data acquisition and control, comprising:
carrying out IO module configuration according to remote field requirements;
and transmitting the configuration file of the IO module to a controller.
According to an aspect of the present application, there is provided another method for remote data acquisition and control, comprising:
the controller receives an IO module configuration file configured and issued by the configuration tool;
the controller analyzes the configuration file on line and generates a first memory mirror image;
and the controller transmits the received control command to an online IOLINK module.
According to some embodiments of the application, the method further comprises:
the controller stores the received configuration file in a local memory.
According to an aspect of the present application, there is provided another method for remote data acquisition and control, comprising:
the IOLINK module receives an IO module configuration file which is issued by the controller and configured by the configuration tool;
the IOLINK module analyzes the configuration file on line and generates a second memory mirror image;
the IOLINK module issues the control command to an IO module;
the IOLINK module collects data of the IO module in real time through the second memory mirror image;
and the IOLINK feeds back the data to the controller according to the control instruction.
According to some embodiments of the application, the method further comprises:
the IOLINK module is communicated with the controller through a redundant Ethernet;
according to some embodiments of the application, the method further comprises:
the IOLINK module stores the received configuration file in a local memory.
According to an aspect of the present application, there is provided an apparatus for remote data acquisition and control, comprising:
the first configuration file receiving module is used for receiving the IO module configuration file configured and issued by the configuration tool;
the first configuration file analysis module is used for carrying out online analysis on the received IO module configuration file and generating a first memory mirror image;
and the first configuration file issuing module is used for issuing the received configuration file and/or the control instruction to the online IOLINK module.
The first configuration file storage module is used for storing the received configuration file in a local memory.
According to an aspect of the present application, there is provided another apparatus for remote data acquisition and control, comprising:
the second configuration file receiving module is used for receiving an IO module configuration file configured by the configuration tool and transmitted by the controller;
the second configuration file analysis module is used for carrying out online analysis on the received configuration file and generating a second memory mirror image;
the control instruction issuing module is used for issuing the control instruction to the IO module;
the real-time data acquisition module is used for acquiring the data of the IO module in real time through the second memory mirror image;
and the real-time data acquisition feedback module is used for feeding back the data to the controller according to the control instruction.
According to some embodiments of the application, the apparatus further comprises:
and the second configuration file storage module is used for storing the received configuration file in a local memory.
According to an aspect of the application, there is provided another system for remote data acquisition and control, comprising:
a configuration tool for configuring the IO module;
the controller is connected with the configuration tool and receives an IO module configuration file sent by the configuration tool;
the IOLINK module is connected with the controller through a redundant Ethernet, receives an IO module configuration file and/or a control instruction sent by the controller, and feeds back data to the controller according to the control instruction;
and the IO module is connected with the IOLINK module and transmits the acquired data to the IOLINK module.
According to another aspect of the present application, there is provided an electronic device for remote data acquisition and control, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the above-described method of remote data acquisition and control.
According to another aspect of the present application, there is also provided a computer readable medium, on which a computer program is stored, characterized in that said program, when executed by a processor, implements the above-mentioned method of remote data acquisition and control.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments of the present application.
FIG. 1 shows a schematic diagram of a system for remote data acquisition and control according to an example embodiment of the present application.
FIG. 2 shows a schematic diagram of a system for remote data acquisition and control according to another example embodiment of the present application.
FIG. 3A shows a first portion of a timing diagram of a method for remote data acquisition and control according to an example embodiment of the present application.
FIG. 3B illustrates a second portion of a timing diagram for a method for remote data acquisition and control according to an example embodiment of the present application.
Fig. 4 shows a flow chart of a method for remote data acquisition and control according to a first example embodiment of the present application.
Fig. 5 shows a flow chart of a method for remote data acquisition and control according to a second exemplary embodiment of the present application.
Fig. 6 shows a flow chart of a method for remote data acquisition and control according to a third example embodiment of the present application.
Fig. 7 shows a flow chart of a method for remote data acquisition and control according to a fourth example embodiment of the present application.
FIG. 8 shows a block diagram of an apparatus for remote data acquisition and control, according to an example embodiment of the present application.
FIG. 9 shows a block diagram of an apparatus for remote data acquisition and control, according to another example embodiment of the present application.
FIG. 10 shows a block diagram of an electronic device composition for remote data acquisition and control, according to an example embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. These embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
It will be understood that, although the terms first, second, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the present concepts. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Those skilled in the art will appreciate that the drawings are merely schematic representations of exemplary embodiments, which may not be to scale. The blocks or flows in the drawings are not necessarily required to practice the present application and therefore should not be used to limit the scope of the present application.
The inventor finds that in the existing remote control system, when the existing IO module cannot meet the actual field requirement, the configuration adjustment is difficult to be carried out quickly, and the existing remote control system cannot adapt to the continuously changing field control requirement. Therefore, the present inventors propose a method, apparatus and system for remote data acquisition and control of configurable IO modules. The configuration tool is used for carrying out IO module configuration according to field requirements, customized configuration functions can be provided, IO modules can be added or deleted on line, and the configuration file can be effective in real time only by being issued to the controller, so that different field control requirements are met.
The technical solution of the present application will be described in detail below with reference to the accompanying drawings.
FIG. 1 shows a schematic diagram of a system for remote data acquisition and control according to an example embodiment of the present application.
As shown in fig. 1, the present application provides a system 1000 for remote data acquisition and control, according to an embodiment of the present application, comprising: a configuration tool 100, a controller 200, an IOLINK module 300, and an IO module 400.
The configuration tool 100 is used for configuring the IO module. Specifically, the configuration tool 100 is a tool for visually generating an IO module configuration file. The configuration tool 100 can perform visual configuration of the IO module according to actual requirements of a field, and generate a corresponding configuration file.
The controller 200 is connected to the configuration tool 100, and receives an IO module configuration file issued by the configuration tool 100. The controller 200 is a core component of the entire system. In one aspect, the IO module configuration file sent by the configuration tool 100 is parsed and sent. And on the other hand, judging the exit logic according to the control algorithm and issuing the exit logic in the form of a control instruction.
The IOLINK module 300 is connected to the controller 200 through the redundant ethernet 500, receives an IO module configuration file and/or a control instruction issued by the controller 200, and feeds back data to the controller 200 according to the control instruction. The IOLINK module 300 has a remote IO module management function. And generating a local IO module data mirror image by receiving the IO module configuration information sent by the controller 200. And then, periodically collecting IO module data and forwarding a control instruction. The data acquisition and control of the remote equipment are realized. The IOLINK module can also integrate FPGA functions. After receiving the ethernet message sent by the controller 200, the redundant message is filtered according to the configured network mode, so as to reduce the pressure of message processing of the application layer.
The IO module 400 is connected to the IOLINK module 300, and transmits the collected data to the IOLINK module 300. The IO module may include one or more of a switching value input, a switching value output, an analog value input, an analog value output, and a serial port communication template, but the application is not limited thereto.
In the operation process of the system 1000, after monitoring that the IOLINK module 300 is online, the controller 200 performs high-speed (e.g., 50ms) communication via the ethernet, and issues an IO module configuration file and a control instruction to the IOLINK module. The IOLINK module 300 periodically performs high-speed (for example, 20ms) serial port communication with the managed IO module 400, and on one hand, issues a control instruction issued by the controller 200 to the IO module 400, and on the other hand, feeds back field data acquired by the IO module 400 to the controller 200, thereby implementing remote data acquisition and control of field devices.
The redundant ethernet network 500 may be a star network or a ring network. In the system function 1000 shown in fig. 1, the redundant ethernet network 500 is a star network, for example, two networks including an a network and a B network. The controller 200 and the IOLINK module are respectively connected to the two networks, so that the reliability of communication is ensured.
FIG. 2 shows a schematic diagram of a system for remote data acquisition and control according to another example embodiment of the present application.
In the system 1000 shown in fig. 2, the redundant ethernet network 500 is a ring network, and the components are the same as those in the embodiment of fig. 1. The redundant ethernet network 500 of fig. 1 and 2 supports redundant communication functions, whether a star network or a ring network. Through the redundant communication function, whether the message is a repeated message can be judged according to the message sequence number. And if the message is a repeated message, discarding the message. Thus, the load of message processing by the application layer can be reduced.
FIG. 3A shows a first portion of a timing diagram of a method for remote data acquisition and control according to an example embodiment of the present application.
FIG. 3B illustrates a second portion of a timing diagram for a method for remote data acquisition and control according to an example embodiment of the present application.
As shown in fig. 3A and 3B, the present application provides, according to some embodiments, a method for remote data acquisition and control, comprising:
firstly, the IO module configuration is carried out through a configuration tool, and the generated configuration file is issued to the controller. The configuration tool is a tool for visually generating an IO module configuration file. The IO module can be visually configured through the configuration tool according to actual requirements of a field, and a corresponding configuration file is generated. The configuration file includes: and the IO module slot number, the IO module type, the IO module subtype and the IO module version number.
And the controller carries out online analysis on the received configuration file and generates a first memory mirror image. And after receiving the configuration file, the controller analyzes the configuration file according to the custom format and generates a RAM memory mirror image of the type, the input data and the output data of the IO module, namely a first memory mirror image. The controller may store the fed back collected data to the first memory mirror after receiving it. When the controller carries out algorithm operation, only the first memory mirror image is needed to be operated, so that the operation speed and efficiency can be improved.
According to some embodiments of the present application, the controller may further store the received configuration file in a local memory, for example, in FLASH, so that the controller may perform reparse after restarting. In addition, the controller can update the local file according to the configuration file. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
And after receiving the configuration file sent by the configuration tool, the controller sends the received configuration file and/or the received control command to the online IOLINK module. The controller firstly detects the IOLINK module online, and determines whether the IOLINK module is online or not through online detection. Specifically, the controller periodically sends a data packet to the IOLINK module for online detection. For example, it may be performed once at intervals of 1 s. And after receiving the response message of the IOLINK module, the controller marks the state of the IOLINK module as online.
According to some embodiments of the present application, before the controller issues the configuration file to the online IOLINK module, the controller may also perform configuration file verification with the online IOLINK module. And determining whether to issue the configuration file through configuration file verification. For example, when the configuration file is absent from the IOLINK module or the configuration file is inconsistent with the IOLINK module, the controller issues the received configuration file to the IOLINK module. When the configuration file already exists in the IOLINK module, the controller can issue a deletion instruction to delete the existing configuration file.
According to some embodiments of the present application, the controller and the IOLINK module communicate via a redundant Ethernet network. The redundant ethernet network may be a star network or a ring network. And the two networks ensure the reliability of communication. Redundant ethernet networks may also support redundant communication functions. Through the redundant communication function, the repeated messages in the communication process can be discarded. Thus, the load of message processing by the application layer can be reduced.
And the IOLINK module analyzes the received configuration file on line and generates a second memory mirror image.
After receiving the configuration file issued by the controller, the IOLINK module firstly performs online analysis to generate a memory mirror image of the IO module in the IOLINK, namely a second memory mirror image, which comprises input data, output data and parameters. The second memory image has more parameter entries than the first memory image of the controller. The reason is that the IOLINK module needs to send the parameter data to the IO module, so that the IO module performs configuration and operation according to the parameters.
According to some embodiments of the present application, the IOLINK module stores the configuration file in a local memory, such as FLASH, so that the IOLINK module performs reparse after restarting. In addition, the IOLINK module can update the local file according to the configuration file. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
And after receiving the configuration file and/or the control instruction sent by the controller, the IOLINK module sends the control instruction to the IO module. So far, the configuration of the IO module is completed, and the basis of remote data acquisition and control is provided.
And after the configuration of the IO module is completed, the IOLINK module acquires the data of the IO module in real time through the second memory mirror image. The IOLINK module periodically performs high-speed (for example, 20ms) serial port communication with the IO module managed by the IOLINK module, acquires data collected by the IO module, and issues a control instruction issued by the controller to the IO module.
And after receiving the acquired data, the IOLINK module feeds back the data to the controller according to the control instruction. The control instruction issued by the controller comprises: periodic polling instructions, aperiodic polling instructions. The periodic query instruction comprises a real-time input data query instruction and an output data sending instruction. The aperiodic query instruction: the method comprises one or more of an SOE data transmission instruction, a memory query instruction and a configuration file issuing instruction. And after receiving the acquired data, the IOLINK module stores the data in a local RAM. And the IOLINK module feeds the acquired data back to the controller after receiving the query instruction sent by the controller, so that remote data acquisition and control are realized.
Fig. 4 shows a flow chart of a method for remote data acquisition and control according to a first example embodiment of the present application.
As shown in fig. 4, the present application provides a method for remote data acquisition and control according to a first embodiment, comprising:
in step S410, the IO module is configured by the configuration tool and the configuration file is sent to the controller. The configuration tool is a tool for visually generating an IO module configuration file. The IO module can be visually configured through the configuration tool according to actual requirements of a field, and a corresponding configuration file is generated. The configuration file includes: and the IO module slot number, the IO module type, the IO module subtype and the IO module version number.
In step S420, the controller performs online parsing on the received configuration file and generates a first memory image. And after receiving the configuration file, the controller analyzes the configuration file according to the custom format and generates a RAM memory mirror image of the type, the input data and the output data of the IO module, namely a first memory mirror image. The controller may store the fed back collected data to the first memory mirror after receiving it.
In step S430, after receiving the configuration file issued by the configuration tool, the controller issues the received configuration file and/or control instruction to the online IOLINK module. The controller firstly detects the IOLINK module online, and determines whether the IOLINK module is online or not through online detection. Specifically, the controller periodically sends a data packet to the IOLINK module for online detection. For example, it may be performed once at intervals of 1 s. And after receiving the response message of the IOLINK module, the controller marks the IOLINK module as online.
In step S440, the IOLINK module performs online parsing on the received configuration file and generates a second memory image. After receiving the configuration file issued by the controller, the IOLINK module firstly performs online analysis to generate a memory mirror image of the IO module in the IOLINK, namely a second memory mirror image, which comprises input data, output data and parameters. The second memory image has more parameter entries than the first memory image of the controller. The reason is that the IOLINK module needs to send the parameter data to the IO module, so that the IO module performs configuration and operation according to the parameters.
In step S450, after receiving the configuration file and/or the control instruction sent by the controller, the IOLINK module sends the control instruction to the IO module. So far, the configuration of the IO module is completed, and the basis of remote data acquisition and control is provided.
In step S460, after the IO module completes configuration, the IOLINK module collects data of the IO module in real time through the second memory mirror image. The IOLINK module periodically performs high-speed (for example, 20ms) serial port communication with the IO module under control, collects data of the IO module in real time, and issues a control instruction issued by the controller to the IO module.
In step S470, after receiving the collected data, the IOLINK module feeds back the data to the controller according to the control instruction. The control instruction issued by the controller comprises: periodic polling instructions, aperiodic polling instructions. The periodic query instruction comprises a real-time input data query instruction and an output data sending instruction. The aperiodic query instruction: the method comprises one or more of an SOE data transmission instruction, a memory query instruction and a configuration file issuing instruction. And after receiving the acquired data, the IOLINK module stores the data in a local RAM. And the IOLINK module feeds the acquired data back to the controller after receiving the query instruction sent by the controller, so that remote data acquisition and control are realized.
Fig. 5 shows a flow chart of a method for remote data acquisition and control according to a second exemplary embodiment of the present application.
As shown in fig. 5, according to a second embodiment, the present application provides a method for remote data acquisition and control, comprising:
in step S510, IO module configuration is performed according to the remote field requirement. The configuration tool is a tool for visually generating an IO module configuration file. The IO module can be visually configured according to actual requirements of a field through the configuration tool.
In step S520, the configuration file of the IO module is sent to the controller. And after the IO module is configured through the configuration tool, generating a corresponding configuration file at the same time. The configuration file includes: and the IO module slot number, the IO module type, the IO module subtype and the IO module version number. And sending the configuration file to a controller for field configuration of the IO module.
Fig. 6 shows a flow chart of a method for remote data acquisition and control according to a third example embodiment of the present application.
As shown in fig. 6, according to a third embodiment, the present application provides a method for remote data acquisition and control, comprising:
in step S610, the controller receives an IO module configuration file configured and issued by the configuration tool.
In step S620, the controller performs online parsing on the received configuration file and generates a first memory image. And after receiving the configuration file, the controller analyzes the configuration file according to the custom format and generates a RAM memory mirror image of the type, the input data and the output data of the IO module, namely a first memory mirror image. The controller may store the fed back collected data to the first memory mirror after receiving it.
In step S630, after receiving the configuration file issued by the configuration tool, the controller issues the received configuration file and/or control instruction to the online IOLINK module. The controller firstly detects the IOLINK module online, and determines whether the IOLINK module is online or not through online detection. Specifically, the controller periodically sends a data packet to the IOLINK module for online detection. For example, it may be performed once at intervals of 1 s. And after receiving the response message of the IOLINK module, the controller marks the IOLINK module as online.
According to some embodiments of the application, the method further comprises steps S640 and S650. In step S640, the controller stores the received configuration file in a local memory, such as FLASH, so that the controller can perform reparse after restarting. In step S650, the controller updates the local file according to the configuration file. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
The IOLINK modules communicate with each other through a redundant Ethernet. The redundant ethernet network may be a star network or a ring network. And the two networks ensure the reliability of communication. Redundant ethernet networks may also support redundant communication functions. Through the redundant communication function, the repeated messages in the communication process can be discarded. Thus, the load of message processing by the application layer can be reduced.
Fig. 7 shows a flow chart of a method for remote data acquisition and control according to a fourth example embodiment of the present application.
As shown in fig. 7, according to a third embodiment, the present application provides a method for remote data acquisition and control, comprising:
in step S810, the IOLINK module receives an IO module configuration file configured by the configuration tool and sent by the controller.
In step S820, the IOLINK module performs online parsing on the received configuration file and generates a second memory image. After receiving the configuration file issued by the controller, the IOLINK module firstly performs online analysis to generate a memory mirror image of the IO module in the IOLINK, namely a second memory mirror image, which comprises input data, output data and parameters. The second memory image has more parameter entries than the first memory image of the controller. The reason is that the IOLINK module needs to send the parameter data to the IO module, so that the IO module performs configuration and operation according to the parameters.
In step S830, after receiving the configuration file and/or the control instruction sent by the controller, the IOLINK module sends the control instruction to the IO module. So far, the configuration of the IO module is completed, and the basis of remote data acquisition and control is provided.
In step S840, after the IO module completes configuration, the IOLINK module collects data of the IO module in real time through the second memory mirror image. The IOLINK module periodically performs high-speed (for example, 20ms) serial port communication with the IO module under control, collects data of the IO module in real time, and issues a control instruction issued by the controller to the IO module.
In step S850, after receiving the collected data, the IOLINK module feeds back the data to the controller according to the control instruction. And after receiving the acquired data, the IOLINK module stores the data in a local RAM. And the IOLINK module feeds the acquired data back to the controller after receiving the query instruction sent by the controller, so that remote data acquisition and control are realized.
According to some embodiments of the application, the method further comprises: steps S860 and S870. In step S860, the IOLINK module stores the configuration file in a local memory, for example, a FLASH, so that the IOLINK module performs reanalysis after restarting. In step S870, the IOLINK module may also update the local file according to the configuration file. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
FIG. 8 shows a block diagram of an apparatus for remote data acquisition and control, according to an example embodiment of the present application.
As shown in fig. 8, according to a first embodiment, the present application provides an apparatus 2000 for remote data acquisition and control comprising: a first configuration file receiving module 2100, a first configuration file parsing module 2200, and a first configuration file issuing module 2300. Wherein,
the first configuration file receiving module 2100 is configured to receive an IO module configuration file configured and issued by a configuration tool.
The first configuration file parsing module 2200 is configured to perform online parsing on the received IO module configuration file and generate a first memory image. And after receiving the configuration file, the controller analyzes the configuration file according to the custom format and generates a RAM memory mirror image of the type, the input data and the output data of the IO module, namely a first memory mirror image. The controller may store the fed back collected data to the first memory mirror after receiving it.
The first configuration file issuing module 2300 is configured to issue the received configuration file and/or the received control instruction to an online IOLINK module. The controller firstly detects the IOLINK module online, and determines whether the IOLINK module is online or not through online detection. And after the IOLINK module is determined to be on line, issuing a configuration file and/or a control instruction.
The apparatus 2000 provided by the present application may include a first profile storage module 2400 and a first profile update module 2500. The first configuration file storage module 2400 is configured to store the received configuration file in a local memory, so that the controller performs reparse after restarting. The first configuration file updating module 2500 is configured to update the local file according to the configuration file. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
FIG. 9 shows a block diagram of an apparatus for remote data acquisition and control, according to another example embodiment of the present application.
As shown in fig. 9, according to a second embodiment, the present application provides an apparatus 3000 for remote data acquisition and control, comprising:
the second configuration file receiving module 3100 is configured to receive an IO module configuration file configured by the configuration tool and sent by the controller.
The second configuration file parsing module 3200 is configured to perform online parsing on the received configuration file and generate a second memory image. After the IOLINK module receives the configuration file issued by the controller, the IOLINK module firstly carries out online analysis to generate a memory mirror image of the IO module in the IOLINK, namely a second memory mirror image.
And the control instruction issuing module 3300 is used for issuing the control instruction to the IO module. So far, the configuration of the IO module is completed, and the basis of remote data acquisition and control is provided.
And the real-time data acquisition module 3400 is used for acquiring the data of the IO module in real time through the second memory mirror image. The IOLINK module periodically performs high-speed (for example, 20ms) serial port communication with the IO module under control, collects data of the IO module in real time, and issues a control instruction issued by the controller to the IO module.
And the real-time data acquisition feedback module 3500 is used for feeding back the data to the controller according to the control instruction. And after receiving the acquired data, the IOLINK module stores the data in a local RAM. And the IOLINK module feeds the acquired data back to the controller after receiving the query instruction sent by the controller, so that remote data acquisition and control are realized.
The apparatus 3000 provided by the present application may include a second profile storage module 3600 and a second profile update module 3700. The second configuration file storage module 3600 is configured to store the received configuration file in a local memory, so that the IOLINK module performs reparse after being restarted. A second profile update module 3700, configured to update the local file according to the profile. And when the received configuration file is inconsistent with the file stored locally after CRC information correction, updating the local file.
FIG. 10 shows a block diagram of an electronic device composition for remote data acquisition and control, according to an example embodiment of the present application.
The present application also provides an electronic device 700 for remote data acquisition and control. The control device 700 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 10, the control device 700 is in the form of a general purpose computing device. The components of the control device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 that couples various system components including the memory unit 720 and the processing unit 710, and the like.
The storage unit 720 stores program codes, which can be executed by the processing unit 710 to cause the processing unit 710 to execute the methods according to the above-mentioned embodiments of the present application described in the present specification.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 700 may also communicate with one or more external devices 7001 (e.g., touch screen, keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
According to the method for remote data acquisition and control, the configuration tool is used for carrying out IO module configuration according to field requirements, customized configuration functions can be provided, IO modules can be added or deleted on line, and the configuration files can be effective in real time only by being issued to the controller, so that different field control requirements are met. In addition, the controller and the IOLINK module are communicated through the redundant Ethernet, so that the reliability of the data acquisition and control process is improved.
It should be understood that the above examples are only for clearly illustrating the present application and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications of this invention may be made without departing from the spirit or scope of the invention.
Claims (20)
1. A method for remote data acquisition and control, comprising:
carrying out IO module configuration through a configuration tool and issuing a configuration file to a controller;
the controller analyzes the received configuration file on line and generates a first memory mirror image;
the controller transmits the received configuration file and/or control command to an online IOLINK module;
the IOLINK module analyzes the received configuration file on line and generates a second memory mirror image;
the IOLINK module issues a control command to the IO module;
the IOLINK module collects data of the IO module in real time through the second memory mirror image;
and the IOLINK feeds back the data to the controller according to the control instruction.
2. The method of claim 1, further comprising:
the controller and the IOLINK module are communicated through a redundant Ethernet.
3. The method of claim 2, wherein the redundant ethernet network comprises:
a star network or a ring network.
4. The method of claim 1, wherein the configuration file comprises:
and the IO module slot number, the IO module type, the IO module subtype and the IO module version number.
5. The method of claim 1, wherein the control instructions comprise: periodic polling instructions and/or aperiodic polling instructions, wherein,
the periodic query instruction comprises a real-time input data query instruction and/or an output data sending instruction;
the aperiodic query instruction: the method comprises one or more of an SOE data transmission instruction, a memory query instruction and a configuration file issuing instruction.
6. The method of claim 1, further comprising:
the controller stores the received configuration file in a local memory.
7. The method of claim 1, wherein the online IOLINK module is identified by:
the controller periodically sends a data packet to the IOLINK module for online detection;
and after receiving the response message of the IOLINK module, the controller marks the IOLINK module as online.
8. The method of claim 7, further comprising:
the controller and the online IOLINK module carry out configuration file verification;
and when the configuration file is absent from the IOLINK module or the configuration file is inconsistent with the configuration file, the controller issues the received configuration file to the IOLINK module.
9. A method for remote data acquisition and control, comprising:
carrying out IO module configuration according to remote field requirements;
and transmitting the configuration file of the IO module to a controller.
10. A method for remote data acquisition and control, comprising:
the controller receives an IO module configuration file configured and issued by the configuration tool;
the controller analyzes the configuration file on line and generates a first memory mirror image;
and the controller transmits the received configuration file and/or control command to an online IOLINK module.
11. The method of claim 10, further comprising:
the controller stores the received configuration file in a local memory.
12. A method for remote data acquisition and control, comprising:
the IOLINK module receives an IO module configuration file which is issued by the controller and configured by the configuration tool;
the IOLINK module analyzes the configuration file on line and generates a second memory mirror image;
the IOLINK module issues the control command to an IO module;
the IOLINK module collects data of the IO module in real time through the second memory mirror image;
and the IOLINK feeds back the data to the controller according to the control instruction.
13. The method of claim 1, further comprising:
the IOLINK module communicates with the controller via a redundant Ethernet network.
14. The method of claim 1, further comprising:
the IOLINK module stores the received configuration file in a local memory.
15. An apparatus for remote data acquisition and control, comprising:
the first configuration file receiving module is used for receiving the IO module configuration file configured and issued by the configuration tool;
the first configuration file analysis module is used for carrying out online analysis on the received IO module configuration file and generating a first memory mirror image;
and the first configuration file issuing module is used for issuing the received configuration file and/or the control instruction to the online IOLINK module.
The first configuration file storage module is used for storing the received configuration file in a local memory.
16. An apparatus for remote data acquisition and control, comprising:
the second configuration file receiving module is used for receiving an IO module configuration file configured by the configuration tool and transmitted by the controller;
the second configuration file analysis module is used for carrying out online analysis on the received configuration file and generating a second memory mirror image;
the control instruction issuing module is used for issuing the control instruction to the IO module;
the real-time data acquisition module is used for acquiring the data of the IO module in real time through the second memory mirror image;
and the real-time data acquisition feedback module is used for feeding back the data to the controller according to the control instruction.
17. The apparatus of claim 16, further comprising:
and the second configuration file storage module is used for storing the received configuration file in a local memory.
18. A system for remote data acquisition and control, comprising:
a configuration tool for configuring the IO module;
the controller is connected with the configuration tool and receives an IO module configuration file sent by the configuration tool;
the IOLINK module is connected with the controller through a redundant Ethernet, receives an IO module configuration file and/or a control instruction sent by the controller, and feeds back data to the controller according to the control instruction;
and the IO module is connected with the IOLINK module and transmits the acquired data to the IOLINK module.
19. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-14.
20. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010238864.2A CN113472828B (en) | 2020-03-30 | 2020-03-30 | Method, device and system for remote data acquisition and control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010238864.2A CN113472828B (en) | 2020-03-30 | 2020-03-30 | Method, device and system for remote data acquisition and control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113472828A true CN113472828A (en) | 2021-10-01 |
CN113472828B CN113472828B (en) | 2024-03-19 |
Family
ID=77865173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010238864.2A Active CN113472828B (en) | 2020-03-30 | 2020-03-30 | Method, device and system for remote data acquisition and control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113472828B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116558A (en) * | 2021-10-14 | 2022-03-01 | 南京国电南自维美德自动化有限公司 | IO equipment and microcomputer protection device |
CN115112294A (en) * | 2022-06-28 | 2022-09-27 | 合肥安胜智能电子有限公司 | Pressure gauge production calibration system and method based on IO-Link |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015192637A1 (en) * | 2014-06-17 | 2015-12-23 | 北京奇虎科技有限公司 | Method and apparatus for reinforced protection of software installation package |
US20180176084A1 (en) * | 2016-12-16 | 2018-06-21 | General Electric Company | Cloud-enabled testing of control systems |
CN108449250A (en) * | 2018-05-22 | 2018-08-24 | 三明学院 | A kind of IO-LINK master station devices and method for supporting multibus |
WO2019130231A1 (en) * | 2017-12-29 | 2019-07-04 | Datalogic Ip Tech S.R.L. | Io-link device |
CN110262893A (en) * | 2019-05-16 | 2019-09-20 | 华为技术有限公司 | The method, apparatus and computer storage medium of configuration mirroring memory |
CN110515295A (en) * | 2019-07-25 | 2019-11-29 | 南京南瑞继保电气有限公司 | A kind of method of the redundancy I/O module of dynamic and configurable |
CN110908955A (en) * | 2019-11-15 | 2020-03-24 | 合肥安胜智能电子有限公司 | Management system of IO device description file |
-
2020
- 2020-03-30 CN CN202010238864.2A patent/CN113472828B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015192637A1 (en) * | 2014-06-17 | 2015-12-23 | 北京奇虎科技有限公司 | Method and apparatus for reinforced protection of software installation package |
US20180176084A1 (en) * | 2016-12-16 | 2018-06-21 | General Electric Company | Cloud-enabled testing of control systems |
WO2019130231A1 (en) * | 2017-12-29 | 2019-07-04 | Datalogic Ip Tech S.R.L. | Io-link device |
CN108449250A (en) * | 2018-05-22 | 2018-08-24 | 三明学院 | A kind of IO-LINK master station devices and method for supporting multibus |
CN110262893A (en) * | 2019-05-16 | 2019-09-20 | 华为技术有限公司 | The method, apparatus and computer storage medium of configuration mirroring memory |
CN110515295A (en) * | 2019-07-25 | 2019-11-29 | 南京南瑞继保电气有限公司 | A kind of method of the redundancy I/O module of dynamic and configurable |
CN110908955A (en) * | 2019-11-15 | 2020-03-24 | 合肥安胜智能电子有限公司 | Management system of IO device description file |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114116558A (en) * | 2021-10-14 | 2022-03-01 | 南京国电南自维美德自动化有限公司 | IO equipment and microcomputer protection device |
CN115112294A (en) * | 2022-06-28 | 2022-09-27 | 合肥安胜智能电子有限公司 | Pressure gauge production calibration system and method based on IO-Link |
Also Published As
Publication number | Publication date |
---|---|
CN113472828B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113472828B (en) | Method, device and system for remote data acquisition and control | |
CN107666415B (en) | Optimization method and device of FC-AE-1553 protocol bridge | |
CN106847285A (en) | A kind of robot and its audio recognition method | |
CN110457176A (en) | For the monitoring method of distributed system, device, storage medium and electronic equipment | |
CN110480633B (en) | Method and device for controlling equipment and storage medium | |
CN101183996A (en) | Cluster information monitoring method | |
CN103200373A (en) | Processing device | |
CN110893616B (en) | Remote control method and device, computer equipment and storage medium | |
CN111162938A (en) | Data processing system and method | |
CN111309740A (en) | Data processing method, device, equipment and storage medium | |
CN114979176A (en) | Network-based dimming data hot backup method, system, equipment and storage medium | |
CN114567536A (en) | Abnormal data processing method and device, electronic equipment and storage medium | |
CN111879788A (en) | Machine type switching system and method based on panel detection and terminal equipment | |
JP2002198989A (en) | Control system and network relay method for it | |
CN115086164B (en) | Policy issuing method, system, device and computer readable storage medium | |
JP2004145641A (en) | Forwarding system of machining program for nc unit and its method | |
CN118214678B (en) | Single-equipment multi-protocol access method and system | |
CN108446131B (en) | ATM firmware upgrading method, device, equipment and storage medium | |
CN113138794B (en) | Code version management method and management system | |
JP2003022109A (en) | Numerical controller | |
WO2020166374A1 (en) | Processing system, processing method, higher-level system, lower-level system, higher-level program, and lower-level program | |
JP2007053688A (en) | Network management system | |
JPH04243451A (en) | File transmission system | |
CN107124293A (en) | The protocol managerial approach and system of a kind of distributed network system (DNS) | |
CN116931984A (en) | Remote upgrading method and system for robot software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |