Node referencing and information transfer calibration method and system for opc devices
Patent Information
- Application Number
- CN202211654711.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2042-12-20
AI Technical Summary
为了保证对制造业自动化系统的全面管控,需要对系统内部的OPC服务器和OPC应用程序相互之间的信息交互状态进行确定,以此保证系统内部的信息流正常传输,现有技术只针对OPC服务器与OPC应用程序之间单一点对点的信息交互进行确定,但是在系统实际工作中,同一数据信息并不是仅限于在OPC服务器与单一OPC应用程序之间的交互,而OPC服务器作为数据源能够将数据信息发送到不同OPC应用程序,并且每个OPC应用程序在执行不同运算任务过程中会引用不同节点,并与相应节点进行数据信息的交互,上述针对OPC服务器与OPC应用程序之间单一点对点的信息交互确定方式,无法对系统内部的数据信息交互进行全局完成的标定,降低对OPC体系内部数据信息传输追踪的全面性和准确性
[0042] Compared to existing technologies, this node referencing and information transmission calibration method and system for OPC devices, after verifying the OPC application, connects to the corresponding access port of the OPC server based on its attribute information; retrieves relevant data information from the OPC server based on the program execution progress information of the OPC application and generates a data information identification code; calibrates all nodes referenced during the OPC application's operation based on its runtime log; compares the data interaction history information of each calibrated node with the data information identification code to generate data information transmission tracking information on all nodes. Based on the program execution progress information of the OPC application and all referenced nodes, it tracks and calibrates whether each referenced node is involved in data information transmission. This enables comprehensive and accurate tracking of data information transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
Smart Images

Figure CN115859257B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of OPC device management, and in particular to a method and system for calibrating node references and information transmission for OPC devices. Background Technology
[0002] OPC is widely used in process control of manufacturing automation systems. It can control each production end of the manufacturing automation system in real time and adaptively adjust the working status of the software at the corresponding production end according to the actual operating status of the manufacturing automation system. In order to ensure comprehensive control of the manufacturing automation system, it is necessary to determine the information interaction status between the OPC server and OPC application within the system, so as to ensure the normal transmission of information flow within the system. Existing technology only determines the single point-to-point information interaction between the OPC server and the OPC application. However, in actual system operation, the same data information is not limited to the interaction between the OPC server and a single OPC application. The OPC server, as a data source, can send data information to different OPC applications, and each OPC application references different nodes and interacts with the corresponding nodes when performing different computing tasks. The above-mentioned method of determining the single point-to-point information interaction between the OPC server and the OPC application cannot provide a global calibration of the data information interaction within the system, reducing the comprehensiveness and accuracy of tracking the data information transmission within the OPC system. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention provides a method and system for node referencing and information transmission calibration of OPC devices. After the OPC application is verified, it connects to the corresponding access port of the OPC server based on its attribute information. Based on the program execution progress information of the OPC application, it retrieves relevant data information from the OPC server and generates a data information identification code. Based on the OPC application's runtime log, it calibrates all nodes referenced during its operation. It compares the data interaction history information of each calibrated node with the data information identification code to generate data transmission tracking information across all nodes. Based on the OPC application's program execution progress information and all referenced nodes, it tracks and calibrates whether each referenced node is involved in data transmission. This enables comprehensive and accurate tracking of data transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
[0004] This invention provides a method for node referencing and information transmission calibration for OPC devices, comprising the following steps:
[0005] Step S1: Verify the OPC application to determine its access permission to the OPC server; determine the access port of the OPC application on the OPC server based on the attribute information of the OPC application with the access permission.
[0006] Step S2: Analyze the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; according to the program running progress information, retrieve the corresponding data information from the OPC server, and perform identification processing on the data information to generate a data information identification code;
[0007] Step S3: Generate the running log of the OPC application based on the program running progress information; and mark all nodes referenced by the OPC application during its operation based on the running log.
[0008] Step S4: Extract and process the historical data interaction information of each calibrated node, and then compare the historical data interaction information with the data information identification code to generate the transmission tracking information of the data information on all nodes.
[0009] Further, in step S1, the OPC application is verified to determine its access permissions to the OPC server; based on the attribute information of the OPC application with the access permissions, the access port of the OPC application on the OPC server is determined, including:
[0010] The system performs authentication processing on the OPC application that initiates the connection request, and determines whether the program type of the OPC application exists in the OPC server's compatible program whitelist; if yes, it determines that the OPC application has access permission to the OPC server; if no, it determines that the OPC application does not have access permission to the OPC server.
[0011] The OPC application with the access permission is subjected to a version verification process to determine whether the OPC application is currently in the corresponding version state; if not, the OPC application is updated.
[0012] Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
[0013] Further, in step S2, the data acquisition request of the OPC application is analyzed to obtain the current program running progress information of the OPC application; based on the program running progress information, corresponding data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code, including:
[0014] The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application, and the current program running progress information of the OPC application is obtained based on the computational task information.
[0015] Data information matching the current program running progress information is retrieved from the OPC server. The corresponding data frame header and generation time are extracted from the data information, thereby generating a data information identifier code that matches the data frame header and the generation time.
[0016] Further, in step S3, based on the program running progress information, a running log of the OPC application is generated; based on the running log, all nodes referenced by the OPC application during its operation are identified, including:
[0017] Based on the program running progress information, determine the computational tasks that the OPC application has completed; based on the task execution record information of each of the completed computational tasks, generate the running log of the OPC application;
[0018] Extract all nodes associated with the completed computation tasks of the OPC application from the operation log, and mark the terminal address of each node.
[0019] Further, in step S4, data interaction history information is extracted and processed for each calibrated node, and then the data interaction history information is compared with the data information identifier code to generate transmission tracking information of the data information on all nodes, including:
[0020] Extract the data information identifier code of the historical interaction data in the data interaction history of each node;
[0021] If the data information identification code of the historical interaction data matches the data information identification code of the data information, then the corresponding node is used as the data information transmission intermediary node.
[0022] Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for the data information is generated across all nodes.
[0023] This invention also provides a node referencing and information transmission calibration system for OPC devices, comprising:
[0024] The OPC application verification and access module is used to verify OPC applications, determine the access permissions of the OPC applications to the OPC server, and determine the access port of the OPC applications on the OPC server based on the attribute information of the OPC applications with the access permissions.
[0025] The data retrieval and identification module is used to analyze the data acquisition requests of the OPC application to obtain the current program running progress information of the OPC application; based on the program running progress information, it retrieves the corresponding data information from the OPC server, and performs identification processing on the data information to generate a data information identification code.
[0026] The node identification module is used to generate the running log of the OPC application based on the program running progress information; and to identify all nodes referenced by the OPC application during its operation based on the running log.
[0027] The information transmission tracking module is used to extract and process the data interaction history information of each calibrated node, and then compare the data interaction history information with the data information identification code to generate the transmission tracking information of the data information on all nodes.
[0028] Furthermore, the OPC application verification and access module verifies the OPC application to determine its access permissions to the OPC server; based on the attribute information of the OPC application with the access permissions, it determines the access port of the OPC application on the OPC server, including:
[0029] The system performs authentication processing on the OPC application that initiates the connection request, and determines whether the program type of the OPC application exists in the OPC server's compatible program whitelist; if yes, it determines that the OPC application has access permission to the OPC server; if no, it determines that the OPC application does not have access permission to the OPC server.
[0030] The OPC application with the access permission is subjected to a version verification process to determine whether the OPC application is currently in the corresponding version state; if not, the OPC application is updated.
[0031] Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
[0032] Furthermore, the data retrieval and identification module analyzes the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; based on the program running progress information, it retrieves the corresponding data information from the OPC server and performs identification processing on the data information to generate a data information identification code, including:
[0033] The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application, and the current program running progress information of the OPC application is obtained based on the computational task information.
[0034] Data information matching the current program running progress information is retrieved from the OPC server. The corresponding data frame header and generation time are extracted from the data information, thereby generating a data information identifier code that matches the data frame header and the generation time.
[0035] Furthermore, the node identification module generates a runtime log for the OPC application based on the program's runtime progress information; and based on the runtime log, it identifies all nodes referenced by the OPC application during its execution, including:
[0036] Based on the program running progress information, determine the computational tasks that the OPC application has completed; based on the task execution record information of each of the completed computational tasks, generate the running log of the OPC application;
[0037] Extract all nodes associated with the completed computation tasks of the OPC application from the operation log, and mark the terminal address of each node.
[0038] Furthermore, the information transmission tracking module extracts and processes historical data interaction information for each calibrated node, then compares the historical data interaction information with the data information identifier code to generate transmission tracking information for the data information across all nodes, including:
[0039] Extract the data information identifier code of the historical interaction data in the data interaction history of each node;
[0040] If the data information identification code of the historical interaction data matches the data information identification code of the data information, then the corresponding node is used as the data information transmission intermediary node.
[0041] Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for the data information is generated across all nodes.
[0042] Compared to existing technologies, this node referencing and information transmission calibration method and system for OPC devices, after verifying the OPC application, connects to the corresponding access port of the OPC server based on its attribute information; retrieves relevant data information from the OPC server based on the program execution progress information of the OPC application and generates a data information identification code; calibrates all nodes referenced during the OPC application's operation based on its runtime log; compares the data interaction history information of each calibrated node with the data information identification code to generate data information transmission tracking information on all nodes. Based on the program execution progress information of the OPC application and all referenced nodes, it tracks and calibrates whether each referenced node is involved in data information transmission. This enables comprehensive and accurate tracking of data information transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
[0043] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.
[0044] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0045] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 This is a flowchart illustrating the node referencing and information transmission calibration method for OPC devices provided by the present invention.
[0047] Figure 2 This is a schematic diagram of the node referencing and information transmission calibration system for OPC devices provided by the present invention. Detailed Implementation
[0048] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0049] See Figure 1 This is a flowchart illustrating a node referencing and information transmission calibration method for OPC devices provided in an embodiment of the present invention. The node referencing and information transmission calibration method for OPC devices includes the following steps:
[0050] Step S1: Verify the OPC application to determine its access permission to the OPC server; based on the attribute information of the OPC application with the access permission, determine the access port of the OPC application on the OPC server.
[0051] Step S2: Analyze the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; based on the program running progress information, retrieve the corresponding data information from the OPC server, and perform identification processing on the data information to generate a data information identification code;
[0052] Step S3: Generate the running log of the OPC application based on the program's running progress information; and mark all nodes referenced by the OPC application during its operation based on the running log.
[0053] Step S4: Extract and process the historical data interaction information of each calibrated node, then compare the historical data interaction information with the data information identifier code to generate the transmission tracking information of the data information on all nodes.
[0054] The beneficial effects of the above technical solution are as follows: After the OPC application is verified, the node referencing and information transmission calibration method for OPC devices connects to the corresponding access port of the OPC server according to its attribute information; according to the program running progress information of the OPC application, the corresponding data information is retrieved from the OPC server and a data information identification code is generated; according to the running log of the OPC application, all nodes referenced during its operation are calibrated; the data interaction history information of each calibrated node is compared with the data information identification code to generate data information transmission tracking information on all nodes. Based on the program running progress information of the OPC application and all referenced nodes, the method tracks and calibrates whether each referenced node is involved in the transmission of data information. This enables comprehensive and accurate tracking of data information transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
[0055] Preferably, in step S1, the OPC application is verified to determine its access permissions to the OPC server; based on the attribute information of the OPC application with such access permissions, the access port of the OPC application on the OPC server is determined, including:
[0056] The system authenticates the OPC application that initiates the connection request, determining whether the application's program type is in the OPC server's compatible program whitelist. If so, the system determines that the OPC application has access to the OPC server; otherwise, the system determines that the OPC application does not have access to the OPC server.
[0057] Perform version verification on the OPC application with the access permission to determine if the OPC application is currently in the corresponding version state; if not, update the version of the OPC application.
[0058] Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
[0059] The beneficial effects of the above technical solution are as follows: The OPC system includes different OPC applications, each of which performs corresponding device control operations within the OPC system. The OPC server, as the data source of the OPC system, provides corresponding data support for the control operations of the OPC applications. Authentication of the OPC applications ensures the identity security of the OPC applications accessing the OPC server, improving the data security of the OPC server. Furthermore, verifying and updating the program versions of OPC applications with access permissions, and selecting a compatible access port on the OPC server based on their corresponding communication protocols, ensures stable and continuous communication between the OPC applications and the OPC server.
[0060] Preferably, in step S2, the data acquisition request of the OPC application is analyzed to obtain the current program running progress information of the OPC application; based on the program running progress information, the corresponding data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code, including:
[0061] The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application. Based on the computational task information, the current program running progress information of the OPC application is obtained.
[0062] The system retrieves data information that matches the current program running progress information from the OPC server, extracts the corresponding data frame header and generation time from the data information, and generates a data information identifier code that matches the data frame header and generation time.
[0063] The beneficial effects of the above technical solution are as follows: During operation, the OPC application sends corresponding data retrieval requests to the OPC server based on the currently executing computational task, facilitating the acquisition of relevant data information from the OPC server to complete the currently executing computational task. Furthermore, the OPC application generates corresponding program execution progress information based on the currently executing computational task; that is, whenever the OPC application is executing or completing a computational task, corresponding program execution progress information is generated, thus obtaining the complete program execution progress formed by the OPC application throughout the entire operation. Matching data information is retrieved from the OPC server, and then encoded according to a predetermined pattern based on the data frame header and the generation time of the data information itself to generate a data information identification code, thereby uniquely identifying the data information and facilitating subsequent identification and tracking of data transmission.
[0064] Preferably, in step S3, a running log of the OPC application is generated based on the program's running progress information; based on the running log, all nodes referenced by the OPC application during its operation are identified, including:
[0065] Based on the program's running progress information, determine the computational tasks that the OPC application has completed; based on the task execution record information of each of the completed computational tasks, generate the running log of the OPC application;
[0066] Extract all nodes associated with the completed computation tasks of the OPC application from the runtime log, and assign terminal addresses to the terminals where each node is located.
[0067] The beneficial effects of the above technical solution are as follows: By using the above method and the running log of the OPC application as a basis, the nodes associated with the OPC application in the completed computing tasks can be extracted. These nodes can be, but are not limited to, object nodes, method nodes, or data variable nodes. Each node in the OPC system is carried by a corresponding entity terminal. Thus, by marking the terminal address of the entity terminal where each node is located, each node can be located accordingly.
[0068] Preferably, in step S4, data interaction history information is extracted and processed for each calibrated node, and then the data interaction history information is compared with the data information identifier code to generate transmission tracking information of the data information on all nodes, including:
[0069] Extract the data information identifier code of the historical interaction data in the data interaction history of each node;
[0070] If the data information identifier code of the historical interaction data matches the data information identifier code of the data information, then the corresponding node will be used as the transmission intermediary node of the data information.
[0071] Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for this data information is generated across all nodes.
[0072] The beneficial effects of the above technical solution are as follows: By using the above method, the data information identification code of the historical interaction data corresponding to the data interaction history is extracted from each calibrated node. Then, the data information identification code of the historical interaction data is compared with the data information identification code of the data information. If the two are consistent, it indicates that the data information has been interacted on the corresponding node. That is, the terminal corresponding to the node belongs to the transmission intermediary point of the data information in the OPC system transmission path. Then, the terminal addresses corresponding to all transmission intermediary nodes are summarized and integrated to obtain the transmission tracking information of the data information on all nodes, thereby improving the accuracy of the transmission tracking of the data information.
[0073] See Figure 2 This is a schematic diagram of the node referencing and information transmission calibration system for OPC devices provided in an embodiment of the present invention. The node referencing and information transmission calibration system for OPC devices includes:
[0074] The OPC application authentication and access module is used to authenticate OPC applications and determine their access permissions to the OPC server. Based on the attribute information of the OPC application with the access permissions, the module determines the access port of the OPC application on the OPC server.
[0075] The data retrieval and identification module is used to analyze the data retrieval requests of the OPC application to obtain the current program running progress information of the OPC application; based on the program running progress information, it retrieves the corresponding data information from the OPC server, and performs identification processing on the data information to generate a data information identification code;
[0076] The node labeling module is used to generate the running log of the OPC application based on the program's running progress information; and to label all nodes referenced by the OPC application during its operation based on the running log.
[0077] The information transmission tracking module is used to extract and process the historical data interaction information of each calibrated node, and then compare the historical data interaction information with the data information identification code to generate the transmission tracking information of the data information on all nodes.
[0078] The beneficial effects of the above technical solution are as follows: After the OPC application is verified, the node reference and information transmission calibration system for OPC devices connects to the corresponding access port of the OPC server according to its attribute information; based on the program running progress information of the OPC application, it retrieves the corresponding data information from the OPC server and generates a data information identification code; based on the running log of the OPC application, it calibrates all nodes referenced during its operation; it compares the data interaction history information of each calibrated node with the data information identification code to generate data information transmission tracking information on all nodes. Based on the program running progress information of the OPC application and all referenced nodes, it tracks and calibrates whether each referenced node is involved in the transmission of data information. This enables comprehensive and accurate tracking of data information transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
[0079] Preferably, the OPC application authentication and access module verifies the OPC application to determine its access permissions to the OPC server; based on the attribute information of the OPC application with such access permissions, it determines the access port of the OPC application on the OPC server, including:
[0080] The system authenticates the OPC application that initiates the connection request, determining whether the application's program type is in the OPC server's compatible program whitelist. If so, the system determines that the OPC application has access to the OPC server; otherwise, the system determines that the OPC application does not have access to the OPC server.
[0081] Perform version verification on the OPC application with the access permission to determine if the OPC application is currently in the corresponding version state; if not, update the version of the OPC application.
[0082] Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
[0083] The beneficial effects of the above technical solution are as follows: The OPC system includes different OPC applications, each of which performs corresponding device control operations within the OPC system. The OPC server, as the data source of the OPC system, provides corresponding data support for the control operations of the OPC applications. Authentication of the OPC applications ensures the identity security of the OPC applications accessing the OPC server, improving the data security of the OPC server. Furthermore, verifying and updating the program versions of OPC applications with access permissions, and selecting a compatible access port on the OPC server based on their corresponding communication protocols, ensures stable and continuous communication between the OPC applications and the OPC server.
[0084] Preferably, the data retrieval and identification module analyzes the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; based on the program running progress information, it retrieves the corresponding data information from the OPC server, and performs identification processing on the data information to generate a data information identification code, including:
[0085] The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application. Based on the computational task information, the current program running progress information of the OPC application is obtained.
[0086] The system retrieves data information that matches the current program running progress information from the OPC server, extracts the corresponding data frame header and generation time from the data information, and generates a data information identifier code that matches the data frame header and generation time.
[0087] The beneficial effects of the above technical solution are as follows: During operation, the OPC application sends corresponding data retrieval requests to the OPC server based on the currently executing computational task, facilitating the acquisition of relevant data information from the OPC server to complete the currently executing computational task. Furthermore, the OPC application generates corresponding program execution progress information based on the currently executing computational task; that is, whenever the OPC application is executing or completing a computational task, corresponding program execution progress information is generated, thus obtaining the complete program execution progress formed by the OPC application throughout the entire operation. Matching data information is retrieved from the OPC server, and then encoded according to a predetermined pattern based on the data frame header and the generation time of the data information itself to generate a data information identification code, thereby uniquely identifying the data information and facilitating subsequent identification and tracking of data transmission.
[0088] Preferably, the node identification module generates a runtime log for the OPC application based on the program's running progress information; based on the runtime log, it identifies all nodes referenced by the OPC application during its operation, including:
[0089] Based on the program's running progress information, determine the computational tasks that the OPC application has completed; based on the task execution record information of each of the completed computational tasks, generate the running log of the OPC application;
[0090] Extract all nodes associated with the completed computation tasks of the OPC application from the runtime log, and assign terminal addresses to the terminals where each node is located.
[0091] The beneficial effects of the above technical solution are as follows: By using the above method and the running log of the OPC application as a basis, the nodes associated with the OPC application in the completed computing tasks can be extracted. These nodes can be, but are not limited to, object nodes, method nodes, or data variable nodes. Each node in the OPC system is carried by a corresponding entity terminal. Thus, by marking the terminal address of the entity terminal where each node is located, each node can be located accordingly.
[0092] Preferably, the information transmission tracking module extracts and processes the historical data interaction information of each calibrated node, then compares the historical data interaction information with the data information identifier code to generate transmission tracking information of the data information on all nodes, including:
[0093] Extract the data information identifier code of the historical interaction data in the data interaction history of each node;
[0094] If the data information identifier code of the historical interaction data matches the data information identifier code of the data information, then the corresponding node will be used as the transmission intermediary node of the data information.
[0095] Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for this data information is generated across all nodes.
[0096] The beneficial effects of the above technical solution are as follows: By using the above method, the data information identification code of the historical interaction data corresponding to the data interaction history is extracted from each calibrated node. Then, the data information identification code of the historical interaction data is compared with the data information identification code of the data information. If the two are consistent, it indicates that the data information has been interacted on the corresponding node. That is, the terminal corresponding to the node belongs to the transmission intermediary point of the data information in the OPC system transmission path. Then, the terminal addresses corresponding to all transmission intermediary nodes are summarized and integrated to obtain the transmission tracking information of the data information on all nodes, thereby improving the accuracy of the transmission tracking of the data information.
[0097] As can be seen from the above embodiments, after the OPC application is verified, the node reference and information transmission calibration method and system for OPC devices connects to the corresponding access port of the OPC server according to its attribute information; according to the program running progress information of the OPC application, it retrieves the corresponding data information from the OPC server and generates a data information identification code; according to the running log of the OPC application, it calibrates all nodes referenced during its operation; it compares the data interaction history information of each calibrated node with the data information identification code to generate data information transmission tracking information on all nodes. Based on the program running progress information of the OPC application and all referenced nodes, it tracks and calibrates whether each referenced node is involved in the transmission of data information. This enables comprehensive and accurate tracking of data information transmission within the OPC system, thereby improving the reliability of determining the information interaction status of all OPC devices within the OPC system.
[0098] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A method for node referencing and information transfer calibration for OPC equipment, characterized in that, Includes the following steps: Step S1: Verify the OPC application to determine its access permission to the OPC server; determine the access port of the OPC application on the OPC server based on the attribute information of the OPC application with the access permission. Step S2: Analyze the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; Based on the program's running progress information, relevant data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code. Step S3: Generate the running log of the OPC application based on the program running progress information; and mark all nodes referenced by the OPC application during its operation based on the running log. Step S4: Extract and process the historical data interaction information of each calibrated node, and then compare the historical data interaction information with the data information identification code to generate the transmission tracking information of the data information on all nodes.
2. The node referencing and information transmission calibration method for OPC devices as described in claim 1, characterized in that: In step S1, the OPC application is verified to determine its access permissions to the OPC server. Based on the attribute information of the OPC application with the access permissions, the access port of the OPC application on the OPC server is determined, including: The system performs authentication processing on the OPC application that initiates the connection request, and determines whether the program type of the OPC application exists in the OPC server's compatible program whitelist; if yes, it determines that the OPC application has access permission to the OPC server; if no, it determines that the OPC application does not have access permission to the OPC server. The OPC application with the access permission is subjected to a version verification process to determine whether the OPC application is currently in the corresponding version state; if not, the OPC application is updated. Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
3. The node referencing and information transmission calibration method for OPC devices as described in claim 2, characterized in that: In step S2, the data acquisition request of the OPC application is analyzed to obtain the current program running progress information of the OPC application; Based on the program's running progress information, relevant data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code, including: The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application, and the current program running progress information of the OPC application is obtained based on the computational task information. Data information matching the current program running progress information is retrieved from the OPC server. The corresponding data frame header and generation time are extracted from the data information, thereby generating a data information identifier code that matches the data frame header and the generation time.
4. The node referencing and information transmission calibration method for OPC devices as described in claim 3, characterized in that: In step S3, the running log of the OPC application is generated based on the program running progress information; Based on the runtime logs, all nodes referenced by the OPC application during its operation are identified, including: Based on the program's running progress information, determine the computational tasks that the OPC application has completed; Based on the task execution record information of each completed computation task, the running log of the OPC application is generated; Extract all nodes associated with the completed computation tasks of the OPC application from the operation log, and mark the terminal address of each node.
5. The node referencing and information transmission calibration method for OPC devices as described in claim 4, characterized in that: In step S4, data interaction history information is extracted and processed for each calibrated node. Then, the data interaction history information is compared with the data information identifier code to generate transmission tracking information of the data information on all nodes, including: Extract the data information identifier code of the historical interaction data in the data interaction history of each node; If the data information identification code of the historical interaction data matches the data information identification code of the data information, then the corresponding node is used as the data information transmission intermediary node. Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for the data information is generated across all nodes.
6. A node referencing and information transfer calibration system for an OPC device, characterized in that, include: The OPC application verification and access module is used to verify OPC applications, determine the access permissions of the OPC applications to the OPC server, and determine the access port of the OPC applications on the OPC server based on the attribute information of the OPC applications with the access permissions. The data retrieval and identification module is used to analyze the data retrieval requests of the OPC application to obtain the current program running progress information of the OPC application; Based on the program's running progress information, relevant data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code. The node identification module is used to generate the running log of the OPC application based on the program running progress information; and to identify all nodes referenced by the OPC application during its operation based on the running log. The information transmission tracking module is used to extract and process the historical data interaction information of each calibrated node, and then compare the historical data interaction information with the data information identification code to generate the transmission tracking information of the data information on all nodes.
7. The node referencing and information transmission calibration system for OPC devices as described in claim 6, characterized in that: The OPC application verification and access module verifies the OPC application to determine its access permissions to the OPC server. Based on the attribute information of the OPC application with the access permissions, it determines the access port of the OPC application on the OPC server, including: The system performs authentication processing on the OPC application that initiates the connection request, and determines whether the program type of the OPC application exists in the OPC server's compatible program whitelist; if yes, it determines that the OPC application has access permission to the OPC server; if no, it determines that the OPC application does not have access permission to the OPC server. The OPC application with the access permission is subjected to a version verification process to determine whether the OPC application is currently in the corresponding version state; if not, the OPC application is updated. Next, obtain the communication protocol corresponding to the OPC application with access permissions, and use it as the attribute information; select an access port compatible with the communication protocol from the OPC server, and then connect the OPC server to the access port.
8. The node referencing and information transmission calibration system for OPC devices as described in claim 7, characterized in that: The data retrieval and identification module analyzes the data acquisition request of the OPC application to obtain the current program running progress information of the OPC application; Based on the program's running progress information, relevant data information is retrieved from the OPC server, and the data information is identified to generate a data information identification code, including: The data acquisition requests of the OPC application are analyzed to obtain the current computational task information of the OPC application, and the current program running progress information of the OPC application is obtained based on the computational task information. Data information matching the current program running progress information is retrieved from the OPC server. The corresponding data frame header and generation time are extracted from the data information, thereby generating a data information identifier code that matches the data frame header and the generation time.
9. The node referencing and information transmission calibration system for OPC devices as described in claim 8, characterized in that: The node identification module generates a runtime log for the OPC application based on the program's running progress information; and identifies all nodes referenced by the OPC application during its operation based on the runtime log, including: Based on the program running progress information, determine the computational tasks that the OPC application has completed; based on the task execution record information of each of the completed computational tasks, generate the running log of the OPC application; Extract all nodes associated with the completed computation tasks of the OPC application from the operation log, and mark the terminal address of each node.
10. The node referencing and information transmission calibration system for OPC devices as described in claim 9, characterized in that: The information transmission tracking module extracts and processes the historical data interaction information of each calibrated node, then compares the historical data interaction information with the data information identifier code to generate transmission tracking information of the data information on all nodes, including: Extract the data information identifier code of the historical interaction data in the data interaction history of each node; If the data information identification code of the historical interaction data matches the data information identification code of the data information, then the corresponding node is used as the data information transmission intermediary node. Based on the terminal addresses identified by all transmission intermediary nodes, transmission tracking information for the data information is generated across all nodes.
Citation Information
Patent Citations
Method and device for monitoring operation of user request in distributed system
CN103684898A
Method and system for acquiring remote task execution progress
CN111913847A