A method and system for improving the accuracy of CT rotation control based on a grating ruler

By converting the two square wave signals output by the grating ruler into four pulse signals, the problem of low measurement accuracy in traditional grating ruler signal processing is solved, achieving high-precision CT rotation control and reducing costs.

CN119861093BActive Publication Date: 2025-11-11SAINUO WEISHENG SCI & TECH BEIJING
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411870896.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-11-11
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

Traditional optical grating ruler signal processing methods result in low measurement accuracy and low signal utilization efficiency, failing to meet the requirements of high-speed or high-precision applications.

Method used

The two square wave signals with a 90-degree phase difference output from the grating ruler are converted into four pulse signals. Through inversion, delay, and arithmetic processing, a high-precision pulse square wave is generated to achieve a 4x frequency output.

Benefits of technology

It significantly improves the measurement and control accuracy of the grating ruler, reduces manufacturing costs, and meets the high-precision measurement requirements of high-speed CT equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119861093B_ABST
    Figure CN119861093B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for improving the rotation control accuracy of CT based on a grating ruler. The method includes: receiving the original square waves of two signals output by the grating ruler; inverting the original square waves to obtain an inverted square wave; delaying the original square waves to obtain a delayed square wave; inverting the delayed square wave to obtain a delayed inverted square wave; performing calculations on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single signal to obtain a pulse square wave of the single signal; performing an OR operation on the pulse square waves of the two signals and merging them to output a high-precision pulse square wave; acquiring the rising edge of the high-precision pulse square wave to obtain a high-precision grating ruler signal. By converting the two square wave signals output by the grating ruler into four pulse signals, a 4x frequency multiplication of the signal is achieved, thereby improving the measurement and control accuracy of the grating ruler and meeting the high-precision measurement requirements of high-speed CT equipment without increasing the grating aperture density.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of signal processing technology, and in particular to a method and system for improving the accuracy of CT rotation control based on grating rulers. Background Technology

[0002] In modern industrial automation and precision measurement, the demand for accurate position and displacement measurement is increasing. As a high-precision position detection device, the grating ruler is widely used in CNC machine tools, precision measuring instruments, and other fields due to its high measurement accuracy and good stability. The grating ruler converts displacement into an electrical signal through photoelectric conversion, thereby achieving accurate displacement measurement. Traditional grating ruler systems output square wave signals, which can provide absolute position information about displacement. However, due to limitations in signal processing technology and electronic circuits, the utilization efficiency and measurement accuracy of these signals need improvement. In existing technologies, signal processing is relatively simple, typically directly driving subsequent counting circuits or logic judgment circuits to achieve position measurement and control. However, this direct application method has some limitations: for example, unstable signal amplitude: due to environmental factors and power fluctuations, the signal amplitude may change, affecting measurement accuracy. Low signal processing efficiency: the characteristics of signal phase difference cannot be fully utilized, limiting the flexibility and efficiency of signal processing. Limited measurement accuracy: due to the simplicity of the signal processing method, higher precision position measurement cannot be achieved, especially in high-speed or high-precision applications. Summary of the Invention

[0003] In view of this, the present invention proposes a method and system for improving the rotational control accuracy of CT based on a grating ruler. This method converts two square wave signals with a 90-degree phase difference from the output of the grating ruler into four pulse signals, achieving a 4x frequency harmonic output, thereby significantly improving the measurement and control accuracy of the grating ruler. The present invention provides the following technical solution:

[0004] A method for improving the rotational control accuracy of CT based on a grating ruler, the method comprising:

[0005] The system receives two original square waves from the output of a grating ruler, each 90 degrees out of phase. The original square waves are then inverted to obtain an inverted square wave. The original square waves are then delayed to obtain a delayed square wave. The delayed square wave is then inverted to obtain a delayed inverted square wave. Operations are performed on the original, inverted, delayed, and delayed inverted square waves of a single signal to obtain a pulse square wave for that single signal. The pulse square waves of the two signals are then ORed to combine and output a high-precision pulse square wave. The rising edge of the high-precision pulse square wave is acquired to obtain a high-precision grating ruler signal.

[0006] Optionally, the method for obtaining a pulse square wave of a single-channel signal by performing operations on the original square wave, the inverted square wave, the delayed square wave, and the delayed inverted square wave of a single-channel signal includes: performing an AND operation on the original square wave and the delayed inverted square wave, and outputting a first pulse square wave; performing an AND operation on the inverted square wave and the delayed square wave, and outputting a second pulse square wave; performing an OR operation on the first pulse square wave and the second pulse square wave, and outputting a third pulse square wave of the single-channel signal.

