PLC register point location information determination method, device, equipment, medium and product

By obtaining source data and display data from the PLC, determining the target data group and generating point information, the problem of determining point information of PLC register in the prior art is solved, and the accurate positioning of the PLC output parameter storage point is realized, which reduces the Engineer professional requirements and positioning difficulty.

CN119396879AInactive Publication Date: 2025-02-07广东知业科技有限公司

Patent Information

Application Number
CN202411479400.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-02-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is difficult to effectively and accurately determine the point information of the PLC registers stored data, especially when the point information, PLC source program or touch screen program provided by the device manufacturer cannot be obtained.

Method used

By obtaining the source data in the PLC and the display data of the parameters to be analyzed, a target data group matching the display data is determined, and point information is generated based on the target data group, indicating the parameters to be analyzed and their register point address in the PLC. Corresponding relationship.

Benefits of technology

It realizes the effective and accurate positioning of PLC register point information, reduces the professionalism requirements for engineers, reduces the difficulty of determining point information, and can still achieve positioning without obtaining the detailed information provided by the manufacturer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396879A_ABST
    Figure CN119396879A_ABST
Patent Text Reader

Abstract

The invention discloses a PLC register point location information determination method, apparatus and device, a medium and a product. The method comprises the steps of obtaining display data of to-be-analyzed parameters and source data in a PLC; wherein the source data comprises a data set, and the data set comprises a register point location address and a stored data value; the to-be-analyzed parameters comprise all or part of parameters displayed by the HMI; determining a target data group matched with the display data from the source data; according to the target data set, point location information of the to-be-analyzed parameter is generated, and the point location information represents the corresponding relation between the to-be-analyzed parameter and the register point location address of the to-be-analyzed parameter in the PLC. According to the application, accurate positioning of the PLC register point location address can be realized without using a PLC source program or a touch screen program or depending on detailed point location information provided by a manufacturer, so that the PLC data can be directly applied to various control scenes and monitoring scenes, and a basis is provided for improving the production efficiency and reducing the production cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control technology, and in particular to a method, device, equipment, medium and product for determining PLC register point information. Background Art

[0002] With the vigorous development of the industrial Internet, data collection has become an indispensable part of intelligent manufacturing and industrial automation. It not only provides a solid data foundation for equipment monitoring, process optimization, intelligent decision-making and predictive maintenance, but also has a significant impact on improving production efficiency and reducing operating costs. In this process, it is particularly important to accurately locate the points of the equipment, which ensures accurate data collection and real-time feedback, and makes it possible to deeply analyze the production process, capture key performance indicators and implement fine control. For example, in the PLC system of industrial automation control, the main control room collects the production data of each PLC device in the production site, and then realizes the analysis and application of various types of collected data based on the precise positioning of the points.

[0003] The point information of data storage points in PLC is currently determined mainly through the following methods: 1. Detailed point information is provided by the equipment manufacturer; 2. Engineers analyze the PLC source program provided by the equipment manufacturer to determine the point information; 3. Analyze the touch screen program of the PLC device to obtain important point information in the device.

[0004] However, each of the above acquisition methods has its limitations: due to commercial confidentiality or other reasons, users cannot obtain the point information or PLC source program provided by the equipment manufacturer, nor can they obtain the touch screen program; even if the PLC source program or touch screen program can be obtained, the method of determining the point information by analyzing the PLC source program or touch screen program requires engineers to have high professionalism and is difficult to implement. Therefore, the point information of the data stored in the PLC register cannot be effectively and accurately determined at present. Summary of the invention

[0005] The purpose of this application is to provide a method, device, equipment, medium and product for determining PLC register point information, so as to achieve effective and accurate positioning of PLC register point information.

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

[0007] In a first aspect, the present application provides a method for determining PLC register point information, the method comprising:

[0008] Obtaining display data of the parameter to be analyzed and source data in the PLC; wherein the source data includes at least one data group, each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC;

[0009] Determine a target data group matching the display data from the source data;

[0010] According to the target data group, the point information of the parameter to be analyzed is generated, and the point information represents the corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

[0011] Optionally, the PLC register point information determination method provided in the present application, determines from the source data a target data group that matches the display data, including: generating matching conditions corresponding to the display data; and determining from the source data a target data group whose data values ​​satisfy the matching conditions.

[0012] Optionally, the PLC register point information determination method provided in the present application determines from the source data a target data group whose data values ​​satisfy the matching conditions, including: matching the data values ​​in each data group with the display data to obtain a matching result, the matching result including at least one group of quasi-target data groups that meet the matching conditions; and determining the target data group from the quasi-target data groups according to the set filtering conditions.

[0013] Optionally, in the method for determining PLC register point information provided by the present application, the display data includes a display data value and / or a display data range, and the matching condition includes a matching value corresponding to the display data value and / or a matching interval corresponding to the display data range;

[0014] The data values ​​in each data group are matched with the display data to obtain matching results including:

[0015] From the source data, searching for a data group whose data value is consistent with the matching value as the quasi-target data group;

[0016] and / or

[0017] From the source data, a data group whose data value is within the matching interval is searched as the quasi-target data group.

[0018] Optionally, in the method for determining PLC register point information provided by the present application, the screening condition includes a data type and a data attribute, and determining the target data group from the quasi-target data group according to the set screening condition includes:

[0019] From the quasi-target data group, find out the data group data attributes and data attributes whose data types and data attributes match the data types and data attributes in the screening condition.

[0020] Optionally, according to the set screening condition, determining the target data group from the quasi-target data group includes:

[0021] Tracking data values ​​in each of the quasi-target data sets;

[0022] Tracking the displayed data of the parameter to be analyzed;

[0023] From each quasi-target data group, determine a data group having a synchronous change relationship with the displayed data of the parameter to be analyzed;

[0024] The screening conditions include: synchronous change relationship.

[0025] Optionally, the method for determining the PLC register point information provided by the present application, the point information also includes the corresponding relationship between the parameter name of the parameter to be analyzed, the register point address, the data type and the correction information;

[0026] The step of generating point information corresponding to the to-be-matched data according to the target data group includes:

[0027] The correction information is determined according to the displayed data of the parameter to be analyzed at any time and the data value stored in the corresponding register point address at the same time; wherein the correction information represents the conversion relationship between the data value in the register point address and the corresponding displayed data;

[0028] Establish a corresponding relationship between the parameter name, register point address, data type and correction information of the parameter to be analyzed.

[0029] Optionally, the method for determining PLC register point information provided by the present application, wherein obtaining source data in the PLC includes:

[0030] Obtaining snapshot data in at least one data area in the PLC;

[0031] Convert the snapshot data into a preset storage format to obtain analysis data;

[0032] The data group whose data value in the analysis data is non-zero is screened to obtain the source data.

[0033] Optionally, the method for determining the PLC register point information provided by the present application, after generating the point information of the parameter to be analyzed, further includes:

[0034] Tracking the displayed data of the parameter to be analyzed within a preset time period, and tracking the data value in the register point address in the corresponding relationship;

[0035] Determine whether the displayed data of the parameter to be analyzed changes synchronously with the change of the data value in the register point address in the corresponding relationship;

[0036] If it is determined that there is an asynchronous change, the process returns to execute the step of obtaining the display data of the parameter to be analyzed and the source data in the data area of ​​the PLC and subsequent steps.

[0037] Optionally, the method for determining the PLC register point information provided by the present application, after generating the point information of the parameter to be analyzed, the method further includes:

[0038] The point information is sent to the remote control terminal, so that after the remote control terminal obtains the source data in the PLC, it determines the display data corresponding to the parameter to be analyzed from the source data based on the obtained point information, and displays it on the output device of the remote control terminal.

[0039] In a second aspect, the present application provides a device for determining PLC register point information, characterized in that the device comprises:

[0040] An acquisition module is used to acquire display data of the parameter to be analyzed and source data in the PLC; wherein the source data includes at least one data group, each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC;

[0041] A processing module, used for determining a target data group matching the display data from the source data;

[0042] A generating module is used to generate point information of the parameter to be analyzed according to the target data group, wherein the point information indicates the corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

[0043] In a third aspect, the present application provides a processing device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to implement the method for determining PLC register point information as described in the first aspect.

[0044] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for determining PLC register point information as described in the first aspect is implemented.

[0045] In a fifth aspect, the present application provides a computer program product, which includes instructions. When the instructions are executed, the method for determining the PLC register point information as described in the first aspect is executed.

[0046] According to the specific embodiments provided in this application, the following technical effects are disclosed:

[0047] The embodiment of the present application provides a method, device, equipment, medium and product for determining the position information of a PLC register, based on the corresponding relationship between the real-time value of the monitoring parameter displayed on the PLC touch screen and the data value stored in the PLC register position address, to determine the position information of the PLC register: first, the display data of the parameter to be analyzed and the source data in the PLC can be obtained, and then the target data group matching the display data can be determined from the source data, and finally the position information of the parameter to be analyzed is generated using the determined target data group, that is, the corresponding relationship between the parameter to be analyzed and the register position address in the PLC is constructed, so as to realize the accurate positioning of the storage position of the output parameter of the PLC. It can be seen that the present application can be implemented without using the PLC source program or the touch screen program, and does not rely on the detailed position information provided by the manufacturer, so as to avoid excessive reliance on the source program provided by the PLC equipment manufacturer, and even if the position information or the PLC source program provided by the equipment manufacturer cannot be obtained, and the touch screen program cannot be obtained, positioning can be realized; at the same time, since it is not necessary to determine the data point through the PLC source program provided by the equipment manufacturer, the professional requirements for engineers are also reduced, thereby reducing the difficulty of determining the position information. In the actual production process, after determining the point information of the parameters to be analyzed through the embodiments of the present application, truly valuable information can be extracted from numerous devices and sensors based on the point information, so that the PLC data can be directly applied to various control scenarios and monitoring scenarios, providing a basis for improving production efficiency and reducing production costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a schematic diagram of the scenario of this application;

[0049] Figure 2 A schematic diagram of the structure of a system for determining PLC register point information in some embodiments of the present application;

[0050] Figure 3 A schematic diagram of the principle of a method for determining PLC register point information in some embodiments of the present application;

[0051] Figure 4 A flowchart of a method for determining PLC register point information according to some embodiments of the present application;

[0052] Figure 5 A schematic diagram of a touch screen display result and a determined point information result according to some embodiments of the present application;

[0053] Figure 6 A schematic diagram of obtaining raw data of a PLC in some embodiments of the present application;

[0054] Figure 7 A schematic diagram of preprocessing raw data of a PLC according to some embodiments of the present application;

[0055] Figure 8 A schematic diagram of source data of a PLC in some embodiments of the present application;

[0056] Fig. 9 A schematic diagram of a process for matching and filtering source data of a PLC according to some embodiments of the present application;

[0057] Fig.10 A schematic diagram of a quasi-target data set of a PLC in some embodiments of the present application;

[0058] Fig.11 This is a schematic diagram of the results of filtering the target data set in some embodiments of the present application;

[0059] Fig.12 A schematic diagram of the results of filtering the target data set in some other embodiments of the present application;

[0060] Fig.13 A schematic diagram of the results of filtering the target data set in some other embodiments of the present application;

[0061] Fig.14 A schematic diagram of the results of filtering the target data set in some other embodiments of the present application;

[0062] Fig.15 A schematic diagram of the structure of a device for determining PLC register point information in some embodiments of the present application;

[0063] Fig.16 A schematic diagram of the structure of a processing device provided for some embodiments of the present application. DETAILED DESCRIPTION

[0064] The present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0065] Technical term explanation:

[0066] Programmable Logic Controller (PLC): PLC is a digitally operated electronic system used for industrial automation control. It uses programmable memory to store instructions for performing operations such as logic operations, sequential control, timing, counting and arithmetic operations, and controls various types of machinery or production processes through digital or analog input / output.

[0067] Points: PLC points are stored in the PLC memory. PLC operating devices are realized through points. These points serve as interfaces between PLC and external devices, receiving input signals from sensors or sending control signals to actuators, thereby achieving precise control of various devices in industrial automation processes such as motors, valves, relays, etc. Input points monitor various parameters on the production line, such as temperature, pressure, flow, etc., and convert these analog or digital signals into a format that can be processed by PLC; while output points adjust or activate related equipment according to the logical decision of the PLC program to ensure that the production process is carried out in accordance with the predetermined order and parameters.

[0068] It is understandable that the PLC controller used in industry is equivalent to or close to a compact computer host. Its advantages in scalability and reliability make it widely used in various industrial control fields. The automation of industrial systems also means completing the on-site data collection of production equipment at the same time. Data collection is an important guarantee for completing the industrial Internet platform or application planning, and provides a basis for the digital transformation of manufacturing enterprises.

[0069] Figure 1 The following is a schematic diagram of the application scenario of this application. Figure 1 As shown, in this scenario, multiple PLC devices configured in a production workshop may be included.

[0070] Among them, each PLC device is equipped with a touch screen (HMI) so that engineers can realize human-computer interaction through the touch screen, that is, input various control parameters, and read various monitoring parameters from the touch screen, such as production parameters such as output, as well as temperature, humidity and electrical parameters in the production environment.

[0071] It is understandable that in this scenario, Figure 1 After the production line control system shown is arranged and put into actual production, engineers need to go to the site to grasp and monitor the monitoring parameters of the production process through the touch screen display interface of each PLC device.

[0072] It can also be understood that the real-time numerical value of the monitoring parameter displayed on the touch screen of the PLC comes from the data value stored in the address corresponding to the register point of the PLC device itself (which can be simply referred to as the register point address or point address).

[0073] Furthermore, as the scale of production expands and output increases, in order to further improve production efficiency, reduce production costs, and avoid engineers having to go through the site, remote control equipment can be further configured based on the above-mentioned equipment layout.

[0074] For example, a remote control device capable of transmitting data with each PLC device can be configured in the main control room, so that during the production process, the production data from each PLC device at the production site can be centrally collected to the remote control device, and then processed and displayed on the remote control device, so that engineers can directly control the monitoring parameters related to the production data at the production site in real time through the remote control device.

[0075] In practice, since the touch screen only displays the data value results corresponding to the monitoring parameters and cannot reflect the register point address, the remote control device cannot effectively and accurately locate the register point of the data collected in the PLC device, and thus cannot be directly used for display and processing on the central console.

[0076] That is, in the above scenario, in order to display the production data values ​​corresponding to the monitoring parameters collected from the PLC device, it is necessary to clarify the point information (including the corresponding relationship between the production data value of each monitoring parameter and the register point address in the PLC), so that the collected production data can be accurately displayed and processed based on the determined point information. In the related technology, the determination of the point information of the data storage point in the PLC is mainly achieved by engineers analyzing the PLC source program or touch screen program provided by the equipment manufacturer.

[0077] Due to commercial confidentiality or other reasons, the above method has great limitations. In this application, in order to accurately locate the point information of the PLC register, a PLC register point determination method, device, equipment, medium and product are provided. The point address and data type corresponding to the data displayed on the touch screen are automatically identified by searching the data in the PLC data area. That is, through data analysis, the point address and data type of the display data can be found, thereby realizing rapid positioning of the register point.

[0078] like Figure 2 Shown is an exemplary architecture diagram of the PLC register point information determination system provided by the present application.

[0079] like Figure 2 As shown, the system may include a processing device, a PLC and a touch screen.

[0080] The processing device and the touch screen can be connected to the PLC via an Ethernet port or a serial port to achieve data interaction. That is, the PLC and the processing device with the analysis software installed can be connected via a serial port or a switch, so that the processing device and the HMI can communicate with the PLC at the same time.

[0081] The processing device can obtain the data stored in the data area of ​​the PLC through the connection with the PLC. For example, the source data to be analyzed can be obtained from the PLC according to the set communication protocol.

[0082] The touch screen can also obtain the data stored in the data area of ​​the PLC through the connection with the PLC, and display it in the corresponding area of ​​the touch screen.

[0083] Among them, analysis software is running on the processing device, and the analysis software can analyze and process the acquired source data based on the set algorithm, and quickly and accurately determine the register point information corresponding to the parameter to be analyzed.

[0084] Since the real-time value displayed on the HMI is obtained based on the data value stored in the PLC register point address, there is a mapping relationship (or corresponding relationship) between the real-time value displayed on the HMI and the PLC register point address. Once the mapping relationship is clarified, the accurate positioning of the register point address can be achieved.

[0085] If Figure 3 The schematic diagram of the principle of determining the PLC register point information provided by the present application is shown. The present application finally determines the point information of the PLC register by searching the PLC source data through the processing device, and generates a correspondence table between the monitoring parameters displayed on the touch screen and the PLC register point information for subsequent use in other scenarios, such as remote control equipment.

[0086] For example, for monitoring parameters such as output, pressure, temperature and distance, the display data of the above monitoring parameters on the touch screen is used as search data and input into the processing device, and then the processing device performs matching and search on the source data in the PLC, and finally generates the point information corresponding to each monitoring parameter.

[0087] In order to better understand the PLC register point determination method, device, equipment and medium provided in the present application, the following is a detailed description with reference to the accompanying drawings.

[0088] Figure 4 The figure is a flow chart of a method for determining a PLC register point provided in some embodiments of the present application.

[0089] This method can be done by Figure 2 and Figure 3 The processing device shown in the figure is executed, and the method may specifically include the following steps:

[0090] S110, obtaining display data of the parameter to be analyzed and source data in the PLC; wherein the source data includes at least one data group, and each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC.

[0091] S120: Determine a target data group matching the display data from the source data.

[0092] S130, generating point information of the parameter to be analyzed according to the target data group, wherein the point information is at least used to indicate a corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

[0093] Specifically, in some embodiments of the present application, in order to determine the position information of the parameter to be analyzed displayed on the touch screen in the PLC register, the processing device may first obtain the source data stored in the data area of ​​the PLC.

[0094] For example, the PLC and the processing device are connected via a serial port or a switch, so that the analysis tool can communicate with the PLC, and then the source data in the PLC data area can be read through the selected communication protocol and the running analysis software.

[0095] The above parameters to be analyzed may include all or part of the parameters displayed by the output device of the PLC, that is, may include all or part of the monitoring parameters involved in the generation process displayed by the HMI. Figure 3 , Figure 5 and Fig.11 As shown, the parameter to be analyzed may include at least one monitoring parameter of output, temperature, pressure, distance, etc. displayed by the HMI, and the present application does not impose any limitation on this.

[0096] Correspondingly, the above-mentioned display data includes the data value of the parameter to be analyzed displayed on the touch screen, and specifically, may include the data value or value range of the monitoring parameter displayed on the HMI. Figure 3 , Figure 5 and Fig.11 As shown, the displayed data may include output, output values ​​corresponding to parameter 1 and parameter 2, temperature values, humidity values, etc.

[0097] It can be understood that the physical meanings represented by the above parameters to be analyzed are merely exemplary and are not limited in this application.

[0098] Correspondingly, such as Figures 7 to 9 As shown, the acquired source data may include at least one data group, which may include a data value and a register bit address storing the data value.

[0099] And, if Figures 7 to 9 As shown, the data group also includes the data type corresponding to the data value.

[0100] It can be understood that each parameter to be analyzed may correspond to one or more data groups. Therefore, in the present application, it is necessary to determine the data group (i.e., the target data group) corresponding to each parameter to be analyzed. Obviously, the target data group includes the register point address corresponding to the parameter to be analyzed, and may also include the data type.

[0101] Finally, point information of the parameter to be analyzed that represents the corresponding relationship between the parameter to be analyzed and its point address in the PLC register can be generated according to the determined target data group.

[0102] That is, the displayed data of the parameter to be analyzed on the output device is compared one by one with the data stored in the register of the PLC to determine the point information corresponding to the parameter to be analyzed.

[0103] like Figure 3 and Figure 5 As shown, the generated point information can at least be used to indicate: the corresponding relationship between the monitoring parameters displayed on the output device (such as HMI) and the register point address.

[0104] It can be understood that in the embodiment of the present application, based on the real-time numerical value of the monitoring parameter displayed on the PLC touch screen, there is a corresponding relationship between the data value stored in the PLC register point address to determine the point information of the PLC register: obtain the display data of the parameter to be analyzed, and the source data in the PLC, and then determine the target data group that matches the display data from the source data, and finally use the determined target data group to generate the point information of the parameter to be analyzed, that is, to construct the corresponding relationship between the parameter to be analyzed and its register point address in the PLC, so as to achieve the accurate positioning of the storage point of the output parameter of the PLC. The present application does not need to use the PLC source program or touch screen program, nor does it rely on the detailed point information provided by the manufacturer to implement, therefore, it avoids excessive reliance on the source program provided by the PLC equipment manufacturer, and can achieve positioning even if it is impossible to obtain the point information or PLC source program provided by the equipment manufacturer, and it is impossible to obtain the touch screen program; at the same time, since it is not necessary to determine the data point through the PLC source program provided by the equipment manufacturer, the professional requirements for engineers are also reduced, thereby reducing the difficulty of determining the point information. In the actual production process, after determining the point information of the parameters to be analyzed through the embodiments of the present application, truly valuable information can be extracted from numerous devices and sensors based on the point information, so that the PLC data can be directly applied to various control scenarios and monitoring scenarios, providing a basis for improving production efficiency and reducing production costs.

[0105] Optionally, in some embodiments of the present application, in S110, the source data in the PLC is obtained, which can be specifically implemented by the following steps:

