CN107451165B - Recipe searching method and system based on HMI and PLC online data exchange - Google Patents

Recipe searching method and system based on HMI and PLC online data exchange Download PDF

Info

Publication number
CN107451165B
CN107451165B CN201610389937.1A CN201610389937A CN107451165B CN 107451165 B CN107451165 B CN 107451165B CN 201610389937 A CN201610389937 A CN 201610389937A CN 107451165 B CN107451165 B CN 107451165B
Authority
CN
China
Prior art keywords
plc
data
hmi
target object
formula
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.)
Active
Application number
CN201610389937.1A
Other languages
Chinese (zh)
Other versions
CN107451165A (en
Inventor
戴书林
陆仲福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Meyer Optoelectronic Technology Inc
Original Assignee
Hefei Meyer Optoelectronic Technology Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hefei Meyer Optoelectronic Technology Inc filed Critical Hefei Meyer Optoelectronic Technology Inc
Priority to CN201610389937.1A priority Critical patent/CN107451165B/en
Publication of CN107451165A publication Critical patent/CN107451165A/en
Application granted granted Critical
Publication of CN107451165B publication Critical patent/CN107451165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying

Abstract

The invention discloses a recipe searching method and system based on HMI and PLC online data exchange. The method comprises the following steps: establishing a formula database of an object on human-machine interface (HMI) equipment, wherein formula data in the formula database has an incidence relation with variables in a Programmable Logic Controller (PLC); the PLC acquires a target object and identifies the target object to obtain attribute information of the target object; the PLC determines the identity parameters of the target object according to the attribute information; and the PLC searches from the formula database according to the identity parameters of the target object to obtain target formula data of the target object and informs the HMI equipment to enable the HMI equipment to set the target formula data of the target object to be in an online state. The method can realize the online data exchange between the HMI and the PLC while automatically searching the formula data, greatly reduces the resource consumption of the PLC, and improves the operation speed.

Description

Recipe searching method and system based on HMI and PLC online data exchange
Technical Field
The invention relates to the technical field of computers, in particular to a formula searching method and system based on HMI and PLC online data exchange.
Background
At present, in the industry, for the use of an HMI (Human Machine Interface) recipe, generally, the recipe and elements are manually selected and then data is transmitted to a PLC (Programmable Logic Controller) on line for operation, but automatic search of the recipe cannot be realized. For example, tire data for tire inspection X-ray machine applications are stored in ROM inside the PLC in the form of an array of structures, i.e., the PLC defines a structure and matches the variable set of the structure with the recipe data. When the detection data of a certain tire needs to be called, the position of the tire in the array is located according to the size of the tire, the variable array serial number stored by the data is obtained, and then all data with the same serial number are extracted for being called by a control program. Therefore, when the PLC is faced with huge tire data, it is necessary to not only open up a separate storage area, but also consume a certain processing time to load and process the recipe data. In addition, a user can only modify or delete a certain group of data on line, and the operability of data backup is not strong.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to propose a recipe lookup method based on HMI and PLC online data exchange. The method can realize the online data exchange between the HMI and the PLC while automatically searching the formula data, greatly reduces the resource consumption of the PLC, and improves the operation speed.
The second purpose of the invention is to provide a formula searching system based on HMI and PLC online data exchange.
To achieve the above object, a recipe searching method based on HMI and PLC online data exchange according to an embodiment of the first aspect of the present invention includes: establishing a formula database of an object on human-machine interface (HMI) equipment, wherein the formula data in the formula database has an incidence relation with variables in a Programmable Logic Controller (PLC); the PLC acquires a target object and identifies the target object to obtain attribute information of the target object; the PLC determines the identity parameters of the target object according to the attribute information; and the PLC searches from the formula database according to the identity parameter of the target object to obtain target formula data of the target object, and informs the HMI equipment to enable the HMI equipment to set the target formula data of the target object to be in an online state.
According to the recipe searching method based on HMI and PLC online data exchange, the recipe database of the object can be established on the human-computer interface HMI device in advance, in the process of recipe searching, the PLC can firstly obtain the target object and identify the target object to obtain the attribute information of the target object, then the identity parameter of the target object can be determined according to the attribute information, searching is carried out from the recipe database according to the identity parameter of the target object to obtain the target recipe data of the target object, and finally the HMI device is informed to enable the HMI device to set the target recipe data of the target object to be in an online state. The method comprises the steps of establishing a formula database on the HMI in advance, and acquiring corresponding target formula data from the formula database according to the identity parameters of the target object through the PLC, so that the online data exchange between the HMI and the PLC can be realized while the formula data are automatically searched, the resource consumption of the PLC is greatly reduced, and the operation speed is improved. And the formula data is separately stored on the HMI equipment, can be modified and deleted on line/off line, and can also be directly backed up on a memory card, thereby improving the operability of the data.
To achieve the above object, a recipe searching system based on HMI and PLC online data exchange according to a second aspect of the present invention includes: the system comprises HMI equipment and a target module, wherein the HMI equipment is used for establishing a formula database of an object on the HMI equipment, the formula data in the formula database has an incidence relation with variables in a PLC, receiving a request online notification aiming at the target formula data sent by the PLC, and setting the target formula data in an online state according to the request online notification; the PLC is used for acquiring a target object, identifying the target object to obtain attribute information of the target object, determining identity parameters of the target object according to the attribute information, searching from the formula database according to the identity parameters of the target object to obtain target formula data of the target object, and sending a request online notification aiming at the target formula data to the HMI equipment.
According to the formula searching system based on HMI and PLC online data exchange, the HMI equipment can be used for establishing a formula database of the object on the human-computer interface HMI equipment in advance, the PLC can firstly acquire the target object and identify the target object to obtain the attribute information of the target object in the formula searching process, then the identity parameter of the target object can be determined according to the attribute information, the formula database is searched according to the identity parameter of the target object to obtain the target formula data of the target object, and finally the HMI equipment is informed to enable the HMI equipment to set the target formula data of the target object to be in an online state. The method comprises the steps of establishing a formula database on the HMI in advance, and acquiring corresponding target formula data from the formula database according to the identity parameters of the target object through the PLC, so that the online data exchange between the HMI and the PLC can be realized while the formula data are automatically searched, the resource consumption of the PLC is greatly reduced, and the operation speed is improved. And the formula data is separately stored on the HMI equipment, can be modified and deleted on line/off line, and can also be directly backed up on a memory card, thereby improving the operability of the data.
Additional aspects and advantages of the invention 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 invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow diagram of a recipe lookup method based on HMI and PLC online data exchange according to one embodiment of the invention;
FIG. 2 is a flow diagram of a recipe lookup method based on HMI and PLC online data exchange according to one particular embodiment of the invention;
FIG. 3 is a schematic diagram of a network connection of a tire inspection X-ray machine control system according to one embodiment of the present invention;
FIG. 4 is a schematic diagram of a database recipe management view on an HMI device in a tire inspection X-ray machine according to one embodiment of the present invention;
FIG. 5 is a schematic diagram of a tire inspection X-ray machine recipe element associated with a PLC variable according to one embodiment of the present invention;
FIG. 6 is a block diagram of a recipe lookup system based on HMI and PLC online data exchange according to one embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a recipe searching method and system based on HMI and PLC online data exchange according to an embodiment of the present invention with reference to the accompanying drawings.
FIG. 1 is a flow diagram of a recipe lookup method based on HMI and PLC online data exchange according to one embodiment of the invention. As shown in fig. 1, the HMI and PLC online data exchange-based recipe lookup method may include:
s110, establishing a formula database of an object on the human-machine interface HMI equipment, wherein the formula data in the formula database has an incidence relation with the variables in the PLC.
Specifically, in one embodiment of the present invention, a recipe database of objects may be built on an HMI device through configuration software. Wherein, the formula database comprises formula elements and assignments corresponding to the formula elements. For example, the configuration software winccflex is a sub-product of the Total Integrated Automation (TIA) of SIEMENS (SIEMENS) of germany, and is an HMI software of an automation concept facing a machine. Configuration software may be used to configure a user interface to operate and monitor machines and equipment, providing support for configuration tasks directed to solution concepts.
For example, taking siemens HMI device as an example, assuming that the formulation search method based on HMI and PLC online data exchange according to the embodiment of the present invention is applied to an application scenario of detecting a tire by a tire detection X-ray machine, where the object is a tire, before performing tire detection, a formulation database of the tire may be established on the HMI device through winccflex software, where the formulation database may be understood as a tire database of the tire, for example, the formulation data in the tire database may include, but is not limited to, an inner diameter size, an outer diameter size, an breadth, a specification, a bead diameter, a tire clamping position, a tire expanding position, and the like of the tire. It is understood that, depending on the object, the specific contents included in the recipe data in the recipe database corresponding to the object may be different.
And S120, the PLC acquires the target object and identifies the target object to obtain the attribute information of the target object.
Specifically, in the process of recipe search for online data exchange, the PLC may obtain a target object for which recipe data needs to be searched, and automatically identify attribute information of the target object. That is, after the PLC receives the target object for which recipe data needs to be searched, the PLC may identify the target object to obtain attribute information of the target object. In the embodiment of the present invention, the attribute information may be understood as a category to which the object belongs, for example, the attributes corresponding to the tire of the automobile, the tire of the bicycle, and the tire of the electric bicycle are all tires, and for example, the attributes corresponding to the glasses with different specifications and sizes are all glasses, and the like.
And S130, the PLC determines the identity parameters of the target object according to the attribute information.
Specifically, after identifying the attribute information of the target object, the PLC may determine the identity parameter of the target object according to the attribute information. For example, taking the target object as the tire to be detected as an example, after the PLC recognizes that the attribute information of the tire to be detected is the tire, the PLC may determine the parameter representing the identity of the tire to be detected according to the attribute of the tire, that is, determine which type of tire the tire to be detected specifically refers to. The identity parameter can be understood as a unique identifier representing the object.
S140, the PLC searches the formula database according to the identity parameters of the target object to obtain target formula data of the target object, and informs the HMI equipment to enable the HMI equipment to set the target formula data of the target object to be in an online state.
Specifically, after the identity parameter of the target object is determined, the PLC may perform data lookup from the recipe database in a variable refresh manner according to the identity parameter to obtain target recipe data matched with the identity parameter, and after the target recipe data is found, may send a request online notification for the target recipe data to the HMI device, so that the HMI device sets the target recipe data to an online state according to the request online notification, so as to implement a function of online data exchange.
It is understood that in the embodiments of the present invention, there are many ways for the PLC to obtain the corresponding target recipe data according to the identity parameter of the target object, for example, the target recipe data can be obtained according to a script program matched with the data on the HMI device, or by sending and storing the recipe data corresponding to the object on the HMI device into the RAM of the PLC, for example, as follows:
as an example, before the PLC acquires the target object, the method may further include: and compiling a matching script of the formula data on the HMI equipment through configuration software. That is, taking siemens HMI device as an example, recipe data auto-lookup scripts can be written on HMI devices by a script editor of winccflex software.
In this embodiment, the specific implementation process of searching from the formula database according to the identity parameter of the target object to obtain the target formula data of the target object may include: the PLC can send the identity parameters of the target object to the HMI equipment through refreshing of the variables, so that the HMI equipment can match the identity parameters of the target object through the matching script of the formula data to obtain corresponding target formula data, and can receive the corresponding target formula data fed back by the HMI equipment.
For example, after determining the identity parameter of the target object, the PLC may send the identity parameter to the HMI device through variable refresh. And the VBScript script program in the HMI equipment runs the matching script of the formula data, the HMI equipment substitutes the received identity parameters into the matching script of the formula data so as to automatically find out the formula data matched with the identity parameters from the formula database, and the matched formula data is used as target formula data and fed back to the PLC.
Therefore, the target formula data is obtained through the matching script of the formula data of the HMI equipment, so that the HMI equipment becomes a main body for searching the formula data, the storage space of the PLC is not occupied in the process of obtaining the target formula data, and the storage resource of the PLC is saved.
As another example, having a trigger button on the HMI device for sending recipe data, prior to the PLC acquiring the target object, the method can further comprise: the HMI equipment receives a trigger operation input aiming at the trigger button, and sends the formula data to the PLC according to the trigger operation, so that the PLC stores the received formula data in the RAM of the PLC. That is, a trigger button for sending recipe data, such as a "load data" button, may be added to the HMI device in advance to enable the recipe data on the HMI device to be transferred to the PLC. For example, when it is detected that an operator or user clicks a "load data" button on the HMI device, the HMI device can transmit recipe data for an object corresponding to the click operation to the PLC according to the click operation. The PLC, upon receiving these recipe data, can store the recipe data in the RAM of the PLC.
In this embodiment, a specific implementation process of the PLC searching from the recipe database according to the identity parameter of the target object to obtain the target recipe data of the target object may be as follows: and the PLC searches in the formula data of the RAM according to the identity parameters of the target object to obtain target formula data matched with the identity parameters of the target object.
Specifically, after determining the identity parameter of the target object, the PLC may match the object parameter with a parameter in the recipe data stored in the RAM, and if the RAM has a parameter matching the object parameter, may match the corresponding recipe data according to the object parameter to obtain the target recipe data. It is to be appreciated that after the target recipe data is obtained, an identification (e.g., a number) of the target recipe data can be transmitted to the HMI device to cause the HMI device to place a recipe element in the target recipe data in an online state based on the identification.
Therefore, the formula data of the objects in the HMI equipment are loaded and stored in the RAM of the PLC by an operator or a user, so that the PLC becomes a main body for searching the formula data, and the processing resource of the HMI is not required to be occupied in the process of acquiring the target formula data.
As yet another example, the PLC has a recipe data auto-load module therein, and before the PLC acquires the target object, the method further includes: and the PLC loads the formula data of the object from the HMI equipment through the automatic formula data loading module and stores the formula data into the RAM of the PLC. That is, a recipe data auto-loading module, which may be composed of a recipe data auto-loading program, may be added in advance in the PLC. The PLC may automatically load recipe data regarding object identity parameters into the PLC from the HMI device through the recipe data auto-loader prior to finding a recipe. Upon receiving the recipe data, the PLC may store the recipe data in its RAM.
In this embodiment, a specific implementation process of the PLC searching from the recipe database according to the identity parameter of the target object to obtain the target recipe data of the target object may be as follows: and the PLC searches in the formula data of the RAM according to the identity parameters of the target object to obtain target formula data matched with the identity parameters of the target object.
Specifically, after determining the identity parameter of the target object, the PLC may match the object parameter with a parameter in the recipe data stored in the RAM, and if the RAM has a parameter matching the object parameter, may match the corresponding recipe data according to the object parameter to obtain the target recipe data. It is to be appreciated that after the target recipe data is obtained, an identification (e.g., a number) of the target recipe data can be transmitted to the HMI device to cause the HMI device to place a recipe element in the target recipe data in an online state based on the identification.
It will be appreciated that this example may be an improvement over the two examples described above, namely, the solution corresponding to the first example is fused to the solution corresponding to the second example, namely, the idea of the HMI device automatically sending recipe data to the PLC, rather than being triggered by a button as shown in the second example. Therefore, automatic loading of effective formula data is realized, and meanwhile, the consistency of the formula data between the HMI equipment and the PLC is also ensured. Moreover, it can be seen that the example can realize the functions of on-line exchange and automatic search of the recipe data between the HMI device and the PLC, and can very conveniently edit and backup the recipe data on the HMI device, thus having a wide application in the batch detection or manufacturing industry.
According to the recipe searching method based on HMI and PLC online data exchange, the recipe database of the object can be established on the human-computer interface HMI device in advance, in the process of recipe searching, the PLC can firstly obtain the target object and identify the target object to obtain the attribute information of the target object, then the identity parameter of the target object can be determined according to the attribute information, searching is carried out from the recipe database according to the identity parameter of the target object to obtain the target recipe data of the target object, and finally the HMI device is informed to enable the HMI device to set the target recipe data of the target object to be in an online state. The method comprises the steps of establishing a formula database on the HMI in advance, and acquiring corresponding target formula data from the formula database according to the identity parameters of the target object through the PLC, so that the online data exchange between the HMI and the PLC can be realized while the formula data are automatically searched, the resource consumption of the PLC is greatly reduced, and the operation speed is improved. And the formula data is separately stored on the HMI equipment, can be modified and deleted on line/off line, and can also be directly backed up on a memory card, thereby improving the operability of the data.
In order to make the present invention more clearly understood by those skilled in the art, the following description is made by way of example, and specifically, refer to the description of fig. 2 below.
FIG. 2 is a flow chart of a recipe lookup method based on HMI and PLC online data exchange according to one embodiment of the invention. It should be noted that the recipe searching method based on HMI and PLC online data exchange according to the present embodiment is described by taking an object as a tire and a target object as a tire to be detected.
As shown in fig. 2, the HMI and PLC online data exchange-based recipe lookup method may include:
and S210, establishing a formula database of the tire on the HMI equipment, wherein the formula data in the formula database has an incidence relation with the variables in the PLC.
It should be noted that the formula searching method based on HMI and PLC online data exchange according to the embodiment of the present invention may be applied to a tire detection X-ray machine control system, so as to search tire data (that is, the formula data) online, and transmit the searched tire data to a driver in the tire detection X-ray machine to drive a motor to rotate, so as to realize detection of a tire to be detected by the tire detection X-ray machine.
It can be understood that the tire detection X-ray machine is special for X-ray detection of radial tires, and adopts a Siemens motion control system with an internal PLC function, and combines a high-precision servo system, so that a user can mix or detect tires with various specifications and sizes in batches in large quantity, and the system can automatically identify and control various functions of the device. Fig. 3 is a schematic diagram showing a network connection of the tire testing X-ray machine control system, and as shown in fig. 3, the PLC is connected to the HMI device through an industrial Ethernet (industrial Ethernet), the PLC is connected to other execution units and signal modules through a field bus (PROFIBUS bus), and the PLC is connected to the tire testing X-ray machine.
Specifically, in embodiments of the present invention, a database of tire formulations may be established on the HMI device by the configuration software. More specifically, taking siemens HMI device as an example, the detection data of tires of different specifications can be stored as recipe data in the HMI device in advance by winccflex software to establish a recipe database of the tire.
For example, fig. 4 is a schematic diagram of a database recipe management view on an HMI device in a tire inspection X-ray machine, as shown in fig. 4, "database name: tire library "is the recipe name," number: 1 is the formula number, and the number: 4 "serial number of formula element," parameter name: "," values: "are elements and assignments in the recipe data. Fig. 5 is a schematic diagram of a formula element of a tire testing X-ray machine and a PLC variable association, as shown in fig. 5, the formula element is defined in advance in an HMI device, and an assignment is written into a formula management view on the HMI device through an association variable, wherein the assignments of "inner diameter", "outer diameter", and "width" in the formula element are automatically loaded into the PLC and stored in the RAM when a control system of the tire testing X-ray machine is started. It will also be appreciated that the recipe data on the HMI device also has a variable association script with the PLC by which the local variable "HMI. number _ finger" on the HMI device can be truly associated with the global variable "s7online. tie _ number _ finger" of the PLC, enabling the bi-directional transfer of data when the variables are online.
And S220, the PLC acquires the tire to be detected and identifies the tire to be detected to obtain the attribute information of the tire to be detected.
And S230, the PLC determines the identity parameters of the tire to be detected according to the attribute information.
The identity parameter of the tire to be detected can be understood as specification identification information of the tire to be detected.
S240, the PLC searches the formula database according to the identity parameters of the tire to be detected to obtain target formula data of the tire to be detected, and informs the HMI equipment to enable the HMI equipment to set the target formula data of the tire to be detected to be in an online state. In the embodiment of the present invention, the target recipe data may be understood as test data of the tire to be tested.
Specifically, after a tire to be detected is detected and an identity parameter (such as the specification of the tire to be detected) of the tire to be detected is determined, a formula serial number of the identity parameter (such as the specification of the tire to be detected) of the tire to be detected can be sent to an HMI device, the HMI device is applied to online all formula elements corresponding to the formula serial number, meanwhile, a variable corresponding to the formula elements in the PLC starts to be refreshed, and then the PLC sends refreshed formula data to a driver in a tire detection X-ray machine to drive a motor to rotate, so that the detection of the tire to be detected is realized.
It can be understood that, in the embodiment of the present invention, there are various implementations of the PLC obtaining the corresponding target recipe data according to the identity parameter of the tire to be detected (such as the specification of the tire to be detected), for example, the target recipe data may be obtained according to a script program matched with the data on the HMI device, or the recipe data corresponding to the object on the HMI device may be sent to and stored in the RAM of the PLC, for example, as follows:
as an example, before the PLC acquires the tire to be tested, the method may further include: and compiling a matching script of the formula data on the HMI equipment through configuration software.
In this embodiment, the specific implementation process of searching from the formula database according to the identity parameter of the tire to be detected to obtain the target formula data of the tire to be detected may include: the PLC sends the identity parameters of the tire to be detected to the HMI equipment through refreshing of the variables, so that the HMI equipment matches the identity parameters of the tire to be detected through the matching script of the formula data to obtain corresponding target formula data, and receives the corresponding target formula data fed back by the HMI equipment.
As another example, the HMI device has a trigger button for sending recipe data, and prior to the PLC acquiring a tire under test, the method can further comprise: the HMI equipment receives a trigger operation input aiming at the trigger button, and sends the formula data to the PLC according to the trigger operation, so that the PLC stores the received formula data in the RAM of the PLC.
In this embodiment, the specific implementation process of the PLC searching from the formula database according to the identity parameter of the tire to be detected to obtain the target formula data of the tire to be detected may be as follows: and the PLC searches in the formula data of the RAM according to the identity parameters of the tire to be detected so as to obtain target formula data matched with the identity parameters of the tire to be detected.
As yet another example, in an embodiment of the present invention, the PLC has a recipe data auto-loading module therein, and before the PLC acquires the tire to be tested, the method may further include: and the PLC loads the formula data of the object from the HMI equipment through the automatic formula data loading module and stores the formula data into the RAM of the PLC.
In the embodiment of the present invention, the specific implementation process of the PLC searching from the formula database according to the identity parameter of the tire to be detected to obtain the target formula data of the tire to be detected may be as follows: and the PLC searches in the formula data of the RAM according to the identity parameters of the tire to be detected so as to obtain target formula data matched with the identity parameters of the tire to be detected.
To sum up, according to the recipe searching method based on HMI and PLC online data exchange of the embodiment of the present invention, the recipe database is previously built on the HMI device, and the recipe is stored on the HMI device and data is managed by a special interface. The PLC can automatically store the appropriate data in the recipe of the HMI device or automatically read a certain set of data of the recipe when needed. At the PLC end, only one group of variables corresponding to the formula elements needs to be established, the variable values are continuously refreshed on line according to the automatically acquired element serial numbers, and the formula data are extracted for processing, so that the HMI and the PLC are automatically exchanged on line.
According to the formula searching method based on the HMI and PLC online data exchange, the formula database of the tire is established on the HMI device in advance, and the PLC acquires the corresponding target formula data (such as the tire data) from the formula database according to the identity parameter (such as the rule of the tire to be detected) of the tire to be detected, so that the HMI and PLC online data exchange can be realized while the formula data are automatically searched, the resource consumption of the PLC is greatly reduced, and the operation speed is improved. And the formula data is separately stored on the HMI equipment, can be modified and deleted on line/off line, and can also be directly backed up on a memory card, thereby improving the operability of the data. It can be understood that the HMI and PLC online data exchange-based formula searching method provided by the embodiment of the invention is not only suitable for the tire detection X-ray machine to realize online automatic mixed detection for tires with different specifications, but also suitable for similar large-scale production or automatic application in the detection industry.
Corresponding to the HMI and PLC online data exchange-based recipe lookup methods provided in the foregoing embodiments, an embodiment of the present invention further provides a HMI and PLC online data exchange-based recipe lookup apparatus, and since the HMI and PLC online data exchange-based recipe lookup apparatus provided in the embodiment of the present invention corresponds to the HMI and PLC online data exchange-based recipe lookup methods provided in the foregoing embodiments, the foregoing embodiments of the HMI and PLC online data exchange-based recipe lookup method are also applicable to the HMI and PLC online data exchange-based recipe lookup apparatus provided in this embodiment, and are not described in detail in this embodiment. FIG. 6 is a block diagram of a recipe lookup system based on HMI and PLC online data exchange according to one embodiment of the invention. As shown in fig. 6, the HMI and PLC online data exchange-based recipe lookup system may include: HMI device 100 and PLC 200.
Specifically, the HMI device 100 can be used to build a recipe database of objects on the HMI device 100, wherein recipe data in the recipe database has an association relationship with a variable in the PLC 200, receive a request online notification for target recipe data sent by the PLC 200, and set the target recipe data to an online state according to the request online notification.
Specifically, in one embodiment of the present invention, the HMI apparatus 100 can establish a recipe database of objects on the HMI apparatus 100 via configuration software.
The PLC 200 may be configured to obtain a target object, identify the target object to obtain attribute information of the target object, determine an identity parameter of the target object according to the attribute information, perform a search from a recipe database according to the identity parameter of the target object to obtain target recipe data of the target object, and send a request online notification for the target recipe data to the HMI device 100.
It is understood that in embodiments of the present invention, there are many ways in which the PLC 200 can obtain the corresponding target recipe data according to the identity parameter of the target object, for example, the target recipe data can be obtained according to a script program matched with the data on the HMI device 100, or by sending and storing the recipe data corresponding to the object on the HMI device 100 into the RAM of the PLC 200, for example, as follows:
as an example, the HMI device 100 can also be used to write matching scripts for recipe data on the HMI device 100 through configuration software.
In this embodiment, the PLC 200 can send the identity parameter of the target object to the HMI device 100 through a refresh of the variable. The HMI device 100 may match the identity parameters of the target object through the matching script of the recipe data to obtain corresponding target recipe data, and feed back the corresponding target recipe data to the PLC 200.
Therefore, the target formula data is obtained through the matching script of the formula data of the HMI equipment, so that the HMI equipment becomes a main body for searching the formula data, the storage space of the PLC is not occupied in the process of obtaining the target formula data, and the storage resource of the PLC is saved.
As another example, the HMI device 100 has a trigger button thereon for sending recipe data. Among other things, in embodiments of the present invention, the HMI device 100 can also be configured to receive a trigger operation for a trigger button input and transmit recipe data to the PLC 200 according to the trigger operation. The PLC 200 can also be used to store received recipe data in the RAM of the PLC 200.
In this embodiment, the PLC 200 may search the recipe data in the RAM according to the identity parameter of the target object to obtain target recipe data matched with the identity parameter of the target object.
Therefore, the formula data of the objects in the HMI equipment are loaded and stored in the RAM of the PLC by an operator or a user, so that the PLC becomes a main body for searching the formula data, and the processing resource of the HMI is not required to be occupied in the process of acquiring the target formula data.
As yet another example, the PLC 200 can have a recipe data auto-load module therein, wherein the PLC 200 can be further configured to load and store recipe data for an object from the HMI device 100 into the RAM of the PLC 200 via the recipe data auto-load module.
In this embodiment, the PLC 200 may search the recipe data in the RAM according to the identity parameter of the target object to obtain target recipe data matched with the identity parameter of the target object.
It will be appreciated that this example may be an improvement over the two examples described above, namely, the solution corresponding to the first example is fused to the solution corresponding to the second example, namely, the idea of the HMI device automatically sending recipe data to the PLC, rather than being triggered by a button as shown in the second example. Therefore, automatic loading of effective formula data is realized, and meanwhile, the consistency of the formula data between the HMI equipment and the PLC is also ensured. Moreover, it can be seen that the example can realize the functions of on-line exchange and automatic search of the recipe data between the HMI device and the PLC, and can very conveniently edit and backup the recipe data on the HMI device, thus having a wide application in the batch detection or manufacturing industry.
It should be noted that, in one embodiment of the present invention, the object may be a tire, and the target object may be a tire to be detected.
According to the formula searching system based on HMI and PLC online data exchange, the HMI equipment can be used for establishing a formula database of the object on the human-computer interface HMI equipment in advance, the PLC can firstly acquire the target object and identify the target object to obtain the attribute information of the target object in the formula searching process, then the identity parameter of the target object can be determined according to the attribute information, the formula database is searched according to the identity parameter of the target object to obtain the target formula data of the target object, and finally the HMI equipment is informed to enable the HMI equipment to set the target formula data of the target object to be in an online state. The method comprises the steps of establishing a formula database on the HMI in advance, and acquiring corresponding target formula data from the formula database according to the identity parameters of the target object through the PLC, so that the online data exchange between the HMI and the PLC can be realized while the formula data are automatically searched, the resource consumption of the PLC is greatly reduced, and the operation speed is improved. And the formula data is separately stored on the HMI equipment, can be modified and deleted on line/off line, and can also be directly backed up on a memory card, thereby improving the operability of the data.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (12)

1. A recipe searching method based on HMI and PLC online data exchange is characterized by comprising the following steps:
establishing a formula database of an object on human-machine interface (HMI) equipment, wherein the formula data in the formula database has an incidence relation with variables in a Programmable Logic Controller (PLC);
compiling a matching script of the formula data on the HMI equipment through configuration software;
the PLC acquires a target object and identifies the target object to obtain attribute information of the target object;
the PLC determines the identity parameters of the target object according to the attribute information;
the PLC searches from the formula database according to the identity parameter of the target object to obtain target formula data of the target object, and informs the HMI equipment to enable the HMI equipment to set the target formula data of the target object to be in an online state;
the step of searching the formula database by the PLC according to the identity parameter of the target object to obtain the target formula data of the target object comprises the following steps:
the PLC sends the identity parameters of the target object to the HMI equipment through the refreshing of the variables, so that the HMI equipment matches the identity parameters of the target object through the matching script of the formula data to obtain corresponding target formula data;
and the PLC receives the corresponding target formula data fed back by the HMI equipment.
2. The method of claim 1, wherein a recipe database of the object is established on the HMI device by configuration software.
3. The method of claim 1, wherein the HMI device has a trigger button thereon for sending recipe data, the method further comprising, prior to the PLC acquiring a target object:
the HMI equipment receives a trigger operation input aiming at the trigger button, and sends the formula data to the PLC according to the trigger operation, so that the PLC stores the received formula data in a RAM of the PLC.
4. The method of claim 1, wherein the PLC has a recipe data auto-load module therein, and wherein prior to the PLC acquiring a target object, the method further comprises:
and the PLC loads the formula data of the object from the HMI equipment through the formula data automatic loading module and stores the formula data into the RAM of the PLC.
5. The method of claim 3, wherein the PLC performing a lookup from the recipe database based on the identity parameter of the target object to obtain target recipe data for the target object, comprising:
and the PLC searches the formula data of the RAM according to the identity parameters of the target object to obtain target formula data matched with the identity parameters of the target object.
6. The method according to any one of claims 1 to 5, wherein the object is a tyre and the target object is a tyre to be inspected.
7. A formula searching system based on HMI and PLC online data exchange is characterized by comprising:
the system comprises HMI equipment and a target module, wherein the HMI equipment is used for establishing a formula database of an object on the HMI equipment, the formula data in the formula database has an incidence relation with variables in a PLC, receiving a request online notification aiming at the target formula data sent by the PLC, and setting the target formula data in an online state according to the request online notification;
the PLC is used for acquiring a target object, identifying the target object to obtain attribute information of the target object, determining identity parameters of the target object according to the attribute information, searching from the formula database according to the identity parameters of the target object to obtain target formula data of the target object, and sending a request online notification aiming at the target formula data to the HMI equipment;
the HMI equipment is also used for compiling a matching script of the formula data on the HMI equipment through configuration software;
the PLC is specifically configured to: sending the identity parameters of the target object to the HMI equipment through refreshing of the variables;
the HMI device is specifically configured to: and matching the identity parameters of the target object through the matching script of the formula data to obtain corresponding target formula data, and feeding back the corresponding target formula data to the PLC.
8. The system of claim 7, wherein the HMI device is further configured to build a recipe database for the object on the HMI device via configuration software.
9. The system of claim 7, wherein the HMI device has a trigger button thereon for sending recipe data, wherein,
the HMI equipment is also used for receiving a trigger operation input by aiming at the trigger button and sending the formula data to the PLC according to the trigger operation;
the PLC is also configured to store the received recipe data in a RAM of the PLC.
10. The system of claim 7, wherein said PLC has a recipe data auto-load module therein, wherein,
the PLC is also used for loading the formula data of the object from the HMI equipment through the formula data automatic loading module and storing the formula data of the object into the RAM of the PLC.
11. The system of claim 9, wherein the PLC is specifically configured to:
and searching in the formula data of the RAM according to the identity parameters of the target object to obtain target formula data matched with the identity parameters of the target object.
12. The system according to any one of claims 7 to 11, wherein the object is a tire and the target object is a tire to be detected.
CN201610389937.1A 2016-05-31 2016-05-31 Recipe searching method and system based on HMI and PLC online data exchange Active CN107451165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610389937.1A CN107451165B (en) 2016-05-31 2016-05-31 Recipe searching method and system based on HMI and PLC online data exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610389937.1A CN107451165B (en) 2016-05-31 2016-05-31 Recipe searching method and system based on HMI and PLC online data exchange

Publications (2)

Publication Number Publication Date
CN107451165A CN107451165A (en) 2017-12-08
CN107451165B true CN107451165B (en) 2020-11-24

Family

ID=60485285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610389937.1A Active CN107451165B (en) 2016-05-31 2016-05-31 Recipe searching method and system based on HMI and PLC online data exchange

Country Status (1)

Country Link
CN (1) CN107451165B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241141B (en) * 2020-11-12 2022-08-09 上海电气风电集团股份有限公司 Hardware configuration method, system, device and medium of PLC control system
CN117434886B (en) * 2023-12-21 2024-03-08 成都苔岑智能设备有限公司 PLC control system and method based on operation digital model

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201597A (en) * 2006-09-28 2008-06-18 洛克威尔自动控制技术股份有限公司 Conditional download of data from embedded historians
CN202270727U (en) * 2011-10-09 2012-06-13 攀钢集团攀枝花钢钒有限公司 System for hot continuous rolling to obtain parameter of rolled model at real time
CN102736571A (en) * 2011-04-13 2012-10-17 上海板机电气制造有限公司 Continuous press machine man-machine interface data interaction method based on IAS and system thereof
CN103559182A (en) * 2011-11-11 2014-02-05 洛克威尔自动控制技术股份有限公司 Systems and methods for asynchronous searching and filtering of data
CN104321775A (en) * 2012-05-24 2015-01-28 三菱电机株式会社 Device for collecting information for display and HMI system
CN104423954A (en) * 2013-09-04 2015-03-18 深圳市康必达智能科技有限公司 Software of KEMCS control system
CN105373445A (en) * 2014-07-04 2016-03-02 施耐德电气工业公司 A backup and recovery method for PLC/HMI device files

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080282053A1 (en) * 2007-05-09 2008-11-13 Yong-Liang Chang Method for converting memory addresses of different programmable logic controllers connected to human-machine interface

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201597A (en) * 2006-09-28 2008-06-18 洛克威尔自动控制技术股份有限公司 Conditional download of data from embedded historians
CN102736571A (en) * 2011-04-13 2012-10-17 上海板机电气制造有限公司 Continuous press machine man-machine interface data interaction method based on IAS and system thereof
CN202270727U (en) * 2011-10-09 2012-06-13 攀钢集团攀枝花钢钒有限公司 System for hot continuous rolling to obtain parameter of rolled model at real time
CN103559182A (en) * 2011-11-11 2014-02-05 洛克威尔自动控制技术股份有限公司 Systems and methods for asynchronous searching and filtering of data
CN104321775A (en) * 2012-05-24 2015-01-28 三菱电机株式会社 Device for collecting information for display and HMI system
CN104423954A (en) * 2013-09-04 2015-03-18 深圳市康必达智能科技有限公司 Software of KEMCS control system
CN105373445A (en) * 2014-07-04 2016-03-02 施耐德电气工业公司 A backup and recovery method for PLC/HMI device files

Also Published As

Publication number Publication date
CN107451165A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN111813095A (en) Vehicle diagnosis method, device and medium
CN107451165B (en) Recipe searching method and system based on HMI and PLC online data exchange
CN112034815A (en) Method and system for detecting ECU (electronic control unit) software version of electric vehicle
US20160159222A1 (en) Apparatus and method for inspecting charging system of electric vehicle
US20180249519A1 (en) Peripheral device pairing
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN116431218B (en) Compatible chip memory control method, system and controller
CN111708555B (en) Data processing equipment, method and system
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN113552562A (en) Automatic calibration system and method for ultrasonic radar
CN111045783B (en) Method and device for generating container mirror image, storage medium and electronic equipment
US20200334033A1 (en) Apparatus and method for providing update in vehicle
CN111781909A (en) Control method based on CCP or XCP protocol
CN116455784A (en) Gateway test method, system, computer and readable storage medium
CN112422693A (en) User online short video draft queue exporting method
CN115129025A (en) Finished automobile off-line distribution method, finished automobile off-line distribution system, readable storage medium and equipment
CN112306040A (en) Vehicle detection method, device, equipment and server
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN110737550B (en) Color identification detection method and device for terminal equipment
CN109491845B (en) Test method and system for storage product controller
CN111122008B (en) Method and device for determining core temperature of high-voltage wire
CN110751747A (en) Data processing method and device
CN114548328A (en) Management method of detection jig applied to detection process
CN115357453A (en) Data reading method, device and storage medium
CN114356061B (en) Power failure detection method, device, system and detection equipment

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