Search

CN-115793559-B - Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium

CN115793559BCN 115793559 BCN115793559 BCN 115793559BCN-115793559-B

Abstract

The invention provides a configuration method, a device, an intelligent gateway, equipment and a medium of a PLC acquisition point table, which comprise the steps of receiving a point table configuration file sent by a remote management platform, analyzing the point table configuration file to generate an analysis text, judging whether the point table configuration file is continuous or not according to the analysis text, processing the analysis text to generate a first PLC acquisition point table corresponding to the point table configuration file when the point table configuration file is judged to be continuous, and processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file when the point table configuration file is judged to be discontinuous. The PLC acquisition point table configuration scheme aims at solving the problems of flow consumption, time consumption, poor stability, low configuration efficiency, poor practicality and poor user experience of the existing PLC acquisition point table configuration scheme.

Inventors

  • TANG SHIBIN
  • PENG FU
  • ZHONG ZHAOFU
  • CHEN SHUWU

Assignees

  • 厦门四信通信科技有限公司

Dates

Publication Date
20260505
Application Date
20221129

Claims (8)

  1. The configuration method of the PLC acquisition point table is characterized by being applied to first configuration equipment and comprising the following steps of: Receiving a point table configuration file sent by a remote management platform, and analyzing the point table configuration file to generate an analysis text, wherein the point table configuration file is a configuration file of a PLC acquisition point; judging whether the point table configuration file is continuous or not according to the analysis text; when the point table configuration file is judged to be continuous, the analysis text is processed, and a first PLC acquisition point table corresponding to the point table configuration file is generated; when the point table configuration file is judged to be discontinuous, the analysis text is processed, and a second PLC acquisition point table corresponding to the point table configuration file is generated; The analysis text comprises a data ID prefix, a register type, a register starting address or a register starting address list, a data type and a collection number; when judging that the point table configuration file is discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file, wherein the second PLC acquisition point table specifically comprises: Determining the number of second point tables which are finally required to be acquired by the PLC acquisition point table according to the acquisition number; Sequentially generating a plurality of data IDs and a plurality of register starting addresses corresponding to the data IDs according to the register starting address list and the number of the second point tables; And generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register starting address.
  2. 2. The method for configuring a PLC acquisition point table according to claim 1, wherein when the point table configuration file is determined to be continuous, the parsing text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file, specifically: Determining the number of first point tables which are finally required to be acquired by the PLC acquisition point tables according to the acquisition number; determining the increment of a PLC acquisition point table according to the data type; And adding suffixes to the data ID prefixes in sequence according to the number of the first point tables and the increment, sequentially increasing the initial addresses of the registers by taking the increment as a step value, and generating a first PLC acquisition point table corresponding to the point table configuration file.
  3. 3. The configuration method of the PLC acquisition point table according to claim 1, applied to the second configuration device, comprising: Acquiring related information of a PLC acquisition point, and generating a corresponding point table configuration file; And when the networking state is detected to be normal, issuing the point table configuration file to the intelligent gateway.
  4. Configuration apparatus of a plc acquisition point table, applied to a first configuration device, comprising: The analysis unit is used for receiving the point table configuration file sent by the remote management platform, analyzing the point table configuration file and generating an analysis text, wherein the point table configuration file is a configuration file of a PLC acquisition point; The continuous judging unit is used for judging whether the point table configuration file is continuous or not according to the analysis text; The continuous point table generating unit is used for processing the analysis text when judging that the point table configuration file is continuous, and generating a first PLC acquisition point table corresponding to the point table configuration file; the discontinuous point table generating unit is used for processing the analysis text when judging that the point table configuration file is discontinuous, and generating a second PLC acquisition point table corresponding to the point table configuration file; The analysis text comprises a data ID prefix, a register type, a register starting address or a register starting address list, a data type and a collection number; when judging that the point table configuration file is discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file, wherein the second PLC acquisition point table specifically comprises: Determining the number of second point tables which are finally required to be acquired by the PLC acquisition point table according to the acquisition number; Sequentially generating a plurality of data IDs and a plurality of register starting addresses corresponding to the data IDs according to the register starting address list and the number of the second point tables; And generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register starting address.
  5. 5. The configuration device of the PLC acquisition point table according to claim 4, applied to the first configuration apparatus, comprising: the configuration file generation unit is used for acquiring the related information of one PLC acquisition point sent by the first configuration equipment and generating a corresponding point table configuration file; And the file transmission unit is used for transmitting the point table configuration file to the intelligent gateway when the networking state is detected to be normal.
  6. 6. Intelligent gateway, characterized by comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a configuration method of a PLC acquisition point table according to any one of claims 1 to 2 when executing the computer program.
  7. A configuration device of a PLC acquisition point table, characterized by comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the configuration method of a PLC acquisition point table according to claim 3 when executing the computer program.
  8. 8. A readable storage medium, storing a computer program executable by a processor of a device in which the storage medium is located, to implement the method of configuring a PLC acquisition point table according to any one of claims 1 to 4.