[0007] Optionally, the method of performing an OR operation on the pulse square waves of the two signals to merge and output a high-precision pulse square wave includes: performing an OR operation on the third pulse square waves of the two single signals to merge and output a high-precision pulse square wave.

[0008] Optionally, the method for obtaining a pulse square wave of a single-channel signal by performing operations on the original square wave, the inverted square wave, the delayed square wave, and the delayed inverted square wave of a single-channel signal includes: performing an AND operation on the original square wave and the delayed inverted square wave, and outputting a first pulse square wave; performing an AND operation on the inverted square wave and the delayed square wave, and outputting a second pulse square wave.

[0009] Optionally, the method of performing an OR operation on the pulse square waves of the two signals to merge and output a high-precision pulse square wave includes: performing an OR operation on the first pulse square wave and the second pulse square wave of the two single signals to merge and output a high-precision pulse square wave.

[0010] Optionally, the method of delaying the original square wave to obtain a delayed square wave includes: simultaneously delaying the original square waves of the two signals using a synchronous timing circuit to obtain delayed square waves of the two signals with the same delay.

[0011] Optionally, after delaying the original square wave to obtain a delayed square wave, the method further includes: eliminating noise in the delayed square wave through a filtering circuit.

[0012] This invention further discloses a system for improving the rotational control accuracy of CT based on a grating ruler, comprising: a signal conditioning module for receiving original square waves of two signals with a 90-degree phase difference output from the grating ruler; an inversion module for inverting the original square waves to obtain an inverted square wave; and for inverting the delayed square wave to obtain a delayed inverted square wave; a delay module for delaying the original square waves to obtain a delayed square wave; a calculation module for performing calculations based on the original square wave, the inverted square wave, the delayed square wave, and the delayed inverted square wave of a single signal to obtain a pulse square wave of a single signal; and for performing an OR operation on the pulse square waves of the two signals to combine and output a high-precision pulse square wave; and a signal acquisition module for acquiring the rising edge of the high-precision pulse square wave to obtain a high-precision grating ruler signal.

[0013] The present invention further discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method described above for improving the CT rotation control accuracy of a grating ruler.

[0014] The present invention further discloses an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described above for improving the CT rotation control accuracy of the grating ruler.

[0015] According to the technical solution of the present invention, by converting the two square wave signals with a 90-degree phase difference from the output of the grating ruler into four pulse signals, the signal frequency is quadrupled, thereby significantly improving the measurement accuracy and control accuracy of the grating ruler, while reducing the manufacturing cost. This allows the high-precision measurement requirements of high-speed CT equipment to be met with only a small increase in circuitry without increasing the grating aperture density, providing an economical and efficient solution for industrial automation and precision measurement. Attached Figure Description

[0016] For illustrative purposes and not limiting, the present invention will now be described in conjunction with embodiments and accompanying drawings, wherein:

[0017] Figure 1 This is a schematic flowchart of a method for improving the CT rotation control accuracy of a grating ruler according to an embodiment of the present invention.

[0018] Figure 2 This is a schematic diagram of a system module for improving the CT rotation control accuracy of a grating ruler according to an embodiment of the present invention;

[0019] Figure 3 This is a schematic diagram of the structure of the electronic device in an embodiment of the present invention;

[0020] Figure 4 This is a schematic diagram of the circuit structure in an embodiment of the present invention. Detailed Implementation

[0021] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application.

[0022] It should be noted that the terms "first," "second," etc., in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0023] It should be noted that, where there is no conflict, the embodiments and features of the embodiments in this application can be combined with each other. The embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0024] refer to Figure 1 and Figure 4 This embodiment discloses a method for improving the rotation control accuracy of CT based on a grating ruler, the method comprising:

[0025] S100: Receives the original square wave of two signals with a 90-degree phase difference from the output of the grating ruler. It should be understood that the grating rulers and other equipment used in different CT scanners may differ. The two signals with a 90-degree phase difference in this embodiment are merely exemplary and can be modified accordingly based on the output of different grating rulers. This embodiment is not limited. Figure 4 A schematic diagram of the circuit structure in this embodiment is shown. Signals A and B in the diagram are the two signals mentioned above. After receiving the original square waves of the two signals, they pass through a signal conditioning circuit to adjust the peak voltage of the square waves, thereby ensuring the stability and reliability of the signals in subsequent processing. After signal conditioning is completed, the same operation is performed on signals A and B.

[0026] S200: Invert the original square wave to obtain an inverted square wave. It should be understood that this step involves inverting the original square waves of signals A and B. This is achieved through a direction inversion circuit in the circuit structure. Specifically, the direction inversion circuit converts the high-level portion of the original square wave to a low-level portion and vice versa, obtaining an inverted square wave signal with the opposite logic value to the original square wave. This ensures that the inversion operations of the two signals (A and B) are performed synchronously.

[0027] S300: The original square wave is delayed to obtain a delayed square wave. The original square wave is processed by an adjustable delay circuit in the circuit structure to delay the entire signal by a specified time while maintaining the phase continuity of the square wave, thus obtaining a delayed square wave. The adjustable delay circuit includes a synchronous timing circuit to synchronously control the delay operations of the two signals, ensuring the phase consistency of the delayed signals. It also includes a delay time control module to dynamically adjust the delay amplitude according to preset delay parameters, ensuring that the generated delayed square wave matches the timing of subsequent processing circuits. The adjustable delay circuit also includes a signal integrity preservation module to suppress signal noise during the delay process, avoid waveform distortion, and ensure the consistency of waveform characteristics between the delayed square wave and the original square wave.

[0028] S400: Invert the delayed square wave to obtain a delayed inverted square wave. Before inverting the delayed square wave, a filtering circuit in the circuit structure is used to filter the delayed square wave. The inversion operation of the filtered delayed square wave is implemented by a direction inversion circuit in the circuit structure. For example, a logic inverter is used to logically invert the voltage signal of the delayed square wave, converting the high-level part of the delayed square wave to a low level and the low-level part to a high level, generating a delayed inverted square wave. At the same time, the inversion operation and the delay operation are synchronized in time, so that the waveform characteristics of the delayed square wave and the delayed inverted square wave are consistent in timing. During the inversion process, the edge characteristics of the signal are optimized to eliminate spikes or noise interference introduced by the inversion operation, ensuring that the waveform of the delayed inverted square wave is smooth.

[0029] S500: Based on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single-channel signal, operations are performed to obtain a pulse square wave for the single-channel signal. Specifically, the operation includes: performing a bitwise AND operation on the original square wave and the delayed inverted square wave using a logic AND unit in the circuit structure, and outputting a first pulse square wave; performing a bitwise AND operation on the inverted square wave and the delayed square wave using a logic AND unit in the circuit structure, and outputting a second pulse square wave; performing an OR operation on the first pulse square wave and the second pulse square wave using a logic OR unit in the circuit structure, and outputting a third pulse square wave for the single-channel signal. In one or more embodiments, the operation can also be performed by performing a bitwise AND operation on the original square wave and the delayed inverted square wave, and outputting a first pulse square wave; and performing a bitwise AND operation on the inverted square wave and the delayed square wave, and outputting a second pulse square wave.

[0030] S600: Performs an OR operation on the pulse square waves of two signals to combine and output a high-precision pulse square wave. Specifically, after outputting the third pulse square wave of a single signal, it performs an OR operation on the third pulse square waves of the two single signals to combine and output a high-precision pulse square wave, thus achieving a combined output with 4 times the edge pulse. Similarly, it can also perform an OR operation on the first and second pulse square waves of two single signals to combine and output a high-precision pulse square wave.

[0031] S700: Acquires the rising edge of the high-precision pulse square wave to obtain a high-precision grating ruler signal.

[0032] This embodiment further discloses a system for improving the rotational control accuracy of CT based on grating rulers, including:

[0033] The signal conditioning module 21 is used to receive the original square waves of two signals with a 90-degree phase difference from the output of the grating ruler.

[0034] The inversion module 22 is used to invert the original square wave to obtain an inverted square wave; it is also used to invert the delayed square wave to obtain a delayed inverted square wave.

[0035] The delay module 23 is used to delay the original square wave to obtain a delayed square wave. Specifically, it uses a synchronous timing circuit to simultaneously delay the original square waves of the two signals to obtain delayed square waves of the two signals with the same delay. It is also used to eliminate noise in the delayed square wave through a filtering circuit.

[0036] The arithmetic module 24 is used to perform operations on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single-channel signal to obtain a pulse square wave of the single-channel signal; it is also used to perform an OR operation on the pulse square waves of two signals to merge and output a high-precision pulse square wave; it is also used to perform an AND operation on the original square wave and the delayed inverted square wave and output a first pulse square wave; perform an AND operation on the inverted square wave and the delayed square wave and output a second pulse square wave; perform an OR operation on the first pulse square wave and the second pulse square wave and output a third pulse square wave of the single-channel signal; and perform an OR operation on the third pulse square waves of two single-channel signals to merge and output a high-precision pulse square wave. It is also used to perform an AND operation on the original square wave and the delayed inverted square wave and output a first pulse square wave; perform an AND operation on the inverted square wave and the delayed square wave and output a second pulse square wave; and perform an OR operation on the first pulse square waves and the second pulse square waves of two single-channel signals to merge and output a high-precision pulse square wave.

