An absolute encoder
Through the combination of guided combined encoding and array photoelectric sensors, fast and high-accuracy decoding of absolute encoders is achieved, which solves the problems of high decoding time and strict installation direction in the existing technology, and achieves miniaturization and high resolution. Absolute encoder.
Patent Information
- Application Number
- CN202411223644.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the encoding sequence is long, the decoding algorithm of the existing absolute encoder occupies a large amount of memory and is time-consuming. It is difficult to meet the high-speed decoding requirements, and the installation direction is strict, resulting in reading errors when the code disk or photoelectric sensor is turned 180°.
The guided combination encoding method is adopted. Through the combination of probe and code tape, the array photoelectric sensor and processor are used to analyze the encoding reticle image to achieve fast decoding and high-accuracy absolute position information acquisition, and the installation direction is not strictly required.
It achieves high-precision and high-accuracy fast decoding under loose installation conditions, meets the needs of miniaturization and high resolution, and avoids reading errors caused by changes in installation direction.
Smart Images

Figure CN118730180B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of photoelectric encoders, and in particular relates to an absolute encoder. Background Art
[0002] Photoelectric encoders are mainly divided into two types: incremental and absolute. Absolute encoders have the characteristic of not losing data when power is off. Compared with incremental encoders, they do not need to be reset to zero and can directly read position information. They are widely used in precision measurement, aerospace, robotics and other fields.
[0003] The existing absolute encoders use more traditional periodic binary coding, such as cyclic code, Gray code, etc. The number of bits of this type of code is proportional to the number of code channels, making it difficult to achieve high-resolution miniaturization. In order to improve the miniaturization of the encoder, the number of code channels of the encoder should be reduced, but new coding methods are required. For example: 2-code channel or 3-code channel coding methods include matrix coding, vernier coding, etc. This type of encoder has strict installation accuracy requirements; single-code channel coding includes concise coding, displacement continuous coding, pseudo-random code coding, etc. The disadvantage of this type of encoder is that when the coding sequence is long, the decoding algorithm occupies a large amount of memory, takes a lot of time, and cannot meet the requirements of high-speed decoding.
[0004] Furthermore, the above encoding method requires that the installation direction of the encoder's code disk or code tape and the photoelectric sensor be fixed, that is, when the code disk / code tape is flipped 180° or the photoelectric sensor is flipped 180°, the reading will be wrong. Summary of the invention
[0005] The object of the present invention is to provide an absolute encoder, which can achieve high resolution and miniaturization of the encoder under the premise of fast decoding with high accuracy, and does not strictly require its installation direction.
[0006] The present invention is achieved in this way.
[0007] An absolute encoder, comprising: a probe and a code strip, wherein the code strip is composed of a plurality of black lines and a plurality of white lines arranged to form a coding line for carrying absolute position information; the probe comprises a beam splitter, an imaging lens and a collimating lens, an array photoelectric sensor, an analog-to-digital converter, a processor and a light source; the light emitted by the light source changes its direction through the collimating lens and the beam splitter, irradiates the code strip, and is reflected on the code strip; the reflected light is imaged on a receiving surface of the array photoelectric sensor through the imaging lens, and is converted into an analog electrical signal; the analog electrical signal is converted into a digital signal through the analog-to-digital converter and then transmitted to the processor as array information of the coding line image; the processor analyzes the received array information of the coding line image to obtain absolute position information; the array photoelectric sensor selects a linear CCD array;
[0008] The coding lines of the code band adopt guide combination coding, and the guide combination coding includes from one end to the other end Position code, The first direction code of the bit, bit data code and The data form of the positioning code, the first direction code and the second direction code is a palindrome code. The positioning code is The first direction code and the second direction code are set to any different palindrome codes; The data code of the bit is divided into two parts: bit discrete data code and Bit isolation code, equal Divide by The value of the isolation code is "0", starting from the high bit, each The discrete data codes are separated by isolation codes, and the complete The binary code of the bit discrete data code is translated into decimal value , As the data value corresponding to the discrete data code, The positioning code, first direction code and second direction code of each group of guidance combination codes are the same.
[0009] Furthermore, each bit code "1" or "0" in the coding line corresponds to two lines, the lines have the same physical scale, and the length of the lines is marked as , the length of a group of leading combination codes on the code band is :
[0010] ,
[0011] is the number of bits of a discrete combination code. If the number of codes on a code band is , then the total length of the code band is .
[0012] Furthermore, the specific process of the processor analyzing the array information of the received coded line image to obtain the absolute position information includes:
[0013] Processing and analyzing the array information of the received coded line image to obtain a rough position value;
[0014] Extract phase information from the positioning code to obtain precise position value;
[0015] The coarse position value is combined with the fine position value to obtain the absolute position value , represents the coarse position value, Indicates the precise position value.
[0016] Furthermore, the array information of the received coded line image is processed and analyzed to obtain a rough position value, including:
[0017] Processing the array information to obtain a binary number array, parsing the binary number array to obtain a bit code array;
[0018] According to the obtained bit code array, identify the starting position of all positioning codes in the bit code array ,in is the starting position of the first positioning code, is the starting position of the second positioning code. For the The starting position of the positioning code is determined by the direction code on the right side of the positioning code to determine the relative installation direction of the probe and the code tape. The information of the data code corresponding to the positioning code is analyzed according to the relative installation direction to obtain The data value sequence corresponding to the discrete data code in the data code , is the data value corresponding to the first discrete data code, is the data value corresponding to the second discrete data code, It is The data value corresponding to a discrete data code;
[0019] According to the sequence of data values In exist , Make equal , indicating the Group guided combination coding and The group guide combination code is valid, otherwise it means Group-guided combined coding distortion;
[0020] The center position of the linear CCD array As the reference position, select a group of valid guide combination codes closest to the center position to determine the starting array position of the guide combination code , end array position and data value , get the rough position value :
[0021] ,
[0022] Where L is the length corresponding to a set of guided combination codes.
[0023] Furthermore, extracting phase information from the positioning code to obtain a precise position value includes:
[0024] The bit code period is obtained by the number of arrays occupied by the bit codes of the positioning code ;
[0025] According to the bit code cycle Generate a reference sinusoidal signal of the same period With reference cosine signal :
[0026] ,
[0027] ,
[0028] is the amplitude of the reference signal;
[0029] calculate The phase of the group bit code:
[0030] Calculate the Array digital quantity of group position code With reference sinusoidal signal The product of and the reference cosine signal product :
[0031] ,
[0032] ,
[0033] is the array number, , is the maximum number of array photoelectric sensors, It is The starting position of the group positioning code, It is The number of arrays occupied by the group positioning code, ;
[0034] Calculate the phase difference :
[0035] ,
[0036] Calculate the precise position value :
[0037] ,
[0038] Calculate the absolute position value: .
[0039] Furthermore, the bit code period is based on Group The number of arrays occupied by the positioning code The calculation results are:
[0040] .
[0041] Compared with the prior art, the present invention has the beneficial effect that: the present invention utilizes the coding method of the guide combination code to achieve high-precision and high-accuracy fast decoding under the premise of ensuring that the absolute encoder is installed under loose conditions and miniaturized. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a schematic diagram of the structure of an absolute encoder provided by an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of various optical and electrical components of an encoder probe provided by an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of the structure of the guide combination coding provided by an embodiment of the present invention;
[0045] Figure 4 is a schematic diagram of a processing process in an absolute encoder provided by an embodiment of the present invention, wherein a) is a schematic diagram of a code band of the encoder; b) is a schematic diagram of an array photoelectric sensor; c) is array information of a coded line image; d) is a result of threshold segmentation of the array information of the coded line image; e) is a binary number array obtained after the threshold segmentation; f) is the translation of the binary number array into a bit code sequence;
[0046] Figure 5 The embodiment of the present invention provides two reference signals with the same period, (a) a reference sinusoidal signal , (b) Reference cosine signal . DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0048] refer to Figure 1 Combination Figure 2As shown, an absolute encoder comprises: a probe 1 and a code strip 2, wherein the code strip 2 is composed of a plurality of black lines 3 and a plurality of white lines 4 arranged to form a coding line for carrying absolute position information; the probe 1 comprises a beam splitter 7, an imaging lens 6 and a collimating lens 12, an array photoelectric sensor 8, an analog-to-digital converter 9, a processor 10 and a light source 11; the light emitted by the light source 11 changes its direction through the collimating lens 12 and the beam splitter 7, irradiates the code strip 2, and is reflected on the code strip 2, and the reflected light is imaged on the receiving surface of the array photoelectric sensor 8 through the imaging lens 6, and is converted into an analog electrical signal, which is converted into a digital signal through the analog-to-digital converter 9 and transmitted to the processor 10 as the array information of the coding line image, and the processor 10 analyzes the received array information of the coding line image to obtain the absolute position information; the array photoelectric sensor 8 selects a linear CCD array; the beam splitter 7, the imaging lens 6 and the collimating lens 12 constitute the optical path part 5.
[0049] The coding method of code band 2 adopts guided combination coding, refer to Figure 3 , the guided combination code consists of four parts, from one end to the other, including Position code, The first direction code of the bit, bit data code and The data form of the positioning code, the first direction code and the second direction code is a palindrome code. The positioning code is The first direction code and the second direction code are set to any different palindrome codes; The data code of the bit is divided into two parts: bit discrete data code and Bit isolation code, equal Divide by The value of the isolation code is "0", starting from the high bit, each The discrete data codes are separated by isolation codes, and the complete The binary code of the bit discrete data code is translated into decimal value , As the data value corresponding to the discrete data code, The positioning code, first direction code and second direction code of each group of guidance combination codes are the same.
[0050] In one embodiment, the guide combination code is a total of 23 binary codes, which are a 6-bit positioning code, a 3-bit first direction code, an 11-bit data code, and a 3-bit second direction code. The positioning code is set to "111111"; the first direction code and the second direction code are set to any different palindrome codes, such as "010" and "000"; the data code is divided into a 10-bit discrete data code and a 1-bit isolation code with a value of "0", a total of 11 bits, and every 5 bits of discrete data code are isolated by isolation codes to form a "xxxxx0xxxxx" code format, "x" can be represented as "1" or "0", for example Figure 3 The discrete data code is "10101011111", the 6th data bit is the isolation code value "0", the discrete data code is the 10-bit binary code "1010111111", the binary code "1010111111" of this group of discrete data codes is translated into a decimal value of 703, which is used as the data value corresponding to the discrete data code. Indicates the serial number of the area where the boot combination code is located.
[0051] Each bit code "1" or "0" in the coding line corresponds to 2 lines, the lines have the same physical scale, and the length of the lines is marked as , the length of a group of leading combination codes on code band 2 is :
[0052] ,
[0053] is the number of bits of a discrete combination code. If the number of codes on a code band 2 is , then the total length of code band 2 is .
[0054] In one embodiment, reference Figure 4 As shown in (a), the code strip 2 is composed of black lines 3 and white lines 4. The first combination 12 formed by an adjacent black line 3 and a white line 4 corresponds to the bit code value "1", and the second combination 13 composed of two adjacent lines that are all white lines 4 corresponds to the bit code value "0". Assume that the grating length corresponding to a bit code value "1" or "0" is is 50 microns, and the length of one scribe line is The array photoelectric sensor 8 selects a 552-column linear array CCD. After imaging adjustment, one grating period corresponds to 6 array columns, and one set of guide combination codes corresponds to 138 array columns. The array photoelectric sensor 8 can capture at least three complete sets of guide combination codes at a time.
[0055] The specific process of the processor 10 analyzing the array information of the received coded line image to obtain the absolute position information includes:
[0056] Processing and analyzing the array information of the received coded line image to obtain a rough position value;
[0057] Extract phase information from the positioning code to obtain precise position value;
[0058] The coarse position value is combined with the fine position value to obtain the absolute position value , represents the coarse position value, Indicates the precise position value.
[0059] The array information of the received coded line image is processed and analyzed to obtain the rough position value, including:
[0060] Processing the array information to obtain a binary number array, parsing the binary number array to obtain a bit code array;
[0061] According to the obtained bit code array, identify the starting position of all positioning codes in the bit code array ,in is the starting position of the first positioning code, is the starting position of the second positioning code. For the The starting position of the positioning code is determined by the direction code on the right side of the positioning code to determine the relative installation direction of the probe 1 and the code strip 2. The information of the data code corresponding to the positioning code is analyzed according to the relative installation direction to obtain The data value sequence corresponding to the discrete data code in the data code , is the data value corresponding to the first discrete data code, is the data value corresponding to the second discrete data code, It is The data value corresponding to a discrete data code;
[0062] According to the sequence of data values In exist , Make equal , indicating the Group guided combination coding and The group guide combination code is valid, otherwise it means Group-guided combined coding distortion;
[0063] The center position of the linear CCD array As the reference position, select a group of valid guide combination codes closest to the center position to determine the starting array position of the guide combination code , end array position and data value , get the rough position value :
[0064] ,
[0065] Where L is the length corresponding to a set of guided combination codes.
[0066] Extracting phase information from the positioning code to obtain precise position values includes:
[0067] The bit code period is obtained by the number of arrays occupied by the bit codes of the positioning code ;
[0068] According to the bit code cycle Generate a reference sinusoidal signal of the same period With reference cosine signal :
[0069] ,
[0070] ,
[0071] is the amplitude of the reference signal;
[0072] calculate The phase of the group bit code:
[0073] Calculate the Array digital quantity of group position code With reference sinusoidal signal The product of and the reference cosine signal product :
[0074] ,
[0075] ,
[0076] is the array number, , is the maximum number of array photoelectric sensors, It is The starting position of the group positioning code, It is The number of arrays occupied by the group positioning code, ;
[0077] Calculate the phase difference :
[0078] ,
[0079] Calculate the precise position value :
[0080] ,
[0081] Calculate the absolute position value: .
[0082] Bit code cycle is based on Group The number of arrays occupied by the positioning code The calculation results are:
[0083] .
[0084] In one embodiment, three groups of guide combination codes are taken as an example.
[0085] (1) Process and analyze the array information of the received coded line image to obtain the rough position value:
[0086] The coarse position value is obtained by the processor 10 by processing and analyzing the array information of the received coded line image, and the steps are as follows:
[0087] 1a. Process the array information to obtain a binary number array, and parse the binary number array to obtain a bit code array:
[0088] refer to Figure 4 As shown, Figure 4 (b) is an array photoelectric sensor 8, which receives Figure 4 The light signal reflected by the code strip 2 shown in (a) is converted into a voltage signal, and then the voltage signal is converted into a digital signal by an analog-to-digital converter 9 to obtain the array information of the coded line image. Figure 4 In (c), the array information value range is 0~255, and the threshold is selected Threshold segmentation of the array information produces a result similar to a rectangular wave, see Figure 4 (d) in the figure generates a set of 552-bit binary number arrays based on the threshold segmentation results, see Figure 4 As shown in (e) in . Then, according to the bit code "1" corresponding to the 6-bit binary sequence "000111" and the bit code "0" corresponding to the 6-bit binary sequence "111111", the 552-bit binary number array is parsed to obtain a set of 92-bit bit code arrays, see Figure 4 (f) in.
[0089] 1b. Based on the obtained bit code array, identify the starting position of the positioning code in this bit code array as x1, x2, x3, and determine the relative installation direction of the probe 1 and the code strip 2 according to whether the direction code value on the right side of the positioning code is "010" or "000". Analyze the information of the data code corresponding to the positioning code according to the relative installation direction (if the guide combination code corresponding to the positioning code does not fully collect the two direction codes, the information of the data code is not analyzed), and obtain three sets of coded data values: .
[0090] 1c. Effective signal analysis
[0091] According to the sequence of data values In exist , Make equal , indicating the Group guided combination coding and The group boot combination code is valid, otherwise it means Group-guided combined coding distortion;
[0092] In this embodiment, since there are three groups of adjacent guide combination codes, the above judgment method can be expressed as: the data values of the three adjacent guide combination codes are an arithmetic progression with a common difference of 1 or -1. Whether it conforms to the arrangement rules, judge the validity of the corresponding guide combination code, for example:
[0093] , , it means that all three sets of boot combination codes are valid;
[0094] , , , indicating that the second and third groups of boot combination codes are valid, and the first group of boot combination codes is invalid;
[0095] , , indicating that the first and third groups of boot combination codes are valid, and the second group of boot combination codes are invalid;
[0096] , , indicating that all three sets of boot combination codes are invalid.
[0097] When it is determined that the two sets of boot combination codes are valid, proceed to the next step.
[0098] 1d. Calculate the rough position value ,
[0099] The center position of the linear CCD array =552 / 2 is the reference position, select a valid guide combination code closest to the array center, and determine the starting array position of the guide combination code , end array position and data values . You can get the rough position value :
[0100] ,
[0101] Where L is the length of a group of guided combination codes:
[0102] ,
[0103] is the number of bits of a discrete combination code, here it is 23 bits.
[0104] (2) Extract phase information from the positioning code to obtain the precise position value:
[0105] Taking three groups as an example, the steps to extract phase information from three groups of positioning codes are as follows:
[0106] 2a. Obtain the bit code period from the number of arrays occupied by the 6 bit codes of the positioning code ,
[0107] refer to Figure 5 If the number of arrays occupied by the positioning code is 36, the number of arrays occupied by the bit code "1" or "0" is 6, and a reference sinusoidal signal with a period of 6 is generated. ( Figure 5 (a)) with the reference cosine signal ( Figure 5 (as shown in (b) in the figure). The linear array number of the linear CCD array ranges from 1 to 552. =1~552 is substituted into the expression to obtain two sets of discrete reference sine signals and reference cosine signals;
[0108] 2b. Calculate the phases of three groups of positioning codes;
[0109] First, the photoelectric signal of the first group of positioning codes is converted into array digital quantity through analog-to-digital converter 9. With reference sinusoidal signal , reference cosine signal Find the dot product separately Sum and product :
[0110] ,
[0111] ,
[0112] The photoelectric signal representing the first group of positioning codes is converted into an array digital quantity by the analog-to-digital converter 9. With sinusoidal signal The product of The photoelectric signal representing the first group of positioning codes is converted into an array digital quantity by the analog-to-digital converter 9. With cosine signal The product of
[0113] You can , then we get
[0114] ,
[0115] The trigonometric functions are converted into products and differences:
[0116] ,
[0117] Simplified:
[0118] ,
[0119] Similarly:
[0120] ,
[0121] Here The photoelectric signal of the first group of positioning codes is converted into the amplitude of the array digital quantity by the analog-to-digital converter 9.
[0122] Find the phase difference ;
[0123] Similarly, the phase difference of other groups of positioning codes is obtained , .
[0124] 2c. Calculate the precise position value :
[0125] Combine the angle or length corresponding to the bit code value "1" or "0" , find the precise position value :
[0126] ,
[0127] Indicates The phase of the positioning code.
[0128] 3) Absolute position value
[0129] The coarse position value is combined with the fine position value to obtain the absolute position . Absolute position value It refers to the position of the current linear array CCD center array position corresponding to the position of the guided combination code on code band 2.
[0130] The code strip 2 mentioned above can also be replaced by a code disc. When a code disc is used, the length is replaced by an angle.
[0131] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An absolute encoder, characterized in that: The absolute encoder comprises: a probe and a code strip, wherein the code strip is composed of a plurality of black lines and a plurality of white lines arranged to form a coding line for carrying absolute position information; the probe comprises a beam splitter, an imaging lens and a collimating lens, an array photoelectric sensor, an analog-to-digital converter, a processor and a light source; the light emitted by the light source changes its direction through the collimating lens and the beam splitter, irradiates the code strip, and is reflected on the code strip; the reflected light is imaged on the receiving surface of the array photoelectric sensor through the imaging lens, and is converted into an analog electrical signal; the analog electrical signal is converted into a digital signal through the analog-to-digital converter and then transmitted to the processor as the array information of the coding line image; the processor analyzes the received array information of the coding line image to obtain the absolute position information; the array photoelectric sensor selects a linear CCD array; The coding lines of the code band adopt guide combination coding, and the guide combination coding includes from one end to the other end Position code, The first direction code of the bit, bit data code and The data form of the positioning code, the first direction code and the second direction code is a palindrome code. The positioning code is The first direction code and the second direction code are set to any different palindrome codes; The data code of the bit is divided into two parts: bit discrete data code and Bit isolation code, equal Divide by The value of the isolation code is "0", starting from the high bit, each The discrete data codes are separated by isolation codes, and the complete The binary code of the bit discrete data code is translated into decimal value , As the data value corresponding to the discrete data code, The positioning code, first direction code and second direction code of each group of guidance combination codes are the same.
2. An absolute encoder according to claim 1, characterized in that: Each bit code "1" or "0" in the coding line corresponds to 2 lines, the lines have the same physical scale, and the length of the lines is marked as , the length of a group of leading combination codes on the code band is : , is the number of bits of a discrete combination code. If the number of codes on a code band is , then the total length of the code band is .
3. An absolute encoder according to claim 2, characterized in that: The specific process of the processor analyzing the array information of the received coded line image to obtain the absolute position information includes: Processing and analyzing the array information of the received coded line image to obtain a rough position value; Extract phase information from the positioning code to obtain precise position value; The coarse position value is combined with the fine position value to obtain the absolute position value , represents the coarse position value, Indicates the precise position value.
4. An absolute encoder according to claim 3, characterized in that: The array information of the received coded line image is processed and analyzed to obtain the rough position value, including: Processing the array information to obtain a binary number array, parsing the binary number array to obtain a bit code array; According to the obtained bit code array, identify the starting position of all positioning codes in the bit code array ,in is the starting position of the first positioning code, is the starting position of the second positioning code, For the The starting position of the positioning code is determined by the direction code on the right side of the positioning code to determine the relative installation direction of the probe and the code tape. The information of the data code corresponding to the positioning code is analyzed according to the relative installation direction to obtain The data value sequence corresponding to the discrete data code in the data code , is the data value corresponding to the first discrete data code, is the data value corresponding to the second discrete data code, It is The data value corresponding to a discrete data code; According to the sequence of data values In exist , Make equal , indicating the Group guided combination coding and The group boot combination code is valid, otherwise it means Group-guided combined coding distortion; The center position of the linear CCD array As the reference position, select a group of valid guide combination codes closest to the center position to determine the starting array position of the guide combination code , end array position and data value , get the rough position value : , Where L is the length corresponding to a set of guided combination codes.
5. An absolute encoder according to claim 4, characterized in that: Extracting phase information from the positioning code to obtain precise position values includes: The bit code period is obtained by the number of arrays occupied by the bit codes of the positioning code ; According to the bit code cycle Generate a reference sinusoidal signal of the same period With the reference cosine signal : , , is the amplitude of the reference signal; calculate The phase of the group bit code: Calculate the Array digital quantity of group position code With reference sinusoidal signal The product of and the reference cosine signal product : , , is the array number, , is the maximum number of array photoelectric sensors, It is The starting position of the group positioning code, It is The number of arrays occupied by the group positioning code, ; Calculate the phase difference : , Calculate the precise position value : , Calculate the absolute position value: .
6. An absolute encoder according to claim 5, characterized in that: Bit code cycle is based on Group The number of arrays occupied by the positioning code The calculation results are: 。
Citation Information
Patent Citations
Photoelectric coding disk produced by " Huiwen" code and its design procedure
CN1069120A
Position coding-based displacement detection system and detection method
CN110617770A
