An industrial equipment debugging method and system developed based on a loongson integrated environment

By acquiring and comparing real-time simulation models of industrial equipment, modifying the debugging process logic, and using a simulator to simulate the debugging results, the problem of low debugging efficiency in existing technologies is solved, and efficient equipment update and debugging is achieved.

CN118519838BActive Publication Date: 2025-10-24SHENZHEN HUALONG XUNDA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410590934.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2025-10-24
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

Existing industrial equipment debugging methods are inefficient and cannot adapt to changes in production and daily life needs, resulting in the need to frequently rewrite debugging procedures.

Method used

By acquiring original and updated real-time simulation models of industrial equipment, the updated functional structure and its structural information are determined, the initial debugging process logic is modified, the target and initial debugging process logic are executed using the simulator, and the simulation results are compared for debugging.

Benefits of technology

It improves the efficiency of industrial equipment commissioning, reduces the frequency of rewriting commissioning procedures, and ensures the normal operation of updated equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519838B_ABST
    Figure CN118519838B_ABST
Patent Text Reader

Abstract

The application provides an industrial equipment debugging method and system developed based on a Loongson integrated environment, relates to the technical field of equipment debugging, and is used for improving the debugging efficiency of industrial equipment. The method comprises the following steps: determining an updated function structure according to a real-time simulation model of an original industrial equipment and a real-time simulation model of an updated industrial equipment, and determining structure information of the updated function structure; modifying an initial debugging flow logic of the original industrial equipment through the structure information of the updated function structure, so as to obtain a target debugging flow logic; controlling the real-time simulation model of the updated industrial equipment to execute the target debugging flow logic in a first simulation machine, so as to obtain an updated simulation result; controlling the real-time simulation model of the original industrial equipment to execute the initial debugging flow logic in a second simulation machine, so as to obtain an original simulation result; and debugging the updated industrial equipment by comparing the updated simulation result with the original simulation result.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application relates to the technical field of device debugging, in particular to an industrial device debugging method and system developed based on a Loongson integrated environment. BACKGROUND

[0002] An IDE (Integrated Development Environment) is an application program for providing a program development environment, generally including a code editor, a compiler, a debugger and a graphical user interface and the like, and is widely applied to the industrial control field. By loading a program written by a user into a memory and executing the program according to a task cycle configured by the user, logic control, analog control and motion control of an industrial device are completed.

[0003] At present, in the process of debugging an industrial device, since the industrial device contains a complex instrument structure and corresponding application functions, a debugging process of the industrial device is written after the industrial device is developed, but as the production and life demands are continuously improved, the industrial device needs to be adjusted or updated accordingly, and the previously written debugging process of the industrial device will not be applicable to the new industrial device, and the debugging process of the industrial device needs to be rewritten, so that the efficiency of the existing industrial device debugging method is low. SUMMARY

[0004] The application provides an industrial device debugging method and system developed based on a Loongson integrated environment, which is used to improve the debugging efficiency of the industrial device.

[0005] The application provides an industrial device debugging method developed based on a Loongson integrated environment, which is developed and run in the Loongson integrated environment, and the method comprises the following steps:

[0006] obtaining an original real-time simulation model of an industrial device and an updated real-time simulation model of the industrial device;

[0007] determining an updated function structure and structure information of the updated function structure according to the original real-time simulation model of the industrial device and the updated real-time simulation model of the industrial device;

[0008] modifying an initial debugging process logic of the original industrial device according to the structure information of the updated function structure, to obtain a target debugging process logic;

[0009] controlling the updated real-time simulation model of the industrial device to execute the target debugging process logic in a first simulation machine, to obtain an updated simulation result;

[0010] controlling the original industrial equipment real-time simulation model to execute the initial debugging flow logic to obtain an original simulation result;

[0011] debugging the updated industrial equipment by comparing the updated simulation result with the original simulation result.

[0012] In an optional embodiment provided by the present application, the determining of the updated function structure and the structure information of the updated function structure according to the original industrial equipment real-time simulation model and the updated industrial equipment real-time simulation model comprises:

[0013] comparing each function structure in the original industrial equipment real-time simulation model with each function structure in the updated industrial equipment real-time simulation model;

[0014] determining the function structure added, modified and / or deleted in the updated industrial equipment real-time simulation model relative to the original industrial equipment real-time simulation model as the updated function structure.

[0015] In an optional embodiment provided by the present application, the modifying of the initial debugging flow logic of the original industrial equipment by the structure information of the updated function structure to obtain the target debugging flow logic comprises:

[0016] obtaining the upper function structure identifier, the lower function structure identifier and the function description information of the updated function structure based on the updated industrial equipment real-time simulation model;

[0017] obtaining the target function program and the target structure identifier corresponding to the function description information from a preset debugging flow library;

[0018] modifying the initial debugging flow logic of the original industrial equipment based on the target function program, the upper function structure identifier and the lower function structure identifier to obtain the target debugging flow logic.

[0019] In an optional embodiment provided by the present application, the modifying of the initial debugging flow logic of the original industrial equipment based on the target function program, the upper function structure identifier and the lower function structure identifier to obtain the target debugging flow logic comprises:

[0020] obtaining a first function program corresponding to the upper function structure identifier and a second function program corresponding to the lower function structure identifier in the initial debugging flow logic of the original industrial equipment;

[0021] The lower function structure identifier in the first function program is modified as the target structure identifier, the upper function structure identifier in the second function program is modified as the target structure identifier, and the target function program is inserted into the initial debugging flow logic to obtain target debugging flow logic.

[0022] In an optional embodiment provided by the present application, the debugging of the updated industrial equipment by comparing the updated simulation result and the original simulation result comprises:

[0023] Obtaining simulation results belonging to the same function structure in the updated simulation result and the original simulation result;

[0024] Determining whether the simulation results belonging to the same function structure are the same;

[0025] If the simulation results belonging to the same function structure are the same, it is determined that the function structure belonging to the same function structure in the updated industrial equipment is correct.

[0026] In an optional embodiment provided by the present application, the obtaining of the simulation results belonging to the same function structure in the updated simulation result and the original simulation result comprises:

[0027] Obtaining simulation result matrices corresponding to the updated simulation result and the original simulation result respectively;

[0028] Determining that the first column elements of the two simulation result matrices are the same as belonging to the same function structure;

[0029] The simulation result matrix of the updated simulation result

[0030] The simulation result matrix of the original simulation result

[0031] Wherein, x1 to xn are function structure identifiers in the updated simulation result, x1 to xq are function structure identifiers in the original simulation result, a nm is the mth simulation result of the nth function structure in the updated simulation result; b qm is the mth simulation result of the qth function structure in the original simulation result.

[0032] In an optional embodiment provided by the present application, the method further comprises:

[0033] Determining the function structure without corresponding same simulation result in the real-time simulation model of the updated industrial equipment as the target function structure;

[0034] determine whether the target function structure is an updated function structure based on the updated real-time simulation model of the industrial equipment;

[0035] if the target function structure is an updated function structure, obtain a function structure associated with the target function structure after the target function structure, and determine whether the target function structure in the updated industrial equipment has a problem according to a simulation result of the associated function structure;

[0036] if the target function structure is not an updated function structure, determine whether the target function structure has a problem by whether the simulation result of the target function structure is the same as a first expected simulation result.

[0037] In an optional embodiment provided by the present application, the determining whether the target function structure in the updated industrial equipment has a problem according to the simulation result of the associated function structure comprises:

[0038] obtaining a final simulation result in the updated simulation result, and determining whether the final simulation result meets a final expected simulation result;

[0039] if the final simulation result meets the final expected simulation result, it is determined that the target function structure in the updated industrial equipment does not have a problem;

[0040] if the final simulation result does not meet the final expected simulation result, it is determined whether the target function structure in the updated industrial equipment has a problem according to the simulation result of the associated function structure.

[0041] In an optional embodiment provided by the present application, the determining whether the target function structure in the updated industrial equipment has a problem according to the simulation result of the associated function structure comprises:

[0042] whether the associated function structure corresponding to the simulation result of the target function structure has a problem;

[0043] if the associated function structure does not have a problem, it is determined that the target function structure in the updated industrial equipment has a problem.

[0044] An embodiment of the present application provides an industrial equipment debugging system developed based on a Loongson integrated environment, and the system comprises:

[0045] an obtaining module, configured to obtain a real-time simulation model of an original industrial equipment and a real-time simulation model of an updated industrial equipment;

[0046] a determining module, configured to determine an updated function structure and structure information of the updated function structure according to the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment;

[0047] a modification module configured to modify initial commissioning flow logic of the original industrial equipment by structure information of the updated functional structure, to obtain target commissioning flow logic;

[0048] a simulation module configured to control a real-time simulation model of the updated industrial equipment to execute the target commissioning flow logic in a first simulation machine, to obtain updated simulation results;

[0049] the simulation module is configured to control a real-time simulation model of the original industrial equipment to execute the initial commissioning flow logic in a second simulation machine, to obtain original simulation results;

[0050] a commissioning module configured to commission the updated industrial equipment by comparing the updated simulation results and the original simulation results.

[0051] The present application provides an industrial equipment commissioning method and system developed based on a Loongson integrated environment, which obtains a real-time simulation model of an original industrial equipment and a real-time simulation model of an updated industrial equipment, determines an updated functional structure according to the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment, determines structure information of the updated functional structure, modifies initial commissioning flow logic of the original industrial equipment by the structure information of the updated functional structure, obtains target commissioning flow logic, controls the real-time simulation model of the updated industrial equipment to execute the target commissioning flow logic in a first simulation machine, obtains updated simulation results, controls the real-time simulation model of the original industrial equipment to execute the initial commissioning flow logic in a second simulation machine, obtains original simulation results, and finally commissions the updated industrial equipment by comparing the updated simulation results and the original simulation results. Compared with the prior art that requires recompilation of the commissioning flow after updating of the industrial equipment, the present application modifies the initial commissioning flow logic of the original industrial equipment by the structure information of the updated functional structure to obtain the target commissioning flow logic, then simulates the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment respectively to obtain simulation results, and finally commissions the updated industrial equipment by comparing the simulation results. BRIEF DESCRIPTION OF DRAWINGS

[0052] Figure 1 A flowchart of an industrial equipment commissioning method developed based on a Loongson integrated environment is provided in the present application;

[0053] Figure 2 A functional structure diagram contained in an updated industrial equipment is provided in the present application;

[0054] Figure 3 A flowchart of an industrial equipment commissioning method developed based on a Loongson integrated environment is provided in the present application;

[0055] Figure 4A structural schematic diagram of an industrial equipment debugging system developed based on a Loongson integrated environment is provided for the present application. DETAILED DESCRIPTION

[0056] In order to better understand the above technical solutions, the technical solutions of the embodiments of the present application will be described in detail below through the accompanying drawings and specific embodiments. It should be understood that the specific features in the embodiments of the present application and the embodiments are detailed descriptions of the technical solutions of the embodiments of the present application, and are not limitations of the technical solutions of the present application. In the case of no conflict, the technical features in the embodiments of the present application and the embodiments can be combined with each other.

[0057] Please refer to Figure 1 A method for developing an industrial equipment debugging system based on a Loongson integrated environment is provided for the embodiments of the present application. The method is developed and run in a Loongson integrated environment IDE. The Loongson is a high-performance micro processing chip. The execution steps of the method are as follows:

[0058] S101, obtaining a real-time simulation model of an original industrial equipment and a real-time simulation model of an updated industrial equipment.

[0059] Among them, the original industrial equipment is an industrial equipment that has been debugged and has no running problems, and the updated industrial equipment is an updated equipment based on the original industrial equipment.

[0060] S102, determining an updated functional structure and structure information of the updated functional structure according to the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment.

[0061] Among them, the functional structure is a certain functional instrument structure contained in the industrial equipment, such as a transportation structure, a packaging structure, etc. for processing products; the structure information of the functional structure is used to describe the specific functional description information, hardware description information, running conditions, etc. of the instrument structure, such as the length and width of the conveyor belt, which is not limited in the present embodiment. It should be noted that the updated functional structure in the present embodiment can be a modified functional structure of a certain functional structure in the original industrial equipment, or an added or deleted functional structure.

[0062] In an optional embodiment provided in the present application, the determining of the updated function structure and the structure information of the updated function structure according to the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment comprises: comparing each function structure in the real-time simulation model of the original industrial equipment with each function structure in the real-time simulation model of the updated industrial equipment; and determining the function structure that is added, modified and / or deleted in the real-time simulation model of the updated industrial equipment relative to the real-time simulation model of the original industrial equipment as the updated function structure. For example, a cutting structure is added and a transportation structure is modified in the original industrial equipment, and then the updated function structure is the cutting structure and the transportation structure.

[0063] In the embodiment, the real-time simulation model of the original industrial equipment is a model that has been verified for multiple times and has no debugging problem, and thus the updated function structure can be determined by comparing each function structure in the real-time simulation model of the original industrial equipment with each function structure in the real-time simulation model of the updated industrial equipment.

[0064] S103, modifying the initial debugging flow logic of the original industrial equipment according to the structure information of the updated function structure to obtain a target debugging flow logic.

[0065] In the embodiment, the initial debugging flow logic is a control flow logic for controlling the normal operation of the original industrial equipment. Since the original industrial equipment has been updated and iterated to determine the updated function structure, the initial debugging flow logic needs to be modified to obtain a target debugging flow logic for controlling the updated industrial equipment through the target debugging flow logic.

[0066] In an optional embodiment provided in the present application, the modifying of the initial debugging flow logic of the original industrial equipment according to the structure information of the updated function structure to obtain a target debugging flow logic comprises:

[0067] S1031, obtaining the upper function structure identifier, the lower function structure identifier and the function description information of the updated function structure based on the real-time simulation model of the updated industrial equipment.

[0068] The function description information is the function purpose and specific control flow of the function structure.

[0069] For example, Figure 2The updated functional structure contained in the industrial equipment is shown in FIG. 1, wherein the functional structure 1, the functional structure 2 and the functional structure 3 are the functional structures contained in the original industrial equipment and are not modified, and the functional structure 4 is the updated functional structure. As the original industrial equipment is an automatic product packaging equipment, the functional structure 1 is a transportation structure, i.e., transporting products to the functional structure 2, the functional structure 2 groups the products transported thereto according to a fixed number, and then transmits to the functional structure 3, and the functional structure 3 performs plastic packaging on the products in the fixed number. After updating the original industrial equipment, the function of the functional structure 4 is to seal the products transported thereto with a cover. By Figure 2 As can be seen from the connection structure in FIG. 1, the upper layer functional structure identifier of the updated functional structure 4 is 1, and the lower layer functional structure identifiers are 2 and 3.

[0070] S1032, obtaining a target function program corresponding to the function description information and a target structure identifier from a preset debugging flow library.

[0071] In the preset debugging flow library, a plurality of function programs corresponding to function description information are stored, and the target function program corresponding to the function description information and the target structure identifier can be obtained from the preset debugging flow library. The target structure identifier is the newly added functional structure 4.

[0072] S1033, modifying an initial debugging flow logic of the original industrial equipment based on the target function program, the upper layer functional structure identifier and the lower layer functional structure identifier to obtain a target debugging flow logic.

[0073] Specifically, the modification of the initial debugging flow logic of the original industrial equipment based on the target function program, the upper layer functional structure identifier and the lower layer functional structure identifier to obtain the target debugging flow logic comprises: obtaining a first function program corresponding to the upper layer functional structure identifier and a second function program corresponding to the lower layer functional structure identifier in the initial debugging flow logic of the original industrial equipment; modifying the lower layer functional structure identifier in the first function program to the target structure identifier, modifying the upper layer functional structure identifier in the second function program to the target structure identifier, and inserting the target function program into the initial debugging flow logic to obtain the target debugging flow logic.

[0074] S104, controlling the real-time simulation model of the updated industrial equipment to execute the target debugging flow logic in the first simulation machine to obtain an updated simulation result.

[0075] S105, controlling the real-time simulation model of the original industrial equipment to execute the initial debugging flow logic in the second simulation machine to obtain an original simulation result.

[0076] In this embodiment, the first and second simulation machines are two simulation machines that execute together under the same conditions. The real-time simulation model of the original industrial equipment executes the initial debugging process logic to obtain the original simulation results. Because the original industrial equipment has been verified multiple times, the original simulation results obtained under the same execution conditions can be used as a reference for the updated simulation results. Therefore, in this embodiment, the two simulation machines jointly execute the two real-time simulation models to obtain the updated simulation results and the original simulation results, so that the updated industrial equipment can be debugged by comparing the original simulation results with the updated simulation results.

[0077] S106: Debugging the updated industrial equipment by comparing the updated simulation result with the original simulation result.

[0078] like Figure 3 As shown in FIG. , a flowchart of industrial equipment debugging provided by the present application is provided, wherein debugging the updated industrial equipment by comparing the updated simulation result with the original simulation result includes:

