CN115793559A - Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium - Google Patents

Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium Download PDF

Info

Publication number
CN115793559A
CN115793559A CN202211505031.3A CN202211505031A CN115793559A CN 115793559 A CN115793559 A CN 115793559A CN 202211505031 A CN202211505031 A CN 202211505031A CN 115793559 A CN115793559 A CN 115793559A
Authority
CN
China
Prior art keywords
point table
configuration file
table configuration
plc acquisition
plc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211505031.3A
Other languages
Chinese (zh)
Inventor
唐仕斌
彭府
钟兆福
陈淑武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XIAMEN FOUR-FAITH COMMUNICATION TECHNOLOGY CO LTD
Original Assignee
XIAMEN FOUR-FAITH COMMUNICATION TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XIAMEN FOUR-FAITH COMMUNICATION TECHNOLOGY CO LTD filed Critical XIAMEN FOUR-FAITH COMMUNICATION TECHNOLOGY CO LTD
Priority to CN202211505031.3A priority Critical patent/CN115793559A/en
Publication of CN115793559A publication Critical patent/CN115793559A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a configuration method, a configuration device, an intelligent gateway, equipment and a medium of a PLC acquisition point table, wherein the configuration method comprises the following steps: receiving a point table configuration file sent by a 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; judging whether the point table configuration files are continuous or not according to the analysis text; when the point table configuration file is judged to be continuous, processing the analysis text to generate a first PLC acquisition point table corresponding to the point table configuration file; and when the point table configuration file is judged to be discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file. The method aims to solve the problems of flow consumption, time consumption, poor stability, low configuration efficiency, poor practicability and poor user experience in the conventional PLC acquisition point table configuration scheme.

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 PLC acquisition and configuration of intelligent gateways, in particular to a configuration method and device of a PLC acquisition point table, an intelligent gateway, equipment and a medium.
Background
The PLC acquisition point table configuration scheme on the current market generally pre-configures a PLC acquisition point table locally through an existing configuration tool or a remote management platform, the acquisition point table needs to be manually added one by a user, and because a PLC acquisition point table configuration file usually contains thousands of acquisition points, the user needs a long time to configure the acquisition points, so that time is consumed, and a PLC acquisition point table file containing the whole intelligent gateway can be finally generated. 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 manner until all the intelligent gateways receive the point table file completely, and particularly when a user issues the point table file to a remote intelligent gateway through a remote management platform, because of more data, the number of times of back-and-forth interaction between the intelligent gateway and the remote management platform is frequent, the whole configuration process needs to be completed in a long time, which consumes not only flow but also time. Meanwhile, a user carries out PLC acquisition point table configuration on a remote intelligent gateway through a remote management platform, under the condition that communication delay is large, time consumed by back-and-forth interaction of the intelligent gateway and the remote management platform is large, when communication time exceeds preset overtime, configuration failure can be triggered to start a retransmission mechanism, and then the problems of poor stability, low configuration efficiency, poor practicability and poor user experience are caused.
In view of this, the present application is proposed.
Disclosure of Invention
In view of this, 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 practicability 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, 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;
judging whether the point table configuration files are continuous or not according to the analysis text;
when the point table configuration file is judged to be continuous, processing the analysis text to generate a first PLC acquisition point table corresponding to the point table configuration file;
and when the point table configuration file is judged to be discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file.
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 judged 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 to be acquired finally by the PLC acquisition point table 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, and sequentially increasing the register initial address by taking the increment as a step value to generate 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, processing the parsing text to generate a second PLC acquisition point table corresponding to the point table configuration file, specifically:
determining the number of second point tables which need to be acquired finally by the PLC acquisition point table according to the acquisition number;
sequentially generating a plurality of data IDs and a plurality of register initial addresses corresponding to the data IDs according to the register initial address list and the number of the second point lists;
and generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register initial address.
The invention also discloses a configuration method of the PLC acquisition point table, which comprises the following steps:
acquiring relevant information of a PLC acquisition point, and generating a corresponding point table configuration file;
and when the networking state is detected to be normal, the point table configuration file is issued to the intelligent gateway.
The invention also discloses a configuration device of the PLC acquisition point table, which comprises:
the analysis unit is used for receiving a point table configuration file sent by a 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 files are continuous or not according to the analysis texts;
a continuous point table generating unit, configured to process the parsing text when the point table configuration file is determined to be continuous, and generate a first PLC acquisition point table corresponding to the point table configuration file;
and the discontinuous point table generating unit is used for processing the analysis text when the point table configuration file is judged to be discontinuous, and generating a second PLC acquisition point table corresponding to the point table configuration file.
The invention also discloses a configuration device of the PLC acquisition point table, which comprises:
the configuration file generating unit is used for acquiring relevant information of a PLC acquisition point and generating a corresponding point table configuration file;
and the file transmission unit is used for issuing the point table configuration file to the intelligent gateway when the networking state is detected to be normal.
The invention also discloses an intelligent gateway which comprises a processor, a memory and a computer program which is stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to realize the configuration method of the PLC acquisition point table.
The invention also discloses a configuration device of the PLC acquisition point table, which comprises 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 realize the configuration method of the PLC acquisition point table.
The invention also discloses a readable storage medium, which stores a computer program, wherein the computer program can be executed by a processor of a device on which the storage medium is positioned, so as to realize the configuration method of the PLC acquisition point table.
In summary, the configuration method, the configuration device, the intelligent gateway, the equipment and the medium for the PLC acquisition point table provided in this embodiment are optimized for continuous and discontinuous situations, so that the configuration time spent by a user in configuring a tool or configuring a remote management platform is significantly reduced, the generated point table file is also significantly reduced, the data volume and transmission time of network transmission are also reduced, and the time required for the whole process is greatly shortened. Therefore, the problems of flow consumption, time consumption, poor stability, low configuration efficiency, poor practicability and poor user experience in the PLC acquisition point table configuration scheme in the prior art are solved.
Drawings
Fig. 1 is a first flowchart of a configuration method of a PLC acquisition point table according to an embodiment of the present invention.
Fig. 2 is a schematic second flowchart of a configuration method for a PLC collection point table according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a first module of a configuration apparatus for a PLC collection point table according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a second module of a configuration apparatus of a PLC acquisition point table according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive efforts based on the embodiments of the present invention, are within the scope of protection of the present invention.
The following detailed description of specific embodiments of the invention refers to the accompanying drawings.
The invention discloses a configuration method, a configuration device, an intelligent gateway, equipment and a medium of a PLC acquisition point table, which at least solve the defects of the prior art to a certain extent.
Referring to fig. 1, a first embodiment of the present invention provides a method for configuring a PLC acquisition point table, which is executed by a configuration device (hereinafter referred to as a first configuration device) of the acquisition point table, and in particular, executed by one or more processors in the first configuration device, so as to implement the following steps:
s101, receiving a point table configuration file sent by a 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;
s102, judging whether the point table configuration files are continuous or not according to the analysis text;
in this embodiment, the first configuration device may be an intelligent gateway, and the intelligent gateway may perform remote communication with a remote management platform to receive the peer table configuration file sent by the remote management platform, where the remote management platform may be a smart phone, a smart computer, or other intelligent devices, and further, the intelligent gateway may perform communication with a lower computer to obtain data collected and sent by the lower computer (e.g., a PLC).
In the current PLC acquisition point table configuration scheme in the market, due to more data and frequent back-and-forth interaction times between the intelligent gateway and the remote management platform, the whole configuration process needs a long period of time, which not only consumes flow, but also consumes time; meanwhile, a user carries out PLC acquisition point table configuration on a remote intelligent gateway through a remote management platform, under the condition that communication delay is large, time consumed by back-and-forth interaction of the intelligent gateway and the remote management platform is large, when communication time exceeds preset overtime, configuration failure can be triggered to start a retransmission mechanism, and then the problems of poor stability, low configuration efficiency, poor practicability and poor user experience are caused.
In this embodiment, 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.
Specifically, in this embodiment, after receiving a point table configuration file sent by the remote management platform, the first configuration device parses the point table configuration file to generate a parsing text; and judging whether the analysis text contains a register initial address or a register initial address list, wherein if the analysis text contains the register initial address, the collected register data blocks are continuous, and if the analysis text contains the register initial address list, the collected register data blocks are discontinuous.
S103, when the point table configuration file is judged to be continuous, processing the analysis text to generate a first PLC acquisition point table corresponding to the point table configuration file;
specifically, step S103 includes: determining the number of first point tables which need to be acquired finally by the PLC acquisition point table 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, and sequentially increasing the register initial address by taking the increment as a step value to generate a first PLC acquisition point table corresponding to the point table configuration file.
When the existing PLC acquisition point table configuration scheme acquires a certain section of continuous data of a certain PLC DB register data block, each data point needs to be manually configured, and finally a point table configuration file is generated; the file is transmitted to the intelligent gateway through network transmission, after the intelligent gateway receives the complete configuration file, the original data of the file is read and stored, and the whole configuration process is finished. The continuous point table configuration file sent by the existing PLC acquisition point table configuration scheme is shown in table 1:
table 1:
data ID Register type Register address Type of data
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
Specifically, in this embodiment, taking a certain section of continuous data of a certain PLC DB register data block as an example, after receiving a point table configuration file sent by the remote management platform, analyzing data content therein, and quickly generating an acquisition point table required by a user; the point table configuration file is a configuration file of a PLC acquisition point, and is shown in table 2:
table 2:
Figure BDA0003968757050000101
firstly, determining the number of point tables needing to be acquired finally according to the acquisition number; determining increment, namely step size, through the data type, for example, when the data type is DWORD type, the data width is 2 bytes, so the increment is 2; and finally, adding suffixes to the data IDs sequentially through the number and increment of the point tables, wherein the suffixes are sequentially added to the data IDs, for example, the first data ID is DB0, the second data ID is DB2, the second data ID is DB4, and the like, and the register addresses are sequentially increased according to the rule that the increment is 2, for example, the first register address 0, the second register address 2, the third register address 4, and the like, so as to generate a point table which needs to be finally acquired, namely a first PLC acquisition point table corresponding to the point table configuration file. The first PLC acquisition point table is shown in table 3:
table 3:
data ID Register type Register address Data type
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
And S104, when the point table configuration file is judged to be discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file.
Specifically, step S104 includes: determining the number of second point tables which need to be acquired finally by the PLC acquisition point table according to the acquisition number;
sequentially generating a plurality of data IDs and a plurality of register initial addresses corresponding to the data IDs according to the register initial address list and the number of the second point lists;
and generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register initial address.
When the data of a certain PLC DB register data block acquired by the existing PLC acquisition point table configuration scheme is discontinuous, the configuration mode of the existing PLC acquisition point table configuration scheme is basically the same as that of the continuous configuration method, and finally, a point table file with scattered data points and a large number of contents is generated. The discontinuous point table configuration file sent by the existing PLC acquisition point table configuration scheme is shown in table 4:
table 4:
data ID Register type Register address Data type
DB0 DBn_DBW 0 WORD
DB4 DBn_DBW 4 WORD
DB10 DBn_DBW 10 WORD
... ... ... ...
DBn DBn_DBW n WORD
Specifically, in this embodiment, for example, data of a certain PLC DB register data block that is collected is discontinuous, after receiving a point table configuration file sent by the remote management platform, the data content in the point table configuration file is analyzed, and a point table that is required by a user can be quickly generated according to a preset rule; the point table configuration file is a configuration file of a PLC acquisition point, and is shown in table 5:
table 5:
Figure BDA0003968757050000121
firstly, determining the number of point tables needing to be acquired finally according to the acquisition number; and sequentially generating data IDs through the register initial address list and the number of the point tables, wherein for example, the first data ID is DB0, the second data ID is DB4, the third data ID is DB10, and so on, and the corresponding register initial addresses, for example, the first register address 0, the second data ID is 4, the third data ID is 10, and so on. And finally generating a point table to be acquired, namely a second PLC acquisition point table corresponding to the point table configuration file. The second PLC acquisition point table is shown in table 6:
table 6:
data ID Register type Register address Type of data
DB0 DBn_DBW 0 WORD
DB4 DBn_DBW 4 WORD
DB10 DBn_DBW 10 WORD
... ... ... ...
DBn DBn_DBW n WORD
Referring to fig. 2, a second embodiment of the present invention provides a method for configuring a PLC acquisition point table, which can be executed by a configuration device (hereinafter referred to as a second configuration device) of the PLC acquisition point table, and in particular, executed by one or more processors in the second configuration device, so as to implement the following steps:
s201, acquiring relevant information of a PLC acquisition point, and generating a corresponding point table configuration file;
s202, when the networking state is detected to be normal, the point table configuration file is issued to the intelligent gateway.
In this embodiment, the second configuration device may be a remote management platform (such as a smart phone, a smart computer, or other smart devices), and the remote management platform device may perform remote communication with the smart gateway to send the point table configuration file to the smart gateway.
Specifically, in this embodiment, taking the example of acquiring a certain section of continuous data of a data block of a PLC DB register, a user only needs to configure relevant information of a collection point in a configuration tool or a remote management platform, and after generating a point table, a very small point table configuration file is generated and sent to an intelligent gateway through network transmission in a very short time; the point table configuration file is shown in table 1.
In this embodiment, taking discontinuous data of a certain collected PLC DB register data block as an example, a user only needs to configure a piece of relevant information of a collection point in a configuration tool or a remote management platform, and after generating a point table, a very small point table configuration file is also generated and sent to an intelligent gateway through network transmission in a very short time; the point table configuration file is shown in table 4.
In summary, the configuration method of the PLC acquisition point table is optimized for continuous and discontinuous situations, so that the configuration time spent by a user in configuring a tool or a remote management platform is significantly reduced, the generated point table files are significantly smaller, the data volume and transmission time of network transmission are also reduced, the whole process is shortened, the required time is greatly shortened, the efficiency is improved, and good experience is brought to the user. In brief, the configuration method of the PLC acquisition point table optimizes the configuration amount of a configuration tool or a remote management platform, the content of the PLC acquisition point table file and the transmission time of the PLC acquisition point table file, improves the configuration efficiency of the intelligent gateway PLC acquisition point table, reduces the time of user configuration, provides convenience for users, reduces the data volume of network transmission, saves the flow, optimizes the interaction time and improves the user experience.
Referring to fig. 3, a third embodiment of the present invention provides a configuration apparatus of a PLC acquisition point table, including:
the analysis unit 101 is configured to receive a point table configuration file sent by a remote management platform, analyze the point table configuration file, and generate an analysis text, where the point table configuration file is a configuration file of a PLC acquisition point;
a continuity judging unit 102, configured to judge whether the point table configuration file is continuous according to the parsing text;
a continuous point table generating unit 103, configured to process the parsing text to generate a first PLC acquisition point table corresponding to the point table configuration file when the point table configuration file is determined to be continuous;
and a discontinuous point table generating unit 104, configured to process the parsing text when the point table configuration file is determined to be discontinuous, and generate a second PLC acquisition point table corresponding to the point table configuration file.
Referring to fig. 4, a fourth embodiment of the present invention provides a configuration apparatus of a PLC acquisition point table, including:
a configuration file generating unit 201, configured to obtain relevant information of a PLC acquisition point, and generate a corresponding point table configuration file;
and the file transmission unit 202 is configured to issue the peer table configuration file to the intelligent gateway when detecting that the networking state is normal.
A 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, where the processor implements the configuration method of the PLC acquisition point table as described in any one of the above items when executing the computer program.
A sixth embodiment of the present invention provides a configuration device of 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, wherein the processor implements the configuration method of the PLC acquisition point table as described in any one of the above items when executing the computer program.
A seventh embodiment of the present invention provides a readable storage medium, which stores a computer program, where the computer program can be executed by a processor of a device on which the storage medium is located, so as to implement the configuration method of the PLC acquisition point table according to any one of the above items.
Illustratively, the computer programs described in the fifth, sixth and seventh embodiments of the present invention may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the configuration device for realizing the PLC acquisition point list. For example, the apparatus described in the third and fourth embodiments of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general processor can be a microprocessor or the processor can be any conventional processor, etc., the processor is a control center of the configuration method of the PLC acquisition point table, and various interfaces and lines are used for connecting the whole parts for implementing the configuration method of the PLC acquisition point table.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the configuration method of the PLC acquisition point table by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein the implemented module, if implemented in the form of a software functional unit and sold or used as a stand-alone product, can be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above-mentioned embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention.

