IC generation method of virtual controller, product, medium and equipment

By generating point table files and resetting IC operations during the compilation process of virtual controllers, the existing IC upgrade tools are solved, and more efficient IC file upgrades are achieved.

CN119493572APending Publication Date: 2025-02-21CHINA NUCLEAR CONTROL SYST ENG
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411720120.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

The existing virtual controller IC upgrade tools have problems such as cumbersome operation and low efficiency, especially in projects with large data volumes. Frequent project modifications lead to changes in variables in multiple control stations, and manual modification is large.

Method used

By adding point table generation operations during the compilation process, the point table file is obtained and loaded into the virtual controller of the lower computer. In the lower computer, the old IC file is reset based on the point table file, and after generation and modification, it is possible to reset the old IC file. IC files.

Benefits of technology

It achieves the flexibility and efficiency of IC file upgrades, reduces the workload of manual modification, simplifies the IC upgrade process, and is suitable for large-scale engineering modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119493572A_ABST
    Figure CN119493572A_ABST
Patent Text Reader

Abstract

The invention discloses an IC generation method of a virtual controller, a product, a medium and equipment, and relates to the technical field of nuclear power simulators, and the method comprises the steps: obtaining a modified project file; compiling the modified project file, and adding a point table generation operation in the compiling process to obtain a point table file; downloading the point table file into a virtual controller of a lower computer; in a virtual controller of the lower computer, performing IC reset operation on the old IC file based on the point table file to obtain a modified IC file; the old IC file is an IC file corresponding to a project file before modification; and storing the modified IC file. According to the IC generation method of the virtual controller, the product, the medium and the equipment, the flexibility and the efficiency of IC file upgrading can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of nuclear power simulators, and in particular to a method, product, medium and device for generating an IC of a virtual controller. Background Art

[0002] In the field of nuclear power simulators, operators need to be trained on simulators before nuclear power is put into operation. The simulators used for training will undergo repeated modification and debugging for up to 1-2 years, and will only meet the training conditions after confirmation. Training operators need to run multiple procedures when conducting different course training, and the initial state (IC for short) of the distributed control system (DCS) of each procedure is different. In order to facilitate training courses, the simulator will save the initial state of the system corresponding to different procedures as IC files, that is, working condition files.

[0003] A simulator can store up to 1,000 IC files, and there are nearly 100 IC files that need daily maintenance. During system debugging, the engineering files of the virtual controller will also undergo frequent updates for a year. After the update, the original IC files generally need to be upgraded through the IC upgrade tool. However, the original simulation controller IC upgrade tool is an offline tool. After comparing the modified parts of the new and old engineering files, a new IC file is generated through offline operation: during IC upgrade, the software needs to parse the engineering files in the host computer (virtual controller) and generate a variable list corresponding to the current engineering file; at the same time, the IC files saved in the simulation controller server will be parsed and the corresponding variable list will be generated; the two variable lists will be compared by variables, and the variable values ​​in the IC file will be directly assigned for the parts with the same variables, and the parts with different variables will be assigned manually. However, for projects with large data volumes, each version of the project modification often causes a considerable number of variables in multiple control stations to change, which results in a large workload of manual modification during IC upgrade. Moreover, during the debugging process, users often do not pay attention to which variables have changed in the project, but only care about whether the modified project can use the original IC file and whether the unchanged variables can still be restored to their original values. Therefore, the existing method of upgrading ICs through offline IC upgrade tools has the problems of cumbersome operation and low efficiency. Summary of the invention

[0004] The purpose of this application is to provide an IC generation method, product, medium and device for a virtual controller, which can effectively improve the flexibility and efficiency of IC file upgrades.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a method for generating an IC of a virtual controller, comprising:

[0007] Get the modified project file;

[0008] Compile the modified project file, and add a point table generation operation during the compilation process to obtain a point table file;

[0009] Download the point table file to the virtual controller of the lower computer;

[0010] In the virtual controller of the lower computer, an IC reset operation is performed on the old IC file based on the point table file to obtain a modified IC file; the old IC file is an IC file corresponding to the engineering file before modification;

[0011] Save the modified IC file.

[0012] Optionally, obtaining the modified engineering file of the virtual controller specifically includes:

[0013] When the engineering file of the virtual controller undergoes engineering modification, the modified engineering file of the virtual controller is obtained, and the modified engineering file is divided into engineering modifications that do not require IC upgrade and engineering modifications that require IC upgrade according to the impact of the engineering modification on the IC file.

