A servo system electronic gear

By designing a servo system electronic gear that includes a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module, the problem that the existing technology can only process a single form of encoder signal is solved, and the processing of different types of signals is realized. Improved the processing efficiency and accuracy of CNC machine tools.

CN113156839BActive Publication Date: 2024-08-30KEDE NUMERICAL CONTROL CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202010075193.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-22
Publication Date
2024-08-30
Estimated Expiration
2040-01-22

AI Technical Summary

Technical Problem

The existing servo system electronic gear can only process a single form of encoder signal, has poor general performance, and cannot adapt to different types of encoder signals, which limits its application in CNC machine tools.

Method used

A servo system electronic gear including a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module is designed. It can receive and process different types of encoder signals and generate orthogonal pulse signals, which improves the adaptability of the electronic gear. .

Benefits of technology

By processing different types of encoder signals, the use range and adaptability of electronic gears are improved, and the processing efficiency and accuracy of CNC machine tools are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113156839B
    Figure CN113156839B
Patent Text Reader

Abstract

The present invention discloses an electronic gear of a servo system, comprising a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module; the pulse processing circuit module is used to receive an encoder feedback signal fed back by a servo motor, the encoder feedback signal is an incremental pulse signal or an absolute value encoding signal, generates a direction signal and a first pulse signal, and sends the first pulse signal to the frequency division circuit module, and sends the direction signal to the orthogonal sequence generation module; the frequency division circuit module is used to receive the first pulse signal and divide it to generate a second pulse signal and send it to the orthogonal sequence generation module; the orthogonal sequence generation module is used to receive the direction signal and the second pulse signal and generate an orthogonal pulse signal according to the signal. The electronic gear can be applied to different encoder feedback signals, and the adaptability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of machine tool driving, and in particular to an electronic gear of a servo system. Background Art

[0002] Gears are important basic parts of CNC machine tools and have a significant impact on the processing efficiency and precision of machine tools. Servo system electronic gears play a very important role in the processing quality and efficiency of CNC machine tools. As the core technology of high-performance CNC machine tools, the control accuracy of servo system electronic gears directly determines the performance of CNC machine tools. The realization of high-efficiency, high-precision and multi-adaptive electronic gears has important application significance. However, the existing servo system electronic gears can only process a single form of encoder signals and have poor general performance. Summary of the invention

[0003] The invention provides a servo system electronic gear, which can process different types of encoder signals and improve the adaptability of the electronic gear.

[0004] The technical means adopted by the present invention are as follows:

[0005] A servo system electronic gear comprises a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module;

[0006] A pulse processing circuit module is used to receive an encoder feedback signal fed back by a servo motor, wherein the encoder feedback signal is an incremental pulse signal or an absolute value encoding signal, generate a direction signal and a first pulse signal, and send the first pulse signal to a frequency division circuit module, and send the direction signal to the orthogonal sequence generation module;

[0007] A frequency division circuit module, used for receiving the first pulse signal and dividing the frequency of the first pulse signal to generate a second pulse signal and send it to the orthogonal sequence generation module;

[0008] The orthogonal sequence generation module is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the signals.

[0009] Further, the pulse processing circuit module includes a signal interface module, an incremental pulse signal processing module and an absolute value encoding signal processing module;

[0010] The signal interface module includes an incremental encoder interface for receiving an incremental pulse signal and transmitting it to an incremental pulse signal processing module and an absolute value encoder interface for receiving an absolute value encoding signal and transmitting it to an absolute value encoding signal processing module;

[0011] The incremental pulse signal processing module is used to receive the incremental pulse signal and process it to generate the direction signal and the first pulse signal;

[0012] The absolute value encoding signal processing module is used to receive the absolute value pulse signal and process it to generate the direction signal and the first pulse signal.

[0013] Furthermore, the frequency division circuit module includes a pulse signal interface, a transmission ratio signal interface and a frequency division processing module;

[0014] The pulse signal interface is used to receive the first pulse signal and send it to the frequency division processing module;

[0015] The transmission ratio signal interface is used to set the transmission ratio of the electronic gear and send the transmission ratio value to the frequency division processing module;

