EtherCAT slave controller and method based on DSP processor
Through the EtherCAT slave controller based on the DSP processor, data interaction and synchronous signal transmission are used to use the interface between the DSP processor and the EtherCAT slave controller to perform data interaction and synchronous signal transmission, the high price and design problems of the EtherCAT slave controller in the prior art are solved, and the design problems of EtherCAT slave controller are realized. Low cost, high versatility and efficient signal transmission effect.
Patent Information
- Application Number
- CN202011436712.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2040-12-11
AI Technical Summary
The high price of EtherCAT slave controllers on the market and the implementation methods are varied, making it difficult to implement a general-purpose driver controller design, especially when using a dedicated model slave controller, it is extremely costly and difficult to achieve a low-cost and versatile design. .
Using the EtherCAT slave controller based on the DSP processor, the first interface and interrupt interface between the DSP processor and the EtherCAT slave controller are connected to realize data interaction and synchronous signal transmission, and using the DSP28335 processor and the LAN9252 slave. The characteristics of the controller improve signal transmission efficiency.
It realizes a slave controller with low cost, strong versatility and high configurability, improves signal transmission efficiency, reduces implementation costs, and adapts to a variety of EtherCAT communication interfaces.
Smart Images

Figure CN112667532B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of drive controllers, and more specifically, to an EtherCAT slave controller based on a DSP processor and a communication method. Background Art
[0002] In the interface of modern servo drive controller, most of the controller's external interface includes EtherCAT interface. But the problem is that the price on the market is relatively high, and there are many ways to implement it. One is to use the architecture of controller + EtherCAT slave controller, and the other is to use a dedicated slave controller to implement it. The cost of the first method mentioned above is relatively low, mainly depending on the cost price of the controller and EtherCAT slave controller used, but because the models of slave controllers used by manufacturers are different, it brings great difficulties to the design of universal drive controllers. The second method is extremely expensive and difficult to implement. Therefore, no matter which method is used, it brings great difficulties to the design of universal drive controllers.
[0003] Therefore, a new EtherCAT slave controller and communication method based on DSP processor is needed. Summary of the invention
[0004] In order to achieve the above object, the present invention adopts the following technical solutions:
[0005] A first aspect of the present invention provides an EtherCAT slave controller based on a DSP processor, wherein the DSP processor comprises: a first interface connected to the slave controller; and
[0006] at least three interrupt interfaces connected to the EtherCAT slave controller; the EtherCAT slave controller comprises: a second interface connected to the first interface;
[0007] The DSP processor is configured to receive a request signal from an external device acquired by the EtherCAT slave controller through the interrupt interface, and to perform data exchange with the EtherCAT slave controller through the first interface according to the request signal.
[0008] Furthermore, the DSP processor is also configured as:
[0009] The EtherCAT slave controller is configured through the first interface to perform initialization settings.
[0010] Furthermore, the DSP processor is further configured to obtain the to-be-read data corresponding to the request signal from the EtherCAT slave controller according to the request signal, and output the to-be-read data to the EtherCAT slave controller.
[0011] Further, the EtherCAT slave controller is also configured to obtain a synchronization signal from an external device and output it to the DSP processor through the interrupt interface;
[0012] The DSP processor is further configured to latch the data to be read according to the synchronization signal, and output the latched data to be read in response to a next request signal obtained by the EtherCAT slave controller.
[0013] Furthermore, the DSP processor is a DSP28335 processor.
[0014] Furthermore, the first interface is a XINTF interface.
[0015] Furthermore, the EtherCAT slave controller is a LAN9252 slave controller.
[0016] Furthermore, the EtherCAT slave controller also includes: a power supply interface connected to a power supply, an i2c interface connected to a memory, and an external network port interface connected to an external device.
[0017] A second aspect of the present invention provides a method for communicating using the slave station controller, comprising:
[0018] receiving a request signal from an external device to output a synchronization signal;
[0019] Data is exchanged with the EtherCAT slave controller according to the synchronization signal.
[0020] Furthermore, before receiving the request signal of the external device through the interrupt interface, the method also includes: configuring the EtherCAT slave controller through the first interface to perform initialization settings.
[0021] The beneficial effects of the present invention are as follows:
[0022] In view of the existing problems, the present invention proposes an EtherCAT slave controller based on a DSP processor. In this embodiment, the first interface of the DSP processor is used to connect with the EtherCAT slave controller, which can efficiently transmit data between the DSP processor and the EtherCAT slave controller. The EtherCAT slave controller transmits synchronous signals with the DSP processor through multiple interrupt interfaces, effectively improving the signal transmission efficiency and realizing a low-cost, highly versatile and highly configurable slave controller. The EtherCAT slave controller based on the DSP processor of this embodiment has the characteristics of high versatility and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 A schematic diagram of the framework of an EtherCAT slave controller based on a DSP processor provided in an embodiment of the present invention is shown;
[0025] Figure 2 A schematic diagram showing a framework of an interrupt interface of a LAN9252 slave controller according to an embodiment of the present invention;
[0026] Figure 3 A schematic diagram showing a framework of the XINTF interface of the DSP28335 processor according to an embodiment of the present invention;
[0027] Figure 4 A schematic diagram showing a framework of an external network port interface of the DSP28335 processor according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to more clearly illustrate the present invention, the present invention is further described below in conjunction with preferred embodiments and accompanying drawings. Similar components in the accompanying drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present invention.
[0029] like Figure 1 As shown, one embodiment of the present invention discloses an EtherCAT slave controller based on a DSP processor, the DSP processor comprising: a first interface connected to the slave controller; and
[0030] At least three interrupt interfaces connected to the EtherCAT slave controllers;
[0031] The EtherCAT slave controller comprises: a second interface connected to the first interface;
[0032] The DSP processor is configured to receive a request signal from an external device acquired by the EtherCAT slave controller through the interrupt interface, and to perform data exchange with the EtherCAT slave controller through the first interface according to the request signal.
[0033] In this embodiment, the first interface of the DSP processor is used to connect to the EtherCAT slave controller, so that data transmission between the DSP processor and the EtherCAT slave controller can be efficiently performed. The EtherCAT slave controller transmits synchronization signals with the DSP processor through multiple interrupt interfaces, effectively improving the signal transmission efficiency and realizing a low-cost, highly versatile and highly configurable slave controller.
[0034] In some optional implementations of this embodiment, the DSP processor is further configured to obtain the to-be-read data corresponding to the request signal of the EtherCAT slave controller according to the request signal, and output the to-be-read data to the EtherCAT slave controller.
[0035] In this embodiment, the EtherCAT slave controller obtains the to-be-read data corresponding to the request signal, and its data transmission speed is fast and efficient.
[0036] In some optional implementations of this embodiment, the EtherCAT slave controller is further configured to obtain a synchronization signal from an external device and output it to the DSP processor through the interrupt interface;
[0037] The DSP processor is further configured to latch the data to be read according to the synchronization signal, and output the latched data to be read in response to a next request signal obtained by the EtherCAT slave controller.
[0038] In this embodiment, the synchronization signal is quickly output from the EtherCAT slave controller to the DSP processor through three interrupt interfaces, which has low cost and high configurability.
[0039] In a specific example, Figure 2 The schematic diagram of the framework of the interrupt interface of the LAN9252 slave controller is shown. Through the interrupt interface, pins 18 and 34 obtain the SYNC0 synchronization signal from the DSP28335 processor to transmit the data to be read.
[0040] In a specific example, Figure 4It is a schematic diagram of the framework of the interrupt interface of the DSP28335 processor, through which the synchronization signal and the request signal are transmitted.
[0041] In some optional implementations of this embodiment, the DSP processor is a DSP28335 processor.
[0042] In some optional implementations of this embodiment, the first interface is an XINTF interface. In a specific example, the XINTF interface of the DSP28335 processor is as follows: Figure 3 shown.
[0043] In some optional implementations of this embodiment, the EtherCAT slave controller is a LAN9252 slave controller.
[0044] In this embodiment, the DSP288335 processor is a general control processor on the market, which has the advantages of low cost and rich peripheral resources, and the LAN9252 slave controller can adapt to the EtherCAT communication interface on the market. Therefore, this embodiment connects the LAN9252 slave controller through the XINTF interface (custom peripheral parallel interface) of the DSP28335 processor, realizing efficient data transmission while also having extremely high configurability and versatility.
[0045] In some optional implementations of this embodiment, the EtherCAT slave controller further includes: a power supply interface connected to a power supply, an i2c interface connected to a memory, and an external network port interface connected to an external device.
[0046] In a specific example, if Figure 1 As shown, the power interface is connected to the power supply of the EtherCAT slave controller, and the i2c interface is connected to the interface of the EEPROM memory. The EEPROM memory is used to store the configuration information of the EtherCAT slave controller, such as device ID, interrupt time, and device number.
[0047] The process of communicating using the slave controller of this embodiment is as follows:
[0048] S10, the DSP processor configures the LAN9252 slave controller through the XINTF interface to perform initialization settings. Initialization includes configuring the device ID, device identification, communication cycle, mailbox identification, mailbox number, etc. of the EtherCAT slave controller. In a specific example, the configuration information of the initialization settings is stored in an EEPROM memory connected to the i2c interface of the LAN9252 slave controller.
[0049] S20, after the initialization configuration is completed, wait for the IRQ request signal, the LAN9252 slave controller obtains the IRQ request signal of the external device through the external network port interface, and outputs the IRQ request signal to the DSP processor through the interrupt interface;
[0050] S30, the DSP28335 processor reads the data to be read in the LAN9252 slave controller corresponding to the IRQ request signal through the XINTF interface according to the request signal, and outputs the data to be read to the LAN9252 slave controller.
[0051] S40, LAN9252 slave controller obtains SYNC0 synchronization signal of external device through external network port interface, and outputs SYNC0 synchronization signal to DSP28335 processor through interrupt interface;
[0052] S50, the DSP28335 processor latches the data to be read according to the SYNC0 synchronization signal, and outputs the latched data to be read according to the next IRQ request signal obtained by the LAN9252 slave station controller, thereby realizing the entire communication process.
[0053] This embodiment uses the first interface of the DSP processor to connect with the EtherCAT slave controller, which can efficiently transmit data between the DSP processor and the EtherCAT slave controller. The DSP processor transmits signals with external devices through multiple interrupt interfaces, effectively improving the signal transmission efficiency and realizing a low-cost, highly versatile and highly configurable slave controller. The EtherCAT slave controller based on the DSP processor of this embodiment has the characteristics of high versatility and low cost.
[0054] Corresponding to the EtherCAT slave controller based on the DSP processor provided in this embodiment, the second embodiment of the present invention further provides a method for communicating using the EtherCAT slave controller based on the DSP processor, the method comprising:
[0055] Configuring the EtherCAT slave controller via the first interface to perform initialization settings;
[0056] A request signal from an external device is received through the interrupt interface, and data is exchanged with the EtherCAT slave controller through the first interface according to the request signal.
[0057] In the communication process, the first interface of the DSP processor is used to connect with the EtherCAT slave controller, so that data transmission between the DSP processor and the EtherCAT slave controller can be carried out efficiently. The EtherCAT slave controller transmits synchronization signals with the DSP processor through multiple interrupt interfaces, effectively improving the signal transmission efficiency and realizing a low-cost, highly versatile and highly configurable slave controller. The EtherCAT slave controller based on the DSP processor of this embodiment has the characteristics of high versatility and low cost.
[0058] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the implementation methods of the present invention. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention.
Claims
1. An EtherCAT slave controller based on a DSP processor, characterized in that: The DSP processor comprises: a first interface connected to the slave station controller; and at least three interrupt interfaces connected to the EtherCAT slave controller; the EtherCAT slave controller comprises: a second interface connected to the first interface; The DSP processor is configured to receive a request signal from an external device acquired by the EtherCAT slave controller through the interrupt interface, and perform data exchange with the EtherCAT slave controller through the first interface according to the request signal; The DSP processor is further configured to obtain the to-be-read data corresponding to the request signal of the EtherCAT slave controller according to the request signal, and output the to-be-read data to the EtherCAT slave controller; The EtherCAT slave controller is also configured to obtain a synchronization signal from an external device and output it to the DSP processor through the interrupt interface; The DSP processor is further configured to latch the data to be read according to the synchronization signal, and output the latched data to be read in response to a next request signal obtained by the EtherCAT slave controller.
2. The slave station controller according to claim 1, characterized in that: The DSP processor is also configured as: The EtherCAT slave controller is configured through the first interface to perform initialization settings.
3. The slave station controller according to claim 1, characterized in that: The DSP processor is a DSP28335 processor.
4. The slave station controller according to claim 1, characterized in that: The first interface is a XINTF interface.
5. The slave station controller according to claim 1, characterized in that: The EtherCAT slave controller is a LAN9252 slave controller.
6. The slave station controller according to claim 1, characterized in that: The EtherCAT slave controller also includes: a power supply interface connected to a power supply, an i2c interface connected to a memory, and an external network port interface connected to an external device.
7. A method for communicating using a slave controller according to any one of claims 1 to 6, characterized in that: include: receiving a request signal from an external device to output a synchronization signal; Data is exchanged with the EtherCAT slave controller according to the synchronization signal.
8. The method according to claim 7, characterized in that Before receiving the request signal of the external device through the interrupt interface, the method also includes: configuring the EtherCAT slave controller through the first interface to perform initialization settings.
