CN108088376A - Grating scale, photoelectric encoder, distance measurement method and distance-measuring device - Google Patents
Grating scale, photoelectric encoder, distance measurement method and distance-measuring device Download PDFInfo
- Publication number
- CN108088376A CN108088376A CN201810018734.0A CN201810018734A CN108088376A CN 108088376 A CN108088376 A CN 108088376A CN 201810018734 A CN201810018734 A CN 201810018734A CN 108088376 A CN108088376 A CN 108088376A
- Authority
- CN
- China
- Prior art keywords
- coding
- grating
- code channel
- transform
- fixed sequence
- 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.)
- Granted
Links
- 238000000691 measurement method Methods 0.000 title claims abstract description 13
- 238000001514 detection method Methods 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims description 18
- 238000006073 displacement reaction Methods 0.000 claims description 9
- 238000003860 storage Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012795 verification Methods 0.000 claims description 2
- 238000004364 calculation method Methods 0.000 claims 1
- 238000005259 measurement Methods 0.000 abstract description 23
- 230000003287 optical effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 16
- 238000006243 chemical reaction Methods 0.000 description 7
- 108091026890 Coding region Proteins 0.000 description 6
- 238000013461 design Methods 0.000 description 4
- 230000033001 locomotion Effects 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005693 optoelectronics Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000005622 photoelectricity Effects 0.000 description 1
- 239000011148 porous material Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 229910001220 stainless steel Inorganic materials 0.000 description 1
- 239000010935 stainless steel Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optical Transform (AREA)
Abstract
The present invention relates to a kind of grating scale, photoelectric encoder, distance measurement method and distance-measuring device, wherein, grating scale includes at least row's fixed sequence program coding grating code channel, at least row's transform sequence coding grating code channel;Fixed sequence program coding grating code channel, transform sequence encode grating code channel along the length direction of grating scale, with predetermined interval parallel arrangement on grating scale;Fixed sequence program coding grating code channel includes each grating hole arrange along the length direction of fixed sequence program coding grating code channel, equally spaced from each other;Transform sequence coding grating code channel include it is arranging along the length direction of transform sequence coding grating code channel, to each other away from random each grating hole, using grating scale of the present invention that can accurately measure the distance that detection device is moved compared with grating scale, so as to improve use optical grating ruler measurement of the present invention apart from when measurement accuracy.
Description
Technical field
The present invention relates to Industry Control and technical field of automation, more particularly to a kind of grating scale, photoelectric encoder, away from
From measuring method and distance-measuring device.
Background technology
Photoelectric encoder is a kind of the geometry of machinery displacement on output shaft to be converted into pulse or number by opto-electronic conversion
The sensor of word amount, at present, most photoelectric encoders are most to include grating disc and photoelectric detection system, and grating disc is
Several slots are partially opened on the plectane of certain diameter, when grating disc and motor coaxial rotating, via hair
The detection device detection of the electronic components such as optical diode composition exports several pulse signals, defeated by calculating photoelectric encoder per second
The rotating speed of current motor can just be reflected by going out the number of pulse.
In the industrial production, grating disc and displacement detecting especially are required with higher in high-accuracy mechanical equipment field
Therefore precision and resolution ratio, also just propose higher requirement to the quality of grating disc and displacement sensor, in the process of realization
In, inventor has found that at least there are the following problems in traditional technology:The grating used due to current most photoelectric encoders
Disk, and traditional grating disc or grating scale precision is low.
The content of the invention
Based on this, it is necessary to the problem of cannot meeting required precision for traditional raster disk and grating scale, provide a kind of light
Grid ruler, photoelectric encoder, distance measurement method and distance-measuring device.
To achieve these goals, on the one hand, an embodiment of the present invention provides a kind of grating scales, are fixed including an at least row
Sequential coding grating code channel, at least row's transform sequence coding grating code channel;
Fixed sequence program coding grating code channel, transform sequence encode grating code channel along the length direction of grating scale, between default
Every parallel arrangement on grating scale;
Fixed sequence program coding grating code channel includes arranging along the length direction of fixed sequence program coding grating code channel, each other etc.
Each grating hole of spacing;
Transform sequence coding grating code channel includes arranging along the length direction of transform sequence coding grating code channel, to each other
Away from random each grating hole.
In one of the embodiments, the thickness of grating scale is 0.2mm to 0.6mm.
On the other hand, the embodiment of the present invention provides a kind of photoelectric encoder, including grating scale as described above and connection
The detection device of terminal device;
Detection device is used for when being moved along grating scale, based on fixed sequence program coding grating code channel, transform sequence encoded light
Grid code channel identifies location coding of the detection device compared with grating scale;
Location coding includes corresponding fixed sequence program coding and each transform sequence on each fixed sequence program coding grating code channel
Encode corresponding transform sequence coding on grating code channel.
In one of the embodiments, detection device include photoelectric switching circuit and respectively connect photoelectric switching circuit,
The encoder of terminal device.
In one of the embodiments, photoelectric switching circuit is phototriode, photoelectric diode or photocell.
On the other hand, the embodiment of the present invention additionally provides a kind of range measurement side based on photoelectric encoder as described above
Method comprises the following steps:
Corresponding fixed sequence program coding and each on each fixed sequence program that receiving detection device is read coding grating code channel
Corresponding transform sequence coding on transform sequence coding grating code channel;
Verify each fixed sequence program coding whether consistent with corresponding default fixed sequence program coding and each transform sequence coding and
Whether corresponding default transform sequence coding is consistent;
When each fixed sequence program coding is consistent with corresponding default fixed sequence program coding and each transform sequence encode with it is corresponding
When default transform sequence encodes consistent, encode to obtain detection device compared with light according to each fixed sequence program coding and each transform sequence
The displacement distance of grid ruler.
In one of the embodiments, verify each fixed sequence program coding with corresponding default fixed sequence program coding and respectively
Whether transform sequence is encoded encodes with corresponding default transform sequence after consistent step, further includes:
When each fixed sequence program coding and inconsistent corresponding default fixed sequence program coding and each transform sequence encode with it is right
It is corresponding on each fixed sequence program coding grating code channel that receiving detection device is read again when the transform sequence coding answered is inconsistent
Fixed sequence program coding and each transform sequence coding grating code channel on corresponding transform sequence coding.
On the other hand, the embodiment of the present invention additionally provides a kind of distance-measuring device, including:
Coded sequence receiving unit encodes corresponding on grating code channel for each fixed sequence program that receiving detection device is read
Fixed sequence program coding and each transform sequence coding grating code channel on corresponding transform sequence coding;
Authentication unit, for verifying whether each fixed sequence program coding and corresponding default fixed sequence program coding are consistent and each
Whether transform sequence encodes consistent with corresponding default transform sequence coding;
Absolute position acquiring unit, for work as each fixed sequence program coding with corresponding default fixed sequence program coding unanimously and
When each transform sequence coding encodes consistent with corresponding default transform sequence, compiled according to each fixed sequence program coding and each transform sequence
Code obtains displacement distance of the detection device compared with grating scale.
On the other hand, the embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in
On memory and the computer program that can run on a processor, processor realize the step of method as described above when performing program
Suddenly.
On the other hand, the embodiment of the present invention additionally provides a kind of computer readable storage medium, is stored thereon with computer
The step of program, which realizes method as described above when being executed by processor.
A technical solution in above-mentioned technical proposal has the following advantages that and advantageous effect:
Include at least row's fixed sequence program coding grating code channel and at least row's transform sequence coding grating code on grating scale
Road, fixed sequence program are encoded and encoded on grating code channel comprising fixed sequence program, and transform sequence encodes grating code channel and includes transform sequence volume
Code, when using the grating scale of various embodiments of the present invention, fixed sequence program coding and conversion on fixed sequence program coding grating code channel
Transform sequence coding on sequential coding grating code channel is read simultaneously, and the fixed sequence program coding and transform sequence only read is compiled
Code has encoded respectively with the fixed sequence program coding and transform sequence included on the grating scale of the present invention that prestores in computer equipment
It is complete to coincide, just can confirm that use grating scale of the present invention be can accurately measure detection device compared with grating scale move away from
From, so as to improve use optical grating ruler measurement of the present invention apart from when measurement accuracy.
Description of the drawings
By being more particularly described for attached the preferred embodiment of the present invention shown in figure, above and other mesh of the invention
, feature and advantage will become more fully apparent.Identical reference numeral indicates identical part in whole attached drawings, and does not carve
Meaning draws attached drawing by actual size equal proportion scaling, it is preferred that emphasis is shows the purport of the present invention.
Fig. 1 is the structure diagram of grating scale embodiment 1 of the present invention;
Fig. 2 is the structure diagram of grating scale of the present invention in one embodiment;
Fig. 3 is the structure diagram of grating scale of the present invention in another embodiment;
Fig. 4 is the structure diagram of photoelectric encoder embodiment 1 of the present invention;
The electrical block diagram of detection device in Fig. 5 photoelectric encoders of the present invention;
Fig. 6 is the step flow chart of distance measurement method embodiment 1 of the present invention;
Fig. 7 is the structure diagram of distance-measuring device embodiment 1 of the present invention;
Fig. 8 is the structure diagram of computer equipment of the present invention.
Specific embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In attached drawing
Give the preferred embodiment of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes
The embodiment of description.On the contrary, the purpose for providing these embodiments is made to the disclosure more thorough and comprehensive.
It should be noted that when an element is considered as " connection " another element, it can be directly to separately
One element simultaneously in combination is integrated or may be simultaneously present centering elements.Term as used herein " interval setting ",
" adjacent ", " being randomly provided " and similar statement are for illustrative purposes only.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The normally understood meaning of technical staff is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases
The arbitrary and all combination of the Listed Items of pass.
In order to solve the problems, such as that traditional raster disk and grating scale cannot meet required precision, grating scale of the present invention provides one
Kind grating scale embodiment 1, Fig. 1 is the structure diagram of grating scale embodiment 1 of the present invention, as shown in Figure 1, consolidating including an at least row
Sequencing row coding grating code channel, at least row's transform sequence coding grating code channel;
Fixed sequence program coding grating code channel, transform sequence encode grating code channel along the length direction of grating scale, between default
Every parallel arrangement on grating scale;
Fixed sequence program coding grating code channel includes arranging along the length direction of fixed sequence program coding grating code channel, each other etc.
Each grating hole of spacing;
Transform sequence coding grating code channel includes arranging along the length direction of transform sequence coding grating code channel, to each other
Away from random each grating hole.
Specifically, compiled on grating scale comprising at least row's fixed sequence program coding grating code channel and at least row's transform sequence
Code grating code channel, it is preferred that grating scale includes row's fixed sequence program coding grating code channel and two rows of transform sequences encode grating code
Road, wherein, the grating hole on fixed sequence program coding grating code channel is arranged according to the rule of absolute encoding, transform sequence encoded light
The rule arrangement that incrementally formula encodes of the grating hole of grid code channel, during actual coding manufacture, grating scale is with one
Regular length is set as a coding section (according to the demand of actual design), and the coding rule of entire grating scale can be used two into
System, octal system, the decimal system, hexadecimal, the coding of fixed sequence program coding grating code channel, that is, every section of coding section be it is changeless,
For example, the fixed sequence program coding included on fixed sequence program coding grating code channel, can be used 1010101010101010101010/
(" 1 " represents the perforate on grating scale to 1010101010101010101010 ... formula fixed sequence programs coding in sequence, and " 0 " represents
The not perforate on grating scale), transform sequence coding grating code channel, that is, every section of coding is variable, for example, transform sequence encoded light
The transform sequence coding included on grid code channel, can be used 1010101010101010100100/
1010101010101010011000 ... or 1010101010101010100100/1010101010101001010100 ...
The coding variable etc. every section, above two transform sequence coding function only as enumerating example effect, and transform sequence coding is every section
Alterable is encoded, and coded sequence is impossible to exhaust.
(fixed sequence program is encoded between grating code channel and transform sequence coding grating code channel, fixed sequence between code channel and code channel
Between row coding grating code channel and fixed sequence program coding grating code channel, transform sequence coding grating code channel and transform sequence encoded light
Between grid code channel) it is to be arranged at intervals, specific spacing distance is designed according to actual requirement so that grating scale of the present invention can fit
Answer different usage scenarios.
The pattern in the grating hole on grating scale can be rectangle circular or with rounded corners, preferably according to actual design requirement
, the pattern in grating hole is rectangle with rounded corners, in the manufacturing of grating scale, stainless steel (material of manufacture grating scale it
One) rectangle with rounded corners is processed on to be easier, the size in grating hole can be also changed according to actual design requirement, for example,
The length in grating hole is 16mm (millimeter), and width is 8mm (millimeter), and above-mentioned size is only the one of example of grating pore size.
The distance that the length of grating scale can measure according to actual needs is set, and length range can be 0 to 500m (rice), into
One step, the length of grating scale is also greater than 500m according to actual demand so that grating scale of the present invention is capable of providing can be big
Measurement range meets the needs of long range measurements.
Show it should be noted that the structure of the grating scale shown in Fig. 1 is a kind of structure that grating scale of the present invention provides
Example, just to illustrate that regular coding sequence grating code channel and transition coding sequence grating code channel specifically set feelings on grating scale
Quantity, the size in grating hole and the installation position of condition, regular coding sequence grating code channel and transition coding sequence grating code channel,
The size of grating scale can all be needed according to actual design and set, and Fig. 2 is the structure of grating scale of the present invention in one embodiment
Schematic diagram, as shown in Fig. 2, giving grating scale of the present invention structure diagram in one embodiment, Fig. 3 is grating scale of the present invention
Structure diagram in another embodiment, as shown in figure 3, giving grating scale of the present invention structure in another embodiment
Schematic diagram.
Further, the thickness of grating scale is 0.2mm to 0.6mm.
Specifically, the preferred thickness of grating scale of the present invention is 0.2mm to 0.6mm, under this thickness, convenient for grating scale
Processing and manufacturing, and convenient for storage.
Each embodiment of grating scale of the present invention includes at least row's fixed sequence program on grating scale and encodes grating code channel and at least one
Transform sequence coding grating code channel is arranged, is encoded on fixed sequence program coding grating code channel comprising fixed sequence program, transform sequence encoded light
Grid code channel is encoded comprising transform sequence, when using grating scale of the present invention, the fixed sequence program on fixed sequence program coding grating code channel
Transform sequence coding on coding and transform sequence coding grating code channel is read simultaneously, the fixed sequence program that only reads coding with
The transform sequence coding fixed sequence program coding and transform sequence with being included on the grating scale of the present invention that prestores in terminal device respectively
Coding fits like a glove, and just confirming can accurately measure what detection device was moved compared with grating scale when using grating scale of the present invention
Distance improves the measurement accuracy in measurement distance using grating scale of the present invention, and due to the length energy of grating scale of the present invention
It is enough designed to large scale, therefore meets the needs of long range measurements.
Photoelectric encoder of the present invention additionally provides a kind of photoelectric encoder embodiment 1, and Fig. 4 is real for photoelectric encoder of the present invention
The structure diagram of example 1 is applied, as shown in figure 4, being set including the grating scale 410 described in various embodiments of the present invention and connection terminal
Standby detection device 420;
Detection device 420 is used for when being moved along grating scale 410, based on fixed sequence program coding grating code channel, transform sequence
Grating code channel is encoded, identifies detection device compared with the location coding on grating scale;
Location coding includes corresponding fixed sequence program coding and each transform sequence on each fixed sequence program coding grating code channel
Encode corresponding transform sequence coding on grating code channel.
Specifically, detection device is arranged on the one side of grating scale, and opposite side is provided with light source, when detection device is to quasi-optical
Gate hole, through the grating hole irradiation on grating scale on detection means, detection device senses light to light, defeated to terminal device
Go out high level signal, " 1 " in terminal device records first encoding sequence, when detection device alignment does not open up the position in grating hole
It puts, detection device exports low level signal to terminal device, and " 0 " in terminal device records first encoding sequence is having light source
Under irradiation, detection device compared with grating scale movement i.e. can be read fixed sequence program coding grating code channel on fixed sequence program coding and
Transform sequence coding on transform sequence coding grating code channel.
It should be noted that detection device is moved compared with grating scale, can there are two types of form, when, grating scale is fixed
On specific track, moved by driving machine band motion detection device;Second is that detection device is fixed on specific position, driving machine
Grating scale movement is driven, test device reads fixed sequence program coding grating code channel all on grating scale and all conversion simultaneously
All coded sequences that sequential coding grating code channel is included, when the coded sequence of all readings can be with being stored in advance in end
The coded sequence included on grating scale in end equipment matches.
In each embodiment of photoelectric encoder of the present invention, detection device reads all code sequences included on grating scale simultaneously
Row, and the coded sequence of reading is transferred to terminal device, terminal device compare the coded sequence and in advance of test device reading
It is stored in the coded sequence included on the grating scale in terminal device, the quantity of code channel is more on grating scale, photoelectricity of the present invention
The precision of encoder range measurement is higher.
In a specific embodiment, the electrical block diagram of the detection device in Fig. 5 photoelectric encoders of the present invention,
As shown in figure 5, detection device includes photoelectric switching circuit 510 and connects photoelectric switching circuit 510, terminal device 520 respectively
Encoder 520.
Further, photoelectric switching circuit 510 is phototriode, photoelectric diode or photocell.
Specifically, photoelectric switching circuit is used to the optical signal received being converted into electric signal, i.e., when opto-electronic conversion electricity
When road receives light, high level signal is exported;When photoelectric switching circuit is not irradiated by light, low level signal is exported, into
One step, photoelectric switching circuit can be phototriode, photoelectric diode or photocell.
Encoder for receiving photoelectric switching circuit output high level signal and low level signal, and by high level signal and
Low level signal is converted into coded sequence.
In each embodiment of photoelectric encoder of the present invention, photoelectric encoder is simple in structure, and optical grating ruler measurement scope is big, without adjusting
Zero, without decision circuitry, and because power-off is again started up photoelectric encoder, photoelectric encoder does not return to origin reading code again, carries
The high precision of photoelectric encoder range measurement of the present invention.
Distance measurement method of the present invention additionally provide a kind of photoelectric encoder based on described in various embodiments of the present invention away from
From measuring method embodiment 1, Fig. 6 be distance measurement method embodiment 1 of the present invention step flow chart, as shown in fig. 6, including with
Lower step:
Step S610, each fixed sequence program that receiving detection device is read encode corresponding fixed sequence program on grating code channel and compile
Corresponding transform sequence coding on code and each transform sequence coding grating code channel;
Step S620 verifies whether each fixed sequence program coding is consistent with corresponding default fixed sequence program coding and respectively converts
Whether sequential coding and corresponding default transform sequence coding are consistent;
Step S630 is compiled when each fixed sequence program coding encodes consistent and each transform sequence with corresponding default fixed sequence program
When code encodes consistent with corresponding default transform sequence, encoded to obtain detection dress according to each fixed sequence program coding and each transform sequence
Put the displacement distance compared with grating scale.
Further, verify that each fixed sequence program coding is compiled with corresponding default fixed sequence program coding and each transform sequence
Whether code and corresponding default transform sequence are encoded after consistent step, are further included:
When each fixed sequence program coding and inconsistent corresponding default fixed sequence program coding and each transform sequence encode with it is right
It is corresponding on each fixed sequence program coding grating code channel that receiving detection device is read again when the transform sequence coding answered is inconsistent
Fixed sequence program coding and each transform sequence coding grating code channel on corresponding transform sequence coding.
Specifically, detection device reads the fixed sequence program coding on fixed sequence program coding grating code channel and reads and becomes simultaneously
The transform sequence coding on sequential coding grating code channel is changed, and the fixed sequence program coding and transform sequence coding transmission of reading are given
Terminal device, the regular coding sequence and transition coding sequence included in advance on terminal device storage grating scale, terminal device
The fixed sequence program coding and transform sequence coding that verification detection device is read and the fixed sequence program coding and conversion sequence stored in advance
Whether row coding is consistent, if unanimously, terminal device can be compiled according to the fixed sequence program coding and transform sequence that detection device is read
Code judges real time position of the detection device compared with grating scale, you can accurate measurement detection device compared with grating scale move away from
From, if inconsistent, illustrate that detection device movement sends error or reading mistake, terminal device send warning message immediately, with
Remeasure user.
Each embodiment of distance measurement method of the present invention, by verifying the fixation sequence on detection device while the grating scale read
Row coding and transform sequence coding are with being stored in advance in the fixed sequence program included on the grating scale in terminal device coding and conversion
Whether sequential coding is consistent, it is necessary to which serious coding is more, and the precision of range measurement is higher, so as to distance measurement method of the present invention
Range measurement is carried out based on odd encoder, greatly increases the precision of range measurement.
Distance-measuring device of the present invention additionally provides a kind of distance-measuring device embodiment 1, and Fig. 7 is range measurement of the present invention
The structure diagram of device embodiment 1, as shown in fig. 7, comprises:
Coded sequence receiving unit 710 encodes grating code channel for each fixed sequence program that receiving detection device is read
Corresponding transform sequence coding on corresponding fixed sequence program coding and each transform sequence coding grating code channel;
Authentication unit 720, for verify each fixed sequence program coding and corresponding default fixed sequence program coding whether unanimously and
Whether each transform sequence coding and corresponding default transform sequence coding are consistent;
Absolute position acquiring unit 730, for work as each fixed sequence program coding with corresponding default fixed sequence program coding unanimously,
And each transform sequence is encoded when encoding consistent with corresponding default transform sequence, according to each fixed sequence program coding and each transform sequence
Coding obtains displacement distance of the detection device compared with grating scale.
It should be noted that the function of Yi Shang modules corresponds respectively to each step in embodiment of the method 1, herein
It is no longer repeated.
Each embodiment of distance-measuring device of the present invention, by verifying the fixation sequence on detection device while the grating scale read
Row coding and transform sequence coding are with being stored in advance in the fixed sequence program included on the grating scale in terminal device coding and conversion
Whether sequential coding is consistent, it is necessary to which serious coding is more, and the precision of range measurement is higher, so as to distance measurement method of the present invention
Range measurement is carried out based on odd encoder, greatly increases the precision of range measurement.
A kind of computer equipment of the present invention, Fig. 8 are the structure diagram of computer equipment of the present invention, as shown in figure 8, including
Memory 812, processor 814 and the computer program that can be run on memory 812 and on processor 814 is stored in, handled
Device 814 realizes the step in each method embodiment of the present invention when performing program.
The computer equipment, when processor performs program, by realizing as described in each method embodiment of the present invention
Any one distance measurement method carries out range measurement so as to be based on odd encoder, greatly increases the essence of range measurement
Degree.
In addition, one of ordinary skill in the art will appreciate that realize above-described embodiment method in all or part of flow,
It is that relevant hardware can be instructed to complete by computer program, the program can be stored in a non-volatile calculating
In machine read/write memory medium, in the embodiment of the present invention, which can be stored in the storage medium of computer system, and by
At least one processor in the computer system performs, with realize include as described in each method embodiment of the present invention it is each away from
The flow of embodiment from measuring method.
A kind of computer readable storage medium of the present invention, is stored thereon with computer program, which is executed by processor
Step in Shi Shixian each method embodiments of the present invention.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, program can be stored in a kind of computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein storage medium can be magnetic disc, CD,
Read-only memory (Read-Only Memory:) or random access memory (Random Access Memory ROM:
RAM) etc..
The computer storage media, the computer program of storage include such as each method embodiment of the present invention by realizing
In flow, can realize that corresponding fixed sequence program is compiled on each fixed sequence program coding grating code channel that receiving detection device reads
Corresponding transform sequence coding on code and each transform sequence coding grating code channel;Verify each fixed sequence program coding with it is corresponding
Whether default fixed sequence program coding and each transform sequence coding and corresponding default transform sequence coding are consistent;When each fixation
Sequential coding and corresponding default fixed sequence program coding and each transform sequence coding and corresponding default transform sequence coding one
During cause, encode to obtain real time position of the detection device compared with grating scale according to each fixed sequence program coding and each transform sequence.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that come for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of grating scale, which is characterized in that including at least row's fixed sequence program coding grating code channel, at least row's transform sequence
Encode grating code channel;
Fixed sequence program coding grating code channel, the transform sequence encode grating code channel along the grating scale length direction,
With predetermined interval parallel arrangement on the grating scale;
Fixed sequence program coding grating code channel include it is arranging along the length direction of fixed sequence program coding grating code channel, that
This equidistant each grating hole;
Transform sequence coding grating code channel include it is arranging along the length direction of transform sequence coding grating code channel, that
The random each grating hole of this spacing.
2. grating scale according to claim 1, which is characterized in that the thickness of the grating scale is 0.2mm to 0.6mm.
3. a kind of photoelectric encoder, which is characterized in that including the grating scale described in claim 1 or 2 and connection terminal device
Detection device;
The detection device is used for when being moved along the grating scale, based on fixed sequence program coding grating code channel, the change
Sequential coding grating code channel is changed, identifies location coding of the detection device compared with the grating scale;
The location coding includes on each fixed sequence program coding grating code channel corresponding fixed sequence program coding and each described
Corresponding transform sequence coding on transform sequence coding grating code channel.
4. photoelectric encoder according to claim 3, which is characterized in that the detection device include photoelectric switching circuit with
And the photoelectric switching circuit, the encoder of the terminal device are connected respectively.
5. photoelectric encoder according to claim 4, which is characterized in that the photoelectric switching circuit for phototriode,
Photoelectric diode or photocell.
6. a kind of distance measurement method of the photoelectric encoder based on described in claim 3 to 5 any one, which is characterized in that
Comprise the following steps:
Receive corresponding fixed sequence program coding on each fixed sequence program coding grating code channel that the detection device reads, with
And corresponding transform sequence coding on each transform sequence coding grating code channel;
Verify that each fixed sequence program encodes whether consistent with corresponding default fixed sequence program coding and each transform sequence and compiles
Whether code and corresponding default transform sequence coding are consistent;
When each fixed sequence program coding is consistent with corresponding default fixed sequence program coding and each transform sequence encode with it is right
When the default transform sequence coding answered is consistent, according to each fixed sequence program coding and each transform sequence encode to obtain
Detection device compared with the grating scale displacement distance.
7. a kind of distance measurement method based on described in claim 6, which is characterized in that each fixed sequence program coding of verification with
Whether corresponding default fixed sequence program coding and each transform sequence coding and corresponding default transform sequence coding are consistent
After step, further include:
When each fixed sequence program coding and inconsistent corresponding default fixed sequence program coding and each transform sequence coding
When encoding inconsistent with corresponding transform sequence, each fixed sequence program encoded light that the detection device is read again is received
Corresponding fixed sequence program coding and each transform sequence encode corresponding transform sequence on grating code channel and compile on grid code channel
Code.
8. a kind of distance-measuring device, which is characterized in that including:
Coded sequence receiving unit, for receiving each fixed sequence program coding grating code channel that the detection device is read
Corresponding transform sequence coding on corresponding fixed sequence program coding and each transform sequence coding grating code channel;
Authentication unit, for verifying whether each fixed sequence program coding and corresponding default fixed sequence program coding are consistent and each
Whether the transform sequence coding and corresponding default transform sequence coding are consistent;
Absolute position acquiring unit, for work as each fixed sequence program coding with corresponding default fixed sequence program coding unanimously and
When each transform sequence coding encodes consistent with corresponding default transform sequence, according to each fixed sequence program coding and each institute
Transform sequence is stated to encode to obtain displacement distance of the detection device compared with the grating scale.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the step of processor realizes claim 6 or 7 the method when performing described program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The step of claim 6 or 7 the method are realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810018734.0A CN108088376B (en) | 2018-01-09 | 2018-01-09 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810018734.0A CN108088376B (en) | 2018-01-09 | 2018-01-09 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108088376A true CN108088376A (en) | 2018-05-29 |
CN108088376B CN108088376B (en) | 2024-07-02 |
Family
ID=62182812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810018734.0A Active CN108088376B (en) | 2018-01-09 | 2018-01-09 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108088376B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108088376B (en) * | 2018-01-09 | 2024-07-02 | 广州广日电气设备有限公司 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2120019A2 (en) * | 2008-05-13 | 2009-11-18 | Mitutoyo Corporation | Absolute position length measurement type encoder |
JP2012173168A (en) * | 2011-02-22 | 2012-09-10 | Iai:Kk | Encoder and actuator |
CN202501826U (en) * | 2012-03-21 | 2012-10-24 | 珠海市怡信测量科技有限公司 | Linear grating ruler |
CN103528612A (en) * | 2013-10-26 | 2014-01-22 | 连云港杰瑞电子有限公司 | Method for increasing resolution ratio of absolute rotary encoder |
CN203712418U (en) * | 2014-01-15 | 2014-07-16 | 珠海市怡信测量科技有限公司 | Absolute grating scale for numerical control machine tool |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108088376B (en) * | 2018-01-09 | 2024-07-02 | 广州广日电气设备有限公司 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
-
2018
- 2018-01-09 CN CN201810018734.0A patent/CN108088376B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2120019A2 (en) * | 2008-05-13 | 2009-11-18 | Mitutoyo Corporation | Absolute position length measurement type encoder |
JP2012173168A (en) * | 2011-02-22 | 2012-09-10 | Iai:Kk | Encoder and actuator |
CN202501826U (en) * | 2012-03-21 | 2012-10-24 | 珠海市怡信测量科技有限公司 | Linear grating ruler |
CN103528612A (en) * | 2013-10-26 | 2014-01-22 | 连云港杰瑞电子有限公司 | Method for increasing resolution ratio of absolute rotary encoder |
CN203712418U (en) * | 2014-01-15 | 2014-07-16 | 珠海市怡信测量科技有限公司 | Absolute grating scale for numerical control machine tool |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108088376B (en) * | 2018-01-09 | 2024-07-02 | 广州广日电气设备有限公司 | Grating scale, photoelectric encoder, distance measuring method and distance measuring device |
Also Published As
Publication number | Publication date |
---|---|
CN108088376B (en) | 2024-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5563408A (en) | Absolute encoder having absolute pattern graduations and incremental pattern graduations with phase control | |
US4701615A (en) | Measuring scale coding system for length or angle measuring instruments | |
US7571552B2 (en) | Scale reading apparatus | |
CN101021426B (en) | Position measuring arrangement | |
CN101290220B (en) | Position measuring device | |
US20190056247A1 (en) | Position encoder | |
JP6022220B2 (en) | Linear position measurement system | |
JP4447875B2 (en) | How to measure absolute position | |
CN101393020B (en) | Position measuring device | |
JPS644129B2 (en) | ||
JPH043810B2 (en) | ||
CN103323039A (en) | Encoder | |
CN108362206A (en) | A kind of non-contact displacement transducer based on capacitive grating | |
EP0039921B1 (en) | Encoder device and method of use of it | |
US4645925A (en) | Reference mark coding system | |
US3891143A (en) | Encoding apparatus having an improved code permitting error reading and error detection | |
CN108088376A (en) | Grating scale, photoelectric encoder, distance measurement method and distance-measuring device | |
CN204405509U (en) | Digital output bit moves sensor-type high-frequency reciprocating tester | |
CN110044395A (en) | Optical encoding sensing device | |
Lin et al. | Novel method for determining absolute position information from magnetic patterns | |
CN207832209U (en) | Grating scale and photoelectric encoder | |
CN113063450B (en) | Method, device and equipment for adjusting position of sensor in encoder and storage medium | |
TWM541004U (en) | Programmable linear displacement sensing device | |
CN208432264U (en) | The calibrating installation of magnetic encoder | |
CN204301802U (en) | A kind of intellectual water meter opto-electrical direct reader |
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 | ||
GR01 | Patent grant |