Description

Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium Technical Field The invention relates to the technical field of intelligent gateway PLC acquisition and configuration, in particular to a configuration method and device of a PLC acquisition point table, an intelligent gateway, equipment and a medium. Background The current PLC acquisition point table configuration scheme on the market generally configures the PLC acquisition point table in advance locally through the existing configuration tool or a remote management platform, and the acquisition point table needs to be manually added one by a user. After the PLC acquisition point table file is generated, the PLC acquisition point table file needs to be issued to the intelligent gateway one by one in a network transmission mode until the intelligent gateway is completely received, and particularly when a user issues the point table file to the intelligent gateway at the far end through the remote management platform, the intelligent gateway and the remote management platform interact frequently back and forth due to more data, so that a long period of time is required to complete the whole configuration flow, the flow is consumed, and the time is consumed. Meanwhile, a user configures a PLC acquisition point table of a remote intelligent gateway through a remote management platform, under the condition of larger communication delay, the intelligent gateway and the remote management platform interact back and forth more time-consuming, and when the communication time exceeds the preset timeout time, the configuration failure is triggered to start a retransmission mechanism, so that the problems of poor stability, low configuration efficiency, poor practicability and poor user experience are caused. In view of this, the present application has been proposed. Disclosure of Invention In view of the above, the present invention aims to provide a method, an apparatus, an intelligent gateway, a device and a medium for configuring a PLC acquisition point table, which can effectively solve the problems of flow consumption, time consumption, poor stability, low configuration efficiency, poor practicality and poor user experience in the PLC acquisition point table configuration scheme in the prior art. The invention discloses a configuration method of a PLC acquisition point table, which comprises the following steps: Receiving a point table configuration file sent by a remote management platform, and analyzing the point table configuration file to generate an analysis text, wherein the point table configuration file is a configuration file of a PLC acquisition point; judging whether the point table configuration file is continuous or not according to the analysis text; when the point table configuration file is judged to be continuous, the analysis text is processed, and a first PLC acquisition point table corresponding to the point table configuration file is generated; and when the point table configuration file is judged to be discontinuous, the analysis text is processed, and a second PLC acquisition point table corresponding to the point table configuration file is generated. Preferably, the parsing text includes a data ID prefix, a register type, a register start address or a register start address list, a data type, and a collection number. Preferably, when the point table configuration file is determined to be continuous, the analysis text is processed to generate a first PLC acquisition point table corresponding to the point table configuration file, specifically: Determining the number of first point tables which are finally required to be acquired by the PLC acquisition point tables according to the acquisition number; determining the increment of a PLC acquisition point table according to the data type; And adding suffixes to the data ID prefixes in sequence according to the number of the first point tables and the increment, sequentially increasing the initial addresses of the registers by taking the increment as a step value, and generating a first PLC acquisition point table corresponding to the point table configuration file. Preferably, when the point table configuration file is determined to be discontinuous, the analysis text is processed to generate a second PLC acquisition point table corresponding to the point table configuration file, specifically: Determining the number of second point tables which are finally required to be acquired by the PLC acquisition point table according to the acquisition number; Sequentially generating a plurality of data IDs and a plurality of register starting addresses corresponding to the data IDs according to the register starting address list and the number of the second point tables; And generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register starting address. The inven