CN114166254A - Single code channel absolute coding method and coder - Google Patents

Single code channel absolute coding method and coder Download PDF

Info

Publication number
CN114166254A
CN114166254A CN202111497452.1A CN202111497452A CN114166254A CN 114166254 A CN114166254 A CN 114166254A CN 202111497452 A CN202111497452 A CN 202111497452A CN 114166254 A CN114166254 A CN 114166254A
Authority
CN
China
Prior art keywords
coding
bits
sequence
coded
absolute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111497452.1A
Other languages
Chinese (zh)
Inventor
魏思源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Sotu Photoelectric Technology Co ltd
Original Assignee
Changzhou Sotu Photoelectric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Sotu Photoelectric Technology Co ltd filed Critical Changzhou Sotu Photoelectric Technology Co ltd
Priority to CN202111497452.1A priority Critical patent/CN114166254A/en
Publication of CN114166254A publication Critical patent/CN114166254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/26Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
    • G01D5/32Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light with attenuation or whole or partial obturation of beams of light
    • G01D5/34Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light with attenuation or whole or partial obturation of beams of light the beams of light being detected by photocells
    • G01D5/347Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light with attenuation or whole or partial obturation of beams of light the beams of light being detected by photocells using displacement encoding scales
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/26Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light
    • G01D5/32Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light with attenuation or whole or partial obturation of beams of light
    • G01D5/34Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable characterised by optical transfer means, i.e. using infrared, visible, or ultraviolet light with attenuation or whole or partial obturation of beams of light the beams of light being detected by photocells
    • G01D5/36Forming the light into pulses
    • G01D5/38Forming the light into pulses by diffraction gratings

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a single-code-channel absolute coding method and a coder, which relate to the technical field of measuring instruments, and the method comprises the following steps: setting the total number N of the stripes of the condition parameter coding sequence, the type X of the coding bit and the number Y of the non-repetitive coding sequence, wherein X < Y < N; according to set N, X and Y, starting from randomly generating X-bit codes, sequentially generating coded sequences according to bits; when the length of the coded sequence is Y +1, judging whether the coded sequence consisting of the 1 st to the Y th coded bits is the same as the sequence consisting of the 2 nd to the Y +1 th coded bits, and if so, continuing to generate the code according to the bits; if not, judging whether the generated coding sequence is equal to N; if not, continuing to generate codes according to bits; if N is equal, outputting the coded sequence; and (3) carving black and white stripes among the code channels according to the coding sequence. The invention randomly generates the coding sequence according with the rule by means of computer force, optimizes the coding method and improves the response speed of the coder.

Description

