CN100368777C - Electronic zeroing method for photoelectric rotary encoder - Google Patents

Electronic zeroing method for photoelectric rotary encoder Download PDF

Info

Publication number
CN100368777C
CN100368777C CNB2004100111547A CN200410011154A CN100368777C CN 100368777 C CN100368777 C CN 100368777C CN B2004100111547 A CNB2004100111547 A CN B2004100111547A CN 200410011154 A CN200410011154 A CN 200410011154A CN 100368777 C CN100368777 C CN 100368777C
Authority
CN
China
Prior art keywords
mnemonic
mouth
chip microcomputer
reset switch
interface
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.)
Expired - Fee Related
Application number
CNB2004100111547A
Other languages
Chinese (zh)
Other versions
CN1731096A (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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CNB2004100111547A priority Critical patent/CN100368777C/en
Publication of CN1731096A publication Critical patent/CN1731096A/en
Application granted granted Critical
Publication of CN100368777C publication Critical patent/CN100368777C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Optical Transform (AREA)

Abstract

The present invention relates to an electronic zeroing method of a photoelectric shaft angle encoder, particularly to an electronic zeroing method which belongs to the technical field of photoelectric measurement. The present invention solves the technical problem of providing an electronic zeroing method of a photoelectric shaft angle encoder. The present invention has the first step that an electronic zeroing circuit comprising a memory storing device, a reset switch, an upper pulling resistor and a single chip computer is designed. A chip selecting end CS, a clock interface SK, a writing-in end DI and an output end DO are arranged on the memory storing device. One end of the reset switch is grounded, and the other end is connected with the P1 opening of the single chip computer. The upper pulling resistor is arranged on the P1 opening line of the reset switch, and the other end of the upper pulling resistor is connected with a power supply of 5V. The signal chip computer is provided with input/output (I/O) interfaces of P1 to P5, the P1 interface is communicated with the resistance end of the reset switch, and the P2 interface, the P3 interface, the P4 interface and the P5 interface are respectively communicated with the chip selecting end CS, the clock interface SK, the writing-in end DI and the output end DO of the memory storing device. The present invention has the second step that the electronic zeroing circuit is controlled according to the designed electronic zeroing control program to obtain a zero clearing function. The method has the advantages of quick and convenient regulation and high accuracy.

Description

A kind of electronics adjusting zero method of optical electric axial angle encoder
One, technical field
The invention belongs to the electronics adjusting zero method that relates to a kind of optical electric axial angle encoder in the photoelectric measurement technical field.
Two, technical background
Optical electric axial angle encoder is the representational optoelectronic sensor of photoelectric measurement angular displacement, when the application optical electric axial angle encoder is measured, the code-disc null position that often exists optical electric axial angle encoder does not overlap with the rotating shaft null position of measuring system and exists angle to be worth phenomenon partially, thereby the angle displacement amount of the rotating shaft of the measuring system that has caused measuring is inaccurate, makes measuring accuracy meaningless.Therefore, when using the angular displacement of optical electric axial angle encoder measurement rotating shaft, must accomplish to make the code-disc zero-bit of optical electric axial angle encoder to align earlier with the zero-bit of measuring system rotating shaft.
Adopt the control of electronic circuit, can accomplish the zero-bit alignment of code-disc zero-bit and measuring system rotating shaft, and then the precision and the reliability of angle measurement have been guaranteed, the prior art the most approaching with the present invention is the utility model patent of Changchun Institute of Optics, Fine Mechanics and Physics, CAS, the patent No. is ZL96247089.9, name is called " a kind of electronics zeroing circuit of photoelectric encoder " as shown in Figure 1, comprise power supply 1, plucking number sign switch 2, pull-up resistor 3, counting circuit 4, code output terminal 5, counting circuit output terminal 6, digital processing system 7;
How many positions this circuit structure complexity, scrambler have, and just establish what plucking number sign switches and are equipped with what upper resistance, and manual operation is pretty troublesome, and is time-consuming, easily pulls out mistake, and zeroing is inconvenient.
Three, summary of the invention
In order to overcome the defective that prior art exists, it is efficient and convenient to the objective of the invention is to return to zero, and improves accuracy, and the spy sets up a kind of electronics adjusting zero method of optical electric axial angle encoder.
The technical problem to be solved in the present invention is: the electronics adjusting zero method that a kind of optical electric axial angle encoder is provided.The technical scheme of technical solution problem is: the electronics zeroing circuit of design as shown in Figure 2, comprises mnemonic 8, reset switch 9, pull-up resistor 10, single-chip microcomputer 11; On mnemonic 8, be provided with sheet choosing end CS, clock interface SK, write end DI, output terminal DO.CS is only effective when low level " 0 " for sheet choosing end, and mnemonic 8 is started working; Clock interface SK when single-chip microcomputer 11 carries out read-write operation, carries clock signal toward mnemonic 8; Write end DI, single-chip microcomputer 11 is when write operation, toward mnemonic 8 serial-shifts input data; Output terminal DO, single-chip microcomputer 11 give single-chip microcomputer 11 by mnemonic 8 output datas when mnemonic 8 is carried out read operation.One end ground connection of reset switch 9, the other end meets the P of single-chip microcomputer 11 1Mouthful, reset switch 9 is high ordinary telegram flat " 1 " when disconnecting, storage all is primary data in the mnemonic 8, reset switch 9 is low level " 0 " when connecting, the current data value of optical electric axial angle encoder is deposited in the mnemonic 8, and the primary data in the mnemonic 8 refreshed, at the P of reset switch 9 1Install pull-up resistor 10 additional, another termination 5V power supply of pull-up resistor 10 on the mouth line.It is P that single-chip microcomputer 11 is provided with input and output (I/O) interface 1Mouth, P 2Mouth, P 3Mouth, P 4Mouth, P 5Mouthful, P 1Mouth is connected P with the power end of reset switch 9 2Mouth holds CS to connect P with the sheet choosing of mnemonic 8 3Mouthful with the interface clock signal SK of mnemonic 8 connection, P 4Mouth holds DI to connect P with writing of mnemonic 8 5Mouthful with the output terminal DO of mnemonic 8 connection.
The execution electronics zeroing control program of design as shown in Figure 3, is used for controlling the electronics zeroing circuit, after program begins at first by the P of single-chip microcomputer 11 2Mouth starts mnemonic 8, P by sheet choosing end CS 3Mouth provides clock signal by the clock interface SK of mnemonic 8, this moment, single-chip microcomputer 11 read the angular deviation value in the mnemonic 8 one time by the output terminal DO serial-shift of mnemonic 8, if it deposits in for H in the address of EPROM program storage of single-chip microcomputer 11, read self current angle value of optical electric axial angle encoder then, if it is K, again to P 1The state of mouth is judged, works as P 1When mouth was high level " 1 ", expression did not need zero clearing, still uses original angular deviation value H, obtains corresponding mechanical zero angle value; Work as P 1When mouth was low level " ", expression needed zero clearing, and single-chip microcomputer 11 enters the subroutine of write operation, and CS starts mnemonic 8 by sheet choosing end, and by P 3Mouth provides clock signal by clock interface SK for mnemonic 8, at this moment the P of single-chip microcomputer 11 4Mouthful with the serial-shift mode self current angle value K of optical electric axial angle encoder is write in the mnemonic 8 by writing end DI, as new angular deviation value H, get back to master routine then, self the angle value K current with optical electric axial angle encoder deducts angular deviation value H, because the K=H of this moment, draw the angle value of corresponding mechanical zero, K-H=0 reaches the effect of zero clearing.
Good effect of the present invention: in this method, circuit structure is simple, and size is little, implements control by software program, and it is efficient and convenient to return to zero, and has improved speed, is difficult for makeing mistakes good stability, accuracy height.
Four, description of drawings
Fig. 1 is a zeroing circuit structural representation in the prior art, and Fig. 2 is the structural representation of the electronics zeroing circuit in the inventive method, and Fig. 3 is the control program process flow diagram of the inventive method.
Five, embodiment
The inventive method is by the structural design circuit of first step electronics zeroing circuit, again by the second control program control circuit that goes on foot, in electronics zeroing circuit structure, cause the angular deviation value to be lost when preventing unexpected power down or switch, mnemonic 8 is selected the 93C66 storer for use, single-chip microcomputer adopts 8751 single-chip microcomputers, and the resistance of pull-up resistor 10 adopts 1-10K, and earthing power supply voltage is 5V.

Claims (1)

1. the electronics adjusting zero method of an optical electric axial angle encoder, realize by the electronics zeroing circuit, it is characterized in that also comprising the execution zeroing control program of design, control electronics zeroing circuit, this electronics zeroing circuit comprises mnemonic (8), reset switch (9), pull-up resistor (10), single-chip microcomputer (11); On mnemonic (8), be provided with sheet choosing end CS, clock interface SK, write end DI, output terminal DO, CS is only effective when low level " 0 " for sheet choosing end, and mnemonic (8) is started working; Clock interface SK when single-chip microcomputer (11) carries out read-write operation, carries clock signal toward mnemonic (8); Write end DI, single-chip microcomputer (11) is when write operation, toward mnemonic (8) serial-shift input data; Output terminal DO, single-chip microcomputer (11) give single-chip microcomputer (11) by mnemonic (8) output data when mnemonic (8) is carried out read operation, an end ground connection of reset switch (9), and the other end meets the P of single-chip microcomputer (11) 1Mouthful, reset switch (9) is high ordinary telegram flat " 1 " when disconnecting, to storage in the mnemonic (8) all is primary data, reset switch (9) is low level " 0 " when connecting, the current data value of optical electric axial angle encoder is deposited in the mnemonic (8), and the primary data in the mnemonic (8) refreshed the P in reset switch (9) 1Install pull-up resistor (10) additional on the mouth line, another termination 5V power supply of pull-up resistor (10), it is P that single-chip microcomputer (11) is provided with input and output (I/O) interface 1Mouth, P 2Mouth, P 3Mouth, P 4Mouth, P 5Mouthful, P 1Mouth is connected P with the power end of reset switch (9) 2Mouth holds CS to connect P with the sheet choosing of mnemonic (8) 3Mouthful with the clock interface SK of mnemonic (8) connection, P 4Mouth holds DI to connect P with writing of mnemonic (8) 5Mouthful with the output terminal DO of mnemonic (8) connection; The execution electronics zeroing control program of design is controlled the electronics zeroing circuit, after program begins at first by the P of single-chip microcomputer (11) 2Mouth starts mnemonic (8), P by sheet choosing end CS 3Mouth provides clock signal by the clock interface SK of mnemonic (8), the output terminal DO serial-shift of single-chip microcomputer this moment (11) by mnemonic (8) reads the angular deviation value in the mnemonic (8), if it deposits in for H in the address of EPROM program storage of single-chip microcomputer (11), read self current angle value of optical electric axial angle encoder then, if it is K, again to P 1The state of mouth is judged, works as P 1When mouth was high level " 1 ", expression did not need zero clearing, still uses original angular deviation value H, obtains corresponding mechanical zero angle value; Work as P 1When mouth was low level " 0 ", expression needed zero clearing, and single-chip microcomputer 11 enters the subroutine of write operation, and CS starts mnemonic (8) by sheet choosing end, and by P 3Mouth is that mnemonic (8) provides clock signal by clock interface SK, the P of single-chip microcomputer this moment (11) 4Mouthful with the serial-shift mode self current angle value K of optical electric axial angle encoder is write in the mnemonic (8) by writing end DI, as new angular deviation value H, get back to master routine then, self the angle value K current with optical electric axial angle encoder deducts angular deviation value H, because the K=H of this moment, draw the angle value of corresponding mechanical zero, K-H=0 reaches the effect of zero clearing.
CNB2004100111547A 2004-10-15 2004-10-15 Electronic zeroing method for photoelectric rotary encoder Expired - Fee Related CN100368777C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100111547A CN100368777C (en) 2004-10-15 2004-10-15 Electronic zeroing method for photoelectric rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100111547A CN100368777C (en) 2004-10-15 2004-10-15 Electronic zeroing method for photoelectric rotary encoder

Publications (2)

Publication Number Publication Date
CN1731096A CN1731096A (en) 2006-02-08
CN100368777C true CN100368777C (en) 2008-02-13

Family

ID=35963493

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100111547A Expired - Fee Related CN100368777C (en) 2004-10-15 2004-10-15 Electronic zeroing method for photoelectric rotary encoder

Country Status (1)

Country Link
CN (1) CN100368777C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900580B (en) * 2009-12-11 2012-08-15 扬州市海力精密机械制造有限公司 Encoder zero-crossing detecting device and detecting method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694581B (en) * 2009-09-28 2011-07-20 昆山华恒工程技术中心有限公司 Self-zeroing method of robot
CN102087119B (en) * 2010-03-18 2012-09-05 上海海事大学 Remote zero setting circuit and method for resistance-type strain measurement
CN102494711B (en) * 2011-12-12 2013-09-25 中国科学院长春光学精密机械与物理研究所 Absolute angular displacement measuring device for photoelectric encoder
CN107356890A (en) * 2017-06-19 2017-11-17 宁波中车时代传感技术有限公司 The adjustable proframmable linear Hall sensor chip of benchmark

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001201367A (en) * 2000-01-19 2001-07-27 Yaskawa Electric Corp Pulse hysterersis compensating method and its device for jitter removing circuit and recording medium recorded with its operating procedure
US20030014495A1 (en) * 2001-07-10 2003-01-16 Jogen Pathak System, method, and apparatus for preventing data packet overflow at node in wireless packet data services network
JP2003090741A (en) * 2001-09-20 2003-03-28 Koizumi Sokki Seisakusho:Kk Rotary encoder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001201367A (en) * 2000-01-19 2001-07-27 Yaskawa Electric Corp Pulse hysterersis compensating method and its device for jitter removing circuit and recording medium recorded with its operating procedure
US20030014495A1 (en) * 2001-07-10 2003-01-16 Jogen Pathak System, method, and apparatus for preventing data packet overflow at node in wireless packet data services network
JP2003090741A (en) * 2001-09-20 2003-03-28 Koizumi Sokki Seisakusho:Kk Rotary encoder

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101900580B (en) * 2009-12-11 2012-08-15 扬州市海力精密机械制造有限公司 Encoder zero-crossing detecting device and detecting method

Also Published As

Publication number Publication date
CN1731096A (en) 2006-02-08

Similar Documents

Publication Publication Date Title
CN104614593B (en) One kind is based on self-alignment high-precision intelligent instrument system and its application process
CN101882015A (en) Controller based on composite MEMS (Micro-electromechanical System) sensor and gesture control keying method thereof
CN208937948U (en) A kind of industrial automatic control plate
CN100368777C (en) Electronic zeroing method for photoelectric rotary encoder
CN108664439A (en) A kind of analogue quantity output circuit device of number isolation
CN100533060C (en) Device for implementing rough north-seeking of gyroscope using electronic compass
CN111026620A (en) Data visualization Processing system and method based on Processing
CN103901886A (en) Universal CAN node for distributed agricultural machine navigation control system
EP3745239A1 (en) Magnetic roller device and rotation information calculating method thereof
CN203811144U (en) Angle measuring device based on incremental photoelectric encoder
JP7557088B2 (en) Method and apparatus for dynamic sampling of analog sensors - Patents.com
CN204740457U (en) Serial signal collection system
CN105629204A (en) Monostable triggering radar servo system
CN104359394A (en) High-precision digital angle measurer
CN215865092U (en) STM 32-based sample positioning and sample suction amount control equipment
CN203672963U (en) Digital voltmeter based on singlechip
CN206532118U (en) A kind of S type force-sensing sensors of data signal output
CN201159653Y (en) Automatic checking instrument of vehicle electronic instrument
CN204027554U (en) For measuring the device of the height of tree
CN109286448A (en) A kind of generation of mark frequency signal and test macro and working method based on USB
CN220040998U (en) Circuit of upper computer through USB cable RESET main control board
CN2224420Y (en) PH/potential intelligent analysis and test instrument
CN110108311B (en) Modifiable pointer type rotary indicator
CN202975766U (en) Data acquisition system of high-precision portable data acquisition instrument
CN203054596U (en) Universal CAN node for distributed agricultural-machine navigation control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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