[0106] S111, obtaining snapshot data in at least one data area in the PLC.

[0107] S112: Convert the snapshot data into a preset storage format to obtain analysis data.

[0108] S113, screening the data group whose data value in the analysis data is non-zero to obtain the source data.

[0109] Specifically, in an embodiment of the present application, by processing the communication between the device and the PLC, the snapshot data in the PLC data area can be first loaded, and then the data in the snapshot data can be converted into a preset storage format according to different partitions, such as converted into a data table storage format, to obtain analysis data.

[0110] like Figure 6 and Figure 7 As shown, the original data from DB1 to Q area can be read to form a corresponding data snapshot, and then the data in the data snapshot can be converted into analytical data in a data table format.

[0111] It can be understood that the division of data areas of different PLC products is not the same, and the effective range of different data areas is also different.

[0112] For example, the data area of ​​Siemens PLC products can be divided into DB area (such as DB1, DB2, DB3...DB500), M area, I area, Q area, etc.; the data area of ​​Mitsubishi PLC products can be divided into D area, M area, X area, Y area, etc.

[0113] In practice, the names of the data areas of PLC products are different, but after the division is completed, the functions of each data area are fixed.

[0114] For example, for Siemens data division, its I area represents the storage area for input data, and Q area represents the storage area for output data.

[0115] In practice, when reading the original data in the PLC register data area, the data in the data area can be read out in full according to each area to form a data snapshot. Alternatively, in some embodiments, in order to improve data processing efficiency and reduce data processing volume, the original data in part of the data area can be read according to experience.

[0116] For example, based on the experience of data area division, the data values ​​of temperature or humidity and other analysis parameters are usually stored in area y as input data. When reading the original data, only the data in the target data area, that is, area y, needs to be read.

[0117] Furthermore, after obtaining the analysis data, in order to further improve the data processing efficiency, the analysis data can be preprocessed to eliminate invalid data therein, that is, all data with a value of 0 can be preliminarily excluded, and non-zero data can be sorted into a temporary data table to obtain the source data.

[0118] For example, Figure 7 The analysis data shown in the figure is preprocessed to obtain Figure 8 Source data shown.

[0119] Obviously, if Figure 8 As shown, the source data may include at least one data group, and each data group may include a register point address, a data value and a data type.

[0120] The register point address may represent the storage address of a register point, which is generally a specific address within a specific partition.

[0121] If a register point address is mapped to a monitoring parameter displayed on the HMI, the data value stored in the point address is used to generate the display data of the corresponding monitoring parameter. Figure 8 In the example, DB1.DBW2 is mapped to the monitoring parameter of output. The data displayed in the output item on the HMI comes from the data stored in DB1.DBW2. Figure 5 In the point information shown, the register point address of the parameter to be analyzed, output, may be DB1.DBW2.

[0122] The above data types may include WORD, DWORD, INT, etc.

[0123] WORD usually represents a 16-bit (2-byte) data type. It can be used to store unsigned integers with a value range of 0 to 65535 (2 16 -1), and in signed representation, the value range is -32768 to 32767 (using two's complement representation).

[0124] That is, in the programming corresponding to the PLC device (such as assembly language), some simple values ​​or status information can be represented by directly operating WORD type data.

[0125] DWORD is a 32-bit (4-byte) data type. For an unsigned DWORD, its value range is 0 to 4294967295 (2 32 -1), and the value range of signed DWORD (using two's complement) is -2147483648 to 2147483647. In PLC devices, DWORD is often used to represent some system-related values, such as process identifier (PID), part of memory address, etc.

[0126] The INT data type can represent a signed integer. Its size depends on the processor architecture and assembler settings used. It can usually be used to represent various values, such as loop counters, array indexes, and intermediate results in mathematical calculations.

[0127] It can be understood that in the embodiment of the present application, the source data of the PLC can be obtained by reading the data snapshot, transferring the data snapshot and pre-processing the 0 data, which makes full preparation for the subsequent determination of the point information.

[0128] Optionally, in some embodiments of the present application, in S120, when determining the target data group matching the display data from the source data, it can be specifically implemented by the following steps:

[0129] S121, generating matching conditions corresponding to the display data.

[0130] S122, determining a target data group whose data values ​​meet the above matching condition from the source data.

[0131] Specifically, in the embodiment of the present application, the processing device may first generate corresponding matching conditions based on the acquired display data, that is, the search data input by the user.

[0132] The input display data may include a display data value and / or a display data range. Correspondingly, as shown in Table 1, the matching condition may include a matching value corresponding to the display data value and / or a matching interval corresponding to the display data range.

[0133] For example, the user can input the display data of the current monitoring parameters on the touch screen as search data according to the display results on the touch screen, and input it into the above-mentioned processing device, so that the processing device obtains the display data of the parameters to be analyzed, and then organizes and generates corresponding matching conditions according to the display data input by the user.

[0134] like Figure 5 As shown, the user can input 4106, 846, 10000-50000 based on the display results on the touch screen, namely three sets of search data including two precise display data values ​​and one set of display data range values, and then the matching conditions can be sorted out using the above three sets of search data.

[0135] Correspondingly, the generated matching condition may specifically include two matching values ​​corresponding to two precise search values, and a matching interval corresponding to a search interval.

[0136] The details can be shown in Table 1 below:

[0137] Table 1

[0138]

[0139] Alternatively, in some other embodiments of the present application, the matching condition may also include a linear function relationship. Exemplarily, the quotient between the display data and the data value in the data group may be equal to 10 to the Nth power as a matching condition. For example, the quotient between the display data and the data value in the data group may be calculated, and if the quotient is equal to 10 to the 0th power, 10 to the 1st power, 10 to the -1th power, 10 to the -2th power, 10 to the 2nd power, etc., then the two are matched.

[0140] It is understandable that the matching condition can be flexibly set according to actual conditions, and this application does not impose any restrictions on this.

[0141] Furthermore, in an embodiment of the present application, the data values ​​in each data group in the source data can be traversed according to the generated matching conditions to determine the target data group whose data values ​​meet the matching conditions, that is, by comparing the data values ​​in each data group in the source data one by one, the data group containing the data values ​​that meet the matching conditions can be found as the target data group.

[0142] Optionally, in some embodiments of the present application, in S122, in order to determine the target data group, the following steps may be performed:

[0143] S01, matching data values ​​in each data group with data values ​​in a matching condition to obtain a matching result, wherein the matching result includes at least one quasi-target data group that meets the matching condition.

[0144] Specifically, when determining the target data group, the matching conditions generated based on the search data are used as the search basis, and compared one by one with the data values ​​in the source data in the acquired PLC, so as to determine the data group corresponding to the data matching the corresponding matching conditions as the quasi-target data group, and finally determine the target data group from the quasi-target data group using the set screening conditions.

[0145] According to the above embodiments, the input display data may include a display data value and / or a display data range. Correspondingly, as shown in Table 1, the matching condition may include a matching value corresponding to the display data value and / or a matching interval corresponding to the display data range.

[0146] When the data values ​​in each data group are matched with the display data to obtain a matching result, the data values ​​in the source data may be specifically compared with the matching value and / or the matching interval.

[0147] For example, when the display data includes a display data value, so that the matching condition generated based on the display data value includes a matching value, a data group whose data value in the data group in the source data is consistent with the matching value can be searched from the source data as a quasi-target data group.

[0148] Alternatively, in other embodiments, when the display data includes a display data range, so that the matching condition generated based on the display data range includes a matching interval, a data group whose data values ​​are within the matching interval can be searched from the source data as the quasi-target data group.

[0149] It can be understood that, through the matching condition, at least one data group that meets the matching condition can be screened out from the source data as a quasi-target data group.

[0150] For example, when the generated matching conditions include matching values ​​and matching intervals as shown in Table 1, the source data can be Fig. 9 The data in the temporary data table shown are matched, compared and marked one by one with the matching values ​​and the data values ​​in the matching interval, and the data that does not meet the conditions is marked as filtered, and the remaining data forms a new data table, that is, the matching result.

[0151] It can be understood that in the embodiment of the present application, when performing matching comparison, linear scaling of data can also be automatically considered. For example, if the search data is 846, then the data of the five values ​​of 84.6, 846, 8460, 84600, and 846000 are all considered as matching data. Figure 8 As shown, the data group containing the above five data values ​​is determined as the quasi-target data group.

[0152] It can also be understood that in some embodiments, when the acquired source data includes data from multiple data areas, the determined quasi-target data group may also include data from different data areas, and the quasi-target data groups of each data area can be aggregated into the final data result, i.e., the matching result.

[0153] For example, Fig. 9 As shown, the matching results of each data area are summarized into the final matching result.

[0154] S02: Determine a target data group from the quasi-target data group according to the set screening conditions.

[0155] It should be noted that if the matching result includes only one quasi-target data set, step S02 may not be performed, and the only one quasi-target data set may be directly determined as the target data set.

[0156] In one example, the above-mentioned screening conditions may include data types and data attributes.

[0157] It should be noted that each parameter to be analyzed may correspond to its own screening condition, or some parameters to be analyzed may share the same screening condition.

[0158] The data types may include Word, DWord and other types; the data attributes may include positive and negative attributes, integer attributes and the like.

[0159] As mentioned above, the parameters to be analyzed in the embodiments of the present application may include some or all of the monitoring parameters displayed by the HMI in the automated production process, such as output, temperature, humidity, and electrical parameters, etc. These monitoring parameters have actual physical meanings and attribute characteristics under business scenarios.

[0160] For example, for production parameters, they are positive integer values ​​that are stable over a period of time; monitoring parameters such as humidity can be positive numbers with decimal points, and temperature may be a positive number with a decimal point, or its value range may span positive and negative values, depending on the specific production scenario. Electrical parameters can be positive values ​​that fluctuate over a period of time. For example, voltage or current will fluctuate within a stable range during normal production.

[0161] The physical meanings and attribute characteristics of the above monitoring parameters can be shown to have corresponding data types and data attributes. For example, for a production parameter, its data type can be a Word type, and its data attribute can be a positive integer.

[0162] Therefore, the data type and data attribute of the parameter to be analyzed can be used as screening conditions to finally determine the target data group.

[0163] The same is true for other business scenarios. The data type and data attribute in the filtering conditions can also be determined according to the business scenario, which will not be elaborated here.

[0164] In another example, the above-mentioned screening condition may include: synchronous change relationship.

[0165] Because there is a mapping relationship between the real-time numerical value displayed on the HMI and the PLC register point address, the display data of the monitoring parameters displayed by the PLC output device (such as the touch screen) and the original data stored in the mapped register point address are in a synchronous change relationship. Therefore, when screening the quasi-target data group, the target data group can be screened out from the quasi-target data group based on whether it meets the synchronous change relationship.

[0166] The above-mentioned synchronous change relationship may specifically include time synchronization and / or value synchronization, where:

[0167] Time synchronization can refer to that the display data of the parameter to be analyzed and the data value stored in the register point address should have synchronous change time.

[0168] That is, within a period of time, the changes in the data values ​​of the two are synchronized, for example, they remain unchanged within a period of time, or they change at the same time.

[0169] Exemplarily, value synchronization may mean that the displayed data of the parameter to be analyzed and the data stored in the register point address are synchronously matched for consecutive changes, that is, before and after each change, the displayed data of the parameter to be analyzed and the data value stored in the register point address match.

[0170] For example, assuming that the data value of a certain quasi-target data set X is 800 before the change and 810 after the change, and the displayed data of a certain parameter to be analyzed Y is 8 before the change and 8.1 after the change, and they are matched before and after the change (there is a linear function relationship), then it can be considered that the values ​​of the two changes this time are synchronously matched. If this happens for more than several consecutive times (such as 3 times), or the values ​​of each change are synchronously matched, then it can be determined that the values ​​of the quasi-target data set X and the parameter to be analyzed Y are synchronized.

[0171] It can be understood that the above-mentioned consecutive times can be determined according to actual conditions, and this application does not impose any limitation on this.

[0172] Alternatively, value synchronization may refer to that the data values ​​read out of the register point address multiple times in succession all match the displayed data of the parameter to be analyzed at the corresponding time.

[0173] For example, assuming that the number of consecutive times is 3, the data value read from the register point address x in a quasi-target data group X at time point a1 is 800, the data value read from time point a2 is 810, the data value read from time point a3 is 812, and the data value read from time point a4 is 820. The displayed data of a parameter to be analyzed Y at time points a1-a4 are 8, 8.1, 8.12, and 8.20, respectively. If the data values ​​read from the register point address x for multiple consecutive times match the displayed data of the parameter to be analyzed Y at the corresponding time, it can be considered that the quasi-target data group X and the parameter to be analyzed Y are synchronized.

[0174] In other examples of the present application, the above-mentioned screening conditions may include synchronous change relationships, data types and data attributes at the same time.

[0175] In summary, when using screening conditions to determine the target data group, it can be achieved by combining the data type, data attribute and / or the relationship between the data value in the quasi-target data group and the change of the display data of the parameter to be analyzed. For example, the target data group can be screened only according to the data type and data attribute, or only according to the change relationship between the two, or the data type, data attribute and the change relationship between the two can be combined simultaneously to accurately and quickly determine the target data group.

[0176] The following describes the filtering conditions, including the synchronous change relationship, data type, and filtering method corresponding to the data attribute.

[0177] Step S02 can be specifically implemented through the following steps:

[0178] S001, from the quasi-target data group, find a data group whose data type and data attribute match the data type and data attribute in the screening condition.

[0179] by Fig.11 As shown in the example, the output quantity displayed on the touch screen HMI is 4106. When matching is performed in combination with the matching conditions generated in Table 1 above, there are four records in the data results, that is, the generated matching results include four quasi-target data groups.

[0180] The four quasi-target data groups involve two different addresses, namely DB1.DBW2 and DB2.DBW2, and each address corresponds to two different data types, namely Word and INT16.

[0181] Afterwards, when filtering is performed in step S001, it can be determined whether the data type in the filtering condition is a WORD type or an INT16 type based on the data type determined by the actual business scenario.

[0182] Assuming that in combination with the actual business scenario, the data type in the filtering condition corresponding to the output is set to Word, then the two quasi-target data groups with the data type of INT16 can be eliminated, and the remaining two data groups with the data type of WORD type.

[0183] It can be understood that if the same address corresponds to different data types such as DWORD and INT32, or LWORD and INT64 types, it can also be filtered based on the data types and data attributes applicable to the business scenario.

[0184] For the remaining two data groups whose data types are WORD type, the following steps S002-S004 can be performed:

[0185] S002, tracking the data values ​​in each quasi-target data group.

[0186] Each time a data value is tracked, the data value in each quasi-target data group is re-read.

[0187] S003, tracking the displayed data of the parameter to be analyzed.

[0188] The tracking times and occurrence times of the displayed data correspond one-to-one with the tracking times and occurrence times of the data values ​​in each quasi-target data group.

[0189] S004, determining a quasi-target data group having a synchronous change relationship with the displayed data of the parameter to be analyzed as a screening result.

[0190] It can be understood that if the displayed data obtained in each of multiple consecutive tracking of a parameter to be analyzed matches the data values ​​of a certain (or some) quasi-target data group in the same tracking, the two satisfy time synchronization and value synchronization and have a synchronous change relationship.

[0191] For the case where the register point address obtained previously is not unique (for example, the case where the remaining data type is two data groups of WORD type), in this implementation, it is necessary to further exclude those points that just happen to have the same data. Usually, when the equipment is in normal production, the data will change as the production work progresses, so it is possible to track whether the data value of a specific register point changes synchronously with the parameter to be analyzed to exclude the register point addresses that just happen to have the same data.

[0192] During the tracking process, the specific register point address can be re-read multiple times to obtain the latest data value.

[0193] For example, Fig.12 As shown, for parameter 1 to be analyzed, it is assumed that three quasi-target data groups are determined by step 01. Among them, there are three register point addresses (can be called candidate point addresses) in the three quasi-target data groups, and the data type is WORD. The corresponding register point addresses can be called candidate points.

[0194] At this time, if the target data group cannot be screened out from the quasi-target data group based on the data type and data attribute, the final screening can be performed based on whether there is a synchronous change relationship.

[0195] The specific method is as follows:

[0196] First, the point information of one or more candidate points, including the candidate point address and data type, can be input on the operation interface of the analysis software, so as to read the latest data of the input point information respectively.

[0197] For example, you can enter Fig.12 The three candidate point addresses DB1.DBW48, DB3.DBW280 and QW82 in the three quasi-target data groups screened for parameter 1 are shown.

[0198] In addition to parameter 1, in some embodiments, in order to further determine the point address of the parameter to be analyzed, the following may be input: Fig.11 The two candidate point addresses whose data types are both WORD are screened out as shown: DB1.DBW2 and DB2.DBW2.

[0199] Furthermore, the latest data values ​​of the above five candidate point addresses in the PLC register are read.

[0200] As shown in Table 2 and Table 3 below:

[0201] Table 2 Candidate point addresses

[0202] address Data Types quantity DB1.DBW2 WORD 1 DB2.DBW2 WORD 1 DB1.DBW48 WORD 1 DB3.DBW280 WORD 1 QW82 WORD 1

[0203] Table 3 Reading results

[0204] address Data Value Data Types DB1.DBW2 4108 WORD DB2.DBW2 4106 WORD DB1.DBW48 8460 WORD DB3.DBW280 25632 WORD QW82 8460 WORD

[0205] Compare the data values ​​read from Table 3 with the current display results of the HMI.

[0206] For example, the current output changes from the initial 4106 to 4108, and the displayed data of other parameters to be analyzed do not change. However, if the current latest result is read out, and the data stored in only one candidate point address matches it, it can be determined that DB1.DBW2 (WORD) is the point of output data. Fig.13 shown.

[0207] Similarly, after re-reading multiple times (i.e. tracking the data values ​​of the candidate point addresses), we can see that the data of parameter 1 is still 846 and has not changed, while two of the three candidate point addresses corresponding to it have not changed. The changed DB3.DBW280 has changed to 25632 and no longer matches it, so it is excluded. At this time, there are two remaining addresses, DB1.DBW48 and QW82, which are still not the only match. Fig.14 shown.

[0208] It can be understood that for the above situation, it is usually possible to continue to eliminate it by tracking the changes in the PLC register data value.

[0209] Alternatively, in other embodiments, the data of the two addresses may always remain synchronized. In this case, it is possible that the data itself updates multiple points at the same time, so it is also possible that multiple addresses have always been the same data. In this case, any one of the addresses can be used as a point.

[0210] It can also be understood that in the actual screening process, in addition to sequentially executing S001 to S004, there may be other execution methods. For example, the screening by data type and data attribute in S001 and the screening by change relationship in S002 to S004 can be coordinated with each other, that is, they can be executed synchronously, and then the screening results of S001 and S002 to S004 can be intersected to obtain the final target data group; or, first execute S002-004 to obtain its screening results, and if the screening results are not unique, then execute step S001 on the screening results to screen the data type and data attributes, and then determine the final target data group.

[0211] Of course, it is also possible to only execute step S001 or only execute steps S002 to S004.

[0212] That is, through the screening conditions, the screening of the target data group can be flexibly adjusted according to the actual situation, and this application does not limit this. Regardless of the screening method used, if multiple data groups are finally screened out for a certain parameter to be analyzed, for example, in the above example, two different addresses (i.e., DB1.DBW2 and DB2.DBW2) are screened out, the multiple data groups obtained by screening can be directly used as the target data group of the output of the parameter to be analyzed.

[0213] Furthermore, in some embodiments of the present application, after the target data group is determined through the above steps, in S130, the point information of the parameter to be analyzed can be generated according to the register point address and data type of the data value in the determined target data group.

[0214] The specific steps can be as follows:

[0215] S131, determining correction information according to the displayed data of the above-mentioned parameter to be analyzed at any time, and the data value stored in the corresponding register point address at the same time;

[0216] The calibration information indicates the conversion relationship between the data value in the register point address and the corresponding display data;

[0217] S132, establishing a correspondence between the parameter name, register point address, data type and correction information of the parameter to be analyzed.

[0218] In this embodiment, the point information includes not only the correspondence between the parameter to be analyzed and the register point address, but also the correspondence between the parameter name of the parameter to be analyzed, the register point address, the data type and the correction information.

[0219] The correction information indicates the conversion relationship between the data value in the register point address and the corresponding display data.

[0220] For example, it can be a linear relationship, or other functional relationship.

[0221] For example, Figure 5As shown, by executing the above screening steps, information irrelevant to the searched data can be gradually excluded, and then the point information can be constructed. For example, assuming that the displayed data of parameter 1 on the HMI at a certain moment is 846, and the data value stored in the matching register point address at that moment is 8460, it needs to be converted by linear scaling to be completely consistent with the displayed data of the HMI, that is, it needs to be divided by 10, that is, 8460 divided by 10, to get 846.0, retaining 0 decimal places, so the correction information needs to be adjusted to "division", the correction amount is 10, that is, the divisor is 10, and the output data 4108 completely matches the matching data, so no correction is required, then the correction is selected as "none", and the correction amount is empty. The data unit of the point is filled in according to the information displayed on the HMI. If there is no unit displayed, keep the unit empty.

[0222] It can be understood that by determining the target data group, that is, by the point address and other information included in the determined target data group, the point information of the parameters to be analyzed is generated to construct the correspondence between the parameter name, point address, correction information, data type and unit of the PLC monitoring parameters, thereby achieving accurate and efficient determination of the point information of each monitoring parameter, avoiding the analysis of the source program of the PLC and touch screen, reducing the implementation difficulty and improving the positioning efficiency.

[0223] Optionally, in some embodiments of the present application, after determining the point information of the parameter to be analyzed, that is, after establishing the correspondence between the parameter to be analyzed and the register point address, data value and data type, the point information can also be uploaded to the central control room for subsequent use, that is, the method further includes:

[0224] S140, sending the point information to the remote control terminal, so that after acquiring the source data in the PLC, the remote control terminal determines the display data corresponding to the parameter to be analyzed from the source data based on the acquired point information, and displays it on the output device of the remote control terminal.

[0225] Specifically, after using the processing equipment and the above steps to determine the point information of the display data corresponding to the PLC in the production plant, the point information of each parameter to be analyzed can be uploaded to the central control equipment in the central control room, such as the remote control equipment, and stored in the remote control equipment.

[0226] Furthermore, in the actual generation process, after the remote control terminal obtains the source data in the PLC, it determines the display data corresponding to the parameter to be analyzed from the source data based on the point information uploaded by the processing device, and displays it on the output device of the remote control terminal, ultimately realizing remote control of the production process.

[0227] Optionally, in some embodiments of the present application, in order to improve the accuracy of the point information, the method further includes:

[0228] S150, within a preset time period, tracking the display data of the parameter to be analyzed, and tracking the data value in the register point address in the corresponding relationship.

[0229] Those skilled in the art can flexibly design the length of the time period, such as one hour, one minute, etc., which will not be elaborated here.

[0230] S160, determining whether the display data of the parameter to be analyzed changes synchronously with the change of the data value in the register point address in the corresponding relationship;

[0231] S170, if it is determined that there is an asynchronous change, return to execute the step of obtaining the display data of the parameter to be analyzed and the source data in the data area of ​​the PLC and subsequent steps.

[0232] Specifically, after obtaining the point information, in some embodiments of the present application, the register point information of the parameter can also be verified through steps S150-S170 to ensure accuracy.

[0233] That is, after obtaining the register point information corresponding to the parameter displayed on the HIM, the parameter to be analyzed and the register point address in the point information are tracked for a period of time according to the set tracking cycle to determine whether the two conform to a synchronous change relationship, that is, to determine whether the display data of the parameter to be analyzed is synchronized with the change of the data value in the register point address in the corresponding relationship.

[0234] It can be understood that if it is determined that there is no synchronization, it means that an error occurred in the original positioning information generation process, then the step of obtaining the display data of the parameters to be analyzed and the source data in the data area of ​​the PLC and subsequent steps can be returned to execute, that is, the above steps can be re-executed to generate new point information.

[0235] On the other hand, some embodiments of the present application further provide a device for determining PLC register point information, the device comprising:

[0236] The acquisition module 210 is used to acquire the display data of the parameter to be analyzed and the source data in the PLC; wherein the source data includes at least one data group, each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC;

[0237] A processing module 220, configured to determine a target data group matching the display data from the source data;

[0238] The positioning module 230 generates the point information of the parameter to be analyzed according to the target data group, and the point information indicates the corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

[0239] Optionally, the PLC register point information determination device provided by the present application, the processing module includes:

[0240] A generating unit 221, configured to generate a matching condition corresponding to the display data;

[0241] The processing unit 222 is used to determine a target data group whose data values ​​meet the matching condition from the source data.

[0242] Optionally, in the device for determining PLC register point information provided by the present application, the processing unit is specifically used for:

[0243] Matching the data values ​​in each data group with the display data to obtain a matching result, wherein the matching result includes at least one quasi-target data group that meets the matching condition;

[0244] The target data group is determined from the quasi-target data group according to the set screening condition.

[0245] Optionally, in the PLC register point information determination device provided by the present application, the display data includes a display data value and / or a display data range, and the matching condition includes a matching value corresponding to the display data value and / or a matching interval corresponding to the display data range.

[0246] The processing unit is specifically used for:

[0247] From the source data, searching for a data group whose data value is consistent with the matching value as the quasi-target data group;

[0248] and / or

[0249] From the source data, a data group whose data value is within the matching interval is searched as the quasi-target data group.

[0250] Optionally, in the device for determining PLC register point information provided by the present application, the screening condition includes a data type and a data attribute, and the processing unit is specifically used to:

[0251] From the quasi-target data group, a quasi-target data group whose data type and data attribute match the data type and data attribute in the screening condition is found as the target data group.

[0252] Optionally, in the device for determining PLC register point information provided by the present application, the screening condition includes a synchronous change relationship;

[0253] The processing unit is specifically used for:

[0254] Tracking changes in data values ​​in each of the quasi-target data groups;

[0255] Tracking changes in displayed data of the parameter to be analyzed;

[0256] A quasi-target data group having a synchronous change relationship with the displayed data of the parameter to be analyzed is determined as a target data group.

[0257] Optionally, the PLC register point information determination device provided by the present application, the point information also includes the corresponding relationship between the parameter name of the parameter to be analyzed, the register point address, the data type and the correction information;

[0258] The generation module is specifically used to:

[0259] The correction information is determined according to the displayed data of the parameter to be analyzed at any time and the data value stored in the corresponding register point address at the same time; wherein the correction information represents the conversion relationship between the data value in the register point address and the corresponding displayed data;

[0260] Establish a corresponding relationship between the parameter name, register point address, data type and correction information of the parameter to be analyzed.

[0261] Optionally, in the device for determining PLC register point information provided by the present application, the acquisition module is specifically used for:

[0262] Obtaining snapshot data in at least one data area in the PLC;

[0263] Convert the snapshot data into a preset storage format to obtain analysis data;

[0264] The data group whose data value in the analysis data is non-zero is screened to obtain the source data.

[0265] Optionally, the PLC register point information determination device provided by the present application further includes a tracking module 240 and a determination module 250.

[0266] The tracking module is used to track the change of the displayed data of the parameter to be analyzed within a preset time period after generating the point information of the parameter to be analyzed, and to track the change of the data value in the register point address in the corresponding relationship;

[0267] The determination module is used to determine whether the display data of the parameter to be analyzed is synchronized with the change of the data value in the register point address in the corresponding relationship;

[0268] If it is determined that there is no synchronization, the process returns to execute the step of obtaining the display data of the parameter to be analyzed and the source data in the data area of ​​the PLC and subsequent steps.

[0269] Optionally, the device for determining PLC register point information provided in the present application further includes a sending module 260.

[0270] The sending module is specifically used for: after generating the point information of the parameter to be analyzed, sending the point information to the remote control terminal, so that after the remote control terminal obtains the source data in the PLC, based on the obtained point information, it determines the display data corresponding to the parameter to be analyzed from the source data and displays it on the output device of the remote control terminal.

[0271] In an exemplary embodiment, a processing device, namely a data collection device, is provided. The processing device may be a server or a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The processing device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the processing device is used to provide computing and control capabilities. The memory of the processing device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the processing device is used to store video tag processing data. The input / output interface of the processing device is used to exchange information between the processor and an external device. The communication interface of the processing device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining PLC register point information is implemented.

[0272] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the processing device to which the scheme of the present application is applied. The specific processing device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0273] In an exemplary embodiment, a processing device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0274] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0275] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0276] It can be understood that the method, device, equipment, medium and product for determining the position information of the PLC register provided in the embodiment of the present application can first obtain the display data of the parameter to be analyzed and the source data in the PLC when determining the position information of the PLC register, and then determine the target data group that matches the display data from the source data, and finally generate the position information of the parameter to be analyzed using the determined target data group, that is, construct the corresponding relationship between the parameter to be analyzed and the register position address in the PLC, and realize the accurate positioning of the storage position of the output parameter of the PLC. That is, the present application can be implemented without using the PLC source program or the touch screen program, and does not rely on the detailed position information provided by the manufacturer. Therefore, it avoids excessive reliance on the source program provided by the PLC equipment manufacturer, and positioning can be achieved even when the position information or PLC source program provided by the equipment manufacturer cannot be obtained, and the touch screen program cannot be obtained; at the same time, since it is not necessary to determine the data point through the PLC source program provided by the equipment manufacturer, the professional requirements for engineers are also reduced, thereby reducing the difficulty of determining the position information. In the actual production process, after determining the point information of the parameters to be analyzed through the embodiments of the present application, truly valuable information can be extracted from numerous devices and sensors based on the point information, so that the PLC data can be directly applied to various control scenarios and monitoring scenarios, providing a basis for improving production efficiency and reducing production costs.

[0277] That is, in the embodiment of the present application, with the rise of intelligent manufacturing and the rapid development of domestic automation technology, data analysis not only helps to improve the efficiency of point search, but also promotes the standardization and security of data exchange between devices. In addition, in the technical background of obtaining PLC points, data analysis involves the deep integration of information technology, computer technology and communication technology in industrial automation, as well as the demand for intelligent manufacturing and digital transformation. With the development of the industrial automation industry, PLC, as the core component of the automation control system, the parsing and application of its communication protocol has become particularly important, that is, on the basis of the PLC register point information determined in the embodiment of the present application, after parsing and applying the PLC communication protocol, the original data in the PLC register can be obtained efficiently and quickly, and then the determined PLC register point information can be used to make full use of and mine the original data to meet various automated production needs.

[0278] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0279] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

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

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

Claims

1. A method for determining PLC register point information, characterized in that: The method comprises: Obtaining display data of the parameter to be analyzed and source data in the PLC; wherein the source data includes at least one data group, each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC; Determine a target data group matching the display data from the source data; According to the target data group, the point information of the parameter to be analyzed is generated, and the point information represents the corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

2. The method for determining PLC register point information according to claim 1, characterized in that: The step of determining a target data group matching the display data from the source data comprises: generating a matching condition corresponding to the display data; A target data group whose data values ​​satisfy the matching condition is determined from the source data.

3. The method for determining PLC register point information according to claim 2, characterized in that: Determining from the source data a target data group whose data value satisfies the matching condition comprises: Matching the data values ​​in each data group with the display data to obtain a matching result, wherein the matching result includes at least one quasi-target data group that meets the matching condition; The target data group is determined from the quasi-target data group according to the set screening conditions.

4. The method for determining PLC register point information according to claim 3, characterized in that: The display data includes a display data value and / or a display data range, and the matching condition includes a matching value corresponding to the display data value and / or a matching interval corresponding to the display data range; The matching of the data values ​​in each data group with the display data to obtain the matching result includes: From the source data, searching for a data group whose data value is consistent with the matching value as the quasi-target data group; and / or From the source data, a data group whose data values ​​are within the matching interval is searched as the quasi-target data group.

5. The method for determining PLC register point information according to claim 3, characterized in that: The screening condition includes data type and data attribute, and the step of determining the target data group from the quasi-target data group according to the set screening condition includes: From the quasi-target data group, a data group whose data type and data attribute match the data type and data attribute in the screening condition is found.

6. The method for determining PLC register point information according to claim 3, characterized in that: Determining the target data group from the quasi-target data group according to the set screening condition comprises: Tracking data values ​​in a quasi-target data set; Tracking displayed data of the parameter to be analyzed; From each quasi-target data group, determine a data group having a synchronous change relationship with the displayed data of the parameter to be analyzed; The screening conditions include: synchronous change relationship.

7. The method for determining PLC register point information according to any one of claims 1 to 6, characterized in that: The point information also includes the corresponding relationship between the parameter name, register point address, data type and correction information of the parameter to be analyzed; Generating the point information corresponding to the parameter to be analyzed according to the target data group includes: Determine the correction information according to the displayed data of the parameter to be analyzed at any time and the data value stored in the corresponding register point address at the same time; wherein the correction information represents the conversion relationship between the data value in the register point address and the corresponding displayed data; A corresponding relationship between the parameter name, register point address, data type and correction information of the parameter to be analyzed is established.

8. The method for determining PLC register point information according to any one of claims 1 to 6, characterized in that: The obtaining of source data in the PLC includes: Obtaining snapshot data in at least one data area in the PLC; Converting the snapshot data into a preset storage format to obtain analysis data; The data groups whose data values ​​in the analysis data are non-zero are screened to obtain the source data.

9. The method for determining PLC register point information according to any one of claims 1 to 6, characterized in that: After generating the point information of the parameter to be analyzed, the method further includes: Tracking the displayed data of the parameter to be analyzed within a preset time period, and tracking the data value in the register point address in the corresponding relationship; Determine whether the displayed data of the parameter to be analyzed changes synchronously with the data value in the register point address in the corresponding relationship; If it is determined that there is an asynchronous change, the process returns to the step of obtaining the display data of the parameter to be analyzed and the source data in the data area of ​​the PLC and subsequent steps.

10. The method for determining PLC register point information according to any one of claims 1 to 6, characterized in that: After generating the point information of the parameter to be analyzed, the method further includes: The point information is sent to the remote control terminal, so that after acquiring the source data in the PLC, the remote control terminal determines the display data corresponding to the parameter to be analyzed from the source data based on the acquired point information, and displays it on the output device of the remote control terminal.

11. A device for determining PLC register point information, characterized in that: The device comprises: An acquisition module is used to acquire display data of the parameter to be analyzed and source data in the PLC; wherein the source data includes at least one data group, each data group includes at least: a data value and a register point address storing the data value; the parameter to be analyzed includes all or part of the parameters displayed by the output device of the PLC; A processing module, configured to determine a target data group matching the display data from the source data; A generating module is used to generate point information of the parameter to be analyzed according to the target data group, wherein the point information represents the corresponding relationship between the parameter to be analyzed and its register point address in the PLC.

12. A processing device, characterized in that: The processing device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for determining the PLC register point information according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining the PLC register point information according to any one of claims 1 to 10 is implemented.

14. A computer program product, characterized in that The computer program product includes instructions, and when the instructions are executed, the method for determining the PLC register point information according to any one of claims 1 to 10 is executed.

Citation Information

Patent Citations

  • Address identification method, apparatus and system, and storage medium, processor and terminal

    CN112567353A

  • Method and device for analyzing device data address

    CN112732739A

  • Register address collection method and device, terminal and readable storage medium

    CN113050992A

Cited By

  • PLC register point location address determination method, device, equipment, medium and product

    CN120178780A

  • Register address positioning method for equipment display data, equipment and medium

    CN120523694A