Method for realizing rapid synchronization of data of upper and lower computers based on OPCUA point table mapping

By using OPCUA point table mapping technology in the hydropower station computer monitoring system, the problem of data inconsistency between upper and lower computers caused by changes in on-site sensor ranges has been solved, fast synchronization and efficient collection of data have been achieved, and maintenance difficulty has been reduced.

CN118740622APending Publication Date: 2024-10-01CHINA YANGTZE POWER
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410681548.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing hydropower station computer monitoring system, after the on-site sensor range changes, the signals of the upper and lower computers are inconsistent, resulting in low data collection efficiency and difficulty in maintenance.

Method used

Using a method based on OPC UA point table mapping, by installing the OPC UA protocol stack on the host computer, generating a device point table mapping file, defining the mapping relationship between the address space and data nodes, building an OPC UA-based slave computer system, and realizing the upper and lower computer data Quickly synchronize and use the UpdateAnaRang interface to update the analog range to ensure the consistency of data attributes in the PLC.

Benefits of technology

It achieves rapid synchronization of upper and lower computer data, reduces maintenance workload, avoids the risk of data inconsistency, and improves data collection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740622A_ABST
    Figure CN118740622A_ABST
Patent Text Reader

Abstract

The invention provides a method for realizing rapid synchronization of data of an upper computer and a lower computer based on OPC UA point table mapping, the upper computer and the lower computer are based on OPC UA communication and upper and lower computer point table mapping, aiming at point table change, only the OPC UA point table in a PLC needs to be updated according to the upper computer point table in a program starting or point table updating stage, and in normal operation time, the data of the upper computer and the lower computer can be rapidly synchronized. The upper computer accesses the PLC physical point location through the nodeid of the OPC UA to realize data read-write operation, so that the strict comparison relationship between the signal attributes of the logic point location of the upper computer and the physical point location of the lower computer is avoided, the data synchronization of the upper computer and the lower computer is quickly realized, and the workload of maintaining the system databases of the upper computer and the lower computer is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of data acquisition of a hydropower station computer monitoring system, and in particular to a method for realizing rapid synchronization of upper and lower computer data based on OPC UA point table mapping. Background Art

[0002] The computer monitoring system of the hydropower station is responsible for monitoring the status of the main and auxiliary equipment of the entire hydropower station. It consists of two parts: the lower computer and the upper computer. The lower computer is a control unit that directly controls the on-site equipment to obtain the equipment status, referred to as the local LCU. The core equipment is the PLC. The upper computer provides an HMI interface for operators to issue control commands and monitor the equipment status, such as the opening and closing status of the switch, the oil level and oil pressure of the hydraulic system, etc. The control command issued by the upper computer is sent to the lower computer, and the lower computer executes the relevant control logic to drive the corresponding equipment according to this command. The lower computer collects the equipment status data in real time and sends it to the upper computer.

[0003] The data table point information maintained by the real-time database of the host computer of the current monitoring system is generally the logical points of the host computer system, rather than the physical points in the PLC. At this time, each time the host computer system reads the PLC points of the lower computer, it is necessary to convert the logical points into physical points in the PLC for access according to the communication protocol between the upper and lower computers. The data acquisition files and configuration information are all stored in the relational database, which makes information acquisition slow and inefficient.

[0004] OPC UA (Unified Architecture) is a new generation of OPC standard. It provides a complete, secure and reliable cross-platform architecture for acquiring real-time and historical data, and realizes the transmission of raw data and pre-processed information from the device level to the data aggregation layer. A method for implementing an OPC UA data interface for an industrial real-time database (CN109145000 A) A method for implementing an OPC UA data interface for an industrial real-time database is developed to realize direct data transmission between a real-time database and an OPC UA device.

[0005] For the signal points in the host computer database, important attributes such as range are included. For example, when the field sensor range changes, in order to ensure the consistency of the upper and lower computer signals, the corresponding sensor analog point range in the PLC and the host computer database analog point range need to be modified respectively, which is inefficient and difficult to maintain. An industrial real-time database OPC UA data interface implementation method (CN 109145000 A) realizes data collection by searching the OPC UA device measurement point and the nodeid information corresponding to the measurement point, but it cannot solve the data synchronization problem caused by the inconsistency of the upper and lower computer data attributes caused by the change of the field sensor range. Summary of the invention

[0006] The main purpose of the present invention is to provide a method for realizing fast synchronization of upper and lower computer data based on OPC UA point table mapping, so as to solve the problem of data asynchrony caused by inconsistency of upper and lower computer data attributes caused by changes in the field sensor range.

[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for realizing fast synchronization of upper and lower computer data based on OPCUA point table mapping, comprising the following steps: S1. Install the OPC UA protocol stack in the host data acquisition server and create an OPC UA server; S2. Generate an OPC UA device point table mapping file to define the structure and content of the address space in the OPC UA server and client, as well as the mapping relationship between data nodes; S3. In the upper computer, a database mapping point table based on the OPC UA protocol is constructed according to the data variable type and purpose, which is divided into a digital input point table, a digital output point table, an analog input point table, an analog output point table, and an electrical point table. The number of each point table is determined by the number of PLC I / O modules configured in the lower computer; S4. Build a lower computer system based on OPC UA. The upper computer downloads the digital / analog mapping point table to the lower computer to complete the construction of the lower computer point table, ensuring the consistency of the upper and lower computer point tables. S5. Complete fast synchronization of upper and lower computer data based on OPC UA protocol, including: When the sensor range changes, the operation and maintenance personnel directly update the range in the single analog point table parameter information corresponding to the sensor through the real-time database of the host computer. At this time, the point table version number ver remains unchanged, and the system calls the UpdateAnaRang interface. The UpdateAnaRang interface is developed for updating a single analog range. The supported data types include single-precision floating point numbers, double-precision floating point numbers, 8-bit unsigned integers, and 8-bit signed integers, which respectively implement engineering value and source code value range updates. The UpdateAnaRang interface has the function of realizing fast synchronization of the analog point table in the PLC, thereby completing the synchronization of the analog range in the PLC.

[0008] In the preferred embodiment, step S5 also includes: When the operation and maintenance personnel update the point table configuration information in the upper computer database editing tool, the point table version number ver is increased by 1. At the same time, the PLC is restarted, the program is started, and the upper computer system determines that a normal link is established. Then, the GetVersion interface is called to obtain the lower computer point table version number. If the lower computer version is inconsistent with the upper computer version, the lower computer point table needs to be updated, and the point table is downloaded to the PLC again through the Download interface, and the physical points inside the PLC are mapped to the logical points of the upper computer.

[0009] In the preferred embodiment, step S5 also includes: If the system is operating normally, the version of the mapping point table of the lower computer obtained by the upper computer is consistent with that of the upper computer, and the upper computer data acquisition server completes the data acquisition work of the lower computer through the nodeid corresponding to the data measurement point in the OPC UA service.

[0010] In the preferred solution, the digital input point table and the analog input point table in step S3 are organized in the following format: Digital input point table: {"ver":12,"type":"ind","items":[{"name":"BY.SOE01_01","addr":"%I4001"}]}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ind means digital point table; "name": logical name of the digital point of the host computer; "addr": digital point address of the lower computer; Analog input point table: {"ver":6,"type":"ana","items":[{"name":"MEA.10.HD001.BT___1WD___AI12","addr":"%IW1001","transcode":1,"hcode":2000,"lcode":0,"hrange":200,"lrange":0}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ana means analog point meter; "name": logical name of analog point of host computer, named according to KKS coding rules of hydropower station MEA.10.HD001.BT___1WD___AI12 represents the temperature of 1# water guide bearing of hydro-generator set; "addr": analog point address of the lower computer; "transcode": whether to transcode. If transcoding is not required, the original code value of the PLC point is directly uploaded to the upper computer data acquisition server; if transcoding is required, the original code value of the PLC point is converted into an engineering value and then sent to the upper computer data acquisition server; "transcode" is 0: the value sent is the original code value sampled by PLC; "transcode" is 1: the value sent is the engineering value sampled and converted by the PLC; "hcode": original code value upper range; "lcode": original code value lower range; "hrange": convert engineering value upper range; "lrange": Convert engineering value lower range.

[0011] In the preferred embodiment, step S4 is specifically as follows: Build a lower computer system based on OPC UA, create a project through PLC programming software, export the project as an XML file after compilation, rename it to uapro.xml, connect to PLC through FTP, transfer the uapro.xml file to PLC, download the project and restart PLC, and create an OPC UA client; By calling the Download interface developed for the OPC UA service, which has the functions of generating, interpreting and executing automatic mapping relationships to the OPC UA address space, the upper computer downloads the digital / analog mapping point table to the lower computer, completes the construction of the lower computer point table, and ensures the consistency of the upper and lower computer point tables.

[0012] The present invention provides a method for realizing rapid synchronization of upper and lower computer data based on OPC UA point table mapping. The upper and lower computers communicate based on OPC UA and are based on upper and lower computer point table mapping. For point table changes, it is only necessary to update the OPC UA point table in the PLC according to the upper computer point table during program startup or point table update phase. During normal operating time, the upper computer accesses the PLC physical point through the nodeid of OPC UA to realize data reading and writing operations, thus avoiding the strict comparison relationship between the signal attributes of the upper computer logical point and the lower computer physical point, realizing rapid synchronization of upper and lower computer data, and reducing the workload of upper and lower computer system database maintenance.

[0013] Compared with the existing technology, when the data point table of the hydropower station computer monitoring system changes, it is only necessary to make changes in the upper computer database, and automatically modify the data attributes in the lower computer PLC through point table mapping, avoiding the risk of data inconsistency caused by manual modification of the upper and lower computer databases at the same time, ensuring the consistency of the upper and lower computer data, and reducing the daily workload of maintenance personnel during the hydropower production and operation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The present invention will be further described below in conjunction with the accompanying drawings and embodiments: Figure 1 It is a flow chart of a method for rapid data synchronization based on OPC UA point table mapping of the present invention; Figure 2The present invention is a flow chart of constructing a lower computer point table from an upper computer point table; Figure 3 This is a flow chart of rapid synchronization of upper and lower computer data in the present invention. DETAILED DESCRIPTION

[0015] Example 1 like Figures 1 to 3 As shown, a method for realizing fast synchronization of upper and lower computer data based on OPCUA point table mapping includes the following steps: S1. Install the OPC UA protocol stack in the host data acquisition server and create an OPC UA server; S2. Generate an OPC UA device point table mapping file to define the structure and content of the address space in the OPC UA server and client, as well as the mapping relationship between data nodes; S3. In the upper computer, a database mapping point table based on the OPC UA protocol is constructed according to the data variable type and purpose, which is divided into a digital input point table, a digital output point table, an analog input point table, an analog output point table, and an electrical point table. The number of each point table is determined by the number of PLC I / O modules configured in the lower computer; S4. Build a lower computer system based on OPC UA. The upper computer downloads the digital / analog mapping point table to the lower computer to complete the construction of the lower computer point table, ensuring the consistency of the upper and lower computer point tables. S5. Complete fast synchronization of upper and lower computer data based on OPC UA protocol, including: When the sensor range changes, the operation and maintenance personnel directly update the range in the single analog point table parameter information corresponding to the sensor through the real-time database of the host computer. At this time, the point table version number ver remains unchanged, and the system calls the UpdateAnaRang interface. The UpdateAnaRang interface is developed for updating a single analog range. The supported data types include single-precision floating point numbers, double-precision floating point numbers, 8-bit unsigned integers, and 8-bit signed integers, which respectively implement engineering value and source code value range updates. The UpdateAnaRang interface has the function of realizing fast synchronization of the analog point table in the PLC, thereby completing the synchronization of the analog range in the PLC.

[0016] In the preferred embodiment, step S5 also includes: When the operation and maintenance personnel update the point table configuration information in the upper computer database editing tool, the point table version number ver is increased by 1. At the same time, the PLC is restarted, the program is started, and the upper computer system determines that a normal link is established. Then, the GetVersion interface is called to obtain the lower computer point table version number. If the lower computer version is inconsistent with the upper computer version, the lower computer point table needs to be updated, and the point table is downloaded to the PLC again through the Download interface, and the physical points inside the PLC are mapped to the logical points of the upper computer.

[0017] In the preferred embodiment, step S5 also includes: If the system is operating normally, the version of the mapping point table of the lower computer obtained by the upper computer is consistent with that of the upper computer, and the upper computer data acquisition server completes the data acquisition work of the lower computer through the nodeid corresponding to the data measurement point in the OPC UA service.

[0018] In the preferred solution, it is characterized in that: in step S3, the digital input point table and the analog input point table are organized in the format of: Digital input point table: {"ver":12,"type":"ind","items":[{"name":"BY.SOE01_01","addr":"%I4001"}]}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ind means digital point table; "name": logical name of the digital point of the host computer; "addr": digital point address of the lower computer; {"ver":12,"type":"ind","items":[{"name":"BY.SOE01_01","addr":"%I4001"}]} ver: indicates the version number of the point table. A value of 12 means that the point table has been revised or updated many times. The upper computer determines whether it needs to download the latest point table configuration from the lower computer by comparing this version number.

[0019] type: defines the type of the point table as "ind", indicating that this is a digital input point table used to record binary status information such as switches and alarms from the lower computer.

[0020] items: is an array containing specific point information.

[0021] name: refers to the logical name used in the host computer, such as "BY.SOE01_01", which is convenient for operators to understand and operate.

[0022] addr: corresponds to the physical address "%I4001" in the lower computer, indicating the actual storage location of the digital input point in the PLC.

[0023] Analog input point table: {"ver":6,"type":"ana","items":[{"name":"MEA.10.HD001.BT___1WD___AI12","addr":"%IW1001","transcode":1,"hcode":2000,"lcode":0,"hrange":200,"lrange":0}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ana means analog point meter; "name": logical name of analog point of host computer, named according to KKS coding rules of hydropower station MEA.10.HD001.BT___1WD___AI12 represents the temperature of 1# water guide bearing of hydro-generator set; "addr": analog point address of the lower computer; "transcode": whether to transcode. If transcoding is not required, the original code value of the PLC point is directly uploaded to the upper computer data acquisition server; if transcoding is required, the original code value of the PLC point is converted into an engineering value and then sent to the upper computer data acquisition server; "transcode" is 0: the value sent is the original code value sampled by PLC; "transcode" is 1: the value sent is the engineering value sampled and converted by the PLC; "hcode": original code value upper range; "lcode": original code value lower range; "hrange": convert engineering value upper range; "lrange": Convert engineering value lower range.

[0024] {"ver":6,"type":"ana","items":[{"name":"MEA.10.HD001.BT___1WD___AI12", "addr":"%IW1001","transcode":1,"hcode":2000,"lcode":0,"hrange":200,"lrange": 0}] ver: Similar to a digital point table, the 6 here is also the version number, used for version control.

[0025] type: "ana" indicates that this is an analog input point table, which is used to process continuously changing physical quantities such as temperature, pressure, etc.

[0026] items: Contains the detailed configuration of analog points.

[0027] name: For example, "MEA.10.HD001.BT___1WD___AI12" follows the KKS coding rules and clearly indicates the function of the point. Here it is the temperature of the 1# water guide bushing of the turbine generator set.

[0028] addr: The lower computer address "%IW1001" indicates the location of the analog signal in the PLC.

[0029] transcode: 1 means transcoding is required, that is, the original data collected by the PLC needs to be converted into engineering values ​​before uploading, making the data more intuitive and easy to read.

[0030] hcode / lcode / hrange / lrange: refer to the upper and lower ranges of the original code value and engineering value, respectively, for data conversion. For example, when "transcode" is 1, if the original code value collected by the PLC is in the range of 20000-200, it will be converted into the engineering value of 0-200 degrees Celsius.

[0031] In the preferred embodiment, step S4 is specifically as follows: Build a lower computer system based on OPC UA, create a project through PLC programming software, export the project as an XML file after compilation, rename it to uapro.xml, connect to PLC through FTP, transfer the uapro.xml file to PLC, download the project and restart PLC, and create an OPC UA client; By calling the Download interface developed for the OPC UA service, which has the functions of generating, interpreting and executing automatic mapping relationships to the OPC UA address space, the upper computer downloads the digital / analog mapping point table to the lower computer, completes the construction of the lower computer point table, and ensures the consistency of the upper and lower computer point tables.

[0032] The specific steps are: First, create a project in the PLC programming software, which contains the definition of control logic and data interaction. After programming is completed, the project will be compiled and then exported as an XML file. Here, the file is specifically named "uapro.xml". This naming convention may be for the convenience of subsequent automated processing or standardization.

[0033] Next, transfer the "uapro.xml" file from the host computer to the PLC controller via FTP (File Transfer Protocol). FTP is a common file transfer method that can safely and efficiently move files between different network devices.

[0034] After the PLC receives the XML file, it will download the project file, which includes loading the project configuration and logic into the PLC memory. After that, the PLC usually needs to be restarted to apply the newly downloaded project configuration. Restarting ensures that all changes take effect and is ready for subsequent data exchange.

[0035] After the restart is complete, an OPC UA client will be created on the PLC side. OPC UA is an advanced communication protocol that provides platform-independent and secure data exchange capabilities. Through OPC UA, the host computer (as a server) can efficiently share data with multiple clients.

[0036] The host computer calls the specially developed Download interface, which is part of the OPC UA service. It can automatically generate, interpret and execute the mapping relationship between the upper and lower computers. This means that it can automatically match the logical points in the host computer (such as digital input / output, analog input / output point table) with the physical points of the PLC, and download these mapping relationships to the PLC through the network. This step realizes the construction of the lower computer point table and ensures the consistency of the upper and lower computer data mapping.

[0037] Example 2 Further illustrate with reference to Example 1, Figure 1-3 The structure shown in the figure has the following specific steps: Install the OPC UA protocol stack in the host data acquisition server and create an OPC UA server; Generate an OPC UA device point table mapping file based on the hardware information, connection mode, offset address, data area type and other parameters of the PLC device, define the structure and content of the address space in the OPC UA server and client, and the mapping relationship between data nodes; In the upper computer, a database mapping point table based on the OPC UA protocol is constructed according to the data variable type and purpose. It is divided into digital input point table, digital output point table, analog input point table, analog output point table, and temperature point table. The number of each point table is determined by the number of PLC I / O modules configured in the lower computer. The organization format of the digital input point table and analog input point table is: Digital input point table: {"ver":12,"type":"ind","items":[{"name":"BY.SOE01_01","addr":"%I4001"}]} (1) "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; (2) "type": ind indicates a digital point table; (3) "name": logical name of the digital point of the host computer; (4) "addr": digital point address of the lower computer.

[0038] Analog input point table: {"ver":6,"type":"ana","items":[{"name":"MEA.10.HD001.BT___1WD___AI12","addr":"%IW1001","transcode":1,"hcode":2000,"lcode":0,"hrange":200,"lrange":0} (1) "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; (2) "type": ana means analog point meter; (3) "name": logical name of analog point of host computer, named according to KKS coding rules of hydropower station MEA.10.HD001.BT___1WD___AI12 represents the temperature of 1# water guide bearing of turbine generator set; (4) "addr": analog point address of the lower computer; (5) "transcode": whether to transcode. If transcoding is not required, the original code value of the PLC point is directly uploaded to the upper computer data acquisition server; if transcoding is required, the original code value of the PLC point is converted into an engineering value and then sent to the upper computer data acquisition server; (a) "transcode" is 0: the value sent is the original code value sampled by the PLC; (b) "transcode" is 1: the value sent is the engineering value sampled and converted by the PLC; (6) "hcode": original code value upper range; (7) "lcode": original code value lower range; (8) "hrange": convert engineering value upper range; (9) "lrange": Convert engineering value lower range.

[0039] Build a lower computer system based on OPC UA, create a project through PLC programming software, export the project as an XML file after compilation, rename it to uapro.xml, connect to PLC through FTP, transfer the uapro.xml file to PLC, download the project and restart PLC, and create an OPC UA client. Figure 2 , by calling the Download interface developed for the OPC UA service, where the Download interface has the functions of generating, interpreting and executing automatic mapping relationships to the OPC UA address space, the upper computer downloads the digital / analog mapping point table to the lower computer, completes the construction of the lower computer point table, and ensures the consistency of the upper and lower computer point tables.

[0040] Based on the OPC UA protocol, fast synchronization of upper and lower computer data is completed, including: (1) When the operation and maintenance personnel update the point table configuration information in the upper computer database editing tool, the point table version number ver is increased by 1. At the same time, the PLC is restarted, the program is started, and the upper computer system determines that a normal link has been established. Then, the GetVersion interface is called to obtain the lower computer point table version number. If the lower computer version is inconsistent with the upper computer version, the lower computer point table needs to be updated. The point table is downloaded to the PLC again through the Download interface, and the physical points inside the PLC are mapped to the logical points of the upper computer.

[0041] (2) If the operation and maintenance personnel replace the on-site sensor during the daily operation and maintenance of hydropower production, and the sensor range changes, the operation and maintenance personnel directly update the range in the single analog point table parameter information corresponding to the sensor through the real-time database of the host computer. At this time, the point table version number ver remains unchanged, and the system calls the UpdateAnaRang interface. The UpdateAnaRang interface is developed for updating a single analog range. The supported data types include single-precision floating point numbers, double-precision floating point numbers, 8-bit unsigned integers, and 8-bit signed integers, which respectively implement the update of engineering value and source code value range. The UpdateAnaRang interface has the function of realizing fast synchronization of the analog point table in the PLC, thereby completing the synchronization of the analog range in the PLC.

[0042] (3) If during the normal operation period of the system, the version of the mapping point table of the lower computer obtained by the upper computer is consistent with that of the upper computer, such as Figure 3, the upper computer data acquisition server completes the lower computer data acquisition work through the nodeid corresponding to the data measurement point in the OPC UA service.

[0043] The above embodiments are only preferred technical solutions of the present invention and should not be regarded as limiting the present invention. The protection scope of the present invention shall be the technical solutions recorded in the claims, including equivalent replacement solutions of the technical features in the technical solutions recorded in the claims. That is, equivalent replacement improvements within this scope are also within the protection scope of the present invention.

Claims

1. A method for realizing fast synchronization of upper and lower computer data based on OPCUA point table mapping, characterized in that: The steps include: S1. Install the OPC UA protocol stack in the host data acquisition server and create an OPC UA server; S2. Generate an OPC UA device point table mapping file to define the structure and content of the address space in the OPC UA server and client, as well as the mapping relationship between data nodes; S3. In the upper computer, a database mapping point table based on the OPC UA protocol is constructed according to the data variable type and purpose, which is divided into a digital input point table, a digital output point table, an analog input point table, an analog output point table, and an electrical point table. The number of each point table is determined by the number of PLC I / O modules configured in the lower computer; S4. Build a lower computer system based on OPC UA. The upper computer downloads the digital / analog mapping point table to the lower computer to complete the construction of the lower computer point table, ensuring the consistency of the upper and lower computer point tables. S5. Complete fast synchronization of upper and lower computer data based on OPC UA protocol, including: When the sensor range changes, the operation and maintenance personnel directly update the range in the single analog point table parameter information corresponding to the sensor through the real-time database of the host computer. At this time, the point table version number ver remains unchanged, and the system calls the UpdateAnaRang interface. The UpdateAnaRang interface is developed for updating a single analog range. The supported data types include single-precision floating point numbers, double-precision floating point numbers, 8-bit unsigned integers, and 8-bit signed integers, which respectively implement engineering value and source code value range updates. The UpdateAnaRang interface has the function of realizing fast synchronization of the analog point table in the PLC, thereby completing the synchronization of the analog range in the PLC.

2. According to claim 1, a method for realizing fast synchronization of upper and lower computer data based on OPC UA point table mapping is characterized by: Step S5 also includes: When the operation and maintenance personnel update the point table configuration information in the upper computer database editing tool, the point table version number ver is increased by 1. At the same time, the PLC is restarted, the program is started, and the upper computer system determines that a normal link is established. Then, the GetVersion interface is called to obtain the lower computer point table version number. If the lower computer version is inconsistent with the upper computer version, the lower computer point table needs to be updated, and the point table is downloaded to the PLC again through the Download interface, and the physical points inside the PLC are mapped to the logical points of the upper computer.

3. According to claim 2, a method for realizing fast synchronization of upper and lower computer data based on OPC UA point table mapping is characterized by: Step S5 also includes: If the system is operating normally, the version of the mapping point table of the lower computer obtained by the upper computer is consistent with that of the upper computer, and the upper computer data acquisition server completes the data acquisition work of the lower computer through the nodeid corresponding to the data measurement point in the OPC UA service.

4. According to claim 1, a method for realizing fast synchronization of upper and lower computer data based on OPC UA point table mapping is characterized by: The organization format of the digital input point table and the analog input point table in step S3 is: Digital input point table: {"ver":12,"type":"ind","items":[{"name":"BY.SOE01_01","addr":"%I4001"}]}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ind means digital point table; "name": logical name of the digital point of the host computer; "addr": digital point address of the lower computer; Analog input point table: {"ver":6,"type":"ana","items":[{"name":"MEA.10.HD001.BT___1WD___AI12","addr":"%IW1001","transcode":1,"hcode":2000,"lcode":0,"hrange":200,"lrange":0}; in: "ver": point table version number, used by the host computer to determine whether the point table needs to be updated; "type": ana means analog point meter; "name": logical name of analog point of host computer, named according to KKS coding rules of hydropower station MEA.10.HD001.BT___1WD___AI12 represents the temperature of 1# water guide bearing of hydro-generator set; "addr": analog point address of the lower computer; "transcode": whether to transcode. If transcoding is not required, the original code value of the PLC point is directly uploaded to the upper computer data acquisition server; if transcoding is required, the original code value of the PLC point is converted into an engineering value and then sent to the upper computer data acquisition server; "transcode" is 0: the value sent is the original code value sampled by PLC; "transcode" is 1: the value sent is the engineering value sampled and converted by the PLC; "hcode": original code value upper range; "lcode": original code value lower range; "hrange": convert engineering value upper range; "lrange": Convert engineering value lower range.

5. According to claim 1, a method for realizing fast synchronization of upper and lower computer data based on OPC UA point table mapping is characterized by: Step S4 is specifically as follows: Build a lower computer system based on OPC UA, create a project through PLC programming software, export the project as an XML file after compilation, rename it to uapro.xml, connect to PLC through FTP, transfer the uapro.xml file to PLC, download the project and restart PLC, and create an OPC UA client; By calling the Download interface developed for the OPC UA service, which has the functions of generating, interpreting and executing automatic mapping relationships to the OPC UA address space, the upper computer downloads the digital / analog mapping point table to the lower computer, completes the construction of the lower computer point table, and ensures the consistency of the upper and lower computer point tables.