EtherCAT slave station communication system
Through the EtherCAT modular design, the problems of high maintenance cost, difficulty in repair and poor flexibility of the EtherCAT slave communication system are solved, efficient communication and flexible use are achieved, and the real-time performance and reliability of the system are improved.
Patent Information
- Application Number
- CN202322750599.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2033-10-13
AI Technical Summary
The existing EtherCAT slave communication system has high maintenance costs, difficult repairs, and poor flexibility, and cannot meet the speed, accuracy, and flexibility requirements of industrial automation control systems.
It adopts EtherCAT modular design, including microprocessor MCU, slave controller ESC, network transformer, RJ45 network port connector and EEPROM. Through modular design, it achieves good openness, large data throughput, superior synchronization performance and simple wiring. Flexible to use, only the communication module needs to be replaced in case of failure to reduce maintenance difficulty and cost.
It achieves efficient communication between the EtherCAT master station and slave stations, improves the real-time performance of the system, supports remote maintenance, monitoring, diagnosis and management, reduces maintenance costs and development time costs, and enhances system reliability.
Smart Images

Figure CN221784188U
Abstract
Description
Technical Field
[0001] The utility model relates to the field of industrial automation communication, in particular to an EtherCAT slave station communication system. Background Art
[0002] In the field of industrial automation communication, traditional fieldbuses are widely used. However, the defects of traditional fieldbuses are becoming increasingly obvious, such as CAN, DeviceNet, RS485, etc., which have shortcomings such as slow transmission speed and small data packets transmitted each time. Industrial applications have higher and higher requirements for speed, accuracy, and the development from centralized control to distributed control. Obviously, these fieldbuses can no longer meet actual needs.
[0003] With the rapid development of Internet technology, Ethernet has become the dominant technology in the field of communication. Real-time industrial Ethernet technologies such as EtherNetIP, Profinet, Modbus / TCP, Powerlink, EtherCAT, and CC-LINK IE have developed rapidly in the field of automation. Among them, EtherCAT developed by Beckhoff of Germany is an open real-time Ethernet communication protocol. Its real-time performance and topological flexibility have attracted wide attention. It has broken through the limitations of other Ethernet solutions in communication. It is not necessary to receive Ethernet data packets at each connection point, then decode and copy them as process data. Instead, it only needs to be set on the slave hardware to identify the transmitted data frames and perform corresponding operations on them.
[0004] Most of the EtherCAT communication solutions on the market currently use the method of integrating EtherCAT slave controllers inside MCUs, such as various SOC solutions from TI, Infineon, NXP, etc. Although integration reduces the number of overall components, it is not flexible enough in use. Once a terminal fails on site, it is very difficult to troubleshoot the problem. This is because in industrial automation control systems, there are many types of equipment, and different equipment is connected to the control motherboard in different ways. The wiring is complicated, and when a failure occurs, the control motherboard generally needs to be replaced, making the overall maintenance cost high.
[0005] Therefore, there is a need for an EtherCAT slave communication system that can solve the problems of high overall maintenance cost, great maintenance difficulty and poor flexibility of EtherCAT communication in the prior art. Utility Model Content
[0006] The utility model aims to provide an EtherCAT slave communication system. By adopting EtherCAT modular design, each functional module is connected to a main board. The system has the characteristics of good openness, large data throughput, and excellent synchronization performance. The system has simple wiring and is flexible to use. When a fault occurs, only the EtherCAT communication module needs to be replaced, which greatly reduces the difficulty and cost of system maintenance.
[0007] In order to solve the above technical problems, the embodiment of the utility model discloses an EtherCAT slave communication system, comprising:
[0008] Microprocessor MCU, slave controller ESC, network transformer, RJ45 network port connector and EEPROM;
[0009] The microprocessor MCU is used to control the slave station controller ESC;
[0010] The slave station controller ESC is used to receive, process and send EtherCAT communication data;
[0011] The slave station controller ESC is connected to the RJ45 network port connector through the network transformer;
[0012] The slave station controller ESC is connected to the master station and other slave stations through the RJ45 network port connector;
[0013] The EEPROM is used to store the configuration and description data of the slave station.
[0014] In another preferred embodiment, it also includes:
[0015] The power supply module is used to provide 3.3V voltage for the microprocessor MCU and the slave station controller ESC.
[0016] In another preferred embodiment, it also includes:
[0017] A 25MHz crystal oscillator is used to provide a working clock for the slave controller ESC.
[0018] In another preferred embodiment, it also includes:
[0019] The clock module is used to provide a working clock for the microprocessor MCU.
[0020] In another preferred embodiment, it also includes:
[0021] The reset module is used to provide a reset circuit for the microprocessor MCU.
[0022] In another preferred embodiment, the microprocessor MCU integrates network peripherals to complete application layer logic operations, signal processing and output control.
[0023] In another preferred example, the microprocessor MCU integrates an SPI interface for expanding the interface.
[0024] In another preferred embodiment, the slave station controller ESC internally integrates two Ethernet physical layer interfaces PHY, and the PHY and the network transformer together constitute a network interface, which connects the master station and other slave stations through the RJ45 network port connector.
[0025] In another preferred example, the slave station controller ESC and the EEPROM communicate with each other via an I2C bus.
[0026] In another preferred example, the microprocessor MCU adopts a GD32F407VET6 chip, the slave controller ESC adopts a LAN9252-I / PT chip, and the EEPROM adopts a 24FC512 chip.
[0027] Compared with the prior art, the main differences and effects of the implementation of the utility model are:
[0028] The EtherCAT slave communication system of the utility model adopts EtherCAT modular design, and each functional module is connected to the main board. It has the characteristics of good openness, large data throughput, and excellent synchronization performance. The wiring is simple and the use is flexible. When a fault occurs, only the EtherCAT communication module needs to be replaced, which greatly reduces the difficulty and cost of system maintenance.
[0029] Furthermore, the EtherCAT slave communication system of the present invention not only helps to improve the real-time performance of the entire system, but also facilitates remote maintenance, monitoring, diagnosis and management, thereby greatly enhancing the reliability of the system.
[0030] Furthermore, the EtherCAT slave communication system of the utility model adopts a modular design, thereby realizing efficient communication between the EtherCAT master station and the slave stations and being flexible in use.
[0031] Furthermore, the EtherCAT slave communication system of the present invention adopts a modular design and provides an SPI interface to expand other applications, such as motors, sensors, extended IO control, and analog digital quantity control.
[0032] Furthermore, the EtherCAT slave communication system of the present invention adopts a modular design of the EtherCAT slave. Engineers only need to develop one EtherCAT communication module, which can be applied to other projects requiring EtherCAT communication through SPI port expansion, greatly reducing development time costs.
[0033] A large number of technical features are recorded in the specification of this application, which are distributed in various technical solutions. If all possible combinations of technical features of this application (i.e., technical solutions) are to be listed, the specification will be too long. In order to avoid this problem, the various technical features disclosed in the above-mentioned utility model content of this application, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions are all deemed to have been recorded in this specification), unless the combination of such technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed, and features C and D are equivalent technical means that play the same role. Technically, only one can be used, and it is impossible to use them at the same time. Feature E can be combined with feature C technically. Then, the solution of A+B+C+D should not be deemed to have been recorded because it is technically infeasible, and the solution of A+B+C+E should be deemed to have been recorded. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a structural schematic diagram of an EtherCAT slave communication system in an embodiment of the utility model;
[0035] Figure 2 It is a structural block diagram of an EtherCAT slave communication system in an embodiment of the utility model;
[0036] Figure 3 It is a schematic diagram of an EtherCAT communication process of an EtherCAT slave communication system in an embodiment of the utility model;
[0037] Figure 4 It is an interface circuit diagram of an EEPROM of an EtherCAT slave communication system in an implementation manner of the utility model. DETAILED DESCRIPTION
[0038] In the following description, many technical details are provided to help readers better understand the present application. However, those skilled in the art can understand that even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the claims of the present application can be implemented.
[0039] In order to make the purpose, technical solution and advantages of the present invention more clear, the implementation mode of the present invention will be further described in detail below with reference to the accompanying drawings.
[0040] The first embodiment of the utility model relates to an EtherCAT slave station communication system, which is used for data exchange with a master station via an EtherCAT bus.
[0041] Figure 1 This is the structural diagram of the EtherCAT slave communication system. Figure 2 This is the structural block diagram of the EtherCAT slave communication system.
[0042] Specifically, if Figure 1 and Figure 2 As shown, the EtherCAT slave communication system includes:
[0043] Microprocessor MCU, slave controller ESC, network transformer, RJ45 network port connector and EEPROM;
[0044] The microprocessor MCU is used to control the slave station controller ESC;
[0045] The slave station controller ESC is used to receive, process and send EtherCAT communication data;
[0046] The slave station controller ESC is connected to the RJ45 network port connector through the network transformer;
[0047] The slave station controller ESC is connected to the master station and other slave stations through the RJ45 network port connector;
[0048] The EEPROM is used to store the configuration and description data of the slave station.
[0049] It should be noted that, in this application, EEPROM and E2PROM have the same meaning.
[0050] The EtherCAT bus builds a communication bridge between the master station (EtherCAT Master) and the slave station (EtherCAT SLAVE), realizing fast real-time communication between the master station and the slave station. The master station sends Ethernet frames to each slave station, and the slave station responds accordingly according to the instructions sent by the master station.
[0051] It should be noted that the EtherCAT bus is based on an open industrial real-time Ethernet network protocol.
[0052] Figure 3 This is a schematic diagram of the EtherCAT communication process.
[0053] like Figure 3 As shown, the communication process of EtherCAT is as follows:
[0054] EtherCAT communication generally adopts a master-slave structure with one master and multiple slaves. The master station uses a PC, and the host computer software uses Beckhoff's TwinCAT software to implement the functions of the master station. The slave stations are generally designed by the user according to the actual application.
[0055] Working principle of EtherCAT: EtherCAT makes full use of the full-duplex characteristics of Ethernet, uses master-slave mode media access control, the master sends Ethernet frames to each slave, the slave extracts data from the data frame or inserts data into the data frame, the master uses a standard Ethernet interface card, the slave uses a dedicated EtherCAT slave controller ESC (EtherCAT Slave Controller), the slave can directly process the received message, and extract or insert relevant user data from the message, and then transmit the message to the next EtherCAT slave. The last EtherCAT slave sends back a fully processed message, and the first slave sends the corresponding message to the master.
[0056] The EtherCAT slave communication system of the utility model not only helps to improve the real-time performance of the entire system, but also facilitates remote maintenance, monitoring, diagnosis and management, greatly enhancing the reliability of the system. Through modular design, efficient communication between the EtherCAT master and slave is achieved, and it is flexible to use.
[0057] In this embodiment, preferably, the EtherCAT slave communication system further includes:
[0058] The power supply module is used to provide a stable voltage of 3.3V for the microprocessor MCU and the slave station controller ESC.
[0059] A 25MHz crystal oscillator is used to provide a working clock for the slave controller ESC.
[0060] The clock module is used to provide a working clock for the microprocessor MCU.
[0061] The reset module is used to provide a reset circuit for the microprocessor MCU.
[0062] Further, preferably, in this embodiment,
[0063] The microprocessor MCU has an integrated network peripheral device for completing application layer logic operations, signal processing and output control.
[0064] The microprocessor MCU integrates an SPI interface for expanding the interface.
[0065] In other words, the EtherCAT slave communication system is equipped with an SPI expansion interface, which can be used to expand various applications, such as I / O control, servo drive, sensor, analog / digital input / output, etc.
[0066] In addition, if Figure 1As shown, the microprocessor MCU also integrates FSMC (Flexible Static Memory Controller) inside. In addition, the microprocessor MCU can exchange data with the slave controller ESC through an interrupt request (IRQ).
[0067] The EtherCAT slave communication system of the utility model adopts a modular design and provides an SPI interface to expand other applications, such as motors, sensors, extended IO control, and analog digital quantity control.
[0068] The slave station controller ESC integrates two Ethernet physical layer interfaces PHY, and the PHY and the network transformer together form a network interface, which is connected to the master station and other slave stations through the RJ45 network port connector.
[0069] In this implementation, preferably, corresponding to two Ethernet physical layer interfaces PHY, the number of the network transformer and the number of the RJ45 network port connector are both two.
[0070] The slave controller ESC and the microprocessor MCU's FSMC communicate via parallel port.
[0071] The EtherCAT slave communication system of the utility model adopts the modular design of the EtherCAT slave. Engineers only need to develop one EtherCAT communication module, which can be applied to other projects requiring EtherCAT communication through SPI port expansion, thus greatly reducing the development time cost.
[0072] The slave controller ESC and EEPROM communicate via the I2C bus.
[0073] The EEPROM is mainly used to store the configuration and description information of the slave station. After power-on, the master station will read the information of the EEPROM.
[0074] Furthermore, preferably, in this embodiment,
[0075] The microprocessor MCU adopts a GD32F407VET6 chip, the slave controller ESC adopts a LAN9252-I / PT chip, and the EEPROM adopts a 24FC512 chip.
[0076] In summary, the EtherCAT slave communication system of the utility model adopts EtherCAT modular design, and each functional module is connected to the main board. It has the characteristics of good openness, large data throughput, and excellent synchronization performance. It is simple to connect and flexible to use. When a fault occurs, only the EtherCAT communication module needs to be replaced, which greatly reduces the difficulty and cost of system maintenance.
[0077] In order to better understand the technical solution of this specification, a preferred embodiment is described below. The details listed in the preferred embodiment are mainly for ease of understanding and are not intended to limit the scope of protection of this application.
[0078] The utility model proposes an EtherCAT slave communication system, which aims at the deficiencies of the existing EtherCAT communication solutions on the market and solves the problems of great maintenance difficulty, high cost and poor flexibility in the actual application of EtherCAT communication.
[0079] The EtherCAT slave communication system of the utility model performs data exchange through industrial Ethernet EtherCAT and can be applied in the field of industrial automation communication. The utility model adopts an EtherCAT slave communication system based on GD32 MCU and EtherCAT slave controller ESC, including: power module, microprocessor MCU, slave controller ESC, network transformer, RJ45 network port connector and EEPROM, etc.
[0080] The main task of the slave system is to process communication network data and other control system tasks. Its hardware is mainly composed of the slave controller ESC and the slave microprocessor MCU. The function of the slave controller ESC is to complete the processing of communication data, while the slave microprocessor is responsible for the management of control tasks and communication processes. In addition to these two main parts, it also includes physical layer devices and network port devices, etc. These components work together to complete the communication tasks of the entire system. In the communication process of the EtherCAT system, the slave controller ESC is responsible for processing network communication data, and the processing of network data is completed by the hardware inside the slave controller ESC.
[0081] The microprocessor MCU adopts the GD32F407VET6 chip.
[0082] The EtherCAT slave controller ESC adopts the LAN9252-I / PT chip.
[0083] The E2PROM adopts the 24FC512 chip. Figure 4 This is an interface circuit diagram of an EEPROM.
[0084] The EtherCAT protocol stack must be transplanted into the microprocessor MCU. The slave controller ESC integrates almost all the functions of the EtherCAT data link layer. At the same time, it also integrates two Ethernet physical layer interfaces PHY. The master station and other slave stations are connected through the RJ45 network port connector. The PHY of the slave controller ESC and the network transformer together constitute the network interface. Isolation and impedance matching are the main functions of the network transformer. The microprocessor MCU can be expanded into an SPI interface (Serial Peripheral Interface) to complete application layer logic operations, various signal processing and output control. The communication between the EEPROM and the slave controller ESC is I2C, which is used to save the configuration and description data related information of the slave station. The power module is mainly used to provide a stable voltage of 3.3V to the microprocessor MCU and the slave controller ESC. The 25MHz crystal oscillator is used to provide a stable clock to the slave controller ESC. The reset module is used to provide a stable reset circuit to the microprocessor MCU. The clock module is used to provide a stable clock to the microprocessor MCU to ensure that the microprocessor MCU can work normally.
[0085] When the master scans the slave device, the control command of the master is transmitted to the slave device through the EtherCAT network. The master will first obtain the description information in the EEPROM to complete the initial configuration of the slave. The slave controller ESC receives the data packet, parses the data through the internal physical layer and data link layer, obtains or inserts the message information from the data frame, and the parsed data communicates with the FSMC of the microprocessor MCU through the HBI interface (host bus interface, Hot Bus Interface) of the slave controller ESC. The microprocessor MCU then reads the data written to the EEPROM buffer and outputs the data to the SPI interface after processing. The SPI interface can expand various industrial equipment, such as controlling I / O control, controlling servo motors, sensors, analog / digital input and output, etc. The most common application is industrial servo drive application.
[0086] The EtherCAT slave communication system of the utility model takes the slave controller ESC as the core, and the slave controller ESC completes the reception and transmission of EtherCAT data. The slave microprocessor MCU controls the slave controller ESC and implements the application layer protocol. The microprocessor MCU mainly performs the following tasks:
[0087] 1. Initialize the microprocessor MCU, the slave controller ESC and the communication variables;
[0088] 2. State machine processing, complete communication initialization, query the master station's state controller, read relevant configurations and industrial Ethernet EtherCAT slave station registers, and start or terminate slave station-related communication services;
[0089] 3. The program main loop performs periodic data processing to realize process data communication, and processes periodic data and application layer services in order to query the operation status or in synchronous mode.
[0090] The EtherCAT slave communication system of the utility model mainly adopts modular design, realizes efficient communication between EtherCAT master and slave, and is also very flexible to use, providing SPI interface to expand other applications, such as motor, sensor, extended IO control, and analog digital control. If a fault occurs on site, only the EtherCAT communication module needs to be replaced, which greatly reduces the difficulty and cost of system maintenance.
[0091] In addition, the utility model adopts a modular design of the EtherCAT slave communication system. Engineers only need to develop an EtherCAT communication device, which can be applied to other projects that require EtherCAT communication through SPI port expansion. There is no need to redevelop the EtherCAT communication function for each project. If the MCU platform of the application layer needs to be replaced, there is no need to consider the workload of transplantation, which greatly reduces the development time cost.
[0092] It should be noted that the various components or modules mentioned in the embodiments of the present invention are all logical modules. Physically, a logical module can be a physical module, or a part of a physical module, or can be implemented as a combination of multiple physical modules. The physical implementation of these logical modules themselves is not the most important. The combination of functions implemented by these logical modules is the key to solving the technical problems raised by the present invention. In addition, in order to highlight the innovative part of the present invention, the above-mentioned embodiments of the present invention do not introduce modules that are not closely related to solving the technical problems raised by the present invention, which does not mean that there are no other modules in the above-mentioned device implementation.
[0093] It should be noted that in the application documents of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0094] Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes may be made in form and details without departing from the spirit and scope of the present invention.
Claims
1. An EtherCAT slave communication system, used for data exchange with a master station via an EtherCAT bus, characterized in that: include: Microprocessor MCU, slave controller ESC, network transformer, RJ45 network port connector and EEPROM; The microprocessor MCU is used to control the slave station controller ESC; The slave station controller ESC is used to receive, process and send EtherCAT communication data; The slave station controller ESC is connected to the RJ45 network port connector through the network transformer; The slave station controller ESC is connected to the master station and other slave stations through the RJ45 network port connector; The EEPROM is used to store the configuration and description data of the slave station; The microprocessor MCU integrates an SPI interface for expanding the interface.
2. The EtherCAT slave communication system according to claim 1, characterized in that: Also includes: The power supply module is used to provide 3.3V voltage for the microprocessor MCU and the slave station controller ESC.
3. The EtherCAT slave communication system according to claim 1, characterized in that: Also includes: A 25MHz crystal oscillator is used to provide a working clock for the slave controller ESC.
4. The EtherCAT slave communication system according to claim 1, characterized in that: Also includes: The clock module is used to provide a working clock for the microprocessor MCU.
5. The EtherCAT slave communication system according to claim 1, characterized in that: Also includes: The reset module is used to provide a reset circuit for the microprocessor MCU.
6. The EtherCAT slave communication system according to claim 1, characterized in that: The microprocessor MCU has an internal integrated network peripheral for completing application layer logic operations, signal processing and output control.
7. The EtherCAT slave communication system according to claim 1, characterized in that: The slave station controller ESC integrates two Ethernet physical layer interfaces PHY, and the PHY and the network transformer together form a network interface, which is connected to the master station and other slave stations through the RJ45 network port connector.
8. The EtherCAT slave communication system according to claim 1, characterized in that: The slave station controller ESC and the EEPROM communicate with each other via an I2C bus.
9. The EtherCAT slave communication system according to any one of claims 1 to 8, characterized in that: The microprocessor MCU adopts a GD32F407VET6 chip, the slave controller ESC adopts a LAN9252-I / PT chip, and the EEPROM adopts a 24FC512 chip.
