CN116795062A - Ring network control method and control system applied to control system - Google Patents

Ring network control method and control system applied to control system Download PDF

Info

Publication number
CN116795062A
CN116795062A CN202310907485.1A CN202310907485A CN116795062A CN 116795062 A CN116795062 A CN 116795062A CN 202310907485 A CN202310907485 A CN 202310907485A CN 116795062 A CN116795062 A CN 116795062A
Authority
CN
China
Prior art keywords
processor
ring network
network
message
main control
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
CN202310907485.1A
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.)
Nanjing Keyuan Intelligent Technology Group Co ltd
Original Assignee
Nanjing Keyuan Intelligent Technology Group 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 Nanjing Keyuan Intelligent Technology Group Co ltd filed Critical Nanjing Keyuan Intelligent Technology Group Co ltd
Priority to CN202310907485.1A priority Critical patent/CN116795062A/en
Publication of CN116795062A publication Critical patent/CN116795062A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41845Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by system universality, reconfigurability, modularity
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31094Data exchange between modules, cells, devices, processors

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a looped network control method applied to a control system, wherein the control system forms a looped network through cascade connection of a local main control module and a plurality of remote communication modules; the ring network control method realizes ring network state judgment and network port control command issuing through a processor built in a controller of the main control module, and controls the transmission of the I/O equipment and ring network messages through the remote communication module according to the issued command. The invention uses the processor to uniformly manage the exchange chip, the processing of the message is transmitted to the processor with stronger operation capability, the processor determines the message transmission direction and state, the exchange chip is responsible for receiving the control command and the ring network detection message issued by the processor, and the data forwarding is performed according to the execution command given by the processor, so that the processor can uniformly manage the message, and the message transmission efficiency and the system stability are effectively improved.

Description

Ring network control method and control system applied to control system
Technical Field
The invention relates to the field of automatic control, in particular to a ring network control method applied to a control system. The control method enables the local main control module and the remote communication module to replace conventional management ring network equipment and ring network equipment.
Background
Along with the continuous development of the field of industrial automation, higher requirements are placed on the high reliability and stability of field control equipment, and the reliability of the system is improved by adopting modes such as controller redundancy, module redundancy, communication link redundancy, power supply redundancy, network equipment redundancy and the like in the existing control system.
When a certain section of line or a certain network node device in a certain network link fails, the other redundant network link starts to work, so that the control system can stably run. The common network device redundancy method is as follows: a conventional star network model and a ring network model. Although the conventional star network model can ensure network faults, the network topology is complicated, and the problem is inconvenient to arrange after the network faults occur, so that maintenance work becomes difficult. Most of the current common ring network models are ring self-healing network topologies formed by industrial switches supporting ring network self-healing, and the system cost is increased and the problem investigation is complex due to the fact that a large number of switches are used.
Disclosure of Invention
The invention aims to reduce the complexity of the ring network topology and facilitate the later network maintenance. The invention puts the judgment and the processing of the ring network state on the local main control module and the remote communication module, so that the function of the main control module is more powerful, the dependence on other network expansion equipment is reduced, the stability of a control system is improved, and the control system has higher applicability to different industrial application occasions.
The technical scheme adopted by the invention is as follows:
a ring network control method applied to a control system is provided, wherein the control system forms a ring network through cascade connection of a local main control module and a plurality of remote communication modules; the ring network control method realizes ring network state judgment and network port control command issuing through a processor built in a controller of a main control module, and controls I/O equipment and ring network message transmission through a remote communication module according to the issued command;
the processor of the main control module judges and processes the ring network state as follows: the processor sends out the detection message with the identity of the processor through the Ethernet interface at regular time, and carries out ring network detection message judgment on the message received by the other Ethernet interface, and meanwhile, compares the ring network detection message with the identity of the processor to judge whether the ring network detection message is the detection message sent by the processor; if yes, judging that the control system is in a ring network state at the moment, issuing a control command to the exchange chip by the processor, and controlling two Ethernet interfaces by the exchange chip, so that one Ethernet interface can normally transmit and receive data, and the other Ethernet interface is blocked to only receive ring network detection messages; if the detection message sent by the processor is not received in a period of time, the processor judges that the ring network has faults at the moment, and issues a control command to the switching chip, the switching chip opens all the two Ethernet interfaces, and data is transmitted in two directions along the two Ethernet interfaces.
The invention uses the local main control module as the management equipment to realize the judgment of the ring network state and the issuing of the network port control command. And the processor built in the controller analyzes the control command message and the ring network detection message, and the analyzed message is sent to and received by the exchange chip to construct the ring network topology.
Unlike the conventional ring-shaped self-healing network topology formed by the industrial switches supporting ring network self-healing, the processor of the controller cannot uniformly manage the network expansion modules due to too much dependence on the external network expansion modules, and after a control system has a problem, the processor cannot receive feedback information to timely process. The invention uses the processor to uniformly manage the exchange chip, the processing of the message is transmitted to the processor with stronger operation capability, the processor determines the message transmission direction and state, the exchange chip is responsible for receiving the control command and the ring network detection message issued by the processor, and the data forwarding is performed according to the execution command given by the processor, so that the processor can uniformly manage the message, and the message transmission efficiency and the system stability are effectively improved.
Further, the detection message sent by the processor at regular time is provided with the self MAC address. The purpose of having own MAC address is to prevent multiple controllers in a control system from causing misjudgment of ring network state and network paralysis.
Further, in the ring network control method, a processor is built in a controller of the remote communication module to realize the response to the ring network detection message, and the processor of the main control module analyzes and locates the network fault position according to the message; the network fault locating logic comprises: when the processor of the remote communication module receives the ring network detection message of the local main control module, a response message with an identity mark is generated and sent to the processor of the main control module, and the processor of the main control module positions the position of network communication faults according to the response message.
The invention also provides a control system which is constructed into a ring network topology by a local main control module and a plurality of remote communication modules; the controller of the main control module and the remote communication module comprises:
the processor is used for realizing the control logic of the controller, analyzing the ring network logic and issuing corresponding action instructions;
the switching chip is used for controlling the Ethernet interface according to the command issued by the processor;
and the two Ethernet interfaces are used as transmission interfaces of control commands of the controller and ring network detection messages.
The processing mode of the control command message and the ring network detection message of the controller is that the processor analyzes the control command message and the ring network detection message, the exchange chip carries out unified management on the Ethernet ports, and the message analyzed and processed by the processor is sent and received by the exchange chip in a unified mode, so that a ring network topology is constructed, and the main purpose is to improve the message transmission efficiency and the system stability.
Further, each processor overlaps a corresponding exchange chip through the MII interface, and manages the communication interface through the SMI communication protocol.
Furthermore, each exchange chip is connected with the PHY through an RGMII interface, so as to control the Ethernet interface. The switching chip forwards the collected detection message to the processor through the communication interface, the processor analyzes and processes the message, the action of the switching chip is determined according to the result of judgment logic analysis of the ring network, and when a certain network communication fails, the processor analyzes the message and positions the network failure.
Further, the remote communication module controls the I/O device through the EBUS bus.
Compared with the prior art, the invention has the following advantages:
1) The processor directly participates in the receiving and transmitting of the ring network detection message, so that the stability of the system is improved.
2) The remote communication module can realize the response to the ring network detection message, and the processor can realize the accurate positioning of the network fault position according to the response message, thereby facilitating the maintenance of the network.
Drawings
Fig. 1 is a topology of a local master control module and a remote communication module control mode according to the present invention.
Fig. 2 is a network topology of the present invention in normal communication.
Fig. 3 is a schematic diagram of network path change when communication fails at a certain point in the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The invention relates to a ring network control method applied to a control system, which is applied to ring network topology formed by a local main control module and a remote communication module. The method mainly aims at increasing the processing capacity of a processor on the basis of not affecting the original functions of a local main control module and a remote communication module, realizing the transceiving and state judgment of ring network messages by a main control module without using other network expansion modules, realizing the transceiving and the message analysis of the ring network messages and corresponding action processing of the ring network messages by the local main control module, realizing self-healing ring network topology, realizing accurate positioning of network fault positions according to messages fed back by the remote communication module, reducing the system cost and increasing the system stability. According to the method, the self-healing ring network topology is formed by cascading A, B network ports of the local main control module and the remote communication module in a multistage manner, when a certain network fails, the local main control module can judge and change a network communication path to continue communication, and the network topology mode is more concise and clear while the control system keeps normal operation and network communication is ensured to be redundant.
As shown in fig. 1, the present invention includes a local main control module and a remote communication module, the two modules transmit and receive data through an ethernet port, the two modules have two ethernet interfaces, the processor 11 of the local main control module is responsible for the processing of the whole control logic, the communication of the monitoring device, the control of the field device, the control data and the ring network detection data are transmitted to the exchange chip through the MII interface, the exchange chip 12 transmits the data to the ethernet interface 14 through the RGMII interface and then actively transmits the data to the remote communication module, the exchange chip of the remote communication module receives the control data transmitted by the local main control module through the ethernet interface 14 through the MII interface, the control data is uploaded to the processor of the remote communication module through the MII interface, so as to control the I/O device to work, and the processor will generate a response message for ring network detection, the exchange chip transmits the control data and the ring network detection data received from the ethernet interface 24 to the exchange chip, and the exchange chip transmits the control data and the ring network detection data to the exchange module according to the forwarding rule, the ring network detection data are received by the local main control module, and the ring network detection module is in a failure state, if the ring network is not in the state is judged by the local network, and the failure state is detected by the local network, and the failure state is judged.
When the processor of the local main control module judges that the network state is the ring network state at the moment, the processor of the local main control module sends a port blocking control command to the exchange chip, and at the moment, the exchange chip controls the Ethernet interface 14 to keep the original function unchanged, continues to execute the transmission and reception of control data and ring network detection messages, and controls the Ethernet interface 13 to block so that the Ethernet interface can only receive the ring network detection messages, thereby avoiding the problem of network storm caused by the data from the exchange chip to reflow to the exchange chip.
When the processor of the local main control module judges that a certain network communication of the ring network fails, the processor sends a control command to the exchange chip to change the communication path of the ring network, the exchange chip opens the Ethernet interface 13 and the Ethernet interface 14 completely, so that the Ethernet interface can normally transmit and receive data, if the network cable connected from the Ethernet interface 13 to the Ethernet interface 23 fails, the local main control module can achieve the purpose of network communication through the Ethernet interfaces 14 and 24, and similarly, the normal operation of the control system can not be influenced when a network failure occurs.
As shown in fig. 2, a ring network formed by a local main control module and a remote communication module is a schematic diagram in normal communication, when the network topology is in normal communication, a local main control module starts to transmit control data messages and ring network detection messages to the front through an ethernet port, each time data passes through one remote communication module, the communication module analyzes the control command messages and then controls the I/O module, if the ring network detection messages are received, a response message is generated and transmitted to the local main control module, and the like until the data flows to another port of the local main control module, then the main control module blocks the port of the local main control module, the control data messages are all lost, only the ring network detection messages are reserved, and a finished network communication link is formed.
As shown in fig. 3, the network fault is shown in the middle of the ring network formed by the local main control module and the remote communication module, when the ring network topology is in a problem, the local main control module will not receive the ring network detection message sent by itself, at this time, the processor of the local main control module will send a control command for changing the network communication path to the switch chip, and the local main control module will start to transmit along the communication direction of the two ports, so that the control system forms two complete network communication links, and no influence is exerted on the stable operation of the control system. And when the ring network topology has problems, the response message of the remote communication module received by the processor of the local main control module is not complete any more, and the processor judges the specific position of the ring network topology with problems by analyzing the response message, so that the maintenance after the problems are facilitated.
The foregoing is merely a preferred embodiment of the invention, and it should be noted that modifications could be made by those skilled in the art without departing from the principles of the invention, which modifications would also be considered to be within the scope of the invention.

Claims (6)

1. A ring network control method applied to a control system is characterized in that the control system forms a ring network through cascade connection of a local main control module and a plurality of remote communication modules; the ring network control method realizes ring network state judgment and network port control command issuing through a processor built in a controller of the main control module, and controls I/O equipment and ring network message transmission through the remote communication module according to the issued command;
the processor of the main control module judges and processes the ring network state as follows: the processor sends out the detection message with the identity of the processor through the Ethernet interface at regular time, and carries out ring network detection message judgment on the message received by the other Ethernet interface, and meanwhile, compares the ring network detection message with the identity of the processor to judge whether the ring network detection message is the detection message sent by the processor; if yes, judging that the control system is in a ring network state at the moment, issuing a control command to the exchange chip by the processor, and controlling two Ethernet interfaces by the exchange chip, so that one Ethernet interface can normally transmit and receive data, and the other Ethernet interface is blocked to only receive ring network detection messages; if the detection message sent by the processor is not received in a period of time, the processor judges that the ring network has faults at the moment, and issues a control command to the switching chip, the switching chip opens all the two Ethernet interfaces, and data is transmitted in two directions along the two Ethernet interfaces.
2. The ring network control method applied to the control system according to claim 1, wherein the ring network control method realizes the response to the ring network detection message through a processor built in a controller of the remote communication module, and the processor of the main control module analyzes and locates the network fault position according to the message; the network fault locating logic comprises: when the processor of the remote communication module receives the ring network detection message of the local main control module, a response message with an identity mark is generated and sent to the processor of the main control module, and the processor of the main control module positions the position of network communication faults according to the response message.
3. The control system adopting the looped network control method as claimed in claim 1 or 2, wherein the control system is constructed into a loop network topology by a local main control module and a plurality of remote communication modules; the controller of the main control module and the remote communication module comprises:
the processor is used for realizing the control logic of the controller, analyzing the ring network logic and issuing corresponding action instructions;
the switching chip is used for controlling the Ethernet interface according to the command issued by the processor;
and the two Ethernet interfaces are used as transmission interfaces of control commands of the controller and ring network detection messages.
4. The control system of claim 3, wherein the processor bridges the corresponding switch chip through an MII interface.
5. The control system of claim 4, wherein the switching chip is connected to the PHY via an RGMII interface to control the ethernet interface.
6. The control system of claim 5, wherein the remote communication module implements control of the I/O devices via an EBUS bus.
CN202310907485.1A 2023-07-24 2023-07-24 Ring network control method and control system applied to control system Pending CN116795062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310907485.1A CN116795062A (en) 2023-07-24 2023-07-24 Ring network control method and control system applied to control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310907485.1A CN116795062A (en) 2023-07-24 2023-07-24 Ring network control method and control system applied to control system

Publications (1)

Publication Number Publication Date
CN116795062A true CN116795062A (en) 2023-09-22

Family

ID=88049779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310907485.1A Pending CN116795062A (en) 2023-07-24 2023-07-24 Ring network control method and control system applied to control system

Country Status (1)

Country Link
CN (1) CN116795062A (en)

Similar Documents

Publication Publication Date Title
CN103455005B (en) Controller redundancy and switching method
US9413609B2 (en) Communication device and method for transmitting messages in a redundantly operable industrial communication network
US8244838B2 (en) Industrial controller employing the network ring topology
CN102394787B (en) Based on the Dual-link redundancy control method of EPA switch
US10102163B2 (en) Bus participant device and method for operating a bus subscriber device
US11281190B2 (en) Method for setting up a redundant communication connection, and failsafe control unit
US9218230B2 (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN111817940B (en) Industrial control ring network system and implementation method thereof
CN103107940B (en) For the redundant gateway system of device level looped network
CN102843238B (en) Energy-conservation in the network node of automated network
CN102611613B (en) Self adaptation many redundancies loop-type network system and for selecting the method for bypass route
JP2008072708A (en) Fault-tolerant electronic communication network
US10044580B2 (en) Redundantly operable industrial communication system, communication device and method for redundantly operating an industrial communication system
CN107612800A (en) A kind of implementation method and control device of the Y type conversion equipments of connection PROFIBUS redundant networks and Monobus network
CN107426756A (en) Hot Spare communication system and its communications interface control module
EP2090950A1 (en) Critical device with increased availability
CN105471098A (en) Intelligent distributed feeder automation system
KR101179431B1 (en) Network Management System based on a EhterCAT And Managing Method thereof
CN110300055B (en) Gateway system for heterogeneous field bus
US8959386B2 (en) Network and expansion unit and method for operating a network
WO2011097893A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
CN102760504A (en) Digital control system for all plant units in nuclear power station and non-nuclear-grade control system and method
US11026119B2 (en) Radio communication system for an industrial automation system and method for operating the radio communication system
CN116795062A (en) Ring network control method and control system applied to control system
US11646909B2 (en) Method for data transmission in a redundantly operable communications network and coupling communication device

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