Method and device for configuring plc collection point table, intelligent gateway, equipment and medium

By parsing the PLC acquisition point table configuration file, an optimized first or second PLC acquisition point table is generated, which solves the problems of time consumption and traffic consumption in the existing technology, improves configuration efficiency and stability, and enhances user experience.

CN115793559BActive Publication Date: 2026-05-05XIAMEN FOUR FAITH COMM TECH
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
XIAMEN FOUR FAITH COMM TECH
Filing Date
2022-11-29
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing PLC data acquisition point configuration schemes are time-consuming, consume a lot of data, have poor stability, low configuration efficiency, and a poor user experience.

Method used

By parsing the PLC acquisition point table configuration file and determining its continuity, the corresponding first or second PLC acquisition point table is generated, optimizing the configuration process and reducing configuration time and data volume.

Benefits of technology

It significantly reduces user configuration time, decreases network data transmission volume, improves configuration efficiency and stability, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115793559B_ABST
    Figure CN115793559B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, smart gateway, device, and medium for configuring a PLC acquisition point table, including: receiving a point table configuration file sent by a remote management platform, parsing the point table configuration file to generate parsed text, wherein the point table configuration file is a configuration file for one PLC acquisition point; determining whether the point table configuration file is continuous based on the parsed text; if the point table configuration file is continuous, processing the parsed text to generate a first PLC acquisition point table corresponding to the point table configuration file; if the point table configuration file is discontinuous, processing the parsed text to generate a second PLC acquisition point table corresponding to the point table configuration file. This aims to solve the problems of existing PLC acquisition point table configuration schemes, such as high bandwidth consumption, long processing time, poor stability, low configuration efficiency, poor usability, and poor user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent gateway PLC data acquisition and configuration technology, specifically to a method, apparatus, intelligent gateway, device, and medium for configuring a PLC data acquisition point table. Background Technology

[0002] Currently, most PLC data acquisition point configuration solutions on the market involve pre-configuring the PLC data acquisition point table locally using existing configuration tools or remote management platforms. Users then manually add each data acquisition point one by one. Since the PLC data acquisition point table configuration file often contains tens of thousands of data acquisition points, configuring these points takes a considerable amount of time, ultimately generating a single PLC data acquisition point table file containing all the data for the entire smart gateway. After the PLC data acquisition point table file is generated, it needs to be transmitted to the smart gateway one by one over the network until the smart gateway has received all of them. This is especially problematic when users transmit the file to the remote smart gateway via a remote management platform. Due to the large amount of data, the number of interactions between the smart gateway and the remote management platform is also frequent, resulting in a lengthy configuration process that consumes significant bandwidth and is also time-consuming. Meanwhile, when users configure the PLC data acquisition point table on the remote smart gateway through the remote management platform, the time spent interacting between the smart gateway and the remote management platform is even longer when the communication latency is large. When the communication time exceeds the preset timeout, the configuration failure will be triggered and the retransmission mechanism will be started, which will lead to problems such as poor stability, low configuration efficiency, poor usability, and poor user experience.

[0003] In view of the above, this application is hereby submitted. Summary of the Invention

[0004] In view of this, the purpose of this invention is to provide a configuration method, device, smart gateway, equipment and medium for PLC data acquisition point tables, which can effectively solve the problems of high data consumption, long time consumption, poor stability, low configuration efficiency, poor practicality and poor user experience in the existing PLC data acquisition point table configuration schemes.

[0005] This invention discloses a method for configuring a PLC data acquisition point table, including:

[0006] The system receives a point table configuration file sent by a remote management platform, parses the point table configuration file, and generates parsed text. The point table configuration file is a configuration file for a PLC acquisition point.

[0007] Determine whether the point table configuration file is continuous based on the parsed text;

[0008] When it is determined that the point table configuration file is continuous, the parsed text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file;

[0009] When it is determined that the point table configuration file is discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file.

[0010] Preferably, the parsed text includes a data ID prefix, register type, register starting address or a list of register starting addresses, data type, and number of samples.

[0011] Preferably, when it is determined that the point table configuration file is continuous, the parsed text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file, specifically as follows:

[0012] The final number of the first point table that needs to be collected by the PLC acquisition point table is determined based on the number of acquisitions mentioned above.

[0013] The increment of the PLC acquisition point table is determined based on the data type described;

[0014] Based on the number of points in the first point table and the increment, a suffix is ​​added to the prefix of the data ID sequentially, and the starting address of the register is incremented sequentially with the increment as the step value to generate the first PLC acquisition point table corresponding to the point table configuration file.

[0015] Preferably, when it is determined that the point table configuration file is discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file, specifically as follows:

[0016] The final number of second points to be collected by the PLC acquisition point table is determined based on the number of acquisition points mentioned above.

[0017] Based on the register start address list and the number of points in the second point table, multiple data IDs and multiple register start addresses corresponding to the data IDs are generated sequentially.

[0018] A second PLC acquisition point table corresponding to the point table configuration file is generated based on each of the data IDs and the starting address of each of the registers.

[0019] This invention also discloses a method for configuring a PLC data acquisition point table, including:

[0020] Obtain relevant information for a PLC acquisition point and generate the corresponding point table configuration file;

[0021] When the network connection status is detected to be normal, the point table configuration file is sent to the smart gateway.

[0022] This invention also discloses a configuration device for a PLC data acquisition point table, comprising:

[0023] The parsing unit is used to receive the point table configuration file sent by the remote management platform, and parse the point table configuration file to generate parsed text, wherein the point table configuration file is a configuration file for a PLC acquisition point.

[0024] A continuity determination unit is used to determine whether the point table configuration file is continuous based on the parsed text;

[0025] A continuous point table generation unit is used to process the parsed text when it is determined that the point table configuration file is continuous, and generate a first PLC acquisition point table corresponding to the point table configuration file.

[0026] The discontinuous point table generation unit is used to process the parsed text when it is determined that the point table configuration file is discontinuous, and generate a second PLC acquisition point table corresponding to the point table configuration file.

[0027] This invention also discloses a configuration device for a PLC data acquisition point table, comprising:

[0028] The configuration file generation unit is used to obtain relevant information of a PLC acquisition point and generate the corresponding point table configuration file.

[0029] The file transfer unit is used to send the point table configuration file to the smart gateway when the network connection status is detected to be normal.

[0030] The present invention also discloses an intelligent gateway, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the configuration method of the PLC acquisition point table as described in any of the above.

[0031] The present invention also discloses a configuration device for a PLC acquisition point table, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the configuration method for the PLC acquisition point table as described in any of the above.

[0032] The present invention also discloses a readable storage medium storing a computer program that can be executed by a processor of the device in which the storage medium is located, to implement the configuration method of the PLC acquisition point table as described in any of the above claims.

[0033] In summary, the PLC data acquisition point table configuration method, device, smart gateway, equipment, and medium provided in this embodiment are optimized for both continuous and discontinuous scenarios. This significantly reduces the configuration time spent by users when configuring tools or remote management platforms, and the generated point table files are also significantly smaller. The amount of data transmitted over the network and the transmission time are also reduced accordingly, resulting in a substantial reduction in the overall process time. This solves the problems of high bandwidth consumption, long processing times, poor stability, low configuration efficiency, poor usability, and poor user experience inherent in existing PLC data acquisition point table configuration schemes. Attached Figure Description

[0034] Figure 1 This is a first flowchart illustrating the configuration method of the PLC acquisition point table provided in this embodiment of the invention.

[0035] Figure 2 This is a schematic diagram of the second process of configuring the PLC acquisition point table provided in the embodiment of the present invention.

[0036] Figure 3 This is a schematic diagram of the first module of the configuration device for the PLC data acquisition point table provided in an embodiment of the present invention.

[0037] Figure 4 This is a schematic diagram of the second module of the configuration device for the PLC data acquisition point table provided in an embodiment of the present invention. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to represent selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0039] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0040] This invention discloses a method, apparatus, intelligent gateway, device, and medium for configuring a PLC data acquisition point table, which at least partially addresses the shortcomings of existing technologies.

[0041] Please see Figure 1The first embodiment of the present invention provides a method for configuring a PLC data acquisition point table, which can be executed by a data acquisition point table configuration device (hereinafter referred to as the first configuration device), specifically by one or more processors within the first configuration device, to achieve the following steps:

[0042] S101, Receive the point table configuration file sent by the remote management platform, and parse the point table configuration file to generate parsed text, wherein the point table configuration file is a configuration file for a PLC acquisition point;

[0043] S102, determine whether the point table configuration file is continuous based on the parsed text;

[0044] In this embodiment, the first configuration device may be a smart gateway, which can communicate remotely with a remote management platform to receive point table configuration files sent by the platform. The remote management platform may be a smartphone, a smart computer, or other smart devices. Furthermore, the smart gateway may communicate with a lower-level machine to obtain data collected and sent by the lower-level machine (e.g., a PLC).

[0045] Current PLC data acquisition point configuration solutions on the market involve a large amount of data and frequent interactions between the smart gateway and the remote management platform, resulting in a lengthy configuration process that consumes both bandwidth and time. Furthermore, when users configure PLC data acquisition points on remote smart gateways via the remote management platform, the interaction time between the smart gateway and the remote management platform is even longer when communication latency is high. If the communication time exceeds the preset timeout, configuration failure is triggered, initiating a retransmission mechanism. This leads to poor stability, low configuration efficiency, poor usability, and a poor user experience.

[0046] In this embodiment, the parsed text includes a data ID prefix, register type, register starting address or a list of register starting addresses, data type, and number of samples.

[0047] Specifically, in this embodiment, after receiving the point table configuration file sent by the remote management platform, the first configuration device parses the point table configuration file to generate parsed text; and determines whether the parsed text contains a register start address or a list of register start addresses. If it contains a register start address, it means that the collected register data blocks are continuous; if it contains a list of register start addresses, it means that the collected register data blocks are not continuous.

[0048] S103, when it is determined that the point table configuration file is continuous, the parsed text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file;

[0049] Specifically, step S103 includes: determining the final number of the first point table that the PLC acquisition point table needs to acquire based on the number of acquisitions;

[0050] The increment of the PLC acquisition point table is determined based on the data type described;

[0051] Based on the number of points in the first point table and the increment, a suffix is ​​added to the prefix of the data ID sequentially, and the starting address of the register is incremented sequentially with the increment as the step value to generate the first PLC acquisition point table corresponding to the point table configuration file.

[0052] The existing PLC data acquisition point table configuration scheme requires manual configuration for each data point when acquiring a continuous segment of data from a PLC DB register data block, ultimately generating a point table configuration file. This file is transmitted over the network and sent to the smart gateway. After receiving the complete configuration file, the smart gateway reads the raw data from the file and saves it, thus completing the entire configuration process. Table 1 shows the continuous point table configuration file sent by the existing PLC data acquisition point table configuration scheme.

[0053] Table 1:

[0054] Data ID Register type Register address Data types DB0 DBn_DBW 0 WORD DB2 DBn_DBW 2 WORD DB4 DBn_DBW 4 WORD DB6 DBn_DBW 6 WORD DB8 DBn_DBW 8 WORD ... ... ... ... DBn DBn_DBW n WORD

[0055] Specifically, in this embodiment, taking the collection of a segment of continuous data from a PLC DB register data block as an example, after receiving the point table configuration file sent by the remote management platform, the data content inside is parsed to quickly generate the collection point table required by the user; wherein, the point table configuration file is a configuration file for a PLC collection point, and the point table configuration file is shown in Table 2:

[0056] Table 2:

[0057]

[0058] First, the number of data points to be collected is determined by the number of data acquisitions. Then, the increment, or step size, is determined by the data type. For example, if the data type is DWORD, the data width is 2 bytes, so the increment is 2. Finally, based on the number of data points and the increment, a suffix is ​​added sequentially to the data IDs. For example, the first data ID is DB0, the second is DB2, the third is DB4, and so on. The register addresses are also incremented sequentially by 2. For example, the first register address is 0, the second is 2, the third is 4, and so on, to generate the final data point table to be collected, which is the first PLC data acquisition point table corresponding to the data point configuration file. The first PLC data acquisition point table is shown in Table 3.

[0059] Table 3:

[0060] Data ID Register type Register address Data types DB0 DBn_DBW 0 WORD DB2 DBn_DBW 2 WORD DB4 DBn_DBW 4 WORD DB6 DBn_DBW 6 WORD DB8 DBn_DBW 8 WORD ... ... ... ... DBn DBn_DBW n WORD

[0061] S104, when it is determined that the point table configuration file is discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file.

[0062] Specifically, step S104 includes: determining the final number of second point tables that the PLC acquisition point table needs to acquire based on the number of acquisitions;

[0063] Based on the register start address list and the number of points in the second point table, multiple data IDs and multiple register start addresses corresponding to the data IDs are generated sequentially.

[0064] A second PLC acquisition point table corresponding to the point table configuration file is generated based on each of the data IDs and the starting address of each of the registers.

[0065] When the data in a PLC DB register data block is discontinuous, the existing PLC data acquisition point table configuration scheme uses essentially the same configuration method as the continuous configuration method described above, ultimately producing a point table file with scattered data points and a large amount of content. The discontinuous point table configuration file sent by the existing PLC data acquisition point table configuration scheme is shown in Table 4:

[0066] Table 4:

[0067] Data ID Register type Register address Data types DB0 DBn_DBW 0 WORD DB4 DBn_DBW 4 WORD DB10 DBn_DBW 10 WORD ... ... ... ... DBn DBn_DBW n WORD

[0068] Specifically, in this embodiment, taking the discontinuous data of a certain PLC DB register data block as an example, after receiving the point table configuration file sent by the remote management platform, the data content is parsed, and the required collection point table can be quickly generated according to preset rules; wherein, the point table configuration file is a configuration file for a PLC collection point, and the point table configuration file is shown in Table 5:

[0069] Table 5:

[0070]

[0071] First, the number of data points to be collected is determined by the number of data acquisitions. Then, data IDs are generated sequentially using the register start address list and the number of data points (e.g., the first data ID is DB0, the second is DB4, the third is DB10, and so on), along with the corresponding register start addresses (e.g., the first register address is 0, the second is 4, the third is 10, and so on). This generates the final data point table to be collected, which corresponds to the second PLC data acquisition point table in the data point configuration file. The second PLC data acquisition point table is shown in Table 6.

[0072] Table 6:

[0073] Data ID Register type Register address Data types DB0 DBn_DBW 0 WORD DB4 DBn_DBW 4 WORD DB10 DBn_DBW 10 WORD ... ... ... ... DBn DBn_DBW n WORD

[0074] Please see Figure 2 The second embodiment of the present invention provides a configuration method for a PLC data acquisition point table, which can be executed by a PLC data acquisition point table configuration device (hereinafter referred to as the second configuration device), specifically, by one or more processors within the second configuration device, to achieve the following steps:

[0075] S201: Obtain relevant information for a PLC acquisition point and generate the corresponding point table configuration file;

[0076] S202, when the network connection status is detected to be normal, the point table configuration file is sent to the smart gateway.

[0077] In this embodiment, the second configuration device may be a remote management platform (such as a smartphone, smart computer, or other smart device). The remote management platform device can communicate remotely with the smart gateway and send point table configuration files to it.

[0078] Specifically, in this embodiment, taking the collection of a segment of continuous data from a PLC DB register data block as an example, the user only needs to configure the relevant information of a collection point in the configuration tool or remote management platform. After the point table is generated, a very small point table configuration file is generated, which is transmitted to the smart gateway via the network in a very short time; the point table configuration file is shown in Table 1.

[0079] In this embodiment, taking the discontinuous data of a certain PLC DB register data block as an example, the user only needs to configure the relevant information of a collection point in the configuration tool or remote management platform. After the point table is generated, a very small point table configuration file will also be generated. This file is transmitted to the smart gateway via the network in a very short time. The point table configuration file is shown in Table 4.

[0080] In summary, the PLC data acquisition point table configuration method is optimized for both continuous and discontinuous scenarios. This significantly reduces the configuration time spent by users when configuring tools or remote management platforms, resulting in a much smaller generated data acquisition point table file. The amount of data transmitted over the network and the transmission time are also reduced accordingly. The entire process is greatly shortened, improving efficiency and providing a better user experience. Simply put, the PLC data acquisition point table configuration method optimizes the configuration workload of configuration tools or remote management platforms, the content of PLC data acquisition point table files, and the transmission time of PLC data acquisition point table files. This not only improves the efficiency of configuring PLC data acquisition point tables for smart gateways, reducing user configuration time and providing convenience, but also reduces the amount of data transmitted over the network, saves bandwidth, optimizes interaction time, and enhances the user experience.

[0081] Please see Figure 3 The third embodiment of the present invention provides a configuration device for a PLC data acquisition point table, including:

[0082] The parsing unit 101 is used to receive the point table configuration file sent by the remote management platform, and parse the point table configuration file to generate parsed text, wherein the point table configuration file is a configuration file of a PLC acquisition point.

[0083] The continuity determination unit 102 is used to determine whether the point table configuration file is continuous based on the parsed text;

[0084] The continuous point table generation unit 103 is used to process the parsed text when it is determined that the point table configuration file is continuous, and generate a first PLC acquisition point table corresponding to the point table configuration file.

[0085] The discontinuous point table generation unit 104 is used to process the parsed text when it is determined that the point table configuration file is discontinuous, and generate a second PLC acquisition point table corresponding to the point table configuration file.

[0086] Please see Figure 4 The fourth embodiment of the present invention provides a configuration device for a PLC data acquisition point table, including:

[0087] The configuration file generation unit 201 is used to obtain relevant information of a PLC acquisition point and generate the corresponding point table configuration file.

[0088] The file transfer unit 202 is used to send the point table configuration file to the smart gateway when the network connection status is detected to be normal.

[0089] The fifth embodiment of the present invention provides an intelligent gateway, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the configuration method of the PLC acquisition point table as described in any of the above embodiments.

[0090] The sixth embodiment of the present invention provides a configuration device for a PLC data acquisition point table, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the configuration method for the PLC data acquisition point table as described in any of the above embodiments.

[0091] The seventh embodiment of the present invention provides a readable storage medium storing a computer program that can be executed by a processor of the device where the storage medium is located to implement the configuration method of the PLC acquisition point table as described in any of the above embodiments.

[0092] Exemplary examples show that the computer program described in the fifth, sixth, and seventh embodiments of the present invention can be divided into one or more modules. These modules are stored in the memory and executed by the processor to complete the present invention. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, describing the execution process of the computer program in the configuration device implementing the PLC data acquisition point table. For example, the apparatus described in the third and fourth embodiments of the present invention.

[0093] The processor referred to can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the PLC data acquisition point table configuration method, connecting the various parts of the entire method for configuring the PLC data acquisition point table using various interfaces and lines.

[0094] The memory can be used to store the computer program and / or modules. The processor, by running or executing the computer program and / or modules stored in the memory, and by calling the data stored in the memory, realizes various functions of the PLC acquisition point table configuration method. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, text conversion function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, text message data, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0095] If the implemented module is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.

[0096] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0097] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions that fall within the scope of the present invention are within the scope of protection of the present invention.

Claims

1. A method for configuring a PLC data acquisition point table, characterized in that, Applied to the first configuration device, including: The system receives a point table configuration file sent by a remote management platform, parses the point table configuration file, and generates parsed text. The point table configuration file is a configuration file for a PLC acquisition point. Determine whether the point table configuration file is continuous based on the parsed text; When it is determined that the point table configuration file is continuous, the parsed text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file; When it is determined that the point table configuration file is discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file; The parsed text includes the data ID prefix, register type, register start address or a list of register start addresses, data type, and number of samples. When the point table configuration file is determined to be discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file, specifically as follows: The final number of second points to be collected by the PLC acquisition point table is determined based on the number of acquisition points mentioned above. Based on the register start address list and the number of points in the second point table, multiple data IDs and multiple register start addresses corresponding to the data IDs are generated sequentially. A second PLC acquisition point table corresponding to the point table configuration file is generated based on each of the data IDs and the starting address of each of the registers.

2. The configuration method of the PLC acquisition point table according to claim 1, characterized in that, When the point table configuration file is determined to be continuous, the parsed text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file, specifically as follows: The final number of the first point table that needs to be collected by the PLC acquisition point table is determined based on the number of acquisitions mentioned above. The increment of the PLC acquisition point table is determined based on the data type described; Based on the number of points in the first point table and the increment, a suffix is ​​added to the prefix of the data ID sequentially, and the starting address of the register is incremented sequentially with the increment as the step value to generate the first PLC acquisition point table corresponding to the point table configuration file.

3. The method for configuring a PLC data acquisition point table according to claim 1, characterized in that, Applied to the second configuration device, including: Obtain relevant information for a PLC acquisition point and generate the corresponding point table configuration file; When the network connection status is detected to be normal, the point table configuration file is sent to the smart gateway.

4. A configuration device for a PLC data acquisition point table, characterized in that, Applied to the first configuration device, including: The parsing unit is used to receive the point table configuration file sent by the remote management platform, and parse the point table configuration file to generate parsed text, wherein the point table configuration file is a configuration file for a PLC acquisition point. A continuity determination unit is used to determine whether the point table configuration file is continuous based on the parsed text; A continuous point table generation unit is used to process the parsed text when it is determined that the point table configuration file is continuous, and generate a first PLC acquisition point table corresponding to the point table configuration file. The discontinuous point table generation unit is used to process the parsed text when it is determined that the point table configuration file is discontinuous, and generate a second PLC acquisition point table corresponding to the point table configuration file. The parsed text includes the data ID prefix, register type, register start address or a list of register start addresses, data type, and number of samples. When the point table configuration file is determined to be discontinuous, the parsed text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file, specifically as follows: The final number of second points to be collected by the PLC acquisition point table is determined based on the number of acquisition points mentioned above. Based on the register start address list and the number of points in the second point table, multiple data IDs and multiple register start addresses corresponding to the data IDs are generated sequentially. A second PLC acquisition point table corresponding to the point table configuration file is generated based on each of the data IDs and the starting address of each of the registers.

5. The configuration device for the PLC data acquisition point table according to claim 4, characterized in that, Applied to the first configuration device, including: The configuration file generation unit is used to obtain relevant information of a PLC acquisition point sent by the first configuration device and generate the corresponding point table configuration file. The file transfer unit is used to send the point table configuration file to the smart gateway when the network connection status is detected to be normal.

6. A smart gateway, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the configuration method of the PLC acquisition point table as described in any one of claims 1 to 2.

7. A device for configuring a PLC data acquisition point table, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the configuration method of the PLC acquisition point table as described in claim 3.

8. A readable storage medium, characterized in that, The device contains a computer program that can be executed by a processor of the device where the storage medium is located, to implement the configuration method of the PLC acquisition point table as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Point table configuration method and device, controller and storage medium

    CN113132158A