[0079] S1061: Acquire simulation results belonging to the same functional structure in the updated simulation results and the original simulation results.

[0080] It should be noted that the industrial equipment in this embodiment includes multiple functional structures, each functional structure corresponds to a simulation result, and ultimately a total simulation result is obtained through the industrial equipment. The simulation results of the functional structure corresponding to the same functional structure identifier in the two simulation results of the same functional structure. Figure 2 The updated industrial equipment and the original industrial equipment have the same functional structure: functional structure 1, functional structure 2 and functional structure 3.

[0081] Specifically, obtaining simulation results belonging to the same functional structure in the updated simulation results and the original simulation results includes: obtaining simulation result matrices corresponding to the updated simulation results and the original simulation results; determining that the two simulation result matrices have the same elements in the first column as belonging to the same functional structure;

[0082] The simulation result matrix of the updated simulation result

[0083] The simulation result matrix of the original simulation result

[0084] Among them, x1 to xn are the functional structure identifiers in the updated simulation results, x1 to xq are the functional structure identifiers in the original simulation results, and a nmto update the mth simulation result of the nth function structure in the simulation result; b qm to update the mth simulation result of the qth function structure in the original simulation result. The numbers of n and q can be the same or different, and the specific needs are determined according to whether there is an increase or deletion operation on the function structure in the original industrial equipment.

[0085] It should be noted that each function structure in the embodiment includes 1-m simulation results. After obtaining the simulation matrix of two simulation results, it is determined whether the simulation results belonging to the same function structure are the same by comparing the simulation results belonging to the same function structure.

[0086] S1062, determining whether the simulation results belonging to the same function structure are the same.

[0087] Specifically, the embodiment can determine whether the simulation results of the same function structure are the same by comparing two simulation results belonging to the same function structure. For example, for two simulation results belonging to the same function structure x1 in a 11 ,a 12 ,…,a 1m and b 11 ,b 12 ,…,b 1m , it is determined whether the two simulation results are the same. Specifically, it can be determined by the formula |a 11 -b 11 |+|a 12 -b 12 |…+…|a 1m -b 1m |<α, where α is a preset constant value.

[0088] S1063, if the simulation results belonging to the same function structure are the same, it is determined that there is no problem in the updated industrial equipment belonging to the same function structure.

[0089] S1064, determining the function structure without corresponding simulation results in the real-time simulation model of the updated industrial equipment as a target function structure.

[0090] For example, Figure 2 the function structure 1 and the function structure 3 in the same function structure are the same, and the function structure 4 and the function structure 2 are determined as the target function structure.

[0091] S1065, determining whether the target function structure is an updated function structure based on the real-time simulation model of the updated industrial equipment.

[0092] As in Figure 2In the embodiment, the function structure 2 is the original function structure, and the function structure 4 is the updated function structure.

[0093] In S1066, if the target function structure is the updated function structure, the function structure associated with the target function structure after the target function structure is acquired, and whether the target function structure in the updated industrial equipment has a problem is determined according to the simulation result of the associated function structure.

[0094] Specifically, the determination of whether the target function structure in the updated industrial equipment has a problem according to the simulation result of the associated function structure includes: acquiring a final simulation result in the updated simulation result, and determining whether the final simulation result meets a final expected simulation result; if the final simulation result meets the final expected simulation result, it is determined that the target function structure in the updated industrial equipment has no problem; and if the final simulation result does not meet the final expected simulation result, whether the target function structure in the updated industrial equipment has a problem is further analyzed according to the simulation result of the associated function structure.

[0095] For example, for the function structure 4, the simulation result of the function structure 4 is compared with the first expected simulation result to determine whether the function structure 4 has a problem. Figure 2 If the final simulation result meets the final expected simulation result, it indicates that the newly added function structure 4 has no problem, the simulation structure of the function structure 2 is different from that of the original function structure 2, and the function structure 2 is inevitably affected by the output result of the previous function structure 4, but does not affect the final simulation structure, so it can be determined that the function structure 2 has no problem; if the final simulation result does not meet the final expected simulation result, whether the target function structure in the updated industrial equipment has a problem needs to be further analyzed according to the simulation result of the associated function structure.

[0096] The determination of whether the target function structure in the updated industrial equipment has a problem according to the simulation result of the associated function structure includes: determining whether the associated function structure corresponding to the simulation result of the associated function structure has a problem; and if the associated function structure has no problem, it is determined that the target function structure in the updated industrial equipment has a problem.

[0097] In S1067, if the target function structure is not the updated function structure, whether the target function structure has a problem is determined by whether the simulation result of the target function structure is the same as the first expected simulation result.

[0098] The embodiment of the application provides an industrial equipment debugging method developed based on a Loongson integrated environment, acquires an original real-time simulation model of an industrial equipment and an updated real-time simulation model of the industrial equipment; determines an updated function structure according to the original real-time simulation model of the industrial equipment and the updated real-time simulation model of the industrial equipment, and determines structure information of the updated function structure; modifies initial debugging flow logic of the original industrial equipment through the structure information of the updated function structure, to obtain target debugging flow logic; controls the updated real-time simulation model of the industrial equipment to execute the target debugging flow logic in a first simulation machine, to obtain an updated simulation result; controls the original real-time simulation model of the industrial equipment to execute the initial debugging flow logic in a second simulation machine, to obtain an original simulation result, and finally debugs the updated industrial equipment by comparing the updated simulation result with the original simulation result. Compared with the prior art that requires recompilation of a debugging flow after updating of an industrial equipment, the embodiment of the application modifies the initial debugging flow logic of the original industrial equipment through the structure information of the updated function structure to obtain the target debugging flow logic, then simulates the original real-time simulation model of the industrial equipment and the updated real-time simulation model of the industrial equipment respectively to obtain simulation results, and finally realizes the debugging of the updated industrial equipment by comparing the simulation results.

[0099] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the application.

[0100] In an embodiment, an industrial equipment debugging device developed based on a Loongson integrated environment is provided, which corresponds to the industrial equipment debugging method developed based on the Loongson integrated environment in the above embodiment. As shown in the figure, the functions of each functional module of the industrial equipment debugging device developed based on the Loongson integrated environment are described as follows: Figure 4

[0101] The acquisition module 41 is configured to acquire an original real-time simulation model of an industrial equipment and an updated real-time simulation model of the industrial equipment.

[0102] The determination module 42 is configured to determine an updated function structure and structure information of the updated function structure according to the original real-time simulation model of the industrial equipment and the updated real-time simulation model of the industrial equipment.

[0103] The modification module 43 is configured to modify initial debugging flow logic of the original industrial equipment through the structure information of the updated function structure, to obtain target debugging flow logic.

[0104] ​The simulation module 44 is configured to control the real-time simulation model of the updated industrial equipment to execute the target debugging flow logic in the first simulation machine, to obtain an updated simulation result.

[0105] The simulation module 44 is configured to control the real-time simulation model of the original industrial equipment to execute the initial debugging flow logic in the second simulation machine, to obtain an original simulation result.

[0106] The debugging module 45 is configured to debug the updated industrial equipment by comparing the updated simulation result and the original simulation result.

[0107] In an optional embodiment provided by the present application, the determination module 42 is specifically configured to:

[0108] Compare each functional structure in the real-time simulation model of the original industrial equipment with each functional structure in the real-time simulation model of the updated industrial equipment.

[0109] Determine the functional structure that is added, modified and / or deleted in the real-time simulation model of the updated industrial equipment relative to the real-time simulation model of the original industrial equipment as an updated functional structure.

[0110] In an optional embodiment provided by the present application, the modification module 43 is specifically configured to:

[0111] Obtain the upper functional structure identifier, the lower functional structure identifier and the function description information of the updated functional structure based on the real-time simulation model of the updated industrial equipment.

[0112] Obtain the target function program and the target structure identifier corresponding to the function description information from a preset debugging flow library.

[0113] Modify the initial debugging flow logic of the original industrial equipment based on the target function program, the upper functional structure identifier and the lower functional structure identifier, to obtain the target debugging flow logic.

[0114] In an optional embodiment provided by the present application, the modification module 43 is specifically configured to:

[0115] Obtain a first function program corresponding to the upper functional structure identifier and a second function program corresponding to the lower functional structure identifier in the initial debugging flow logic of the original industrial equipment.

[0116] Modify the lower functional structure identifier in the first function program to the target structure identifier, modify the upper functional structure identifier in the second function program to the target structure identifier, and insert the target function program into the initial debugging flow logic to obtain the target debugging flow logic.

[0117] In an optional embodiment provided by the present application, the debugging module 45 is specifically used for:

[0118] obtaining simulation results belonging to the same functional structure from the updated simulation result and the original simulation result;

[0119] determining whether the simulation results belonging to the same functional structure are the same;

[0120] if the simulation results belonging to the same functional structure are the same, it is determined that there is no problem in the updated industrial equipment belonging to the same functional structure.

[0121] In an optional embodiment provided by the present application, the debugging module 45 is specifically used for:

[0122] obtaining simulation result matrices corresponding to the updated simulation result and the original simulation result respectively;

[0123] determining that the first column elements of the two simulation result matrices are the same as belonging to the same functional structure;

[0124] the simulation result matrix of the updated simulation result

[0125] the simulation result matrix of the original simulation result

[0126] wherein x1 to xn are functional structure identifiers in the updated simulation result, x1 to xq are functional structure identifiers in the original simulation result, a nm is the mth simulation result of the nth functional structure in the updated simulation result; b qm is the mth simulation result of the qth functional structure in the original simulation result.

[0127] In an optional embodiment provided by the present application, the determining module 42 is further used for:

[0128] determining a functional structure without corresponding simulation results in the real-time simulation model of the updated industrial equipment as a target functional structure;

[0129] determining whether the target functional structure is an updated functional structure based on the real-time simulation model of the updated industrial equipment;

[0130] if the target functional structure is an updated functional structure, obtaining functional structures associated with the target functional structure after the target functional structure, and determining whether there is a problem in the target functional structure in the updated industrial equipment according to simulation results of the associated functional structures.

[0131] If the target function structure is not the updated function structure, whether the target function structure has a problem is determined by whether the simulation result of the target function structure is same as the first expected simulation result.

[0132] In an optional embodiment provided by the present application, the determining module 42 is specifically configured to:

[0133] obtain a final simulation result in the updated simulation result, and determine whether the final simulation result meets a final expected simulation result;

[0134] If the final expected simulation result is met, it is determined that the target function structure in the updated industrial equipment has no problem;

[0135] If the final expected simulation result is not met, whether the target function structure in the updated industrial equipment has a problem is determined according to the simulation results of the associated function structures.

[0136] In an optional embodiment provided by the present application, the determining module 42 is specifically configured to:

[0137] whether the associated function structures have problems according to the simulation results respectively corresponding to the associated function structures;

[0138] If the associated function structures all have no problem, it is determined that the target function structure in the updated industrial equipment has a problem.

[0139] The specific limitations of the industrial equipment debugging device developed based on the Loongson integrated environment can refer to the limitations of the industrial equipment debugging method developed based on the Loongson integrated environment described above, and will not be repeated here. Each module in the above device can be realized by software, hardware and their combinations in whole or in part. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.

[0140] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional units and modules is exemplified, and in actual application, the above functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above.

[0141] The above examples are only used to illustrate the technical solutions of the present application, but not limit the present application; although the present application has been described in detail with reference to the foregoing examples, those ordinarily skilled in the art should understand: the technical solutions recorded in the foregoing examples can still be modified, or some technical features can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A debugging method for industrial equipment developed based on a Loongson integrated environment, characterized in that, The method is developed and run in a Loongson integrated environment, and the method comprises: obtaining an original real-time simulation model of an industrial device and an updated real-time simulation model of the industrial device; determining an updated functional structure and structure information of the updated functional structure according to the original real-time simulation model of the industrial device and the updated real-time simulation model of the industrial device; modifying an initial debugging flow logic of the original industrial device through the structure information of the updated functional structure to obtain a target debugging flow logic; controlling the updated real-time simulation model of the industrial device to execute the target debugging flow logic in a first simulation machine to obtain an updated simulation result; controlling the original real-time simulation model of the industrial device to execute the initial debugging flow logic in a second simulation machine to obtain an original simulation result; debugging the updated industrial device by comparing the updated simulation result with the original simulation result.

2. The method of claim 1, wherein, The method of determining an updated functional structure and structure information of the updated functional structure according to the original real-time simulation model of the industrial device and the updated real-time simulation model of the industrial device comprises: comparing each functional structure in the original real-time simulation model of the industrial device with each functional structure in the updated real-time simulation model of the industrial device; determining, as the updated functional structure, a functional structure that is added, modified and / or deleted in the updated real-time simulation model of the industrial device relative to the original real-time simulation model of the industrial device.

3. The method of claim 2, wherein, The method of modifying an initial debugging flow logic of the original industrial device through the structure information of the updated functional structure to obtain a target debugging flow logic comprises: obtaining, based on the updated real-time simulation model of the industrial device, an upper functional structure identifier, a lower functional structure identifier and functional description information of the updated functional structure in the updated functional structure; obtaining, from a preset debugging flow library, a target functional program and a target structure identifier corresponding to the functional description information; modifying the initial debugging flow logic of the original industrial device based on the target functional program, the upper functional structure identifier and the lower functional structure identifier to obtain the target debugging flow logic.

4. The method of claim 3, wherein, The method of modifying the initial debugging flow logic of the original industrial device based on the target functional program, the upper functional structure identifier and the lower functional structure identifier to obtain the target debugging flow logic comprises: obtaining a first functional program corresponding to the upper functional structure identifier and a second functional program corresponding to the lower functional structure identifier in the initial debugging flow logic of the original industrial device; modifying the lower functional structure identifier in the first functional program to the target structure identifier, modifying the upper functional structure identifier in the second functional program to the target structure identifier, and inserting the target functional program into the initial debugging flow logic to obtain the target debugging flow logic.

5. The method according to any one of claims 1 to 4, characterized in that, The method of debugging the updated industrial device by comparing the updated simulation result with the original simulation result comprises: acquiring simulation results belonging to the same function structure in the updated simulation result and the original simulation result; determining whether the simulation results belonging to the same function structure are the same; if the simulation results belonging to the same function structure are the same, determining that there is no problem in the updated industrial equipment.

6. The method of claim 5, wherein, The method further comprises: determining whether the target function structure is an updated function structure based on the real-time simulation model of the updated industrial equipment; if the target function structure is an updated function structure, acquiring function structures associated with the target function structure after the target function structure, and determining whether there is a problem in the target function structure in the updated industrial equipment according to simulation results of the associated function structures; the simulation result matrix of the updated simulation result simulation result matrix of the original simulation result wherein x1 to xn are function structure identifiers in the updated simulation result, x1 to xq are function structure identifiers in the original simulation result, a nm is the mth simulation result of the nth function structure in the updated simulation result; and b qm is the mth simulation result of the qth function structure in the original simulation result.

7. The method of claim 5, wherein, if the target function structure is not an updated function structure, determining whether there is a problem in the target function structure by comparing the simulation result of the target function structure with the first expected simulation result. The method further comprises: acquiring a final simulation result in the updated simulation result, and determining whether the final simulation result meets a final expected simulation result; if the final simulation result meets the final expected simulation result, determining that there is no problem in the target function structure in the updated industrial equipment; if the final simulation result does not meet the final expected simulation result, analyzing whether there is a problem in the target function structure in the updated industrial equipment according to simulation results of the associated function structures.

8. The method of claim 7, wherein, The method further comprises: determining whether there is a problem in the associated function structures according to the simulation results of the associated function structures respectively corresponding to the simulation results; if there is no problem in the associated function structures, determining that there is a problem in the target function structure in the updated industrial equipment. The system comprises:

9. The method of claim 8, wherein, an acquisition module, configured to acquire a real-time simulation model of an original industrial equipment and a real-time simulation model of an updated industrial equipment; a determination module, configured to determine an updated function structure and structure information of the updated function structure according to the real-time simulation model of the original industrial equipment and the real-time simulation model of the updated industrial equipment; a modification module, configured to modify an initial debugging flow logic of the original industrial equipment by using the structure information of the updated function structure, to obtain a target debugging flow logic; 10. An industrial device debugging system developed based on a Loongson integrated environment, characterized in that, a simulation module, configured to control the real-time simulation model of the updated industrial equipment to execute the target debugging flow logic in a first simulation machine, to obtain an updated simulation result. ​ ​ ​ ​ The simulation module is configured to control the real-time simulation model of the original industrial device in the second simulation machine to execute the initial debugging flow logic, and obtain an original simulation result. The debugging module is configured to debug the updated industrial device by comparing the updated simulation result and the original simulation result.

Citation Information

Patent Citations

  • Software testing and optimizing method and system

    CN110188039A

  • Secondary equipment simulation system and method

    CN114996894A