CN-121995838-A - PLC data processing method and system based on industrial Ethernet ring
Abstract
The disclosure provides a PLC data processing method and system based on an industrial Ethernet ring. The industrial Ethernet ring network comprises at least one master station and at least one slave station, wherein a master station fixed address area, a master station dynamic address area and a data summarizing area are divided in a master station memory of the master station, a slave station fixed address area and a slave station dynamic address area are divided in a slave station memory of the slave station, data to be processed of each information point in the industrial Ethernet ring network are sent to the data summarizing area of the master station through the slave station dynamic address areas of the slave stations corresponding to the information points, a logic control unit processes summarized data in the data summarizing area and generates output data, and the output data is sent from the data summarizing area to the slave station dynamic address area of the corresponding slave station. The method and the device realize extremely optimal utilization of memory resources, eliminate memory fragments, remarkably improve the transmission efficiency and response speed of the system, and provide an efficient, stable, economical and efficient solution for industrial control.
Inventors
- XU WEIHAI
- SUN ZAIMING
- Gao Binhua
- FAN LEILEI
- Huai Wenming
- ZHU LIZHI
- HU YAMIN
- WANG JIACHENG
- YANG QIBIN
- ZHU HUAIYU
- ZHANG YUYANG
- WU YIXUAN
Assignees
- 国核自仪系统工程有限公司
- 中国电能成套设备有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260129
Claims (10)
- 1. The PLC data processing method based on the industrial Ethernet ring comprises at least one master station and at least one slave station, and is characterized in that a master station fixed address area, a master station dynamic address area and a data summarizing area are divided in a master station memory of the master station, and a slave station fixed address area and a slave station dynamic address area are divided in a slave station memory of the slave station, and the PLC data processing method comprises the following steps: Transmitting data to be processed of each information point in the industrial Ethernet ring network to a data summarization area of the master station through a slave station dynamic address area of the slave station corresponding to each information point; processing summarized data in the data summarization area by a logic control unit and generating output data; and transmitting the output data from the data summarization area to a corresponding slave station dynamic address area of the slave station.
- 2. The PLC data processing method according to claim 1, wherein the sending the data to be processed of each information point in the industrial ethernet ring network to the data summarizing area of the master station via the slave station dynamic address area of the slave station corresponding to each information point includes: When the information point is an IO device, storing first data to be processed of the IO device into a slave station fixed address area of a corresponding first target slave station in the slave station, and sending the first data to be processed of the first target slave station from the slave station fixed address area to a first continuous address space of a slave station dynamic address area according to a preset IO remapping table; When the information point is the communication equipment, storing second data to be processed of the communication equipment into a second continuous address space preset in a slave station dynamic address area of a corresponding second target slave station in the slave stations; and sending the data to be processed in the slave station dynamic address area in each slave station to the data summarizing area according to a ring network routing table.
- 3. The PLC data processing method of claim 2, wherein said transmitting the first pending data of the first target slave station from the slave station fixed address area to a first continuous address space of the slave station dynamic address area comprises: and responding the first data to be processed as digital quantity signals, and storing the digital quantity signals with preset compression quantity in an address unit in a bit compression mode, wherein the preset compression quantity is matched with the bit width of the address unit.
- 4. The PLC data processing method according to claim 1, wherein the processing of the summarized data in the data summarization area by the logic control unit and generating output data includes: the logic control unit accesses the data summarization area; reading summarized data in the data summarization area, wherein the summarized data are arranged according to the number of the slave station and the data type; Based on the summarized data, executing a preset control logic program to perform operation, and generating corresponding output data; and writing the output data into the pre-allocated output data blocks in the data summarization area.
- 5. The PLC data processing method of claim 1, wherein said transmitting said output data from said data summary area to a slave station dynamic address area of a corresponding said slave station, comprises: determining a third target slave station corresponding to the output data; Determining a routing path between the data summary area and a slave station dynamic address area of the third target slave station based on a ring network routing table; And transmitting the output data from the data summarization area to a slave station dynamic address area of the third target slave station according to the routing path.
- 6. The PLC data processing method according to any one of claims 1 to 5, further comprising a system configuration flow triggered by at least one of a first build of the industrial ethernet ring, a hardware device change event in the industrial ethernet ring, and a user configuration instruction; the system configuration flow comprises the following steps: counting hardware equipment in the industrial Ethernet ring to identify each information point; Generating an address configuration table, an IO remapping table and a ring network routing table according to the statistical result, wherein the address configuration table defines the address mapping of the information points in the memory, the IO remapping table defines the data remapping and compression operation, and the ring network routing table defines the routing path of the data between the master station and the slave station; downloading the address configuration table, the IO remapping table and the routing table to the master station and the slave station to configure the master station fixed address area, the master station dynamic address area, the data summarizing area, the slave station fixed address area and the slave station dynamic address area.
- 7. The industrial Ethernet ring network comprises at least one master station and at least one slave station, and is characterized in that a master station fixed address area, a master station dynamic address area and a data summarizing area are divided in a master station memory of the master station, and a slave station fixed address area and a slave station dynamic address area are divided in a slave station memory of the slave station, and the PLC data processing system comprises: The summarizing module is used for transmitting the data to be processed of each information point in the industrial Ethernet ring to the data summarizing area of the master station through the dynamic address area of the slave station corresponding to each information point; The processing module is used for processing the summarized data in the data summarizing area by the logic control unit and generating output data; And the distribution module is used for transmitting the output data from the data summarization area to the corresponding slave station dynamic address area of the slave station.
- 8. An electronic device comprising a memory, a processor and a computer program stored on the memory for running on the processor, characterized in that the processor implements the industrial ethernet ring-based PLC data processing method according to any of claims 1 to 6 when executing the computer program.
- 9. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the industrial ethernet ring-based PLC data processing method according to any of claims 1 to 6.
- 10. A computer program product comprising a computer program which, when executed by a processor, implements the industrial ethernet ring-based PLC data processing method according to any of claims 1 to 6.
Description
PLC data processing method and system based on industrial Ethernet ring Technical Field The disclosure relates to the field of industrial automation control, in particular to a PLC data processing method and system based on an industrial Ethernet ring. Background In the field of industrial automation control, a Programmable Logic Controller (PLC) system is used as a core control unit, and is widely applied to key industries such as industry. In address allocation management, a conventional PLC system generally adopts a fixed address or vendor automatic allocation strategy, wherein a fixed address mode needs to reserve the maximum possible data space for each input/output (IO) module, resulting in a large amount of memory area being idle or fragmented, while an automatic allocation logic is seriously dependent on the software and hardware architecture of a specific vendor, and requires deep intervention of professional technicians during system integration and expansion, resulting in project cycle extension and maintenance cost increase. In addition, when the user configures the address by himself, the operation is complicated and error is easy to occur in the face of scattered unordered signal point distribution, and the data link efficiency is difficult to optimize. Disclosure of Invention The technical problem to be solved by the present disclosure is to overcome the defects of the prior art that the PLC address allocation method has the technical problems of more memory fragments, low expandability, poor maintainability, difficult user operation, etc., and provide a PLC data processing method and system based on an industrial ethernet ring network. The technical problems are solved by the following technical scheme: The present disclosure provides a PLC data processing method based on an industrial Ethernet ring, the industrial Ethernet ring includes at least one master station and at least one slave station, a master station fixed address area, a master station dynamic address area and a data summarizing area are divided in a master station memory of the master station, a slave station fixed address area and a slave station dynamic address area are divided in a slave station memory of the slave station, the PLC data processing method includes: Transmitting data to be processed of each information point in the industrial Ethernet ring network to a data summarization area of the master station through a slave station dynamic address area of the slave station corresponding to each information point; processing summarized data in the data summarization area by a logic control unit and generating output data; and transmitting the output data from the data summarization area to a corresponding slave station dynamic address area of the slave station. Optionally, the sending the data to be processed of each information point in the industrial ethernet ring to the data summarizing area of the master station via the dynamic address area of the slave station corresponding to each information point includes: When the information point is an IO device, storing first data to be processed of the IO device into a slave station fixed address area of a corresponding first target slave station in the slave station, and sending the first data to be processed of the first target slave station from the slave station fixed address area to a first continuous address space of a slave station dynamic address area according to a preset IO remapping table; When the information point is the communication equipment, storing second data to be processed of the communication equipment into a second continuous address space preset in a slave station dynamic address area of a corresponding second target slave station in the slave stations; and sending the data to be processed in the slave station dynamic address area in each slave station to the data summarizing area according to a ring network routing table. Optionally, the sending the first pending data of the first target slave station from the slave station fixed address area to a first continuous address space of the slave station dynamic address area includes: and responding the first data to be processed as digital quantity signals, and storing the digital quantity signals with preset compression quantity in an address unit in a bit compression mode, wherein the preset compression quantity is matched with the bit width of the address unit. Optionally, the processing, by the logic control unit, the summarized data in the data summarization area, and generating output data includes: the logic control unit accesses the data summarization area; reading summarized data in the data summarization area, wherein the summarized data are arranged according to the number of the slave station and the data type; Based on the summarized data, executing a preset control logic program to perform operation, and generating corresponding output data; and writing the output data into the pre-allocated