Claims (10)

  1. The configuration method of the PLC acquisition point list is characterized by comprising the following steps:
    receiving a point table configuration file sent by a 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;
    judging whether the point table configuration files are continuous or not according to the analysis text;
    when the point table configuration file is judged to be continuous, processing the analysis text to generate a first PLC acquisition point table corresponding to the point table configuration file;
    and when the point table configuration file is judged to be discontinuous, processing the analysis text to generate a second PLC acquisition point table corresponding to the point table configuration file.
  2. 2. The method of claim 1, wherein the parsed text comprises a data ID prefix, a register type, a register start address or a register start address list, a data type, and a collection number.
  3. 3. The method according to claim 2, 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 need to be acquired finally by the PLC acquisition point table 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, and sequentially increasing the register initial address by taking the increment as a step value to generate a first PLC acquisition point table corresponding to the point table configuration file.
  4. 4. The method according to claim 2, wherein when it is determined that the point table configuration file is discontinuous, the parsing 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 need to be acquired finally by the PLC acquisition point table according to the acquisition number;
    sequentially generating a plurality of data IDs and a plurality of register initial addresses corresponding to the data IDs according to the register initial address list and the number of the second point lists;
    and generating a second PLC acquisition point table corresponding to the point table configuration file according to each data ID and each register initial address.
  5. The configuration method of the PLC acquisition point list is characterized by comprising the following steps:
    acquiring relevant information of a PLC acquisition point, and generating a corresponding point table configuration file;
    and when the networking state is detected to be normal, the point table configuration file is issued to the intelligent gateway.
  6. A configuration device of a PLC acquisition point list is characterized by comprising:
    the analysis unit is used for receiving a point table configuration file sent by a 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 files are continuous or not according to the analysis texts;
    the continuous point table generating unit is used for processing the analysis text when the point table configuration file is judged to be continuous, and generating a first PLC acquisition point table corresponding to the point table configuration file;
    and the discontinuous point table generating unit is used for processing the analysis text when the point table configuration file is judged to be discontinuous, and generating a second PLC acquisition point table corresponding to the point table configuration file.
  7. A plc acquisition point table configuration apparatus, comprising:
    the configuration file generating unit is used for acquiring relevant information of a PLC acquisition point and generating a corresponding point table configuration file;
    and the file transmission unit is used for issuing the point table configuration file to the intelligent gateway when the networking state is detected to be normal.
  8. 8. An intelligent gateway 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 method of configuring a PLC collection point table according to any of claims 1 to 4 when executing the computer program.
  9. A PLC acquisition point table configuration device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor when executing the computer program implementing the PLC acquisition point table configuration method of any of claim 5.
  10. 10. Readable storage medium, characterized in that a computer program is stored, said computer program being executable by a processor of a device on which the storage medium is located, to implement a method for configuring a PLC collection point table according to any of claims 1 to 5.
CN202211505031.3A 2022-11-29 2022-11-29 Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium Pending CN115793559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211505031.3A CN115793559A (en) 2022-11-29 2022-11-29 Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211505031.3A CN115793559A (en) 2022-11-29 2022-11-29 Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium

Publications (1)

Publication Number Publication Date
CN115793559A true CN115793559A (en) 2023-03-14

Family

ID=85442450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211505031.3A Pending CN115793559A (en) 2022-11-29 2022-11-29 Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium

Country Status (1)

Country Link
CN (1) CN115793559A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116774645A (en) * 2023-08-22 2023-09-19 苔花科迈(西安)信息技术有限公司 Method, device, medium and equipment for associating equipment object model with entity equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116774645A (en) * 2023-08-22 2023-09-19 苔花科迈(西安)信息技术有限公司 Method, device, medium and equipment for associating equipment object model with entity equipment

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN110909063B (en) User behavior analysis method and device, application server and storage medium
CN113079072B (en) Vehicle data acquisition method and system, computer equipment and storage medium
CN107656968B (en) Method and system for exporting large-batch business data
CN113704243A (en) Data analysis method, data analysis device, computer device, and storage medium
CN104199879A (en) Data processing method and device
CN113553310B (en) Data acquisition method and device, storage medium and electronic equipment
CN107329765B (en) Program file processing method and device
CN111246406A (en) Short message sending method, system, storage medium and terminal equipment
CN115793559A (en) Configuration method and device of PLC acquisition point table, intelligent gateway, equipment and medium
CN103200022B (en) A kind of data download abnormality eliminating method, equipment and system
CN111782728B (en) Data synchronization method, device, electronic equipment and medium
CN108460149B (en) Text data processing method, device and equipment and computer readable storage medium
CN107864044B (en) Information processing method and device, terminal and readable storage medium
CN106162576B (en) Mobile terminal network flow display method and device
CN110968592A (en) Metadata acquisition method and device, computer equipment and computer-readable storage medium
CN117874033A (en) Database sub-table method and device, electronic equipment and storage medium
CN110442439B (en) Task process processing method and device and computer equipment
CN112667631A (en) Method, device and equipment for automatically editing service field and storage medium
CN112416557A (en) Method and device for determining call relation, storage medium and electronic device
CN115270743A (en) Form data processing method and device
CN112148470B (en) Parameter synchronization method, computer device and readable storage medium
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN109587353B (en) Method, device and storage medium for identifying short message number attribution information
CN109803160B (en) Resource allocation method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination