CN1036261A - The new method of segmentation of microcomputer pulse signals and sensing - Google Patents

The new method of segmentation of microcomputer pulse signals and sensing Download PDF

Info

Publication number
CN1036261A
CN1036261A CN 88101889 CN88101889A CN1036261A CN 1036261 A CN1036261 A CN 1036261A CN 88101889 CN88101889 CN 88101889 CN 88101889 A CN88101889 A CN 88101889A CN 1036261 A CN1036261 A CN 1036261A
Authority
CN
China
Prior art keywords
microcomputer
sensing
time
segmentation
chi
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.)
Withdrawn
Application number
CN 88101889
Other languages
Chinese (zh)
Other versions
CN1017555B (en
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.)
Chongqing University
Original Assignee
Chongqing University
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 Chongqing University filed Critical Chongqing University
Priority to CN 88101889 priority Critical patent/CN1017555B/en
Publication of CN1036261A publication Critical patent/CN1036261A/en
Publication of CN1017555B publication Critical patent/CN1017555B/en
Expired legal-status Critical Current

Links

Abstract

The present invention is equipped with corresponding software with microcomputer internal clock pulse and CTC chip, constitute " time ruler " by even calibration of time, use " space scale " (grating, magnetic grid, inductosyn, laser etc.) of general measure instrument that the former is demarcated again, and the former segment conversely to the latter.Be aided with simple sensing circuit again and also can finish sensing simultaneously.Digital circuit in the traditional measurement instrument is simplified greatly, and need not be used high-quality sensor, cost is reduced, reliability increases, and can finish static and non-at the uniform velocity kinetic measurement, and is convenient, flexible.The subsidiary microcomputer that is used for data processing of modern measuring instrument is used more fully.

Description

The new method of segmentation of microcomputer pulse signals and sensing
The invention belongs to the method for segmentation of pulse signals in geometric sense (displacement, the angle etc.) precision measurement and sensing.
The state of the art close with the present invention mainly contains two aspects:
(1), traditional technical comparative maturity has also been made practical surveying instrument.As Chengdu Tool Research Institute's latest generation " CZ-450 type gear integrated error tester ", be characterized in adopting integrated circuit component or resolution element, form the respective digital circuit, pulse signals is segmented and sensing.This method hardware circuit complexity changes the segmentation number and will change circuit, and many costs height of link and segmentation number are difficult to improve.
(2), domestic several pieces of having delivered are about the article of computer subdivision technology, still are in the investigation stage at present, do not see that product comes out.(inquire about through University Of Chongqing's " international online retrieval ", the discovery patent registration more approaching with the present invention) characteristics of these computer subdivision methods are: the sine wave before the paired pulses shaping carries out " the survey width of cloth ", be converted into angle then, become length or angle by equivalent conversion again.The precision of this method is directly relevant with the sine wave signal quality that scale (as grating) produces.Waveform distortion, analog to digital conversion, DC level drift, nonorthogonality etc. all can be brought bigger error.If require the segmentation number bigger, it is just very little that adjacent 2 amplitude differs, and more is difficult to correct difference.The speed of scale motion can cause the variation of amplitude, therefore also must keep the scale movement velocity permanent steady.The quality that will further improve scale on the one hand has very big difficulty with the quality of improving sinusoidal signal on technology, analog to digital conversion still needs many hardware circuit supports on the other hand, especially can cause time lag, is difficult to adapt to dynamic test.All these all are present this technology still is difficult to promote development after investigation for many years basic reasons.
The object of the present invention is to provide a kind of circuit very simple, do not require the use high-quality signal, quite height and conversion are flexible for the segmentation number, and cost is low, the computer subdivision easy to utilize and the new method of sensing.
Technical solution of the present invention is: the new method of a kind of microcomputer pulse signals segmentation and sensing, with surveyors' staff (grating, magnetic grid, inductosyn, laser etc.) by the even calibration in space, microcomputer, sensing circuit and corresponding microcomputer software are finished to geometric sense (displacement, corner etc.) segmentation and sensing of pulse signals when carrying out dynamic and static precision measurement, its special character is: with time clock and CTC chip and the corresponding software in the microcomputer, constitute auxiliary scale-" the time chi " by even calibration of time.Finish in measuring process the space chi to the demarcation of time chi with dedicated microcomputer software, and the time chi is to the segmentation of space chi.Utilize special sensing circuit and interface circuit to make microcomputer inquiry sensing circuit state before each counting add 1 or subtract 1 with decision simultaneously, finish sensing with differentiation surveyors' staff direction of motion.The sensing circuit is made up of integral form monostable trigger, R-S bistable trigger and triple gate, with this Peripheral Interface as microcomputer.Constitute the address decoder of this interface in addition by Sheffer stroke gate, phase inverter.
Finishing segmentation with the present invention compares with existing method with sensing and has:
(1), circuit is very simple, only needs several general non-conjunction integrated packages when doing sensing, do not set up hardware when doing segmentation fully, only the computing machine that is used for data processing that modern measuring instrument itself is attached is done software development and is got final product, thereby with low cost.Because the circuit link is few, stability, reliability also can improve.
(2), applicability is strong, the offset of sinusoidal signal quality is done requirement hardly, sensor (scale) quality requirements is reduced nature also can reduce cost.
(3), because time clock very high frequency comparatively speaking, the segmentation number can design quite highly, and resolution is improved, and helps improving the surveying instrument precision.And flexible and convenient to use, available software changes the segmentation number and need not change circuit.
(4), to static measurement, non-at the uniform velocity kinetic measurement all is suitable for, method is easy.
The sine that Fig. 1 produces for grating sensor involves square wave after the shaping.
Fig. 2 is the time clock behind square wave and the frequency division.
Fig. 3 is the computing machine master routine.
Fig. 4 is a computing machine interrupt service routine 1.
Fig. 5 is a computing machine interrupt service routine 2.
Fig. 6 is a computing machine interrupt service routine 3.
Fig. 7 is sensing circuit and microcomputer interface circuit.
Shown in Figure 1, survey long or angle measurement, what obtain by grating (other is just the same as reasons such as magnetic grids) is a string sine wave, shaping becomes pulse square wave again.These ripples evenly distribute by the space, and the number that need only count efferent echo can become the length or the angle of corresponding representative by equivalent conversion.But counter can only be counted integer.For example measure the ab section, counter can only obtain 2 pulses, and decimal just can't be read, so need segmentation.The method of conventional digital circuits is with hardware circuit a sine wave to be become n sine wave, reach the n segmentation, existing computer subdivision technology, it is the amplitude of measuring b point place sine wave, judge it is which picture limit again, be defined as for example 60 °, then ab section space just should be 60/360=2.17 pulse equivalency of 2+, reaches the segmentation purpose.
The present invention adopts following method to read this section decimal and promptly finishes segmentation, as shown in Figure 2, with each grating pulse P, triggers a string pulse P ' that evenly sends by the time in measuring process.Such as needs 100 segmentations, just between 2 P, send out 100 P ', microcomputer is not only to the P counting, also to P ' counting.Before the measurement sampled signal arrives, every P, the content ∑ of P ' counter TP ' is just washed out, again since 0 counting, and P ' counter content ∑ P ' when only keeping the sampled signal arrival at last, still above example is an example, if number gets ∑ P=2 when sampled signal b sends, ∑ P '=17, then the overall pulse number should be 2+ 17/100=2.17.Can be summed up as:
Overall pulse number=∑ P+ (∑ P ')/(segmentation number)
Promptly used two rulers now: by the grating pulse P of the even calibration in space with by the time pulse P ' of even calibration of time, the former is used to count integer, and the latter is used to count decimal.If the grating chi moves (rotation) constant airspeed, ∑ TP '=segmentation number is fixed number, and then the space-time scale exchanges by determining that relation is of equal value.
Time clock with microcomputer itself, utilize in four passages of microcomputer CTC chip again, make it to work in " regularly " state, just can obtain the P ' of needed any frequency, just the space between two P is segmented arbitrarily, like this need only be on program change a little and just can change the segmentation number, very convenient.
If require the space-time scale to exchange, just require grating mark chi movement velocity constant by a constant ratio is of equal value.General fine measuring instrument adopts precision stepper motor can accomplish this point, and the design of the present invention on software decided on conditions such as concrete average velocity, scale pitch even can make grating scale translational speed change 10%~30%() also can guarantee enough measuring accuracy.Specifically, utilize the quick computing of microcomputer exactly, preceding at each meter ∑ P ', calculate " space right " that should possess at this instantaneous each P ' (time ruler scale), promptly constantly time ruler is carried out " demarcation " with the space scale.Still above example is an example, establishes that speed is irregular at this moment, then ∑ TP ' is not a fixed number, at this moment we no longer with segmentation several 100 as fixing denominator, (only it being used as a parameter corresponding to average velocity) and with the arrive ∑ in last cycle of each sampled signal TP ' is as denominator.Send when P ' is equal, if last cycle ∑ TP ' is little, and (such as 94) promptly moved the time few (instantaneous velocity is fast) that the scale pitch is used, 1/ (∑ at that time TP') just big, the space right that each P ' has in the ∑ P ' that sampling number gets is just big.Should be 2+ 17/94=2.18 as this routine overall pulse number can be summed up as:
Overall pulse number=∑ P+ (∑ P ')/(∑ TP ')
Even right and wrong dynamic test at the uniform velocity like this, the space-time scale also can exchange exactly.
The sensing circuit of forming by integral form monostable trigger and R-S bistable trigger, utilize the two-way square wave of 90 ° of grating mutual deviations, bistable trigger puts 1 when making the scale positive movement, put 0 in the time of oppositely, when this peripheral hardware mouth assigned address appears on the microcomputer address bus, make the triple gate gating by address decoder, computer search this moment, flip-flop states added 1 or subtract 1 with the decision counter, got final product sensing.
The embodiment of the invention: the computer programme flow diagram of a kind of " hourglass worm error meter " (being similar to the principle of gear integrated error tester) (Fig. 3~Fig. 6) and sensing interface circuit (Fig. 7).Wherein used two cover interrupt service routines to be used to count P, wherein the pulse P of grating I 1As sampled signal, the P of grating II 2Be measured signal, clock pulse signal P ' application was interrupted P after interrupt service routine 3 utilized frequency division 2Segment.The duplicate sensing circuit of two covers carries out sensing to grating I and II respectively.
One, master routine (see figure 3)
(1) CTCO, CTC1, CTC2 initialization
The P counter that sends when (2) B-reverses
The C-∑ TP ' memory
D-sampled point counter
The E-decimal memory of sampling last time
The H-integer counter
L-∑ P ' counter and decimal (∑ P ')/(∑ TP ') memory
(3) sampled data storage portions first address
(4) interrupt mode 2
(5) open interruption
Two, interrupt service routine 1(sees Fig. 4), CTCO works in count status.
Do (6) 250 sampled points measure not?
Does (7) standard axle (grating I) just change? increase 1 if reverse B,
(8) effectively just enter and change? if not then B subtracts 1.
(9) calculate decimal (∑ P ')/(∑ TP ') sends into L after.
(10) deduct the decimal of sampling last time,
(11) decimal is sent into the data-storing district
(12) integer is sent into the data-storing district
(13) this sampling decimal is preserved,
(14) the storage portions pointer moves down,
(15) counter is clear 0, and D subtracts 1.
Three, interrupt service routine 2(sees Fig. 5), CTC1 works in count status.
Does (16) measured axis just change or reverses?
(17) ∑ TP ' preservation if apply for interruption just as denominator immediately following CTCO, otherwise is washed out next time.(P 2Frequency>P 1Frequency)
Four, interrupt service routine 3, and CTC2 works in definition status.(see figure 6)
Five, sensing circuit and microcomputer interface circuit (see figure 7)
I-standard axle grating I, 90 ° of two-way square-wave pulses of output mutual deviation.
II-measured axis grating II, 90 ° of two-way square-wave pulses of output mutual deviation,
P AO-A mouth, address 7FH,
P BO-B mouth, address BFH,
D 0, D 1-Microcomputer Data bus,
RD, IORQ-system controlled by computer bus,
A 0A 7-microcomputer address bus,
The CLOCK-time clock.

Claims (1)

1, the new method of a kind of microcomputer pulse signals segmentation and sensing: with surveyors' staff (grating by the even calibration in space, magnetic grid, inductosyn, laser etc.), microcomputer, the sensing circuit, interface circuit and corresponding microcomputer software are finished to geometric sense (displacement, angle etc.) move, the segmentation and the sensing of pulse signals during the static state precision measurement, it is characterized in that with time clock and CTC chip and corresponding software in the microcomputer, constitute auxiliary criteria chi--" time chi " by even calibration of time, finish in measuring process the space chi to the demarcation of time chi with dedicated microcomputer software, and the time chi is to the segmentation of space chi; The sensing circuit is made up of integral form monostable trigger, R-S bistable trigger and triple gate, and is a Peripheral Interface of microcomputer; Constitute the address decoder of this interface by Sheffer stroke gate, phase inverter; Microcomputer is inquired about the sensing circuit state and is added 1 or subtract 1 with decision before each counting, finish sensing.
CN 88101889 1988-03-31 1988-03-31 Method for pulse signal fine dividing and direction identifying by means of microcomputer Expired CN1017555B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 88101889 CN1017555B (en) 1988-03-31 1988-03-31 Method for pulse signal fine dividing and direction identifying by means of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 88101889 CN1017555B (en) 1988-03-31 1988-03-31 Method for pulse signal fine dividing and direction identifying by means of microcomputer

Publications (2)

Publication Number Publication Date
CN1036261A true CN1036261A (en) 1989-10-11
CN1017555B CN1017555B (en) 1992-07-22

Family

ID=4831928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 88101889 Expired CN1017555B (en) 1988-03-31 1988-03-31 Method for pulse signal fine dividing and direction identifying by means of microcomputer

Country Status (1)

Country Link
CN (1) CN1017555B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102679888A (en) * 2012-06-01 2012-09-19 沈阳工业大学 Moire fringe high-power subdivision method based on less spatial points and equipment
WO2019205847A1 (en) * 2018-04-23 2019-10-31 桂林市晶瑞传感技术有限公司 Displacement measuring system for sensor device and displacement measuring method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102679888A (en) * 2012-06-01 2012-09-19 沈阳工业大学 Moire fringe high-power subdivision method based on less spatial points and equipment
CN102679888B (en) * 2012-06-01 2016-02-17 沈阳工业大学 Based on Moire fringe high power divided method and the equipment of a small amount of spatial point
WO2019205847A1 (en) * 2018-04-23 2019-10-31 桂林市晶瑞传感技术有限公司 Displacement measuring system for sensor device and displacement measuring method
GB2589730A (en) * 2018-04-23 2021-06-09 Guilin Gemred Sensor Tech Co Ltd Displacement measuring system for sensor device and displacement measuring method
GB2589730B (en) * 2018-04-23 2022-07-13 Guilin Gemred Sensor Tech Co Ltd Displacement measuring system for sensor device and displacement measuring method

Also Published As

Publication number Publication date
CN1017555B (en) 1992-07-22

Similar Documents

Publication Publication Date Title
CN107607037B (en) Magnetoelectric encoder calibration method based on arc tangent trans-interval tabulation method
CN109945819B (en) Method for measuring position of rotor of permanent magnet synchronous motor
WO2021114419A1 (en) Calibration method, apparatus and device for rotary magnetoelectric encoder
CN108155910B (en) High-speed sine and cosine encoder decoding method based on FPGA
CN107843227B (en) Method for improving precision of encoder based on calibration technology
CN1884979A (en) Motion parameter measurer
CN206773000U (en) Twin shaft speed position turntable angular speed calibrating installation
CN110081837A (en) A method of by detecting shafting shaking and eccentric error using angle measurement Circular gratings and reading head
CN109764897A (en) A kind of sine and cosine encoder high-speed signal acquisition and divided method and system
CN101408409A (en) High precision digital type linear displacement transducer
CN1036261A (en) The new method of segmentation of microcomputer pulse signals and sensing
US6401052B1 (en) Determination method for a position signal and/or for correction values for measurement signals
JPH06313719A (en) Rotary encoder
CN113280762B (en) Circular grating electronic coaxial debugging method
CN101936710B (en) Curve displacement transducer system and application thereof
CN101476871A (en) Major-minor phase discriminator based subdivision method of dual-frequency laser interferometer
CN1022200C (en) Cam Shaft computer-aided measuring method and device
CN1948915A (en) Absolute type angular displacement sensor
CN208937320U (en) Laser beam pitch error detection device
CN2132972Y (en) Microcomputer sifting and errors compensating raster digital display
CN1074831C (en) Method and device for real-time correction of working/measuring error by multiple grating
CN112729100A (en) Rotary variable angle sensor
CN102305590B (en) Curve displacement sensor system and applications thereof
CN112556734B (en) Moire fringe subdivision method for photoelectric encoder
CN1064933A (en) Computer subdivision and error compensation grating digital display instrument

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C13 Decision
GR02 Examined patent application
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee