CN113590171B - Data redundancy editing method - Google Patents

Data redundancy editing method Download PDF

Info

Publication number
CN113590171B
CN113590171B CN202110317447.1A CN202110317447A CN113590171B CN 113590171 B CN113590171 B CN 113590171B CN 202110317447 A CN202110317447 A CN 202110317447A CN 113590171 B CN113590171 B CN 113590171B
Authority
CN
China
Prior art keywords
plug
redundant
variable
unit
main
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
CN202110317447.1A
Other languages
Chinese (zh)
Other versions
CN113590171A (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.)
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 CN202110317447.1A priority Critical patent/CN113590171B/en
Publication of CN113590171A publication Critical patent/CN113590171A/en
Application granted granted Critical
Publication of CN113590171B publication Critical patent/CN113590171B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a data redundancy editing method, which comprises the steps of obtaining configuration information of a main plug-in unit and a redundancy plug-in unit; creating a functional block capable of simultaneously reading the channel variable of the main plug-in unit-redundant plug-in unit on the visual page, inputting the tag value of the main plug-in unit variable by utilizing the functional block, and filling the tag value of the corresponding variable of the redundant plug-in unit according to a preset rule and configuration information of the main plug-in unit-redundant plug-in unit; compiling the visual page, downloading the product to a controller, when the controller runs on line, the output of the functional block preferentially takes the variable value of the main plug-in, and if the quality of the main plug-in variable returns an error mark, switching to take the variable value from the redundant plug-in and outputting. The method ensures that the KKS labels of the same channel variable of the main plug-in and the redundant plug-in keep consistent change according to the preset rule, other attributes keep the same, reduces half of configuration workload and improves reliability.

Description

Data redundancy editing method
Technical Field
The invention belongs to the field of industrial control, and particularly relates to a data redundancy editing method.
Background
In important industrial applications, there are redundant hardware structures. The visualized page reads the channel variable value of the main plug-in preferentially, and can be automatically switched to the channel value of the redundant plug-in after the quality problem occurs. The redundant plug-in is a mirror image of the main plug-in, most of the channel attributes are the same, and a rule for setting KKS tag values used for representing the channel ID exists. In order to avoid inconsistent problems outside the rules, the workload of plug-in configuration is reduced, and a plurality of automation operations are required to be performed aiming at the pairing of plug-ins and redundant plug-ins so as to improve the engineering implementation efficiency.
Disclosure of Invention
Aiming at the problems, the invention provides a data redundancy editing method, which ensures that KKS labels of the same channel variable of a main plug-in unit-redundancy plug-in unit keep consistent change according to a preset rule, other attributes keep the same, reduces half of configuration workload and improves reliability.
In order to achieve the technical purpose and achieve the technical effect, the invention is realized by the following technical scheme:
A data redundancy editing method, comprising:
acquiring configuration information of a main plug-in unit and a redundant plug-in unit;
Creating a functional block capable of simultaneously reading the channel variable of the main plug-in unit-redundant plug-in unit on the visual page, inputting the tag value of the main plug-in unit variable by utilizing the functional block, and filling the tag value of the corresponding variable of the redundant plug-in unit according to a preset rule and configuration information of the main plug-in unit-redundant plug-in unit;
Compiling the visual page, downloading the product to a controller, when the controller runs on line, the output of the functional block preferentially takes the variable value of the main plug-in, and if the quality of the main plug-in variable returns an error mark, switching to take the variable value from the redundant plug-in and outputting.
Optionally, the attribute of the redundant plug-in is read-only, when a certain channel variable of the main plug-in fills in or modifies a KKS label value, a message is sent to the redundant plug-in, and the KKS of the channel variable at the same position is the KKS+ "_R" suffix of the main plug-in; if other attributes of the channel variable are modified, corresponding attribute values of the redundant plug-ins are synchronized to be consistent with the primary plug-ins.
Alternatively, when the master plug-in is deleted, the matching redundant plug-ins are automatically deleted, with 1 controller supporting the creation of multiple pairs of master plug-in-redundant plug-ins.
Optionally, the hardware of the controller is managed according to a hierarchical structure of a station-branch-plug-in, and the plug-in position is determined by setting a station number, a branch number and a plug-in slot number.
Optionally, the plug-in variables are numbered according to hardware channels starting from 1, and each channel variable uses a KKS tag as an ID;
when the plug-in is newly built on the right key of the branch node, if the main plug-in option is checked, the creation information of the redundant plug-in is displayed, wherein the creation information comprises the station number, the branch number and the plug-in number of the redundant plug-in.
Optionally, the left edge of the bounding box of the functional block forms a cross index symbol of the main plug-in variable and the redundant plug-in variable, and when the cross index symbol is double-clicked, the process jumps to the associated plug-in configuration interface.
Compared with the prior art, the invention has the beneficial effects that:
The method ensures that the KKS labels of the same channel variable of the main plug-in and the redundant plug-in keep consistent change according to the preset rule, other attributes keep the same, reduces half of configuration workload and improves reliability.
Drawings
In order that the invention may be more readily understood, a more particular description of the invention will be rendered by reference to specific embodiments that are illustrated in the appended drawings, in which:
FIG. 1 is a flow chart of data redundancy editing of one embodiment of the present invention;
FIG. 2 is an example of a primary plug-in-redundant plug-in configuration interface for one embodiment of the present invention;
fig. 3 is an example of an IO channel redundant read function block configuration of one embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following examples in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the detailed description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The principle of application of the invention is described in detail below with reference to the accompanying drawings.
As shown in fig. 1, the present invention provides a data redundancy editing method, which includes the following steps:
acquiring configuration information of a main plug-in unit and a redundant plug-in unit;
Creating a functional block capable of simultaneously reading the channel variable of the main plug-in unit-redundant plug-in unit on the visual page, inputting the tag value of the main plug-in unit variable by utilizing the functional block, and filling the tag value of the corresponding variable of the redundant plug-in unit according to a preset rule and configuration information of the main plug-in unit-redundant plug-in unit;
Compiling the visual page, downloading the product to a controller, when the controller runs on line, the output of the functional block preferentially takes the variable value of the main plug-in, and if the quality of the main plug-in variable returns an error mark, switching to take the variable value from the redundant plug-in and outputting.
Specifically, in the present invention, the hardware of the controller is managed according to the hierarchical structure of "station-branch-plug-in", and by setting the station number, the branch number, and the plug-in slot number, the plug-in position can be determined. And newly-building an insertion part on the right key of the branch node, and displaying the setting information of the redundant insertion part if the option of the main insertion part is checked in the newly-built dialog box popped up. The station number, branch number, and plug-in number of the redundant plug-in can be filled in. And simultaneously creating redundant plug-in nodes when the main plug-in nodes are newly built. And displaying the main plugin and the redundant plugin nodes under the hardware hierarchical tree nodes according to the hierarchical structures of the station numbers, the branch numbers and the plugin slot numbers.
As shown in fig. 2, clicking on the add-on node displays the add-on channel configuration interface. Each channel corresponds to 1 variable, plug-in variables are numbered from 1 according to hardware channel, and each channel variable uses KKS tags (20 characters conforming to the C language naming convention) as IDs.
The redundant plug-in is set to be in a read-only attribute, and the interface displayed by clicking the redundant plug-in is in a read-only state. When a certain channel variable of the main plug-in unit fills out or modifies the KKS label value, a message is sent to the redundant plug-in unit, and the KKS of the channel variable at the same position is the KKS+ "_R" suffix of the main plug-in unit. If other attributes of the variable (variable value, variable description, set value, unit, data type, alarm upper and lower limits) are modified, the attribute values of the redundant plug-ins are synchronized to be consistent with the primary plug-ins.
If the KKS is modified in batches through the replacement operation, when the variable KKS of the main plug-in unit accords with the replacement item and after the replacement, the KKS of the corresponding variable of the redundant plug-in unit is automatically set as the KKS+ "_R" suffix of the variable of the main plug-in unit. For example, replace apc_ai with APCAI, 1 KKS of the master plug-in is replaced by apc_ai01 with APCAI01, and KKS of the redundant plug-in has apc_ai01_r replaced by APCAI01_r.
The redundant plug-in right key conceals the delete menu. When the main plug-in is right-click to delete, the main plug-in records the corresponding redundant plug-in ID, so that the matched redundant plug-in can be triggered to be deleted. 1 controller supports creation of multiple pairs of master plug-ins-redundant plug-ins, which will check if there is a plug-in already set as a redundant plug-in at creation time.
Functional blocks for optional read main and redundant card channels have been developed, including analog reads REDHAI, integer reads REDHNI, and on-off reads REDHDI. As shown in fig. 3, a functional block capable of simultaneously reading the channel variable of the main plug-in and the redundant plug-in is created on the visual page, a symbol block is double-clicked, a label value apc_a01 of the main plug-in variable is input, a label value apc_a01_r of the corresponding variable of the redundant plug-in is automatically filled, and the information of the corresponding station number, the branch number, the slot number and the channel number of the main plug-in variable and the redundant plug-in variable are automatically filled. After the interface click is determined, a cross index symbol of IO and IO_R is formed on the left side of REDHAI symbols, and the symbol is double-clicked to jump to the plug-in configuration interface.
The foregoing has shown and described the basic principles and main features of the present invention and the advantages of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made without departing from the spirit and scope of the invention, which is defined in the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (6)

1. A method for redundant editing of data, comprising:
acquiring configuration information of a main plug-in unit and a redundant plug-in unit;
Creating a functional block capable of simultaneously reading the channel variable of the main plug-in unit-redundant plug-in unit on the visual page, inputting the tag value of the main plug-in unit variable by utilizing the functional block, and filling the tag value of the corresponding variable of the redundant plug-in unit according to a preset rule and configuration information of the main plug-in unit-redundant plug-in unit;
Compiling the visual page, downloading the product to a controller, when the controller runs on line, the output of the functional block preferentially takes the variable value of the main plug-in, and if the quality of the main plug-in variable returns an error mark, switching to take the variable value from the redundant plug-in and outputting.
2. The data redundancy editing method of claim 1, wherein: the attribute of the redundant plug-in is read-only, and when a certain channel variable of the main plug-in fills in or modifies a KKS label value, a message is sent to the redundant plug-in, and the KKS of the channel variable at the same position is the KKS+ "_R' suffix of the main plug-in; if other attributes of the channel variable are modified, corresponding attribute values of the redundant plug-ins are synchronized to be consistent with the primary plug-ins.
3. The data redundancy editing method of claim 1, wherein: when the master plug-in is deleted, the matching redundant plug-ins are automatically deleted, and 1 controller supports creation of multiple pairs of master plug-in-redundant plug-ins.
4. The data redundancy editing method of claim 1, wherein: the hardware of the controller is managed according to the hierarchical structure of station-branch-plug-in, and the plug-in position is determined by setting station number, branch number and plug-in slot number.
5. The method for redundant editing of data of claim 4 wherein: the plug-in variables are numbered according to hardware channels from 1, and each channel variable uses a KKS tag as an ID;
when the plug-in is newly built on the right key of the branch node, if the main plug-in option is checked, the creation information of the redundant plug-in is displayed, wherein the creation information comprises the station number, the branch number and the plug-in number of the redundant plug-in.
6. The data redundancy editing method of claim 1, wherein: and the left edge of the functional block bounding box forms a cross index symbol of the main plug-in variable and the redundant plug-in variable, and when the cross index symbol is double-clicked, the process jumps to the associated plug-in configuration interface.
CN202110317447.1A 2021-03-25 2021-03-25 Data redundancy editing method Active CN113590171B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110317447.1A CN113590171B (en) 2021-03-25 2021-03-25 Data redundancy editing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110317447.1A CN113590171B (en) 2021-03-25 2021-03-25 Data redundancy editing method

Publications (2)

Publication Number Publication Date
CN113590171A CN113590171A (en) 2021-11-02
CN113590171B true CN113590171B (en) 2024-06-18

Family

ID=78238136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110317447.1A Active CN113590171B (en) 2021-03-25 2021-03-25 Data redundancy editing method

Country Status (1)

Country Link
CN (1) CN113590171B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095089A (en) * 2004-09-16 2007-12-26 因文西斯系统公司 Transparent relocation of an active redundant engine in supervisory process control data acquisition systems
CN106300300A (en) * 2016-10-11 2017-01-04 南京南瑞继保电气有限公司 A kind of redundancy communication method for DC control and protection system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040249919A1 (en) * 2003-06-04 2004-12-09 Dirk Mattheis System and method for remote systems management and reporting
CN110687893B (en) * 2019-10-18 2020-09-18 江苏核电有限公司 Redundant radiation monitoring upper-layer system
CN112055047B (en) * 2020-07-29 2021-07-13 西安交通大学 Data communication method based on publishing and subscribing for intelligent coal-fired power plant

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095089A (en) * 2004-09-16 2007-12-26 因文西斯系统公司 Transparent relocation of an active redundant engine in supervisory process control data acquisition systems
CN106300300A (en) * 2016-10-11 2017-01-04 南京南瑞继保电气有限公司 A kind of redundancy communication method for DC control and protection system

Also Published As

Publication number Publication date
CN113590171A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN106528129B (en) A kind of Web application interface generation system and method
US7480897B2 (en) Method and system for managing development objects for computer program code
CN105630902A (en) Method for rendering and incrementally updating webpages
JP2000148461A (en) Software model and existing source code synchronizing method and device
CN113094042B (en) Browser-based realization and analysis method for custom component of power automation system
CN112464119A (en) Web-end-based SCADA (supervisory control and data acquisition) online configuration editing method
CN109254771A (en) A kind of monitoring page generation method and device
CN103593414A (en) Showing method and device of webpages in browser
US20040117773A1 (en) Method for graphically visualizing an automatism application and computer terminal for carrying out said method
CN106126779A (en) It is applied to the configuration multiplexing method in SVG picture configuration
US8704852B2 (en) Methods for generating one or more composite image maps and systems thereof
CN110889013B (en) Data association method, device, server and storage medium based on XML
CN112230892A (en) Fault management method based on extensible markup language
CN116401407A (en) Node attribute configuration method, device, equipment and storage medium of mind map
CN113761304B (en) Big data intelligent display configuration method based on dynamic parameters
CN116245052A (en) Drawing migration method, device, equipment and storage medium
CN113590171B (en) Data redundancy editing method
CN111475602B (en) Multi-version knowledge graph storage method and device, storage medium and electronic equipment
CN113703755A (en) Code generation method and code generation device
CN109032616A (en) A kind of character library programming method, electronic equipment and storage medium
CN112559495A (en) System for supporting multi-system label mapping to realize unified label management
CN114895875B (en) Zero-code visual information system metadata production application method and system
CN108255486B (en) View conversion method and device for form design and electronic equipment
CN110618815A (en) Construction method of industrial system network topological graph
CN115186641A (en) Method for realizing online form function system based on webpage application

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