[0037] The signal acquisition module 25 is used to acquire the rising edge of the high-precision pulse square wave to obtain a high-precision grating ruler signal.

[0038] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as... Figure 3 As shown, the electronic device 50 includes: a processor 501, a memory 502, and a bus 503;

[0039] The processor 501 and the memory 502 communicate with each other via the bus 503; the processor 501 is used to call the program instructions in the memory 502 to execute the methods provided in the above-described embodiments.

[0040] This embodiment provides a non-transitory computer-readable storage medium that stores computer instructions that cause a computer to execute the methods provided in the above-described embodiments.

[0041] Those skilled in the art will understand that all or part of the steps of the above-described method implementation can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above-described method implementation. The aforementioned storage medium includes various storage media capable of storing program code, such as ROM, RAM, magnetic disk, or optical disk.

[0042] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0043] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of each embodiment or some parts of the embodiments.

[0044] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for improving the rotational control accuracy of CT based on grating rulers, characterized in that, The method includes: The original square wave of two signals with a 90-degree phase difference from the output of the grating ruler is received; The original square wave is inverted to obtain an inverted square wave; The original square wave is delayed to obtain a delayed square wave; The delayed square wave is inverted to obtain a delayed inverted square wave; The pulse square wave of a single signal is obtained by performing calculations on the original square wave, the inverted square wave, the delayed square wave, and the delayed inverted square wave of a single signal. Perform an OR operation on the pulse square waves of the two signals to combine and output a high-precision pulse square wave; The rising edge of the high-precision pulse square wave is acquired to obtain a high-precision grating ruler signal.

2. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 1, characterized in that, The method for obtaining a pulse square wave of a single-channel signal by performing calculations on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single-channel signal includes: Perform a bitwise AND operation on the original square wave and the delayed inverted square wave, and output the first pulse square wave; Perform a bitwise AND operation on the inverted square wave and the delayed square wave, and output a second pulse square wave; Perform an OR operation on the first and second pulse square waves, and output a third pulse square wave as a single-channel signal.

3. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 2, characterized in that, The method of performing an OR operation on the pulse square waves of the two signals to combine and output a high-precision pulse square wave includes: The third pulse square wave of the two single-channel signals is ORed to combine and output a high-precision pulse square wave.

4. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 1, characterized in that, The method for obtaining a pulse square wave of a single-channel signal by performing calculations on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single-channel signal includes: Perform a bitwise AND operation on the original square wave and the delayed inverted square wave, and output the first pulse square wave; Perform an AND operation on the inverted square wave and the delayed square wave, and output a second pulse square wave.

5. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 4, characterized in that, The method of performing an OR operation on the pulse square waves of the two signals to combine and output a high-precision pulse square wave includes: Perform an OR operation on the first and second pulse square waves of the two single-channel signals to combine and output a high-precision pulse square wave.

6. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 1, characterized in that, The method for delaying the original square wave to obtain a delayed square wave includes: By using a synchronous timing circuit, the original square waves of the two signals are simultaneously delayed to obtain delayed square waves of the two signals with the same delay.

7. The method for improving the rotation control accuracy of CT based on grating ruler according to claim 1, characterized in that, After delaying the original square wave to obtain a delayed square wave, the method further includes: The noise in the delayed square wave is eliminated by a filtering circuit.

8. A system for improving the rotational control accuracy of CT based on grating rulers, characterized in that, include: The signal conditioning module is used to receive the original square waves of two signals with a 90-degree phase difference from the output of the grating ruler; The inversion module is used to invert the original square wave to obtain an inverted square wave; The delay module is used to delay the original square wave to obtain a delayed square wave; The inversion module is also used to invert the delayed square wave to obtain a delayed inverted square wave; The arithmetic module is used to perform calculations on the original square wave, inverted square wave, delayed square wave, and delayed inverted square wave of a single signal to obtain the pulse square wave of the single signal. It is also used to perform OR operations on the pulse square waves of two signals to combine and output a high-precision pulse square wave; The signal acquisition module is used to acquire the rising edge of the high-precision pulse square wave to obtain a high-precision grating ruler signal.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-7.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Method and system for pilot frequency bi-phase coincidence detection based on coincidence pulse counting

    CN103176045A

  • Control method for silicon controlled rectifier group, system, triggering device and voltage regulating system

    CN110212789A