An EtherCAT bus multi-axis slave system
By using a single chip design that connects the slave controller to the microprocessor in the EtherCAT bus multi-axis slave system, the space and cost shortcomings of the multi-axis driver are solved, strong real-time performance and high synchronization are achieved, and support A large number of nodes reduces failure latency and improves cost performance.
Patent Information
- Application Number
- CN201910912627.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2039-09-25
AI Technical Summary
Existing multi-axis drives are insufficient in space and cost, and it is difficult to achieve true real-time multi-axis motion control in the EtherCAT slave system, resulting in poor synchronization.
An EtherCAT bus multi-axis slave system is used, which is connected to the microprocessor through the slave controller, and uses a single chip to realize multi-axis data interaction, including the slave controller, microprocessor and multi-axis drive circuit, supporting the EtherCAT protocol The stack uses STM32 microprocessor and LAN9252 chip, conducts data exchange through 16-bit asynchronous parallel bus, and integrates photoelectric isolator and network transformer interface to avoid electromagnetic interference and level isolation.
It achieves strong scalability and real-time topology, supports 65535 slave nodes, reduces costs, improves performance-price ratio, avoids fault delays, and ensures the accuracy of multi-axis synchronization.
Smart Images

Figure CN110531685B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to an EtherCAT bus multi-axis slave system. Background Art
[0002] Under the general trend of "Industry 4.0", intelligent manufacturing has become the main theme of the times and the main direction of the manufacturing industry. In the manufacturing industry, automation and intelligent drive technology will play an increasingly important role. This is an innovative challenge centered on improving sustainable productivity and efficiency, thereby providing inexhaustible power for the upgrading and transformation of traditional industries and the long-term development of emerging industries. Servo drives are particularly important as key components of industrial robots and CNC machine tools. Traditional servo drives and AC servo motors have a one-to-one relationship, and one servo drive can only drive one AC servo motor. Such drives cannot meet the requirements of some 3C industries with relatively high space requirements, so multi-axis drives have appeared accordingly in recent years.
[0003] The multi-axis drives on the market today are actually traditional drive solutions integrated into one, which is essentially not much different from traditional servo drives, except that they are smaller in size, but not in cost, so the cost performance is not very high. In the implementation of EtherCAT slaves, each axis is implemented with an ESC chip, so there will inevitably be delays when controlling multi-axis motion, so that real-time control cannot be achieved. Summary of the invention
[0004] To solve the above problems, the present invention provides an EtherCAT bus multi-axis slave system. The technical problem to be solved by the multi-axis slave system through the connection between the slave control device and the drive circuit is how to save space and budget and how to simultaneously process multi-axis data to improve synchronization.
[0005] The technical solution of the present invention to solve the above technical problems is as follows: an EtherCAT bus multi-axis slave system, comprising: a slave controller that controls multi-axis data, a microprocessor that processes multi-axis data and a multi-axis drive circuit, the slave controller is connected to the multi-axis drive circuit through the microprocessor, and the slave controller performs multi-axis control through an object dictionary.
[0006] The beneficial effects of the present invention are: the topology structure is easy to expand, has strong real-time performance, can support 65535 slave nodes at the same time, can easily add subnets, and has low cost;
[0007] With the function of distributed clock, it can perfectly solve the related fault delays among multiple slave nodes;
[0008] Using a slave controller and a microprocessor to complete the data interaction of the multi-axis slave control system can make the entire slave system very small in size;
[0009] Using a slave controller and a microprocessor to complete the data interaction of the multi-axis slave control system greatly reduces the cost, and improves the cost performance by several levels;
[0010] Using a slave controller and a microprocessor to complete the data exchange of the multi-axis slave control system can make the multi-axis synchronization more precise.
[0011] On the basis of the above technical solution, the present invention can also be improved as follows:
[0012] Furthermore, the microprocessor is connected to the slave station controller via a bus.
[0013] Furthermore, the bus is a 16-bit asynchronous parallel bus, a CAN field bus or a NCUC field bus.
[0014] The beneficial effect of adopting the above further solution is to avoid the phenomenon that when an error occurs in the system, multiple nodes send data to the bus at the same time, causing a short circuit and thus damaging some nodes.
[0015] Furthermore, it also includes an electrically erasable programmable read-only memory EEPROM, and the EEPROM is connected to the slave station controller.
[0016] The beneficial effect of adopting the above further solution is that the data can be modified without being taken out of the computer and the data will not be lost after power failure.
[0017] Furthermore, it also includes: a network transformer interface, and the slave station controller is connected to the master station through the network transformer interface.
[0018] The beneficial effect of adopting the above further solution is to isolate the level.
[0019] Furthermore, the network port is provided with a network transformer for isolating the electrical level.
[0020] Furthermore, it also includes a photoelectric isolator, and the microprocessor is connected to the driving circuit through the photoelectric isolator.
[0021] The beneficial effect of adopting the above further solution is to prevent electromagnetic interference.
[0022] Furthermore, the slave station controller is an ESC chip supporting the EtherCAT protocol stack.
[0023] The beneficial effect of adopting the above further solution is that the ESC chip supporting the EtherCAT protocol stack can better cooperate with the microprocessor and the object dictionary specified by the industry guidelines.
[0024] Furthermore, the microprocessor is STM32.
[0025] The beneficial effect of adopting the above further solution is that the STM32 interconnect series also provides the same standard interfaces as other STM32 microcontrollers. This peripheral commonality improves the application flexibility of the entire product family, allowing developers to reuse the same software in multiple designs with low power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is the slave station control diagram of the present invention;
[0027] Figure 2 It is a framework diagram of the multi-axis slave station system of the present invention;
[0028] Figure 3 This is a schematic diagram of data interaction of a slave station system of the present invention;
[0029] Figure 4 It is a multi-axis dictionary data allocation diagram of the present invention;
[0030] In the accompanying drawings, the components represented by the reference numerals are listed as follows:
[0031] 1. Multi-axis motor drive circuit, 2. Microprocessor, 3. Slave controller, 4. Opto-isolator, 5. Network transformer interface, 6. Read-only memory. DETAILED DESCRIPTION
[0032] The core idea of the present invention is to achieve the purpose of controlling multiple axes with a single chip by connecting the microprocessor 2 and the slave controller 3.
[0033] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] like Figure 1 , Figure 3 and Figure 4 As shown, in order to achieve the purpose of controlling multiple axes with a single chip, the multi-axis motor drive circuit 1 needs to be connected to the slave controller 3 through the microprocessor 2.
[0035] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0036] like Figure 1 As shown, an EtherCAT bus multi-axis slave system includes: a slave controller 3 for controlling multi-axis data, a microprocessor 2 for processing multi-axis data, and a multi-axis motor drive circuit 1, wherein the slave controller 3 is connected to the multi-axis motor drive circuit 1 through the microprocessor 2.
[0037] The slave controller 3 uses LAN9252 developed and produced by Microchip to complete the system link layer work, and the entire EtherCAT bus communication protocol stack is completed in the ESC slave chip. The LAN9252 chip also integrates two PHY chips, so the system saves two PHY chips in hardware design, saving costs.
[0038] The microprocessor 2 is completed by using a STM32F407 series high-performance chip with a main frequency of 168MHz. The microprocessor 2 is mainly used for the development of the EtherCAT application layer protocol stack, and the data of the 16-bit asynchronous parallel bus is exchanged with the LAN9252 through the FSMC (variable static memory controller) module integrated in the STM32. The clock synchronization of the entire EtherCAT network is realized by responding to the synchronization interrupt signal SYNC0 of the LAN9252, and the non-process data processing with the master station controller and other slave devices is completed by responding to the IRQ interrupt signal of the LAN9252. The microprocessor 2 is also used to write the control algorithm of the multi-axis motor.
[0039] The multi-axis driving circuit is used for driving an AC motor, and an IPM (intelligent power module) is generally selected as the inverter unit of the multi-axis motor driving circuit 1 .
[0040] The process of controlling multiple axes with a single chip and processing multiple axis data with a single chip is implemented by using the following existing technologies: Figure 4 As shown, slave controller 3 defines the object dictionary of multi-axis control according to the CIA402 industry standard, wherein the motion control related dictionary range of the first motion axis is 0x6000~0x67FF, the motion control related dictionary of the second motion axis is 0x800 cheaper than the dictionary of the first axis, and the motion control related dictionary range of the second motion axis is 0x6800~0x6FFF, and the subsequent motion axes are inferred from this, and a total of 8 motion axes can be expanded.
[0041] like Figure 3As shown, the LAN9252 and the STM32 use a cache mechanism for data interaction, and transmit the data to the microprocessor 2 through the link layer. After the microprocessor 2 receives the IRQ interrupt signal of the slave controller 3, it receives and sends relevant data in the form of an SM mailbox using the HBI parallel bus as a carrier, and caches the received PDO process data in the data buffer of the microprocessor 2. After the microprocessor 2 receives the synchronization interrupt signal SYNC0 of the slave controller 3, the PDO process data stored in the data buffer of the microcontroller is updated to the application for calculation and processing, and the feedback data to be transmitted to the master station is also mapped to the corresponding PDO process data. The application distributes the processed data to the slave synchronization program and the multi-axis motor control algorithm module according to different properties. After the application receives the relevant instructions of each axis from the master station, it achieves the purpose of accurately controlling multiple motors according to a series of algorithms.
[0042] The beneficial effects of the present invention are: the topology structure is easy to expand, has strong real-time performance, can support 65535 slave nodes at the same time, can easily add subnets, and has low cost;
[0043] With the function of distributed clock, it can perfectly solve the related fault delays among multiple slave nodes;
[0044] Using a slave controller 3 and a microprocessor 2 to complete the data interaction of the multi-axis slave control system can make the entire slave system very small in size;
[0045] The cost of using a slave controller 3 and a microprocessor 2 to complete the data interaction of the multi-axis slave control system is greatly reduced, which improves the cost performance by several levels;
[0046] Using a slave controller 3 and a microprocessor 2 to complete the data interaction of the multi-axis slave control system can make the multi-axis synchronization more accurate.
[0047] Preferably, Figure 2 As shown, the microprocessor 2 and the multi-axis motor drive circuit 1 also include: a photoelectric isolator 4, which is used to isolate the microprocessor 2 from the multi-axis motor drive circuit 1 to prevent the multi-axis motor drive circuit 1 from causing EMI electromagnetic interference to the microprocessor 2 and the slave controller 3.
[0048] Preferably, Figure 2As shown, the network transformer interface is a network transformer RJ45 interface, and the master station data is transmitted to the slave station controller 3 through the network transformer interface 5. The network transformer interface 5 is a network transformer interface 5 directly connected to the slave station controller 3. It serves as the only connection port between the slave station controller 3 and the master station controller and other slave station devices, and can be connected to any master station controller and slave station device that supports the EtherCAT bus through a 100M full-duplex network cable.
[0049] Preferably, Figure 2 As shown, it also includes: the slave station controller 3 is connected to the read-only memory 6, the read-only memory is an electrically erasable programmable read-only memory with IIC protocol function, and exchanges data with the LAN9252 through the IIC bus, and is used to store the basic configuration information of the LAN9252, that is, configuration information, dictionary information, etc.
[0050] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0051] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0052] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0053] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0054] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. An EtherCAT bus multi-axis slave system, characterized in that: include: A slave controller for controlling multi-axis data, a microprocessor for processing multi-axis data and a multi-axis drive circuit, wherein the slave controller is connected to the multi-axis drive circuit via the microprocessor, and the slave controller performs multi-axis control via an object dictionary; Use LAN9252 to complete the system link layer work; The LAN9252 has two PHY chips integrated inside; The microprocessor is completed by using an STM32F407 series chip with a main frequency of 168MHz. The microprocessor is used for the development of the EtherCAT application layer protocol stack, and performs data interaction of a 16-bit asynchronous parallel bus with the LAN9252 through the FSMC module integrated inside the STM32; responds to the synchronization interrupt signal SYNC0 of the LAN9252 to achieve clock synchronization of the entire EtherCAT network, and responds to the IRQ interrupt signal of the LAN9252 to complete the processing of non-process data with the master station controller and the slave station device; The multi-axis drive circuit is used to drive an AC motor, and an IPM is selected as an inverter unit of the multi-axis motor drive circuit; the IPM is an intelligent power module; The process of controlling multiple axes with a single chip and processing multiple axis data with a single chip is as follows: the slave controller defines the object dictionary of multi-axis control according to the CIA402 industry standard, where the motion control related dictionary range of the first motion axis is 0x6000~0x67FF, and the motion control related dictionary of the second motion axis is 0x800 cheaper than the dictionary of the first axis, that is, the motion control related dictionary range of the second motion axis is 0x6800~0x6FFF; The LAN9252 and the STM32 use a cache mechanism for data interaction, and transmit data to the microprocessor through the link layer. After the microprocessor receives the IRQ interrupt signal of the slave controller, it receives and sends relevant data in the form of an SM mailbox using the HBI parallel bus as a carrier, and caches the received PDO process data in the data buffer of the microprocessor. After the microprocessor receives the synchronization interrupt signal SYNC0 of the slave controller, the PDO process data stored in the data buffer of the microcontroller is updated to the application for calculation and processing, and the feedback data to be transmitted to the master station is also mapped to the corresponding PDO process data.
2. The system according to claim 1, characterized in that The microprocessor is connected to the slave station controller via a bus.
3. The system according to claim 2, characterized in that The bus is a 16-bit asynchronous parallel bus, a CAN field bus or a NCUC field bus.
4. The system according to claim 1, characterized in that It also includes an electrically erasable programmable read-only memory (EEPROM), which is connected to the slave controller.
5. The system according to claim 1, characterized in that Also includes: With a network transformer interface, the slave station controller is connected to the master station via the network transformer interface.
6. The system according to claim 5, characterized in that The network transformer interface has a network transformer for isolating levels.
7. The system according to claim 1, characterized in that It also includes a photoelectric isolator, and the microprocessor is connected to the driving circuit via the photoelectric isolator.
8. The system according to claim 1, characterized in that The slave station controller is an ESC chip supporting the EtherCAT protocol stack.
Citation Information
Patent Citations
Real-time Ethernet EtherCAT slave station system
CN105407026A
EtherCAT-based multi-axis synchronization control device and method
CN107229240A
EtherCAT and Modbus protocol conversion gateway based on SPARC architecture microprocessor
CN107948059A
Multi-axis system modeling and control method based on axis invariants
CN109079784A
Servo drive control system based on EtherCAT bus
CN109308030A