[0014] Optionally, the engineering modifications that do not require IC upgrades include changes in configuration connections; the engineering modifications that require IC upgrades include adding, deleting, and modifying algorithm blocks, adding, deleting, and modifying IO points, adding, deleting, and modifying parameter variables, and adding, deleting, and modifying inter-station communication variables.

[0015] Optionally, before compiling the modified project file and adding a point table generation operation during the compilation process to obtain the point table file, the following steps are also included:

[0016] Before compiling the modified project file, open the project file of the algorithm block user library, compile the algorithm block itself in the modified project file, and obtain the compilation result of the algorithm block; the compilation result of the algorithm block includes the types and occupied spaces of all variables in the algorithm block.

[0017] Optionally, a set of variable write point table files is generated according to the compilation result of the algorithm block.

[0018] Optionally, in the virtual controller of the lower computer, resetting the IC file based on the point table file to obtain a modified IC file specifically includes:

[0019] In the virtual controller of the lower computer, the old IC file is compared with the point table file, the same variables in the two files are extracted, and the values ​​in the old IC file are assigned to the corresponding variables in the virtual controller of the lower computer according to the variable names.

[0020] Optionally, in the virtual controller of the lower computer, resetting the IC file based on the point table file to obtain a modified IC file further includes:

[0021] No value is assigned to deleted variable points; a default value of 0 is assigned to modified or newly added variable points.

[0022] In a second aspect, the present application provides a computer program product, including a computer program, which implements the IC generation method of the virtual controller when executed by a processor.

[0023] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the IC generation method of the virtual controller when executed by a processor.

[0024] In a fourth aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the IC generation method of the virtual controller.

[0025] According to the specific embodiments provided in this application, this application has the following technical effects:

[0026] The present application provides a method, product, medium and device for generating IC of a virtual controller, mainly related to a method for generating IC of a virtual controller that can be modified by adaptive engineering, by adding a point table generation operation during the compilation process, obtaining a point table file, and downloading the point table file to the virtual controller of the lower computer; in the virtual controller of the lower computer, the IC operation is reset on the old IC file based on the point table file to obtain a modified IC file (new IC file), and the old IC file can be upgraded without offline software, and such an IC file upgrade method is more convenient and flexible. Therefore, the method, product, medium and device for generating IC of a virtual controller of the present application can effectively improve the flexibility and efficiency of IC file upgrades. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 A flowchart of a method for generating an IC for a virtual controller provided in the present application;

[0029] Figure 2 This is a schematic diagram of the IC generation method of the virtual controller provided in this application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0032] The IC generation method of the virtual controller of the present application is realized by improving the original virtual controller IC generation method. The original solution is to compare offline files, while the present application changes the comparison and modification process from offline comparison to being performed in the lower-level virtual controller, and considers the situation that the intermediate variables of the algorithm block are difficult to obtain, and pre-compiles the algorithm block in advance, so that even if the algorithm block needs to be modified during the engineering modification process, the corresponding IC upgrade can be performed to obtain the upgraded IC file. The specific implementation process is as follows:

[0033] like Figure 1 and Figure 2 As shown, the IC generation method of the virtual controller disclosed in the present application includes:

[0034] Step 1: Get the modified project file.

[0035] When the engineering file of the virtual controller undergoes engineering modification, the modified engineering file of the virtual controller is obtained, and the engineering modification is first classified. According to the impact of the engineering modification on the IC file, the modified engineering file is divided into engineering modifications that do not require IC upgrades, such as changes in configuration connections, etc., and engineering modifications that require IC upgrades, such as adding, deleting, and modifying algorithm blocks, adding, deleting, and modifying IO points, adding, deleting, and modifying parameter variables, and adding, deleting, and modifying station-to-station communication variables, etc. This application only designs solutions for engineering modifications that affect IC files, and configuration modifications that do not affect ICs do not need to be processed.

[0036] Step 2: Compile the modified project file and add a point table generation operation during the compilation process to obtain a point table file.

[0037] Since various algorithm blocks are used directly in addition to variables when configuring the project file, the project modifications that require IC upgrades can be divided into those that require algorithm block compilation and those that can be compiled directly. For project files that require algorithm block compilation, when the project file is compiled, the algorithm block will be considered as a whole, and the internal variables of the algorithm block cannot be obtained. Therefore, in order to save the status of all variables in the project when saving the IC, the present application adds a compilation operation for the algorithm block. Specifically, before compiling the modified project file, open the project file of the algorithm block user library, compile the algorithm block itself in the modified project file, and obtain the compilation result of the algorithm block. The compilation result of the algorithm block includes the types of all variables in the algorithm block and the space occupied.

[0038] As a specific embodiment, the algorithm block compilation operation will be performed before the first compilation and downloading of a newly created project. If the algorithm block is added, deleted, or modified during the subsequent project modification process, the algorithm block needs to be recompiled. The algorithm block includes the firmware library algorithm block and the user library algorithm block. The firmware library algorithm block involves the underlying code implementation of the controller software. When updating, the software version needs to be iterated, which does not belong to the project modification. Therefore, the algorithm block compilation operation is only required when the user library algorithm block is modified, and the addition or deletion of the algorithm block does not require the compilation of the algorithm block.

[0039] Then the whole project file is compiled: the point table generation operation is added to the project compilation process, the variables used in the project are directly written into the point table file, and the algorithm block used in the project generates a set of variables according to the results of the previous algorithm block compilation and writes them into the point table file to obtain the algorithm block variable table. The point table file corresponds to the project file and is an important file for IC upgrade comparison after the project is modified.

[0040] In summary, when the application compiles the project, two parts of content will be generated, one part is the engineering configuration file related to logical calculations, and the other part is the variable point table file corresponding to the current project designed in the application. The variable point table file consists of a series of points corresponding to all input and output points, station-to-station communication points, intermediate variable points, parameter variable points and algorithm blocks of the current project. Since the application has converted each algorithm block into a set of variables, when executing the project compilation, the algorithm block can be directly converted into a set of variables. In this way, there is no unparsed algorithm block information in the variable point table generated by the compiled project, and all points of the project are stored in the variable point table file in the form of variable names.

[0041] Step 3: Download the point table file to the virtual controller of the lower computer.

[0042] The host computer uses the configuration tool to perform download operations, downloading the latest variable point table and engineering configuration file to the virtual controller of the lower computer, that is, downloading the point table file to the virtual controller of the lower computer, and downloading the modified engineering file to the virtual controller at the same time. The engineering configuration file is downloaded to the data storage area of ​​the virtual controller, and the variable point table is saved independently for subsequent save IC and reset IC operations.

[0043] Step 4: In the virtual controller of the lower computer, perform an IC reset operation on the old IC file based on the point table file to obtain a modified IC file; the old IC file is the IC file corresponding to the engineering file before modification.

[0044] The latest project file, i.e. the modified project file, is currently running in the virtual controller software of the lower computer. At this time, the reset IC operation is executed in the virtual controller of the lower computer, and the IC file corresponding to the project file before the modification, i.e. the old IC file, is reset. The old IC file will be compared with the point table file just downloaded, and the same variables in the two files will be extracted. The values ​​in the IC file will be assigned to the corresponding variables in the lower computer controller according to the variable name. In addition, the deleted variable points will not be assigned, and the modified or newly added variable points will be assigned the default value of 0.

[0045] Specifically, the steps for resetting the IC can be further subdivided as follows:

[0046] 1) The lower computer obtains the old IC file in the default path of the IC file and compares it with the variable point table corresponding to the current project.

[0047] 2) After comparison, the same variables are identified and the corresponding values ​​of these variables are extracted from the old IC file.

[0048] 3) Find the corresponding storage location in the virtual controller server data storage according to the variable name and assign the value. Assign the value to the value stored in the old IC. Assign the default value to the variables in the virtual controller data storage area that are different from those in the IC file.

[0049] At this point, the operation of resetting the old IC in the virtual controller that has downloaded and run the new project is completed, and the values ​​of the same variables in the old IC are retained.

[0050] Step 5: Save the modified IC file.

[0051] The virtual controller lower computer generates a new IC file according to the current project variable point table, takes values ​​from the data storage area according to the variables, and splices them into a new IC file. The newly generated IC file completely matches the new project. The IC file is re-saved with the modified variable correspondence. The re-saved IC file corresponds to the modified project and can be directly used for subsequent system debugging. At this point, the rapid upgrade process of IC is completed. This application method is suitable for situations where the amount of engineering modification is large, and old IC files can be quickly upgraded in batches.

[0052] At this time, the virtual controller realizes the adaptation of IC files to project modifications by performing the compilation and downloading operations that need to be performed when modifying the project, combined with the conventional simulator teaching and control commands of "Reset IC" and "Save IC". This IC generation method can be applied to large-scale project modifications and can meet the use scenarios of most IC upgrades. It is simple to operate, highly automated, and does not require additional IC offline modification tools. It is a good improvement to the original IC generation method and IC upgrade method.

[0053] In summary, the new IC generation method provided by the present application, by splitting the compilation process and adding IC upgrades to optimize the IC generation method of the virtual controller, no longer needs to manually assign values ​​to the changed variables during the IC upgrade process. The new virtual controller IC generation method can adapt to the modification of the project, ensuring that the original IC file is still available during the frequent engineering configuration modification work, so as to solve the problem of cumbersome and inefficient original IC upgrade operation, improve the flexibility and efficiency of the design, greatly reduce the debugging work of adjusting the system state to a specific working condition, shorten the debugging period, reduce duplication of work, reduce the debugging cost of the simulator, and reduce human errors.

[0054] In some embodiments, the present application also provides a computer program product, including a computer program, which implements the IC generation method of the virtual controller when executed by a processor.

[0055] In some embodiments, the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the IC generation method of the virtual controller is implemented.

[0056] In some embodiments, the present application also provides a computer device, including a processor, a memory, an input / output interface (I / O for short), a communication interface, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the IC generation method of the virtual controller.

[0057] Wherein, the processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the IC generation method of the virtual controller is implemented.

[0058] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.

[0059] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ReadOnlyMemory, ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0060] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0061] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for generating an IC of a virtual controller, characterized in that: include: Get the modified project file; Compile the modified project file, and add a point table generation operation during the compilation process to obtain a point table file; Download the point table file to the virtual controller of the lower computer; In the virtual controller of the lower computer, an IC reset operation is performed on the old IC file based on the point table file to obtain a modified IC file; the old IC file is an IC file corresponding to the engineering file before modification; Save the modified IC file.

2. The IC generation method of a virtual controller according to claim 1, characterized in that: The obtaining of the modified engineering file of the virtual controller specifically includes: When the engineering file of the virtual controller undergoes engineering modification, the modified engineering file of the virtual controller is obtained, and the modified engineering file is divided into engineering modifications that do not require IC upgrade and engineering modifications that require IC upgrade according to the impact of the engineering modification on the IC file.

3. The IC generation method of a virtual controller according to claim 2, characterized in that: The engineering modifications that do not require IC upgrades include changes in configuration connections; the engineering modifications that require IC upgrades include adding, deleting, and modifying algorithm blocks, adding, deleting, and modifying IO points, adding, deleting, and modifying parameter variables, and adding, deleting, and modifying inter-station communication variables.

4. The IC generation method of a virtual controller according to claim 1, characterized in that: Before compiling the modified project file and adding the point table generation operation in the compilation process to obtain the point table file, the following steps are also included: Before compiling the modified project file, open the project file of the algorithm block user library, compile the algorithm block itself in the modified project file, and obtain the compilation result of the algorithm block; the compilation result of the algorithm block includes the types and occupied spaces of all variables in the algorithm block.

5. The IC generation method of a virtual controller according to claim 4, characterized in that: A set of variables is generated based on the compilation results of the algorithm block and written into the point table file.

6. The IC generation method of a virtual controller according to claim 1, characterized in that: In the virtual controller of the lower computer, the IC operation is reset on the old IC file based on the point table file to obtain the modified IC file, which specifically includes: In the virtual controller of the lower computer, the old IC file is compared with the point table file, the same variables in the two files are extracted, and the values ​​in the old IC file are assigned to the corresponding variables in the virtual controller of the lower computer according to the variable names.

7. The IC generation method of a virtual controller according to claim 6, characterized in that: The method further comprises: resetting the IC file based on the point table file in the virtual controller of the lower computer to obtain a modified IC file; No value is assigned to deleted variable points; a default value of 0 is assigned to modified or newly added variable points.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the IC generation method of the virtual controller according to any one of claims 1 to 7 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the IC generation method of the virtual controller according to any one of claims 1 to 7 is implemented.

10. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the IC generation method for a virtual controller according to any one of claims 1 to 7.

Citation Information

Cited By

  • Distribution automation terminal optimal configuration method

    CN120447953A

  • A method for optimizing the configuration of distribution automation terminals

    CN120447953B