[0016] The frequency division processing module is used to receive the first pulse signal and the transmission ratio value and perform frequency division processing on the first pulse signal to generate a second pulse signal and send it to the orthogonal sequence generation module.

[0017] Further, the orthogonal sequence generation module includes a direction signal interface and a signal sequence generation module;

[0018] The direction signal interface is used to receive the direction signal and transmit it to the signal sequence generation module;

[0019] The signal sequence generating module is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the direction signal and the second pulse signal.

[0020] Compared with the prior art, the servo system electronic gear described in the present invention has the following advantages: by providing a pulse processing circuit module, the pulse processing circuit module can receive and process different types of encoder signals and generate orthogonal pulse signals, thereby improving the application range of the electronic gear. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a structural block diagram of the servo system electronic gear application disclosed in the present invention;

[0022] Figure 2 It is a structural diagram of the basic module of the electronic gear of the servo system disclosed in the present invention;

[0023] Figure 3 This is a specific module structure diagram of the servo system electronic gear disclosed in the present invention;

[0024] Figure 4 It is a diagram of orthogonal pulse signal;

[0025] Figure 5 This is the timing diagram of the incremental encoder pulse processing module.

[0026] In the figure: 1. Pulse processing circuit module, 2. Frequency division circuit module, 3. Orthogonal pulse generation module. DETAILED DESCRIPTION

[0027] like Figure 1 As shown, the encoder feedback of the servo motor acting on the transmission mechanism can enter the servo system through the encoder interface 1 or the encoder interface 2. If the feedback encoder signal is of orthogonal incremental type, it enters the FPGA module through the differential to single-ended circuit module; if the feedback encoding signal is of absolute value type, it enters the FPGA module through the RS485 circuit module, and the FPGA module realizes the electronic gear function of the servo system disclosed in the present invention; the numerical control system can set the servo system parameters such as the function of encoder 1 / 2, encoder sampling period, encoder resolution, electronic gear ratio, etc. through the industrial Ethernet bus or the servo debugging software through the serial port; the encoder signal processed by the hardware circuit enters the servo system electronic gear module implemented with the FPGA chip as the matrix and the VHDL hardware programming language to generate an orthogonal sequence pulse signal, and enters the encoder 1 or encoder 2 through the single-ended to differential circuit module (the numerical control system or servo debugging software can set which encoder is used for the orthogonal sequence pulse signal output), and then transmits it to the numerical control system or other collaborative processing servo drivers, so that the numerical control system knows the specific position of the processing tool, and other servo drivers can use the signal as a position instruction to realize the collaborative processing function.

[0028] Specifically, Figure 2 and Figure 3 The figure shows a servo system electronic gear disclosed in the present invention, which includes a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module;

[0029] The pulse processing circuit module 1 is used to receive the encoder feedback signal fed back by the servo motor, the encoder feedback signal is an incremental pulse signal or an absolute value encoding signal, generate a direction signal and a first pulse signal, and send the first pulse signal to the frequency division circuit module, and send the direction signal to the orthogonal sequence generation module;

[0030] A frequency division circuit module 2, used for receiving the first pulse signal and performing frequency division to generate a second pulse signal and sending it to the orthogonal sequence generation module;

[0031] The orthogonal sequence generation module 3 is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the signals.

[0032] Specifically, in this embodiment, the pulse processing circuit module includes a signal interface module, an incremental pulse signal processing module and an absolute value encoding signal processing module;

[0033] The signal interface module includes an incremental encoder interface for receiving an incremental pulse signal and transmitting it to an incremental pulse signal processing module and an absolute value encoder interface for receiving an absolute value encoding signal and transmitting it to an absolute value encoding signal processing module;

[0034] Specifically, the incremental encoder interface is an orthogonal square wave A and square wave B pulse signal (such as Figure 4 As shown). The absolute encoder interface is the encoder communication clock signal CLK and the encoder communication transmission signal Data. In this embodiment, the encoder interface 1 / 2 can support both incremental pulse signals and absolute value encoding signals.

[0035] The incremental pulse signal processing module is used to receive the incremental pulse signal and process it to generate the direction signal and the first pulse signal;

[0036] In this embodiment, the processing process of the incremental pulse signal processing module is as follows: the incremental pulse signal processing module processes the pulse A and pulse B sent by the incremental encoder received through the incremental encoder interface, and the processing process includes the following steps:

[0037] Step 1: FPGA collects pulse A and pulse B signals at the rising edge of the 100MHz clock, latches these two signals in the form of registers, realizes signal synchronization, and generates pulse signal A1 and pulse signal B1.

[0038] Step 2: The rising edge of the 100MHz clock triggers the sampling of the pulse signal A1 and the pulse signal B1 generated in the previous step. If the two signals have a rising edge or a falling edge, a pulse signal Pulse4 with a clock width of 100MHz is generated. The pulse signal Pulse4 is 4 times the frequency of the original orthogonal pulse signal A / B. The pulse signal Pulse4 is the first pulse signal; at the same time, the sampled pulse signal A1 and the pulse signal B1 are compared. If the phase of the pulse signal A1 is 90° ahead of the phase of the pulse signal B1, the output direction dir signal value is 1 (the direction signal output is 1); if the phase of the pulse signal A1 is 90° behind the phase of the pulse signal B1, the output direction dir signal value is 0 (the direction signal output is 0), such as Figure 5 As shown, A and B are output signals, A1 and B1 are signals after synchronous latching, Dir is the direction signal output, and Pluse is the pulse signal output.

[0039] The absolute value encoding signal processing module is used to receive the absolute value pulse signal and process it to generate the direction signal and the first pulse signal.

[0040] The processing process of the absolute value encoding signal processing module is as follows: The absolute value encoding signal processing module processes the absolute value pulse signal received through the absolute value encoder interface, and the processing process includes the following steps:

[0041] Step 1: The CNC system sets the encoder position signal sampling period SmpTime and the absolute encoder resolution Resolution through bus communication or servo debugging software through the debugging serial port; the sampling period SmpTime is based on the 100MHz clock period of the FPGA system. If the sampling period SmpTime is 100, it means that the sampling period is 100 system clock periods.

[0042] Step 2: Calculate the expected output pulse number △PosData within one sampling period SmpTime at time T T , the calculation formula is (1):

[0043] △PosData T =|PosData T -PosData T-1 | (1)

[0044] Among them: PosData T is the absolute encoder position data sampled this time,

[0045] PosData T-1 It is the absolute encoder position data sampled last time;

[0046] Step 3: Calculate the pulse accumulation comparison value △Pluse by formula (2);

[0047] △Pluse=SmpTime / △PosData T (2);

[0048] Step 4: Each time at the rising edge of the FPGA's 100MHz system clock, Pluse_num is accumulated by 1. If the accumulated value Pluse_num>△Pluse, the accumulated value Pluse_num is subtracted from △Pluse, and the absolute value encoding signal processing module outputs a pulse Pluse signal with a 100MHz system clock width.

[0049] Step 5: Compare the absolute encoder position values ​​within two sampling cycles. If PosData T >PosData T-1 ,

[0050] The pulse processing module outputs the direction signal dir value of 1 (that is, the motor is running forward). If PosData T <PosData T-1, the pulse processing module outputs the direction signal dir value of 0 (which means the motor is reversed).

[0051] Take the following example to illustrate the application. Assume that the encoder sampling period is 62.5us and the maximum speed of the servo motor is 6000rpm. Then the sampling period SmpTime is 6250, and the corresponding encoder line number is 100M*60 / 6000=1M. From 2^19=524288, the maximum encoder bit number that can be supported at this speed is 19bit. If the number of encoder lines to be supported increases, the maximum motor speed needs to be reduced accordingly.

[0052] The frequency division circuit module includes a pulse signal interface, a transmission ratio signal interface and a frequency division processing module; the pulse signal interface is used to receive the first pulse signal and send it to the frequency division processing module; the transmission ratio signal interface is used to set the transmission ratio of the electronic gear and send the transmission ratio value to the frequency division processing module; the frequency division processing module is used to receive the first pulse signal and the transmission ratio value and perform frequency division processing on the first pulse signal to generate a second pulse signal and send it to the orthogonal sequence generation module.

[0053] Specifically, the pulse signal interface receives the first pulse signal output by the pulse circuit processing module and transmits it to the frequency division processing module. The transmission ratio signal interface is the electronic gear transmission ratio N / M (wherein the pulse frequency division ratio numerator N and the pulse frequency division ratio denominator M, where N and M are positive integers) set by the CNC system or servo debugging software and sent to the frequency division processing module.

[0054] The process of the frequency division processing module dividing the frequency of the first pulse signal is as follows:

[0055] Step 1: Set the pulse frequency division ratio numerator N and the pulse frequency division ratio denominator M by the CNC system or servo debugging software, where N and M are positive integers.

[0056] Step 2: The frequency division processing module collects the first pulse signal at the rising edge of the system 100MHz system clock. If the first pulse signal has a rising edge, the frequency division pulse number Div_num is accumulated M, where M is the pulse frequency division ratio denominator; if the accumulated value of the frequency division pulse number Div_num> the pulse frequency division ratio numerator N, the frequency division module outputs a pulse with a width of 100MHz system clock, and the accumulated value Div_num is subtracted from N. When the rising edge of the input pulse Pluse appears next time, Div_num is accumulated again with the pulse frequency division ratio denominator M, so the frequency division module outputs the second pulse signal with a division ratio of K=N / M. As shown in the frequency division process example in Table 1, the input pulse is 8, and the second pulse signal output with a division ratio of K=8 / 3 is realized.

[0057] Table 1 Process example when the electronic gear ratio is 8 / 3

[0058] Pulse input Accumulate the number of divided pulses Div_num Frequency division pulse output 1 3 0 2 6 0 3 9-8 1 4 4 0 5 7 0 6 10-8 1 7 5 0 8 8-8 1

[0059] Further, the orthogonal sequence generation module includes a direction signal interface and a signal sequence generation module;

[0060] The direction signal interface is used to receive the direction signal and transmit it to the signal sequence generation module; the signal sequence generation module is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the direction signal and the second pulse signal.

[0061] Specifically, the direction signal interface receives the direction signal and transmits it to the signal sequence generation module; the signal sequence generation module receives the direction signal and the second pulse signal, and generates an orthogonal pulse signal according to the direction signal and the second pulse signal. The processing process of the signal sequence generation module is as follows:

[0062] Step 1: The input direction signal dir is collected at the rising edge of the 100MHz system clock, and the generated orthogonal pulse sequence is determined by the value of the direction signal dir.

[0063] Step 2: If the direction signal dir value is 1, the system samples the second pulse signal input at a 100MHz clock. The edge signal of the second pulse signal triggers the signal changes of output pulse A and output pulse B, and switches the state in a 10→11→01→00 cycle.

[0064] Step 3: If the direction signal dir value is 0, the system samples the input pulse signal and the second pulse signal at a 100MHz clock. The rising edge signal of the second pulse signal triggers the signal change of the output pulse A and the output pulse B, and switches the state in the order of 00→01→11→10. Then, an orthogonal pulse sequence is generated and sent to the CNC system or other servo drive. For example, the electronic gear of the servo system can generate the actual moving position of the lead screw guide rail according to the set frequency division coefficient based on the received servo motor encoder signal, and send it to the CNC system or other servo drive in the form of orthogonal pulses. The CNC system can know the moving position of the lead screw, and then realize the servo drive to realize the dual-drive function of the gantry machine tool.

[0065] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A servo system electronic gear, characterized in that: It includes a pulse processing circuit module, a frequency division circuit module and an orthogonal sequence generation module; A pulse processing circuit module is used to receive an encoder feedback signal fed back by a servo motor, wherein the encoder feedback signal is an incremental pulse signal or an absolute value encoding signal, generate a direction signal and a first pulse signal, and send the first pulse signal to a frequency division circuit module, and send the direction signal to the orthogonal sequence generation module; The pulse processing circuit module includes a signal interface module, an incremental pulse signal processing module and an absolute value encoding signal processing module; The signal interface module includes an incremental encoder interface for receiving an incremental pulse signal and transmitting it to an incremental pulse signal processing module and an absolute value encoder interface for receiving an absolute value encoding signal and transmitting it to an absolute value encoding signal processing module; The incremental pulse signal processing module is used to receive the incremental pulse signal and process it to generate the direction signal and the first pulse signal; The absolute value encoding signal processing module is used to receive the absolute value pulse signal and process it to generate the direction signal and the first pulse signal; Among them, the incremental pulse signal processing module receives pulse A and pulse B sent by the incremental encoder through the incremental encoder interface, and the processing process of pulse A and pulse B includes the following steps: Step 1: FPGA collects pulse A and pulse B signals at the rising edge of the 100MHz clock, latches pulse A and pulse B signals in the form of registers, realizes signal synchronization, and generates pulse signal A1 and pulse signal B1; Step 2: The rising edge of the 100MHz clock triggers the sampling of the pulse signal A1 and the pulse signal B1 generated in step 1. If the pulse signal A1 and the pulse signal B1 have a rising edge or a falling edge, a pulse signal Pulse4 with a clock width of 100MHz is generated. The pulse signal Pulse4 is 4 times the frequency of the orthogonal pulse A or the orthogonal pulse B signal. The pulse signal Pulse4 is the first pulse signal. At the same time, the sampled pulse signal A1 and the pulse signal B1 are compared. If the phase of the pulse signal A1 is 90° ahead of the phase of the pulse signal B1, the output direction dir signal value is 1; if the phase of the pulse signal A1 is 90° behind the phase of the pulse signal B1, the output direction dir signal value is 0. The absolute value encoding signal processing module processes the absolute value pulse signal received through the absolute value encoder interface, and the absolute value pulse signal processing process includes the following steps: Step 1: The CNC system sets the encoder position signal sampling period SmpTime and the absolute encoder resolution Resolution through bus communication or servo debugging software through the debugging serial port; the sampling period SmpTime is based on the 100MHz clock period of the FPGA system; Step 2: Calculate the expected output pulse number ΔPosData within one sampling period SmpTime at time T T , the calculation formula is (1): ΔPosData T =|PostData T -Postscript T-1 | (1) Among them: PosData T is the absolute encoder position data sampled this time, PosData T-1 It is the absolute encoder position data sampled last time; Step 3: Calculate the pulse accumulation comparison value ΔPluse by formula (2); ΔPluse=SmpTime / ΔPosData T (2); Step 4: Each time at the rising edge of the 100MHz system clock of the FPGA, Pluse_num is accumulated by 1. If the accumulated value Pluse_num>ΔPluse, the accumulated value Pluse_num is subtracted from ΔPluse, and the absolute value encoding signal processing module outputs a pulse Pluse signal with a width of the 100MHz system clock; Step 5: Compare the absolute encoder position values ​​within two sampling cycles. If PosData T >PosData T-1 , The pulse processing module outputs the direction signal dir value of 1. If PosData T <PosData T-1 , the pulse processing module outputs the direction signal dir value of 0; A frequency division circuit module, used for receiving the first pulse signal and dividing the frequency of the first pulse signal to generate a second pulse signal and send it to the orthogonal sequence generation module; The orthogonal sequence generation module is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the signals.

2. The servo system electronic gear according to claim 1, characterized in that: The frequency division circuit module includes a pulse signal interface, a transmission ratio signal interface and a frequency division processing module; The pulse signal interface is used to receive the first pulse signal and send it to the frequency division processing module; The transmission ratio signal interface is used to set the transmission ratio of the electronic gear and send the transmission ratio value to the frequency division processing module; The frequency division processing module is used to receive the first pulse signal and the transmission ratio value and perform frequency division processing on the first pulse signal to generate a second pulse signal and send it to the orthogonal sequence generation module.

3. The servo system electronic gear according to claim 1, characterized in that: The orthogonal sequence generation module includes a direction signal interface and a signal sequence generation module; The direction signal interface is used to receive the direction signal and transmit it to the signal sequence generation module; The signal sequence generating module is used to receive the direction signal and the second pulse signal, and generate an orthogonal pulse signal according to the direction signal and the second pulse signal.

Citation Information

Patent Citations

  • AC servo driver compatible with multiple encoder interfaces

    CN101408774A

  • Alternating current servo control device adopting electronic gear and use method thereof

    CN102615550A

  • Numerical control system control method based on position giving

    CN103713572A

  • Pulse generation method and device

    CN105388817A

  • Method for realizing output of electronic gear by adopting field programmable logic gate array

    CN105988399A