Encoder and servo driving system
Patent Information
- Application Number
- PCT/CN2023/096651
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-12-05
Smart Images

Figure CN2023096651_05122024_PF_FP_ABST
Abstract
Description
Encoder and Servo Driving SystemTECHNICAL FIELDThe present invention relates to a technical field of encoders, and specifically to an encoder and a servo driving system.BACKGROUND OF THE INVENTIONAs a device for position measurement, an encoder becomes more and more important in a servo driving system. In firmware updating, diagnosis data transmission, or other situations, it is necessary to perform mass data transmission from a driver to the encoder. However, the prior encoder does not support mass data transmission, or would take a long time even if it could support mass data transmission.SUMMARY OF THE INVENTIONIn embodiments of the present invention, an encoder and a servo driving system are provided, which can achieve rapid transmission of mass data.According to a first aspect, an encoder is provided in an embodiment of the present invention. The encoder is configured therein with at least two communication protocols such that the encoder can perform data transmission with a driver by any one of the at least two communication protocols, wherein the at least two communication protocols support different data transmission capacities such that the encoder can enter modes for the different data transmission capacities.In an embodiment, the at least two communication protocols comprises a first type of communication protocol (s) and a second type of communication protocol (s) , the data transmission capacity supported by the first type of communication protocol (s) is higher / larger than that supported by the second type of communication protocol (s) .In an embodiment, the first type of communication protocol (s) comprises at least one of universal asynchronous receiver / transmitter (UART) protocol and serial peripheral interface (SPI) protocol.In an embodiment, the second type of communication protocol (s) comprises at least one of bidirectional synchronous serial interface (BISS) communication protocol, bidirectional digital interface (EnDat) protocol, high performance interface (Hiperface) protocol, and synchronous serial interface (SSI) protocol.In an embodiment, the encoder is in communication connection with the driver by one set of communication bus (es) , and performs data transmission with the driver by the communication bus (es) .In an embodiment, the encoder is used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to a first communication protocol of the first type of communication protocol (s) when a first message from the driver is received, and performing data transmission with the driver by the first communication protocol, wherein the first message is a data message with a data format corresponding to the first communication protocol of the first type of communication protocol (s) .In an embodiment, the encoder is used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to any one communication protocol of the first type of communication protocol (s) when a second message from the driver is received, and performing data transmission with the driver by the communication protocol, wherein the second message is an instruction of switching to a high capacity transmission mode.In an embodiment, the encoder is further used for: switching the currently used communication protocol, which is one communication protocol of the first type of communication protocol (s) , to the second communication protocol of the second type of communication protocol (s) when a third message from the driver is received, wherein the third message is an instruction of finishing data transmission.In an embodiment, the communication bus comprises a data line and a clock line.According to a second aspect, a servo driving system as provided in an embodiment of the present invention comprises a driver, an electric motor, and an encoder provided on the electric motor and being in communication connection with the driver, wherein the encoder is the encoder as provided in the first aspect.The encoder (s) and the servo driving system (s) as provided in the embodiments of the present invention, individually or in combination, can have the following technical effects:(1) There are at least two communication protocols configured in the encoder, and the data transmission capacities supported by these communication protocols are different. Some communication protocol supports a relatively high data transmission capacity, while some communication protocol supports a relatively low data transmission capacity. If it is in a normal application situation, the encoder may perform data transmission with the driver by the communication protocol supporting the relatively low data transmission capacity, thus meeting the normal requirement. In some special situations, it is necessary in this case to perform mass data transmission from the driver to the encoder, thus the encoder may perform data transmission with the driver by the communication protocol supporting the relatively high data transmission capacity, thus meeting the requirement for high capacity transmission in the special situations. As can be seen, the embodiments of the present invention can meet the requirements in different situations. Moreover, the communication protocol supporting the relatively high data transmission capacity can transmit more data per unit time than the communication protocol supporting the relatively low data transmission capacity, and thus can complete the task of data transmission within a shorter time period, i.e. completing the task of data transmission rapidly and saving time for data transmission.(2) In an embodiment, the communication protocols in the encoder are classified into a first type of communication protocol (s) and a second type of communication protocol (s) . The first type of communication protocol (s) is suitable to be applied to special situations, such as firmware updating, diagnosis data transmission, or other high capacity transmission situations, for example. The second type of communication protocol (s) is suitable to be applied to normal application situations, such as a situation in which the encoder sends the detected position information to the driver such that the driver can control the electric motor according to the position, for example. By classification for the communication protocols, it is convenient for the encoder to select a suitable communication protocol rapidly when the situation is changed or switched, without comparison one by one to the communication protocols before selecting the communication protocol.(3) In an embodiment, if the communication protocol currently used by the encoder is one communication protocol of the first type of communication protocol (s) , when the encoder receives a third message from the driver, it switches the currently used communication protocol to the second communication protocol of the second type of communication protocol (s) , wherein the third message is an instruction of finishing data transmission. In normal application cases, the data transmission between the encoder and the driver is performed by the second type of communication protocol (s) , while the data transmission between the encoder and the driver is performed by the first type of communication protocol (s) only in special situations. When it is switched from the special situation back to the normal application situation, the communication protocol used in the encoder will be switched accordingly such that the encoder can flexibly switch between communication protocols with respect to the normal application situation and the special situation.DESCRIPTION OF THE DRAWINGSIn order to explain the technical solutions in the embodiments of the present invention or in the prior art more clearly, the figures necessary to be used for description in the embodiments or in the prior art will be briefly introduced as below. Apparently, the figures for the description below are for some embodiments in the present invention. Based on these figures, those skilled in the art can obtain other figures without any inventive work.Figure 1 is a diagram of communication protocols in an encoder in an embodiment of the present invention.Figure 2 is a structural diagram of a servo driving system in an embodiment of the present invention.Reference numerals:DESCRIPTION OF EXEMPLARY EMBODIMENTS
[0014] In order to make the objective (s) , technical solutions and advantages of embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be described clearly and completely hereinafter in connection with the figures in the embodiments of the present invention. Apparently, the described embodiments are some embodiments in the present invention, rather than all embodiments. Any other embodiments obtained based on the embodiments in the present invention by those skilled in the art without any inventive work will fall within the protection scope of the present invention.In a first aspect, an encoder is provided in an embodiment of the present invention. The encoder is configured therein with at least two communication protocols such that the encoder can perform data transmission with a driver by any one of the at least two communication protocols, wherein the at least two communication protocols support different data transmission capacities such that the encoder can enter modes for the different data transmission capacities.Referring to figure 1, the encoder 10 is configured therein with two communication protocols 11.That is, there are at least two communication protocols configured in the encoder, and the data transmission capacities supported by these communication protocols are different. Some communication protocol supports a relatively high data transmission capacity, while some communication protocol supports a relatively low data transmission capacity. The encoder can perform data transmission with the driver by only one communication protocol thereof at one moment.As can be seen, if it is in a normal application situation, the encoder may perform data transmission with the driver by the communication protocol supporting the relatively low data transmission capacity, thus meeting the normal requirement. In some special situations, such as firmware updating or diagnosis data transmission, for example, it is necessary in this case to perform mass data transmission from the driver to the encoder, thus the encoder may perform data transmission with the driver by the communication protocol supporting the relatively high data transmission capacity, thus meeting the requirement for high capacity transmission in the special situations. Moreover, the communication protocol supporting the relatively high data transmission capacity is different from the communication protocol supporting the relatively low data transmission capacity in data volume / amount transmitted per unit time, and thus can complete the task of data transmission with a shorter time period, i.e. completing the task of data transmission rapidly.Herein, the data transmission capacity supported by the communication protocol reflects the number of bytes in one data package as prescribed by the communication protocol. For example, a data package as prescribed by the communication protocol supporting the relatively high data transmission capacity comprises 8 bytes, while a data package as prescribed by the communication protocol supporting the relatively low data transmission capacity comprises 1 byte. As can be seen, when the encoder performs data transmission with the driver by the communication protocol supporting the relatively high data transmission capacity, more bytes can be transmitted in one data package.Herein, the number of the communication protocol (s) may be configured based on the requirement. For example, two or three communication protocols may be configured.In an embodiment, the at least two communication protocols comprises a first type of communication protocol (s) and a second type of communication protocol (s) , and the data transmission capacity supported by the first type of communication protocol (s) is higher / larger than that supported by the second type of communication protocol (s) .That is, the communication protocols in the encoder are classified into two types: a first type of communication protocol (s) and a second type of communication protocol (s) . The two types of communication protocol (s) are significantly different in the supported data transmission capacity. That is, the data transmission capacity supported by the first type of communication protocol (s) is higher / larger than that supported by the second type of communication protocol (s) .As can be seen, the first type of communication protocol (s) is suitable to be applied to special situations, such as firmware updating, diagnosis data transmission, or other high capacity transmission situations, for example. The second type of communication protocol (s) is suitable to be applied to normal application situations, such as a situation in which the encoder sends the detected position information to the driver such that the driver can control the electric motor according to the position, for example. By classification for the communication protocols, it is convenient for the encoder to select a suitable communication protocol rapidly when the situation is changed or switched, without comparison one by one to the communication protocols before selecting the communication protocol.In an embodiment, the first type of communication protocol (s) may comprises at least one of UART protocol and SPI protocol.Herein, the UART protocol is the universal asynchronous receiver / transmitter protocol or the serial port protocol.Herein, the SPI protocol is the serial peripheral interface protocol.In an embodiment, the second type of communication protocol (s) may comprise at least one of bidirectional synchronous serial interface (BISS) communication protocol, bidirectional digital interface (EnDat) protocol, high performance interface (Hiperface) protocol, and synchronous serial interface (SSI) protocol.Herein, the BISS communication protocol is the bidirectional synchronous serial interface protocol.Herein, the EnDat protocol is the bidirectional digital interface protocol.Herein, the Hiperface protocol is the high performance interface protocol.Herein, the SSI protocol is the synchronous serial interface protocol.In an embodiment, the encoder is in communication connection with the driver by one set of communication bus (es) , and performs data transmission with the driver by the communication bus (es) .That is, one set of communication bus (es) is provided between the encoder and the driver. Thus, the encoder can perform data transmission with the driver by the one set of communication bus (es) . That is, each of the communication protocols in the encoder uses the one set of communication bus (es) to perform data transmission between the encoder and the driver.Herein, the communication bus comprises a data line and a clock line, wherein there may be two data lines and there may be two clock lines. The data line functions for data transmission, and the clock line functions for high / low pulse transmission such that the encoder or the driver can determine the clock cycle.In an embodiment, the encoder may be specifically used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to a first communication protocol of the first type of communication protocol (s) when a first message from the driver is received, and performing data transmission with the driver by the first communication protocol, wherein the first message is a data message with a data format corresponding to the first communication protocol of the first type of communication protocol (s) .For example, when the current situation is a normal application situation, the encoder uses the second communication protocol (BISS protocol) to transmit the encoding position information to the driver in this case. At a certain moment, the encoder receives a first message from the driver, wherein the data format of the first message is the data format of the first communication protocol (UART protocol) . Therefore, the encoder switches the currently used communication protocol (BISS protocol) to UART protocol. Then, the encoder uses the UART protocol to perform analysis or other processing to the message from the driver. It is also necessary for the encoder to pack the data to be transmitted to the driver into a data package in the data format of the UART protocol, and then send the packed data package to the driver.In an embodiment, the encoder may be specifically used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to any one communication protocol of the first type of communication protocol (s) when a second message from the driver is received, and performing data transmission with the driver by the communication protocol, wherein the second message is an instruction of switching to a high capacity transmission mode.For example, when the current situation is a normal application situation, the encoder uses the second communication protocol (Hiperface protocol) to transmit the encoding position information to the driver in this case. At a certain moment, the encoder receives a second message from the driver, wherein the second message is an instruction of switching to a high capacity transmission mode. The encoder selects one communication protocol (such as SPI protocol, for example) from the first type of communication protocol (s) , and further the encoder may inform the driver of the selected communication protocol. Further, the driver will pack the data to be sent to the encoder later into a data package in the data format of SPI protocol, and then send it to the encoder. Also, the encoder will pack the data to be sent to the driver into a data package in the data format of SPI protocol, and then send it to the driver.As can be seen, there are two manners of switching communication protocols by the encoder. In one manner, the driver sends a first message in a data format of the communication protocol after switching. In the other manner, the driver sends a second message which is an instruction of switching to a high capacity transmission mode.Herein, the high capacity transmission mode is the transmission mode of each communication protocol of the first type of communication protocol (s) .
[0046] In an embodiment, the encoder may be further used for: switching the currently used communication protocol, which is one communication protocol of the first type of communication protocol (s) , to the second communication protocol of the second type of communication protocol (s) when a third message from the driver is received, wherein the third message is an instruction of finishing data transmission.For example, when the current situation is a firmware updating situation, the communication protocol currently used by the encoder is UART protocol of the first type of communication protocol (s) . At a certain moment, the encoder receives a third message from the driver, wherein the third message is an instruction of finishing data transmission of firmware updating, indicating that the data transmission of firmware updating has been completed and the encoder can switch to the original communication protocol, i.e. the second communication protocol. Therefore, the encoder switches the currently used communication protocol (UART protocol) to the second communication protocol in this case.As can be seen, in normal application cases, the data transmission between the encoder and the driver is performed by the second type of communication protocol (s) , while the data transmission between the encoder and the driver is performed by the first type of communication protocol (s) only in special situations. Moreover, when it is switched from the special situation back to the normal application situation, the communication protocol used in the encoder will be switched accordingly such that the encoder can flexibly switch between communication protocols with respect to the normal application situation and the special situation, thus meeting different requirements.It is understandable that the above-described first type of communication protocol (s) can achieve data transmission with relatively high capacity, and belongs to high efficiency protocols. With the increased data transmission capacity, the time for data transmission is saved, achieving rapid data transmission.In a second aspect, a servo driving system is provided in an embodiment of the present invention. Referring to figure 2, the servo driving system comprises a driver 30, an electric motor 20, and an encoder 10 provided on the electric motor 20 and being in communication connection with the driver 30, wherein the encoder is the encoder as provided in the first aspect.Herein, the encoder 10 and the driver 30 are connected by a communication bus 40.It is understandable that the related explanation, specific implementation manner (s) , beneficial effect (s) , example (s) , and the like of the servo driving system (s) as provided in the embodiment (s) of the present invention may refer to the respective portions in the encoder (s) as provided in the first aspect, and will not be described repeatedly herein.The embodiments in the present description are described in a gradually progressive manner. The same or similar portions between different embodiments can be referred to each other. Each embodiment emphasizes in explaining the difference (s) with respect to other embodiment (s) . In particular, as the apparatus / device embodiments are substantially similar to the method embodiments, the description thereof is relatively simple, and the description of the method embodiments may be referred to for the related portions.With the above-described specific embodiments, the purposes, technical solutions and beneficial effects of the present invention are further explained in detail. It should be understood that the above description is only for specific embodiments in the present invention, not for defining the protection scope of the present invention. Any variation, equivalent substitution or improvement made based on the technical solutions of the present invention will fall within the protection scope of the present invention.
Claims
1.An encoder characterized in that it is configured therein with at least two communication protocols such that the encoder can perform data transmission with a driver by any one of the at least two communication protocols, wherein the at least two communication protocols support different data transmission capacities such that the encoder can enter different modes for the different data transmission capacities.2.The encoder according to claim 1, characterized in that the at least two communication protocols comprises a first type of communication protocol (s) and a second type of communication protocol (s) , the data transmission capacity supported by the first type of communication protocol (s) is larger than that supported by the second type of communication protocol (s) .3.The encoder according to claim 2, characterized in that the first type of communication protocol (s) comprises at least one of universal asynchronous receiver / transmitter (UART) protocol and serial peripheral interface (SPI) protocol.4.The encoder according to claim 2, characterized in that the second type of communication protocol (s) comprises at least one of bidirectional synchronous serial interface (BISS) communication protocol, bidirectional digital interface (EnDat) protocol, high performance interface (Hiperface) protocol, and synchronous serial interface (SSI) protocol.5.The encoder according to claim 2, characterized in that the encoder is in communication connection with the driver by one set of communication bus (es) , and performs data transmission with the driver by the communication bus (es) .6.The encoder according to claim 5, characterized in that the encoder is used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to a first communication protocol of the first type of communication protocol (s) when a first message from the driver is received, and performing data transmission with the driver by the first communication protocol, wherein the first message is a data message with a data format corresponding to the first communication protocol of the first type of communication protocol (s) .7.The encoder according to claim 5, characterized in that the encoder is used for: switching the currently used communication protocol, which is a second communication protocol of the second type of communication protocol (s) , to any one communication protocol of the first type of communication protocol (s) when a second message from the driver is received, and performing data transmission with the driver by the communication protocol, wherein the second message is an instruction of switching to a high capacity transmission mode.8.The encoder according to claim 6 or 7, characterized in that the encoder is further used for: switching the currently used communication protocol, which is one communication protocol of the first type of communication protocol (s) , to the second communication protocol of the second type of communication protocol (s) when a third message from the driver is received, wherein the third message is an instruction of finishing data transmission.9.The encoder according to claim 5, characterized in that the communication bus comprises a data line and a clock line.10.A servo driving system, characterized in that it comprises a driver, an electric motor, and an encoder provided on the electric motor and being in communication connection with the driver, wherein the encoder is the encoder according to any one of claims 1-9.
Citation Information
Patent Citations
Method and system for transmitting and processing data among network servers
CN105323183A
Multi-output coder
CN107153391A
Security module for secure drive control of drive system in automation system, drive system and automation system
CN115176410A
Systems and methods for encoding and decoding data
US20210192155A1
Dual-mode encoder, system including same, and method for generating infra-red signals
WO2011119600A1