Single code channel absolute coding method and coder
Technical Field
The invention relates to the technical field of measuring instruments, in particular to a single-code-channel absolute coding method and a single-code-channel absolute coding encoder.
Background
As an instrument for non-contact position or angle measurement by adopting photoelectric technology, an encoder converts physical quantities such as rotating speed, displacement, angle and the like in mechanical motion into digital electric pulses, and the digital electric pulses are combined with digital processing technology and computer technology, so that the instrument can realize quick, timely and accurate detection and control and has irreplaceable effect in the field of position or angle measurement.
The encoder based on single-track absolute coding is an emerging encoder, which represents one of the most advanced encoder development directions at present, and meets the requirement of encoder miniaturization. The coding method (single-track absolute coding method) of the encoder is to etch a specific regular code on a piece of grating and a circle of code track, all the measured positions or angles have unique codes corresponding to the codes, and the encoder has the characteristics of short grating manufacturing process flow, simple and stable measuring system structure.
However, in the existing single-code-channel absolute coding method, it is necessary to set the coding bit, the identification code, the position code, the primary code region, the secondary code region, the relationship between them, etc., the coding rule is very complex, the decoding process is relatively complex, and the reaction speed of the encoder is relatively slow under the same hardware condition.
Disclosure of Invention
In view of the above, the present invention provides a single-track absolute coding method and an encoder using the same, so as to optimize the coding method and improve the response speed of the encoder.
Therefore, the invention provides the following technical scheme:
in one aspect, the present invention provides a single code channel absolute coding method, where a single code channel is arranged on a coding grating, and the method includes:
setting condition parameters N, X and Y; wherein, N represents the total number of stripes of the coding sequence, X represents the type of the coding bit, Y represents the number of bits of the non-repetitive coding sequence, and X < Y < N;
according to the condition parameters N, X and Y, starting from randomly generating X-bit codes, sequentially generating coded sequences according to bits;
when the length of the coded sequence is Y +1, judging whether the coded sequence consisting of the 1 st to the Y th coded bits is the same as the sequence consisting of the 2 nd to the Y +1 th coded bits, and if so, continuing to generate the code according to the bits; if not, judging whether the length of the generated coding sequence is equal to N;
if not, continuing to generate codes according to bits; if N is equal, outputting the coded sequence;
and (3) engraving alternate black and white stripes on the code channel according to the coding sequence, wherein the white stripes are used as intervals, and the black stripes with different widths represent different coding bits.
Further, the method is performed using a computer software program.
Further, the width of the white stripe is fixed to a preset value.
Furthermore, the coding grating is a single-code-channel absolute grating ruler.
Furthermore, the coding grating is a single-code-channel absolute grating disk.
In another aspect, the present invention further provides an absolute position measurement encoder based on the single-track absolute coding method.
In another aspect, the present invention further provides an absolute angle measurement encoder based on the single-track absolute coding method.
The invention has the advantages and positive effects that: the present invention is different from other rule design methods, and utilizes computer calculation force to make computer randomly generate coding sequence conforming to rule only by setting necessary calculation condition so as to optimize coding method, its decoding method is relatively simple and can raise reaction speed of coder.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of an absolute coding sequence in an embodiment of the present invention;
fig. 2 is a flowchart of a single-track absolute position encoding method according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a single code channel absolute coding method which can be used on an absolute angle or displacement measuring encoder, and the angle measuring encoder can be applied to high-precision angle measuring devices or instruments, such as geodetic instruments such as an electronic theodolite, an electronic total station and the like.
In the encoder, a single encoding code channel is arranged on an encoding grating, and the encoding method provided by the invention is characterized in that the code channel is alternated with black and white stripes. In specific implementation, the encoding grating may be a single-code-channel absolute grating ruler or a single-code-channel absolute grating disk. As shown in fig. 1, white stripes with fixed widths are used as spaces on the encoding grating, and black stripes with different widths represent different encoding bits. Setting three necessary conditions of coding, coding bit type X, non-repeated coding sequence bit number Y and coding sequence stripe total number N, and generating a coding sequence meeting the requirements by writing a computer software program and utilizing the computing power of a computer.
As shown in fig. 2, it shows a flow chart of a single-track absolute position coding method in an embodiment of the present invention, which uses computer software to program and generate an absolute coding sequence according to the following steps:
s1, setting a condition parameter X, Y, N (X < Y < N);
wherein, N represents the total number of stripes of the coding sequence, namely the coding sequence consists of N codes in total; x represents the type X of the coded bits, namely the coded bits of different types have X types in common, namely the width of the black stripe has X types; y represents the number of non-repeated coding sequences, and the requirement is to take any Y position in the N coding sequence, and the coding sequence formed by the Y position is unique in the whole N coding sequence.
And S2, according to the set condition parameters X, Y, N, starting from randomly generating X-bit codes, sequentially generating coded sequences bit by bit.
S3, when the length of the code sequence is Y +1, starting to judge whether the code sequence composed of the 1 st to the Y th code bits is the same as the sequence composed of the 2 nd to the Y +1 th code bits, if so, returning to S2, and if not, executing S4.
S4, judging whether the length of the generated coding sequence is equal to N; if not, returning to S2 to continue generating code according to bit, if equal to N, outputting the code sequence.
The single-code-channel absolute position coding method in the embodiment of the invention is different from other rule design methods, and by means of computer computing power, a coding sequence conforming to a rule is randomly generated by a computer only by setting necessary computing conditions, so that the coding method is optimized, the decoding method is relatively simple, and the reaction speed of an encoder is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A single code channel absolute coding method is characterized in that a single code channel is arranged on a coding grating, and the method comprises the following steps:
setting condition parameters N, X and Y; wherein, N represents the total number of stripes of the coding sequence, X represents the type of the coding bit, Y represents the number of bits of the non-repetitive coding sequence, and X < Y < N;
according to the condition parameters N, X and Y, starting from randomly generating X-bit codes, sequentially generating coded sequences according to bits;
when the length of the coded sequence is Y +1, judging whether the coded sequence consisting of the 1 st to the Y th coded bits is the same as the sequence consisting of the 2 nd to the Y +1 th coded bits, and if so, continuing to generate the code according to the bits; if not, judging whether the length of the generated coding sequence is equal to N;
if not, continuing to generate codes according to bits; if N is equal, outputting the coded sequence;
and (3) engraving alternate black and white stripes on the code channel according to the coding sequence, wherein the white stripes are used as intervals, and the black stripes with different widths represent different coding bits.
2. The single track absolute coding method of claim 1, wherein the method is performed using a computer software program.
3. The single-track absolute coding method of claim 1, wherein the width of the white stripe is fixed to a preset value.
4. The single-track absolute coding method according to claim 1, wherein the coding grating is a single-track absolute grating scale.
5. The single track absolute coding method of claim 1, wherein the coding grating is a single track absolute grating disk.
6. An absolute position measurement encoder based on the single-track absolute coding method of any one of claims 1 to 5.
7. An absolute angle measurement encoder based on the single-track absolute coding method of any one of claims 1 to 5.
CN202111497452.1A 2021-12-09 2021-12-09 Single code channel absolute coding method and coder Pending CN114166254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111497452.1A CN114166254A (en) 2021-12-09 2021-12-09 Single code channel absolute coding method and coder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111497452.1A CN114166254A (en) 2021-12-09 2021-12-09 Single code channel absolute coding method and coder

Publications (1)

Publication Number Publication Date
CN114166254A true CN114166254A (en) 2022-03-11

Family

ID=80484745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111497452.1A Pending CN114166254A (en) 2021-12-09 2021-12-09 Single code channel absolute coding method and coder

Country Status (1)

Country Link
CN (1) CN114166254A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050088667A1 (en) * 2003-10-23 2005-04-28 Yeo Chiau W. Absolute position encoder requiring less than one encoding track per bit
CN101153808A (en) * 2007-09-19 2008-04-02 苏州一光仪器有限公司 Single-code track absolute angle coded circle and encoder using the same
CN101476902A (en) * 2009-01-13 2009-07-08 常州大地测绘科技有限公司 Single-code channel absolute position encoding method
CN102003976A (en) * 2010-08-27 2011-04-06 中国科学院长春光学精密机械与物理研究所 Single-code channel absolute position coding method, decoding method and measuring device
CN103759749A (en) * 2013-12-13 2014-04-30 合肥工业大学 Single-code-channel absolute position encoder
CN107063096A (en) * 2017-02-28 2017-08-18 苏州市睿光电科技有限公司 position coding method and device
US20170276522A1 (en) * 2016-03-25 2017-09-28 Mitutoyo Corporation Photoelectric encoder

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050088667A1 (en) * 2003-10-23 2005-04-28 Yeo Chiau W. Absolute position encoder requiring less than one encoding track per bit
CN101153808A (en) * 2007-09-19 2008-04-02 苏州一光仪器有限公司 Single-code track absolute angle coded circle and encoder using the same
CN101476902A (en) * 2009-01-13 2009-07-08 常州大地测绘科技有限公司 Single-code channel absolute position encoding method
CN102003976A (en) * 2010-08-27 2011-04-06 中国科学院长春光学精密机械与物理研究所 Single-code channel absolute position coding method, decoding method and measuring device
CN103759749A (en) * 2013-12-13 2014-04-30 合肥工业大学 Single-code-channel absolute position encoder
US20170276522A1 (en) * 2016-03-25 2017-09-28 Mitutoyo Corporation Photoelectric encoder
CN107063096A (en) * 2017-02-28 2017-08-18 苏州市睿光电科技有限公司 position coding method and device

Similar Documents

Publication Publication Date Title
CN108362208B (en) Pseudo-random code channel grating ruler and reading method thereof
CN101476902B (en) Single-code channel absolute position encoding method
CN109579711B (en) Absolute position displacement sensor grating absolute position encoding and decoding method
CN203964930U (en) A kind of optomagnetic scrambler
CN104713479A (en) Absolute type linear grating ruler and encoding method thereof
CN103557878A (en) Absolute grating ruler multi-track encoding method
CN108844556B (en) Absolute value encoder compensation parameter obtaining method and system
US6294910B1 (en) Digital position sensor for sensing position of a moving target
CN103148876A (en) Virtual incremental code channel construction method and decoding method for single-code-channel absolute linear-displacement grating ruler
CN104019834A (en) Single code channel absolute position coding method and reading measuring system
RU2434323C1 (en) Recursive code scale
CN114166254A (en) Single code channel absolute coding method and coder
CN107063096A (en) position coding method and device
CN108106647B (en) Code disc construction method of single-track absolute photoelectric encoder
JP2019168343A (en) Signal processing method for photoelectric encoder
CN111735482A (en) Absolute value encoder, bit reading method thereof and electronic equipment
CN114136351B (en) Single code channel absolute coding and decoding method with error detection and correction function
CN102062615B (en) Position coding method of single-code channel
CN111289015A (en) Multi-resolution absolute position measuring device
CN105973287B (en) A kind of more rail absolute grating ruler image encoding/decoding methods
CN104374325A (en) Single-code-channel absolute encoding and decoding method based on dual periodic sequences
CN107063316A (en) A kind of position coding method and device
CN109443402B (en) Code wheel and encoder
CN103178832B (en) A kind of number of turns recording method utilizing incremental encoder
RU2444126C1 (en) Recursive code scale

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination