CN113311788A - Variable configuration processing method and device, computer storage medium and equipment - Google Patents

Variable configuration processing method and device, computer storage medium and equipment Download PDF

Info

Publication number
CN113311788A
CN113311788A CN202110394475.3A CN202110394475A CN113311788A CN 113311788 A CN113311788 A CN 113311788A CN 202110394475 A CN202110394475 A CN 202110394475A CN 113311788 A CN113311788 A CN 113311788A
Authority
CN
China
Prior art keywords
structural body
variable
information
configuration
member information
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.)
Pending
Application number
CN202110394475.3A
Other languages
Chinese (zh)
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.)
NR Electric Co Ltd
NR Engineering Co Ltd
Original Assignee
NR Electric Co Ltd
NR Engineering Co Ltd
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 NR Electric Co Ltd, NR Engineering Co Ltd filed Critical NR Electric Co Ltd
Priority to CN202110394475.3A priority Critical patent/CN113311788A/en
Publication of CN113311788A publication Critical patent/CN113311788A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41865Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by job scheduling, process planning, material flow
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33273DCS distributed, decentralised controlsystem, multiprocessor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a variable configuration processing method, a variable configuration processing device, a computer storage medium and a computer storage device, wherein the method comprises the following steps: acquiring a configuration file, and displaying structural body member information included in the configuration file; according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring related parameters of the structural body example; acquiring a function block corresponding to the structure body example, and establishing an incidence relation between cross index information on the function block and the corresponding structure body example; displaying the function block; wherein the display state of the function block reflects the state of the member in the structure instance through the association.

Description

Variable configuration processing method and device, computer storage medium and equipment
Technical Field
The present application relates to the field of industrial control configuration technologies, and in particular, to a method and an apparatus for processing a variable configuration, a computer storage medium, and a device.
Background
In the industrial control configuration process, communication interaction needs to be carried out between controllers through global variables. In the related technology, configuration is defined by adopting a one-by-one single-point mode, so that the workload is large, and variables are easy to miss and associate with errors. For example, for a Distributed Control System (DCS) project of 500 Megawatts (MW), the project is composed of more than 40 devices, 20 ten thousand points of data are accumulated, 4000 pages of visualization programs are used, and if configuration variables are defined in a one-by-one point manner, not only is the workload large, but also the variables are easy to miss and have associated errors.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a method and an apparatus for processing a variable configuration, a computer storage medium, and a device.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a variable configuration processing method, which comprises the following steps:
acquiring a configuration file, and displaying structural body member information included in the configuration file;
according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring related parameters of the structural body example;
acquiring a function block corresponding to the structure body example, and establishing association between cross index information on the function block and the corresponding structure body example;
displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
In the above scheme, the structural body member information includes information of at least one structural body; the information of the structure at least includes: type and descriptive information of the structure;
the information of the structure body further comprises at least one member information, and the member information comprises a variable name and description information.
In the foregoing solution, the displaying structural body member information included in the configuration file includes:
and displaying the information of the at least one structural body and at least one member information corresponding to the information of each structural body through a tree structure.
In the above scheme, when creating a structure instance corresponding to the structure member information according to the created number, the method further includes:
and generating an instance name, description information and a tag name corresponding to each structure instance and variable numbers of the members under each structure instance based on the structure member information.
In the foregoing solution, the configuring the relevant parameters of the structure instance includes:
configuring variable attributes of each member under each structure instance, wherein the variable attributes comprise at least one of the following: variable tag name, description information, value range, high and low limits, alarm groups and units.
In the above-described aspect, the function blocks and the corresponding structure examples have the same label name; and establishing association between the function blocks with the same label names and the structure body examples through the cross index information.
An embodiment of the present invention further provides a variable configuration processing apparatus, where the variable configuration processing apparatus includes:
an acquisition unit configured to acquire a configuration file;
the configuration unit is used for determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file according to the received operation, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring relevant parameters of the structural body example;
the association unit is used for acquiring the function blocks corresponding to the structure instances and establishing association between the cross index information on the function blocks and the corresponding structure instances;
a display unit, configured to display the structural body member information included in the configuration file obtained by the obtaining unit; and the function block display unit is further configured to display the function block acquired by the association unit, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
An embodiment of the present invention further provides a variable configuration processing apparatus, where the variable configuration processing apparatus includes: a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor is configured to execute the steps of the method according to the embodiment of the present invention when the computer program is executed.
The embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a variable configuration processing program, and the variable configuration processing program, when executed by a processor, implements the steps of executing the method according to the embodiment of the present invention.
The embodiment of the invention also provides computer equipment, which at least comprises the device and a computer storage medium.
The embodiment of the invention provides a variable configuration processing method, a variable configuration processing device, a computer storage medium and a computer storage device, wherein the method comprises the following steps: acquiring a configuration file, and displaying structural body member information included in the configuration file; according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring related parameters of the structural body example; acquiring a function block corresponding to the structure body example, and establishing association between cross index information on the function block and the corresponding structure body example; displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association. By adopting the technical scheme of the embodiment of the invention, a plurality of variables are defined as the structural body, rapid variable definition distribution and cross index association are realized through data encapsulation, and the configuration efficiency can be obviously improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a variable configuration processing method according to an embodiment of the present invention;
FIG. 2 is a schematic view of a structure selection interface according to an embodiment of the present invention;
FIG. 3 is a schematic view of a structural configuration interface according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a tag interface of a function block parameter association structure according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a cross indexing device according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a hardware structure of a cross-indexing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the following detailed description of specific embodiments of the present invention will be made with reference to the accompanying drawings. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
Industrial control configuration engineering (or simply industrial control configuration, configuration engineering) is a virtual control program established by configuration software for an industrial control process, and is widely applied to various fields of machinery, automobiles, petroleum, chemical industry, papermaking, water treatment, process control and the like.
In the editing process of industrial control configuration engineering, a visualization page often refers to global variables, Input/Output (I/O) upload variables, cross-page variables and the like in or across objects for logic programming. The variable configuration processing method in the related art defines configuration by adopting a one-by-one single-point mode, so that the workload is large, and variables are easy to miss and associate with errors. For example, for a 500mw DCS project, the DCS project is composed of more than 40 devices, 20 ten thousand points of data are accumulated, and 4000 pages of visualization programs are used, at which time the variable configuration processing data size is large, resulting in low editing efficiency of the configuration project.
Based on this, the embodiment of the application displays the structural body member information included in the configuration file by acquiring the configuration file; according to the received operation, determining a structural body to be created and member information thereof and a corresponding creation number from the configuration file, creating a structural body example corresponding to the member information of the structural body according to the creation number, and configuring relevant parameters of the structural body example; acquiring a function block corresponding to the structure body example, and establishing association between cross index information on the function block and the corresponding structure body example; displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
By adopting the variable configuration processing mode, common variables can be defined as the structure body, the type of the option structure body is directly associated when the variables are created, and the member variables are automatically created. By designing the function block function corresponding to the structure type and performing data association through the tag name, the program editing efficiency can be improved, the background point selecting efficiency is improved, and the industrial control configuration efficiency is further improved.
Fig. 1 is a first flowchart illustrating a variable configuration processing method according to an embodiment of the present invention, as shown in fig. 1, the method may include:
s101: and acquiring a configuration file, and displaying the structural body member information included in the configuration file.
It should be noted that the method described in this embodiment is applied to a device installed with configuration software, and the device may specifically be a computer device such as an intelligent terminal, a personal computer, an industrial modular computer, an industrial control device, an industrial server, a general-purpose server, and the like. Configuration engineering aiming at a specific industrial control process is established through configuration software installed on equipment, and functions of data acquisition and process control are achieved for users.
Before the configuration software runs, variables used in engineering, mainly including memory variables and I/O variables, need to be added. For industrial engineering, especially large DCS engineering, generally includes a plurality of function blocks (or called devices, apparatuses), each of which may correspond to a plurality of variables and cover a plurality of visualization pages. It should be understood that the functional blocks herein are not distinct from the specific devices that are instantiated, but rather are virtualized control modules. That is, a functional block may have several variables from several physical devices. For example, for a 500MW DCS project, the DCS project is composed of more than 40 functional blocks, 20 ten thousand points of variables are accumulated, and 4000 pages of visualization programs are obtained. If the configuration variables are defined in a one-by-one single-point mode, the workload is large, and the variables are easy to miss and associate with errors. If the variables can be defined as a structure, rapid variable definition allocation and cross index association are realized through data encapsulation, and configuration efficiency can be obviously improved.
The embodiment of the invention provides a variable configuration processing method, which is characterized in that aiming at functional blocks required by configuration engineering of a specific industrial control process and functional blocks possibly required, a plurality of variables are defined as a structural body in a configuration file structvar.
In some optional embodiments of the present invention, the structural body member information includes information of at least one structural body; the information of the structure at least includes: type and descriptive information of the structure; the information of the structure body further comprises at least one member information, and the member information comprises a variable name and description information. In some optional embodiments of the present invention, the displaying of the structural body member information included in the configuration file includes: and displaying the information of the at least one structural body and at least one member information corresponding to the information of each structural body through a tree structure.
Illustratively, the configuration file is exemplified as follows:
<?xml version="1.0"encoding="UTF-8"?>
<StructConfig version="1.0">
preferred block structure with two analog values, i.e., "dv ═ 0" dt ═ 8">," SEL2"cn ═ analog
< chn ═ CD1 ═ dv ═ 0 ═ dt ═ 1 ═ cn ═ input X1 disable instruction "/>
< chn ═ CD2 ═ dv ═ 0 ═ dt ═ 1cn ═ input X2 disable instruction "/>, and
< chn ═ CE1 ═ dv ═ 0 ═ dt ═ 1 ═ cn ═ input X1 enable instruction "/>
< chn ═ CE2 ═ dv ═ 0 ═ dt ═ 1 ═ cn ═ input X2 enable instruction "/>
< chn ═ CAG "dv ═ 0" dt ═ 1"cn ═ AVG mode cutting command"/>, and
< chn ═ CMN ═ dv ═ 0 ═ dt ═ 1 ═ cn ═ MIN mode switching command "/>, and
< chn ═ CMX "dv ═ 0" dt ═ 1"cn ═ cut MAX mode command"/>, and
</Struct>
...
</StructConfig>
the structure definition is 1, 1 structure corresponds to 1 function block, type is the name of the structure and names the structure, cn is the Chinese description of the structure and is used for unique distinction from other structures, dv is a default value, when the value is 0, the initial state of the structure is a forbidden state, when the value is 1, the initial state of the structure is an enabled state, dt is the variable type of the structure and can be set as a memory variable or an I/O variable and the like according to actual needs.
The method comprises the steps of encoding according to a variable type sequence defined by IEC61131-3 (a programmable logic controller standard established by the International Electrotechnical Commission (IEC)), wherein n is a member variable name, cn is a Chinese description of a member variable and is used for uniquely distinguishing the member variable from other member variables, dv is a default value, when a value is 0, the member variable initial state is a forbidden state, when the value is 1, the member variable initial state is an enabled state, and dt is a variable type variable of the member variable, which can be set according to actual needs.
In a configuration engineering page (or referred to as a visualization page) facing a user, the variable configuration file is read through a menu command, and after the variable configuration file is successfully read, the structure member information included in the configuration file is displayed on a structure variable interface, as shown in fig. 2. The structure members may include, for example, a plurality of structures named SEL2, STEP, MA, etc., as shown in fig. 2, and the type and description information of each structure are in one-to-one correspondence. While each structure comprises members such as: when the structure is double-clicked, the members under the structure, such as CTM, CTA, CST, CPS, CSK, CRS, will be displayed in a tree structure, and the member information also includes chinese description information.
S102: according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding created number from the configuration file, creating a structural body example corresponding to the structural body member information according to the created number, and configuring relevant parameters of the structural body example.
Selecting the structural bodies according to the functional blocks actually required by the configuration engineering of a specific industrial control process and the corresponding number of the functional blocks, and setting the number of the created structural bodies, wherein the set number of the created structural bodies corresponds to all the structural bodies selected on the same interface, as shown in fig. 2. The method comprises the steps of setting for many times according to the number of required modules, displaying a structure body example in a table form on a structure body variable interface based on the selected structure body and the set number of creation, automatically setting a structure body example name and variable numbers corresponding to structure body and structure body member variables by configuration software, and sequentially numbering the variable numbers according to the sequence of the structure body setting.
In this embodiment, the operation is a trigger operation of a user for an operable option (such as a checkbox) of the interface shown in fig. 2, the trigger operation is, for example, a single-click operation or a double-click operation, and the structural body member information corresponding to the structural body to be created and the corresponding creation number are determined through the trigger operation. Further, by double-clicking or single-clicking the structure tag name, the structure member tag name, and setting the variable attribute, for example, as shown in fig. 3, when the structure field DAPC _ AO0003_ MA is double-clicked or single-clicked, members such as child member entries DAPC _ AO0003_ MA @ CXM, DAPC _ AO0003_ MA @ CUP can be expanded and displayed. When the mouse is in the editing column of label name, description, etc., it can display the editing forms of LineEdit text box, Combox pull-down box, etc., and the user can edit the set value in response to the keyboard input event.
In some optional embodiments of the present invention, when creating a structure instance corresponding to the structure member information according to the created number, the method further includes: and generating an instance name, description information and a tag name corresponding to each structure instance and variable numbers of the members under each structure instance based on the structure member information.
In some optional embodiments of the invention, the configuring the relevant parameters of the structure example includes: configuring variable attributes of each member under each structure instance, wherein the variable attributes comprise at least one of the following: variable tag name, description information, value range, high and low limits, alarm groups and units.
The variable label name is used as a name for uniquely identifying a data variable in an application program, the naming is distinguished by capital and lower case, the longest character can not exceed 31 characters, the name can be a Chinese character or an English name, the first character can not be a number, the name can not be repeated with the existing variable name, function name, key word, control name and the like in configuration software, and the name is named through a KKS (Kraft werk-Kennzechenstein plant identification system) label name when illegal characters such as blank spaces, arithmetic symbols and the like are not allowed to exist in the middle of the name, for example, the configuration engineering of a specific industrial control process is suitable for a power plant.
And describing information, wherein variables are described through the annotation information, and the maximum number of the variables is not more than 39 characters.
The value range, each variable will be limited in certain range according to the different values of its use scene, can set up the concrete numerical value; the upper and lower limits include a minimum value and a maximum value, the minimum value refers to the lower limit of the variable value in the database, and the maximum value refers to the upper limit of the variable in the database. The maximum precision in the configuration software is float type, four bytes. Care is taken not to override the maximum value.
The alarm means that when the value of some quantity in the system exceeds the specified limit, the system automatically generates corresponding warning information to indicate that the value of the quantity is out of limit, and an operator is reminded. In the monitoring system, alarm information generated by variables is classified into different groups for convenience of viewing, recording and distinguishing. The set attributes comprise alarm group names, priorities, alarm limits (analog quantity), alarm texts (switching value) and the like, the priorities mainly refer to alarm levels and are beneficial to distinguishing the alarm emergency degree of operators, and the alarm priorities range from 1 to 999 with 1 being the highest and 999 being the lowest.
And the unit is set according to the data type and the physical significance of the variable, and the value can be percent.
And automatically storing the structure body instance file when the structure body variable interface is switched to the visual page, compiling the structure body variable product file, and automatically downloading the file if the controller is in an online state.
S103: and acquiring a function block corresponding to the structure body example, and establishing the association between the cross index information on the function block and the corresponding structure body example.
The configuration project may include a main thread, a cross-index thread (or cross-index processing thread) in operation. The main thread responds to a mouse, a keyboard and a network event, and generates or refreshes and displays a cross index symbol according to cross index information; and the cross index thread is used for generating cross index information according to the configuration files of the objects.
The cross index information is used for indicating the index relation in the objects or among the objects in the configuration engineering. For industrial engineering, especially large DCS engineering, generally includes a plurality of objects (or called devices, apparatuses), each of which may include a plurality of parameters, covering a plurality of visualization pages. It should be understood that the objects herein are not distinct from the concrete apparatus being instantiated, but rather are virtualized control modules. That is, an object may have several parameters from several physical devices. For example, for a 500MW DCS project, there are 40 objects, 20 ten thousand points of data are accumulated, and 4000 pages of visualization program are performed, where the cross-index information may include an object number, a page number, a channel type, an IO node/branch/module number, a channel name, an attribute name, and an attribute display name.
Wherein the cross-index symbol is used to provide a link to jump to a source interface of some related data. The cross index symbol is generated according to the cross index information, and is generally displayed near the function module (or called function block) in the current page, and may represent different sources in different symbol forms, such as from a global variable or from an IO module variable, and jump to the source interface of the variable by double-clicking (or other operations). For management or designers, the working efficiency can be obviously improved by presenting the association relation existing among a plurality of objects through cross index symbols.
Selecting a function block to be instantiated from a programming symbol library, filling the TAG name of the structure body in a TAG parameter value column of a function block parameter interface, and automatically filling the TAG name with the same parameter name and the same sub-member name of the sub-structure body. For ease of use, the cross-index symbol is typically displayed adjacent to and in association with the associated function module, and when the user deletes or moves the function module, the cross-index symbol is also deleted or moved in synchronization. That is, as a function block moves within a visualization page, the cross-index symbol of the associated display moves synchronously; and when the functional blocks in the visual page are deleted, the associated cross index symbols are synchronously deleted.
As shown in fig. 4, when the structure bar DAPC _ AO0003_ MA is double-clicked or single-clicked, the child member entries DAPC _ AO0003_ MA @ CXM, DAPC _ AO0003_ MA @ CUP, and the like can be expanded and displayed. When the mouse is in the editing column of label name, description, etc., it can display the editing forms of LineEdit text box, Combox pull-down box, etc., and the user can edit the set value in response to the keyboard input event.
The TAG name DAPC _ AO0003_ MA is filled in the setting value field of the parameter TAG, and the setting value of the parameter CXM is automatically filled in as DAPC _ AO0003_ MA @ CXM. The type of the functional block is MA, and the functional block comprises parameters of TAG, PAGE, CXMPAGE, CXM and the like. When the parameter TAG fills in the TAG name DAPC _ AO0003_ MA, PAGE is the PAGE number, and the PAGE number to which DAPC _ AO0003_ MA belongs as a global variable is filled in. The function block parameter CXM corresponds to the sub-member CXM of the structure body MA, the function block parameter automatically fills the tag name DAPC _ AO0003_ MA @ CXM corresponding to the CXM, and the parameter CXMPAGE fills the page number of the sub-member MA. CXM of the structure body. Only the setting value of TAG needs to be input and the parameter values associated with the series sub-members can be automatically filled.
And inputting DAPC _ AO003_ MA into a setting value column of the TAG, triggering a TAG name automatic synchronization function after carriage return or focus switching, acquiring a PAGE number corresponding to the DAPC _ AO003_ MA, and filling the setting value of the PAGE. The DAPC _ AO003_ MA @ CXM is automatically filled in the setting value column of the parameter CXM, and CXMPAGE is automatically filled in 1306 (the page number corresponding to the tag name DAPC _ AO003_ MA @ CXM obtained from the cross index information table is 1306).
In some alternative embodiments of the invention, the functional blocks have the same tag name as the corresponding structure instances; and establishing association between the function blocks with the same label names and the structure body examples through the cross index information.
Filling variable names corresponding to global variables and IO variables in a user-oriented configuration engineering page (or called a visual page) through label attributes (TAG) of function blocks to realize reference of the variables, and realizing reference of cross-page variables by setting source page numbers and instance names of the source function blocks; the cross-device variable reference is realized by setting the serial number of the source device, the source page number and the source terminal roll name. The cross index symbol is displayed near the functional block (left side or right side) in the page, and the underline bold font (which can be set) displays "Global", "IO", and page number, "Global" indicates that the input is from the Global variable, "IO" indicates that the input source is from the IO module variable, and page number indicates that the input source is from the visual page. And if the cross index symbol is right-keyed, jumping to the corresponding source end interface. And displaying a configuration interface on the global variable and the IO variable, displaying cross index symbols for the variables with cross indexes, and skipping to a reference page by a right key.
After cross index information is obtained through the cross index thread, cross index symbols can be generated according to the cross index information, manual operation of a user is not needed, and therefore the use convenience of the configuration engineering is improved; meanwhile, cross index information can be checked in real time, so that the safety of configuration engineering is improved; in addition, after the configuration project is modified, the cross index information can be refreshed immediately in the editing process, and therefore the editing efficiency of the configuration project is improved.
S104: displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
After the controller is connected on line, the structure body and the child member variable display real-time values, when the child member variable enters a forced state and is replaced, the structure body and the child member display purple, and the associated cross index symbol also displays purple.
The embodiment of the application provides a variable configuration processing method, which comprises the following steps: acquiring a configuration file, and displaying structural body member information included in the configuration file; according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring related parameters of the structural body example; acquiring a function block corresponding to the structure body example, and establishing association between cross index information on the function block and the corresponding structure body example; displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
After the scheme is adopted, the invention has the following beneficial effects: the structure mode can define common function blocks as structures, directly associates the option structure types when creating variables, and automatically creates member variables. By designing a function block function corresponding to the structure type and associating the cross index information on the function block with the corresponding structure instance through the label name, the program editing efficiency can be improved, the background point picking efficiency is improved, and the industrial control configuration efficiency and the safety and convenience of the configuration engineering are improved.
Based on the foregoing embodiments, an embodiment of the present invention further provides a variable configuration processing apparatus, and fig. 5 is a schematic structural diagram of the variable configuration processing apparatus according to the embodiment of the present invention, as shown in fig. 5, the variable configuration processing apparatus 20 includes:
an acquisition unit 201, configured to acquire a configuration file;
a configuration unit 202, configured to determine, according to a received operation, structural body member information and a corresponding creation number corresponding to a structural body to be created from the configuration file, create a structural body instance corresponding to the structural body member information according to the creation number, and configure related parameters of the structural body instance;
the association unit 203 is configured to acquire a function block corresponding to the structure instance, and establish association between cross index information on the function block and the corresponding structure instance;
a display unit 204, configured to display the structural body member information included in the configuration file obtained by the obtaining unit; and the function block display unit is further configured to display the function block acquired by the association unit, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
In some optional embodiments of the present invention, the structural body member information includes information of at least one structural body; the information of the structure at least includes: type and descriptive information of the structure;
the information of the structure body further comprises at least one member information, and the member information comprises a variable name and description information.
In some optional embodiments of the present invention, the display unit 204 is configured to display the information of the at least one structural body and at least one member information corresponding to the information of each structural body through a tree structure.
In some optional embodiments of the present invention, the configuration unit 202 is further configured to, when creating the structure body instances corresponding to the structure body member information according to the created number, generate an instance name, description information, and a tag name corresponding to each structure body instance, and a variable number of a member in each structure body instance based on the structure body member information.
In some optional embodiments of the present invention, the configuration unit 202 is configured to configure variable attributes of each member under each structure instance, where the variable attributes include at least one of: variable tag name, description information, value range, high and low limits, alarm groups and units.
In some alternative embodiments, the functional blocks have the same tag name as the corresponding structure instances; the association unit 203 is configured to establish an association between the function blocks with the same tag name and the structure instance by using the cross index information.
The device is used for realizing the method embodiments, the realization principle and the technical effect are similar, and the details are not repeated here.
It is understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may also be a module, or may also be non-modular. Moreover, each component in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Accordingly, the present embodiment provides a computer storage medium storing a variable configuration processing program, which when executed by at least one processor implements the steps of the method of any of the preceding embodiments.
Referring to fig. 6, which shows a specific hardware structure example of a variable configuration processing apparatus according to an embodiment of the present disclosure, as shown in fig. 6, the variable configuration processing apparatus 30 may include: a memory 301 and a processor 302; the various components are coupled together by a bus device 303. It will be appreciated that the bus device 303 is used to enable communications among the components connected. The bus device 303 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus device 303 in figure 6.
A memory 301 for storing a computer program capable of running on the processor 302;
a processor 302 for performing the steps of the method of any of the preceding embodiments when running the computer program.
It will be appreciated that the memory 302 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous chained SDRAM (Synchronous link DRAM, SLDRAM), and Direct memory bus RAM (DRRAM). The memory 302 of the apparatus and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The processor 303 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 303. The Processor 303 may be a general-purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 302, and the processor 303 reads the information in the memory 302 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more APPlication Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Referring to fig. 7, a schematic diagram of a component structure of a computer device 40 provided in the embodiment of the present application is shown. The computer device 40 may be, for example, a smart terminal, a personal computer, an industrial modular computer, an industrial control device, an industrial server, a general-purpose server, or the like. As shown in fig. 7, the computer apparatus 40 at least includes the variable configuration processing device 20 or the variable configuration processing device 30 according to any one of the foregoing embodiments. For the computer device 40, the variables are defined as a structure, and rapid variable definition allocation and cross index association are realized through data encapsulation, so that configuration efficiency can be remarkably improved.
The above description is only an alternative embodiment of the present application, and is not intended to limit the scope of the present application.
It should be noted that, in the present application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing variable configuration, the method comprising:
acquiring a configuration file, and displaying structural body member information included in the configuration file;
according to the received operation, determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring related parameters of the structural body example;
acquiring a function block corresponding to the structure body example, and establishing association between cross index information on the function block and the corresponding structure body example;
displaying the function block, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
2. The variable configuration method according to claim 1, wherein the structure member information includes information of at least one structure; the information of the structure at least includes: type and descriptive information of the structure;
the information of the structure body further comprises at least one member information, and the member information comprises a variable name and description information.
3. The variable configuration method according to claim 2, wherein the displaying of the structure member information included in the configuration file comprises:
and displaying the information of the at least one structural body and at least one member information corresponding to the information of each structural body through a tree structure.
4. The variable configuration method according to claim 1, wherein when creating the structure instance corresponding to the structure member information according to the created number, the method further comprises:
and generating an instance name, description information and a tag name corresponding to each structure instance and variable numbers of the members under each structure instance based on the structure member information.
5. The variable configuration method of claim 1, wherein the configuring the parameters associated with the structure instance comprises:
configuring variable attributes of each member under each structure instance, wherein the variable attributes comprise at least one of the following: variable tag name, description information, value range, high and low limits, alarm groups and units.
6. The variable configuration method of claim 1, wherein the function blocks have the same tag name as the corresponding structure instances; and establishing association between the function blocks with the same label names and the structure body examples through the cross index information.
7. A variable configuration processing apparatus, comprising:
an acquisition unit configured to acquire a configuration file;
the configuration unit is used for determining structural body member information corresponding to the structural body to be created and the corresponding creation number from the configuration file according to the received operation, creating a structural body example corresponding to the structural body member information according to the creation number, and configuring relevant parameters of the structural body example;
the association unit is used for acquiring the function blocks corresponding to the structure instances and establishing association between the cross index information on the function blocks and the corresponding structure instances;
a display unit, configured to display the structural body member information included in the configuration file obtained by the obtaining unit; and the function block display unit is further configured to display the function block acquired by the association unit, wherein the display state of the function block reflects the state of the member in the structure instance through the association.
8. A variable configuration processing apparatus, comprising a memory and a processor; wherein,
the memory for storing a computer program operable on the processor;
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 6.
9. A computer storage medium, wherein a variable configuration handler is stored in the computer storage medium, and when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
10. A computer device, characterized in that the computer device comprises at least the variable configuration processing apparatus according to claim 8 or 9.
CN202110394475.3A 2021-04-13 2021-04-13 Variable configuration processing method and device, computer storage medium and equipment Pending CN113311788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110394475.3A CN113311788A (en) 2021-04-13 2021-04-13 Variable configuration processing method and device, computer storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110394475.3A CN113311788A (en) 2021-04-13 2021-04-13 Variable configuration processing method and device, computer storage medium and equipment

Publications (1)

Publication Number Publication Date
CN113311788A true CN113311788A (en) 2021-08-27

Family

ID=77372359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110394475.3A Pending CN113311788A (en) 2021-04-13 2021-04-13 Variable configuration processing method and device, computer storage medium and equipment

Country Status (1)

Country Link
CN (1) CN113311788A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741411A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 Generation method and system of global variable point product file of distributed control system
CN113759884A (en) * 2021-11-08 2021-12-07 西安热工研究院有限公司 Method and system for generating input/output point product file of distributed control system
CN113985760A (en) * 2021-09-30 2022-01-28 秦皇岛远舟工业气体有限公司 ARM-based switching value processing method applied to monitoring alarm system
WO2024159753A1 (en) * 2023-01-31 2024-08-08 华为技术有限公司 Parameter configuration method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110877A (en) * 2007-08-24 2008-01-23 中国网络通信集团公司 Method and system for implementing general charging
CN107910085A (en) * 2017-10-30 2018-04-13 福建福清核电有限公司 A kind of DCS configuration datas intelligent analysis adjustment method
CN108897572A (en) * 2018-07-19 2018-11-27 北京理工大学 A kind of complicated type reconstructing method based on variable association tree
CN111026460A (en) * 2019-12-05 2020-04-17 新奥数能科技有限公司 Method and device for quickly matching points by using area template in configuration tool
CN111651640A (en) * 2020-05-29 2020-09-11 南京南瑞继保电气有限公司 Cross indexing method, device, computer storage medium and equipment
CN112286144A (en) * 2019-07-24 2021-01-29 北京国电智深控制技术有限公司 Configuration method and system and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110877A (en) * 2007-08-24 2008-01-23 中国网络通信集团公司 Method and system for implementing general charging
CN107910085A (en) * 2017-10-30 2018-04-13 福建福清核电有限公司 A kind of DCS configuration datas intelligent analysis adjustment method
CN108897572A (en) * 2018-07-19 2018-11-27 北京理工大学 A kind of complicated type reconstructing method based on variable association tree
CN112286144A (en) * 2019-07-24 2021-01-29 北京国电智深控制技术有限公司 Configuration method and system and computer readable storage medium
CN111026460A (en) * 2019-12-05 2020-04-17 新奥数能科技有限公司 Method and device for quickly matching points by using area template in configuration tool
CN111651640A (en) * 2020-05-29 2020-09-11 南京南瑞继保电气有限公司 Cross indexing method, device, computer storage medium and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113985760A (en) * 2021-09-30 2022-01-28 秦皇岛远舟工业气体有限公司 ARM-based switching value processing method applied to monitoring alarm system
CN113985760B (en) * 2021-09-30 2024-03-26 秦皇岛远舟工业气体有限公司 ARM-based switching value processing method applied to monitoring alarm system
CN113741411A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 Generation method and system of global variable point product file of distributed control system
CN113759884A (en) * 2021-11-08 2021-12-07 西安热工研究院有限公司 Method and system for generating input/output point product file of distributed control system
CN113759884B (en) * 2021-11-08 2022-02-01 西安热工研究院有限公司 Method and system for generating input/output point product file of distributed control system
CN113741411B (en) * 2021-11-08 2022-02-01 西安热工研究院有限公司 Generation method and system of global variable point product file of distributed control system
WO2024159753A1 (en) * 2023-01-31 2024-08-08 华为技术有限公司 Parameter configuration method and apparatus

Similar Documents

Publication Publication Date Title
CN113311788A (en) Variable configuration processing method and device, computer storage medium and equipment
CN106775725B (en) Visual configuration editing method and device
JP5295464B1 (en) System construction support tool and system
CN111026777B (en) Entity class code generation method, entity class code generation device, computer equipment and storage medium
CN108334585A (en) A kind of spiders method, apparatus and electronic equipment
CN110399128A (en) Code file generation method and device
CN106293664A (en) Code generating method and device
CN105094832A (en) WYSIWYG method and system for dynamically generating user interface
CN111651640B (en) Cross indexing method, device, computer storage medium and equipment
CN104978178A (en) Visualization method of relay protection constant value
CN103412868A (en) Method and device for generating document
CN101853205A (en) Method and apparatus for monitoring the running of program
CN104391731A (en) Editing method based on C# and irrelevant to data types
CN110889272A (en) Data processing method, device, equipment and storage medium
CN104823159A (en) Method and device for changing objects in human-machine interface device
CN118245692A (en) Method, device, computer equipment and storage medium for loading WEB form
CN111475602B (en) Multi-version knowledge graph storage method and device, storage medium and electronic equipment
CN112905123B (en) Storage controller and storage control method of environment parameter recording equipment
EP3992785A1 (en) Method and apparatus for acquiring command line multiway tree of data network device
CN114416162A (en) Database interface and interaction script generation method and system
CN113868138A (en) Method, system, equipment and storage medium for acquiring test data
CN113111633A (en) Online editing method, system, terminal and storage medium for power grid evaluation opinions
CN118114408B (en) Group hole characteristic numerical control processing model construction method, device, medium and equipment
CN104899045A (en) Universal software coding assistance system and method
CN111459471B (en) Information processing method, device and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210827