CN211293728U - Data interaction system between PLC remote modules - Google Patents

Data interaction system between PLC remote modules Download PDF

Info

Publication number
CN211293728U
CN211293728U CN201922182392.9U CN201922182392U CN211293728U CN 211293728 U CN211293728 U CN 211293728U CN 201922182392 U CN201922182392 U CN 201922182392U CN 211293728 U CN211293728 U CN 211293728U
Authority
CN
China
Prior art keywords
data
plc
cpu
unit
subscription
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.)
Active
Application number
CN201922182392.9U
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.)
Shanghai Hi Tech Control System Co ltd
Original Assignee
Shanghai Hi Tech Control System 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 Shanghai Hi Tech Control System Co ltd filed Critical Shanghai Hi Tech Control System Co ltd
Priority to CN201922182392.9U priority Critical patent/CN211293728U/en
Application granted granted Critical
Publication of CN211293728U publication Critical patent/CN211293728U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model discloses a data interaction system between PLC remote modules, which comprises a CPU and a plurality of PLC sub-modules connected with data, wherein the PLC sub-modules are provided with a data collection configuration table and a data collection unit which are respectively used for storing the data required to be collected by the PLC sub-modules and collecting the set data; the CPU is provided with a data subscription unit, a data processing unit, a data storage unit and a data pushing unit, and the data subscription unit acquires subscribed data output by the PLC submodule; the data processing unit is used for receiving and processing the subscribed data; the data storage unit is used for storing each data table and a communication protocol; the data pushing unit receives the processed data and pushes the data to the corresponding PLC sub-modules according to the data subscription table, and the original polling response mode is changed into the subscription mode by setting the data subscription table in the CPU, so that the efficiency of data interaction among the PLC sub-modules is remarkably improved.

Description

Data interaction system between PLC remote modules
Technical Field
The utility model relates to a PLC data communication technical field, more specifically say, it relates to a data interaction system between PLC remote module.
Background
In the prior art, each PLC sub-module is generally connected to a CPU in terms of data and control through a data bus, and data communication between each PLC sub-module is also generally performed based on the control of the data bus and the CPU. The CPU periodically and circularly scans and collects data uploaded by each PLC sub-module, and the collected data is processed by a data processing program arranged in the CPU and then is issued to the corresponding PLC sub-module, so that the data can be transmitted between different PLC sub-modules. And when the data transmission task of one PLC submodule is finished, starting the data transmission task of the next PLC submodule according to the set sequence, and circulating.
The data interaction method among the PLC submodules also has many disadvantages in practical application, for example, one CPU is correspondingly connected with 20 PLC submodules, the time consumption of each PLC submodule data transmission task is calculated according to 50ms based on a polling mechanism of the PLC, and after one PLC submodule data is uploaded, the next data transmission can be completed after waiting for 20 × 50ms, obviously, the real-time performance of the data transmission is poor. In addition, because the CPU continuously polls each PLC sub-module, the consumption of the whole CPU is higher. Furthermore, in the data interaction process, the data of all the PLC sub-modules may not change in each polling cycle, which means that in the polling cycle of the current round, the task amount corresponding to the PLC sub-modules is zero, and the CPU consumes time and memory resources to perform data acquisition and processing, which is actually a waste, and will occupy a large amount of memory of the CPU. For the above reasons, the number of PLC submodules corresponding to the CPU is also limited from further expansion.
SUMMERY OF THE UTILITY MODEL
The mutual real-time nature of data is poor, occupy this problem that the CPU resource is many between the PLC submodule piece among to the in-service use, the utility model aims at providing a data interaction system between the remote module of PLC, its mode that adopts subscription, CPU only when setting for PLC submodule piece data and change, gather and handle above-mentioned data to data transmission after will handling is to its PLC submodule piece that corresponds, can promote data transmission's real-time nature between the PLC submodule piece from this greatly, and can show the consumption that reduces the CPU resource. The specific scheme is as follows:
a data interaction system among PLC remote modules comprises a CPU and a plurality of PLC sub-modules which are in communication connection with the CPU through a data bus,
the PLC sub-modules are configured or connected with:
the data collection configuration table is used for storing data required to be collected by the PLC sub-modules;
the data collection unit is configured to be in signal connection with the data output end of each data collector in the equipment, and collects and outputs set data according to the data collection configuration table;
the CPU is provided with:
the data subscription unit comprises a data subscription table and a subscription data collector, and the subscription data collector collects subscribed data output by the PLC submodule according to the data subscription table;
the data processing unit is configured to be in data connection with the data subscription unit and is used for receiving and processing the subscribed data;
the data storage unit is configured to be connected with the data subscription unit and the data processing unit and used for storing a data subscription table for recording data subscription relations among the PLC submodules, a data processing algorithm, subscribed data uploaded by the PLC submodules, data processed by the data processing algorithm and a data communication protocol;
and the data pushing unit is connected with the data bus, the data storage unit and/or the data processing unit, receives the data processed by the data processing algorithm, and pushes the data to the corresponding subscription PLC sub-module according to the communication protocol and the data subscription table.
Through the technical scheme, the data are primarily screened in the PLC modules, and then the subscribed data are pertinently pushed to the set PLC sub-modules through the CPU subscription service, so that the data interaction efficiency among the PLC sub-modules is improved, and the occupation of the CPU memory and the consumption of related resources are reduced.
Further, the CPU data access end is configured with a data preprocessing unit for preprocessing data input into the CPU.
Through the technical scheme, the processing efficiency of the CPU on the input data can be improved.
Furthermore, the data preprocessing unit comprises a data bit number conversion module and a data filtering module.
Through the technical scheme, the data of different formats or digits output by each PLC submodule can be converted and unified, the CPU can conveniently process the data in a unified manner, and the data processing efficiency of the CPU is improved.
Further, a message feedback module is configured in the PLC sub-module, and the message feedback module receives and outputs feedback information to the CPU in response to a message pushed by the CPU.
Through the technical scheme, after the CPU sends data, the feedback of the PLC sub-module can be monitored to determine whether the data is successfully sent.
Furthermore, a monitoring alarm module is configured in the CPU, the monitoring alarm module is connected to a data output end and an input end of the CPU, starts timing in response to a set data pushing action of the CPU, and outputs an alarm signal if no feedback information of the PLC submodule is detected within a set time.
Through the technical scheme, when the data pushed by the CPU is not sent to the corresponding PLC sub-module, an alarm signal is output to prompt a manager to debug and overhaul the system.
Further, the CPUs are configured to share and synchronize data between at least two CPUs.
Through the technical scheme, the double-CPU arrangement can ensure that the other CPU can still work normally after one CPU fails, and can also avoid the loss of data.
Further, the data bus is arranged in a loop structure.
Through the technical scheme, after the data bus is interrupted at a certain position, the subscribed data pushed by the CPU can still reach the set subscription PLC submodule, and the reliability of the whole system is improved.
Furthermore, a data fast searching unit is also configured in the CPU, and the data fast searching unit is in data connection with the data subscription table and the data pushing unit, and searches for PLC sub-module information associated with subscribed data in the data subscription table.
Through the technical scheme, the CPU can be helped to find the corresponding PLC sub-modules, and then the data between the PLC sub-modules can be quickly interacted.
Compared with the prior art, the beneficial effects of the utility model are as follows:
(1) the data subscription table is arranged in the CPU, and the original polling response mode is changed into the subscription mode, so that the real-time performance of data interaction among the PLC sub-modules is obviously improved, the consumption of CPU memory and resources can be effectively reduced, and the efficiency of data interaction among the PLC sub-modules is improved;
(2) the data uploaded by part of the PLC submodules are set to be timed and pushed, the data of part of the PLC submodules are set to be pushed after meeting the triggering condition, and the two modes are combined, so that the efficiency and the real-time performance of data transmission are improved.
Drawings
Fig. 1 is a schematic diagram of the overall structure of the data interaction system of the present invention;
FIG. 2 is a schematic diagram of functional module connections of a data interaction system between PLC remote modules;
fig. 3 is a schematic diagram of a data interaction flow between PLC remote modules.
Reference numerals: 1. a CPU; 2. a PLC submodule; 3. a data bus; 4. a data collection unit; 5. a data subscription unit; 6. a data processing unit; 7. a data storage unit; 8. a data push unit; 9. a data preprocessing unit; 10. and (5) a data quick searching unit.
Detailed Description
The present invention will be described in further detail with reference to the following examples and drawings, but the embodiments of the present invention are not limited thereto.
The utility model provides a data interaction system between PLC remote module, as shown in fig. 1, including CPU1 and a plurality of PLC submodule piece 2, a plurality of PLC submodule piece 2 pass through data bus 3 and CPU1 communication connection.
As shown in fig. 2 and 3, the PLC sub-module 2 includes: a data collection configuration table for storing data required to be collected by the PLC sub-module 2, such as detection data output by a temperature sensor and a distance detector in the device, and a data collection unit 4. The data collection unit 4 is configured to collect and output setting data according to the data collection configuration table. It should be understood that the PLC sub-module 2 collects data and outputs the data without performing any operation on the data, and only performs a conversion on the data format if necessary so as to transmit the data to the CPU1 via the PLC sub-module 2 and the data bus 3.
As shown in fig. 2, the CPU1 includes a data subscribing unit 5, a data processing unit 6, a data storage unit 7, and a data pushing unit 8.
The data subscription unit 5 comprises a data subscription table and a subscription data collector, and the subscription data collector collects subscribed data output by the PLC sub-module 2 according to the data subscription table. The data processing unit 6 is configured to be in data connection with the data subscribing unit 5, and is used for receiving and performing data processing on the subscribed data based on a built-in algorithm program. In practice, the output processing unit 6 is configured as an arithmetic module in the main chip of the CPU1, and calls the data or algorithm of the external data storage unit 7, or calls the data or algorithm in the internal cache module of the CPU1 to perform data arithmetic processing. The data storage unit 7 is configured to be connected to the data subscription unit 5 and the data processing unit 6, and includes an external storage module connected to the data interface of the CPU1 main chip or a storage module inside the CPU1 main chip, such as a main memory and a cache connected thereto, and is mainly used for storing a data subscription table for recording data subscription relationships among the PLC sub-modules 2, a data processing algorithm, subscribed data uploaded by the PLC sub-modules 2, data processed by the data processing algorithm, and a data communication protocol. The data pushing unit 8 is connected with the data bus 3, the data storage unit 7 and/or the data processing unit 6, receives the data processed by the data processing algorithm, and pushes the data to the corresponding subscription PLC sub-module 2 according to the communication protocol and the data subscription table.
In the technical scheme, data are primarily screened in the PLC module, namely only the data which are recorded in the data collection configuration table and need to be collected are collected, then the CPU1 subscribes for service, and the subscribed data are pushed to the set PLC submodule 2 in a targeted manner, so that the data interaction efficiency among the PLC submodule 2 is improved, and the occupation of the memory of the CPU1 and the consumption of related resources are reduced.
To improve the processing efficiency of data input to the CPU1, the data access of the CPU1 is configured with a data preprocessing unit 9 for preprocessing data input to the CPU 1. The data preprocessing unit 9 includes, but is not limited to, a data bit conversion module and a data filtering module to convert and unify data of different formats or bit numbers output by each PLC sub-module 2, so that the CPU1 can process the data uniformly, and the data processing efficiency of the CPU1 is improved.
Further, in an embodiment, a message feedback module is configured in the PLC sub-module 2, and the message feedback module receives and outputs feedback information to the CPU1 in response to a message pushed by the CPU1, and after the CPU1 sends data, the feedback of the PLC sub-module 2 can be monitored to determine whether the sending is successful. Correspondingly, the CPU1 is configured with a monitoring alarm module, which is connected to the data output end and the data input end of the CPU1, starts timing in response to the set data push operation of the CPU1, and outputs an alarm signal if the feedback information of the PLC submodule 2 is not detected within the set time. In specific implementation, the message feedback module and the monitoring alarm module can be implemented by adopting modularized program codes.
To improve system reliability, in particular embodiments, the CPU1 may be configured as a data sharing synchronization arrangement between at least two and two CPUs 1. Meanwhile, the data bus 3 may be set to be in a loop structure, and after the data bus 3 is interrupted at a certain position, the subscribed data pushed by the CPU1 can still reach the set subscription PLC submodule 2.
Preferably, the CPU1 is further configured with a data fast-searching unit 10, the data fast-searching unit 10 is in data connection with the data subscription table and the data pushing unit 8, and searches for the PLC sub-module 2 information associated with the subscribed data in the data subscription table. Based on the technical scheme, the CPU1 can be promoted to search the corresponding PLC submodule 2, and then the data between the PLC submodules 2 can be quickly interacted.
It is above only the utility model discloses a preferred embodiment, the utility model discloses a scope of protection does not only confine above-mentioned embodiment, the all belongs to the utility model discloses a technical scheme under the thinking all belongs to the utility model discloses a scope of protection. It should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A data interaction system among PLC remote modules comprises a CPU (1) and a plurality of PLC sub-modules (2), wherein the PLC sub-modules (2) are in communication connection with the CPU (1) through a data bus (3),
the PLC sub-module (2) is internally configured or connected with:
the data collection configuration table is used for storing data required to be collected by the PLC submodule (2);
the data collection unit (4) is configured to be in signal connection with the data output end of each data collector in the equipment, and collects and outputs set data according to the data collection configuration table;
the CPU (1) is provided with:
the data subscription unit (5) comprises a data subscription table and a subscription data collector, and the subscription data collector collects the subscribed data output by the PLC submodule (2) according to the data subscription table;
the data processing unit (6) is configured to be in data connection with the data subscribing unit (5) and is used for receiving and performing data processing on the subscribed data;
the data storage unit (7) is configured to be connected with the data subscription unit (5) and the data processing unit (6) and is used for storing a data subscription table for recording data subscription relations among the PLC sub-modules (2), a data processing algorithm, subscribed data uploaded by the PLC sub-modules (2), data processed by the data processing algorithm and a data communication protocol;
and the data pushing unit (8) is connected with the data bus (3), the data storage unit (7) and/or the data processing unit (6), receives the data processed by the data processing algorithm, and pushes the data to the corresponding subscription PLC sub-module (2) according to the communication protocol and the data subscription table.
2. The system according to claim 1, characterized in that the CPU (1) data access is configured with a data pre-processing unit (9) for pre-processing data input into the CPU (1).
3. The system according to claim 2, characterized in that the data preprocessing unit (9) comprises a data bit number conversion module, a data filtering module.
4. The system according to claim 1, characterized in that a message feedback module is configured in the PLC sub-module (2), and receives and outputs feedback information to the CPU (1) in response to the message pushed by the CPU (1).
5. The system according to claim 4, characterized in that the CPU (1) is provided with a monitoring alarm module, the monitoring alarm module is connected with the data output end and the data input end of the CPU (1), starts timing in response to the set data pushing action of the CPU (1), and outputs an alarm signal if the feedback information of the PLC sub-module (2) is not detected within the set time.
6. The system according to claim 1, characterized in that said CPUs (1) are configured for data sharing and synchronization between at least two and two of said CPUs (1).
7. System according to claim 1, characterized in that the data bus (3) is arranged in a loop structure.
8. The system according to claim 1, wherein a data fast-lookup unit (10) is further configured in the CPU (1), the data fast-lookup unit (10) is in data connection with the data subscription table and the data push unit (8), and looks up information of the PLC submodule (2) associated with the subscribed data in the data subscription table.
CN201922182392.9U 2019-12-03 2019-12-03 Data interaction system between PLC remote modules Active CN211293728U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201922182392.9U CN211293728U (en) 2019-12-03 2019-12-03 Data interaction system between PLC remote modules

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201922182392.9U CN211293728U (en) 2019-12-03 2019-12-03 Data interaction system between PLC remote modules

Publications (1)

Publication Number Publication Date
CN211293728U true CN211293728U (en) 2020-08-18

Family

ID=72011812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201922182392.9U Active CN211293728U (en) 2019-12-03 2019-12-03 Data interaction system between PLC remote modules

Country Status (1)

Country Link
CN (1) CN211293728U (en)

Similar Documents

Publication Publication Date Title
Singh Leader election in the presence of link failures
CN103529804A (en) Distributed control system based on EtherCAT bus
US8712338B2 (en) Method and system for implementing power detection
CN102722971A (en) Intelligent data acquisition device with solidified protocol
CN102662782A (en) Method and device for monitoring system bus
CN101533083A (en) System for parallel capture of GPS signals and method
CN110855738B (en) Communication processing system for multi-source equipment
CN113328927B (en) Industrial Internet of things gateway with calculation, storage and network exchange functions
CN211293728U (en) Data interaction system between PLC remote modules
CN214225918U (en) Heterogeneous dual-core-based high-speed data acquisition and processing platform for power system
CN102566460A (en) SOE (sequence of event) acquisition card and acquisition method thereof
CN113676790B (en) Acquisition scheduling method and device for low-voltage centralized meter reading equipment, concentrator and medium
CN204790999U (en) Big data acquisition of industry and processing system
CN116489223A (en) Data reporting method, data reporting device, electronic equipment and storage medium
CN110825023A (en) Data interaction method and system between PLC remote modules
CN115185222A (en) Measurement and control device based on FPGA
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN112950447B (en) Resource scheduling method, device, server and storage medium
CN115081679A (en) CDC-based industrial data dynamic change automatic perception processing system
CN113359644A (en) Synchronous industrial internet acquisition control system and control method thereof
CN108805741B (en) Fusion method, device and system of power quality data
CN209928591U (en) Based on network science and technology control early warning system
CN206363516U (en) A kind of concentrator for receiving terminal monitor signal
CN113872814A (en) Information processing method, device and system for content distribution network
CN106451776A (en) Dynamic recording device and method for power system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant