CN103076036B - A kind of incremental encoder disconnection detection method and system - Google Patents

A kind of incremental encoder disconnection detection method and system Download PDF

Info

Publication number
CN103076036B
CN103076036B CN201210593512.4A CN201210593512A CN103076036B CN 103076036 B CN103076036 B CN 103076036B CN 201210593512 A CN201210593512 A CN 201210593512A CN 103076036 B CN103076036 B CN 103076036B
Authority
CN
China
Prior art keywords
phases
phase
coding
signals
incremental encoder
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.)
Active
Application number
CN201210593512.4A
Other languages
Chinese (zh)
Other versions
CN103076036A (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.)
Shenzhen Joins Day Intelligence And Makes Equipment Ltd Co
Original Assignee
Shenzhen Joins Day Intelligence And Makes Equipment Ltd Co
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 Shenzhen Joins Day Intelligence And Makes Equipment Ltd Co filed Critical Shenzhen Joins Day Intelligence And Makes Equipment Ltd Co
Priority to CN201210593512.4A priority Critical patent/CN103076036B/en
Publication of CN103076036A publication Critical patent/CN103076036A/en
Application granted granted Critical
Publication of CN103076036B publication Critical patent/CN103076036B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of incremental encoder disconnection detection method and system, including:A phases and B phase differential signals are respectively converted into A phases and B phase single-ended signals;The sequential of A phases and B phase single-ended signals is encoded;Continuously there is identical number of times in the coding that counting period is set, and sets it to errors number;When the speed that the errors number is more than set threshold value and motor is not zero, fault-signal is exported.A kind of incremental encoder disconnection detection method of the embodiment of the present invention and system, compared with prior art, the embodiment of the present invention is encoded to A phases and B phase sequential, judge whether encoder breaks by detecting coding, Comparison between detecting methods are accurate, and encoder can be detected when motor is rotated and reverse, can fast and accurately judge whether a certain single-ended signal of encoder has disconnection fault in any situation and any state.

Description

A kind of incremental encoder disconnection detection method and system
【Technical field】
The present invention relates to a kind of incremental encoder, it is specifically designed a kind of incremental encoder disconnection detection method and is System.
【Background technology】
Prior art in motion control and Electrified Transmission field, because incremental encoder is durable, shock resistance, be difficult by Interference, the advantages of precision is high, it is used widely.It is particularly applicable in the drive control of servomotor, but if increment type A certain of encoder broken string, then driver cannot correct drive control servomotor.If can not quickly and accurately enter Row alarm, situations such as may damaging servo-driver or motor driving occur can cause serious consequence.
【The content of the invention】
In order to solve the problem of a certain broken string of incremental encoder in the prior art is unable to Rapid Alarm, the present invention is implemented Example provides a kind of incremental encoder disconnection detection method and system.
The embodiment of the present invention solves above-mentioned technical problem and adopts the technical scheme that a kind of incremental encoder broken string inspection Survey method, including:
A phases and B phase differential signals are respectively converted into A phases and B phase single-ended signals;
The sequential of A phases and B phase single-ended signals is encoded;
Continuously there is identical number of times in the coding that counting period is set, and sets it to errors number;
When the speed that the errors number is more than set threshold value and motor is not zero, fault-signal is exported.
It is described to include A phases and the sequential of B phase single-ended signals progress coding step:A phases sequential and B phase sequential are organized in one Rise and form coding A0B0、A1B1To AnBn
Continuously there is identical number of times in the coding that the counting period is set, and sets it to errors number step bag Include:When spaced coding is differed, errors number is started from scratch.
The incremental encoder disconnection detection method also includes:Z phase differential signals are respectively converted into the single-ended letter of Z phases Number;
The umber of pulse that record encoder is often enclosed;
4 times of frequency counters of real-time A phases or B phases are triggered to start counting up;
When not receiving Z phase signals high level and real-time A phases or the frequency multiplication counter records number of B phases 4 are more than and often enclose pulse Fault-signal is exported when several 1.5 times.
The real-time 4 times of frequency counters of triggering, which start counting up step, to be included:When receiving Z phase signals high level hour counters Reset.
The present invention also provides a kind of incremental encoder broken wire detection system, including:
Differential signal converting unit, for A phases and B phase differential signals to be respectively converted into A phases and B phase single-ended signals;
AB phase coding units, for the sequential of A phases and B phase single-ended signals to be encoded;
AB phases encode judging unit, for judging whether spaced coding continuously occurs;
AB phases mistake coding count unit, encodes judging unit for AB phases and judges that the counting period coding of setting continuously goes out The number of times of its appearance is calculated now, and sets it to errors number;
AB phase fault judging units, for judging when the errors number is more than the speed of set threshold value and motor When being not zero, fault-signal is exported.
Institute AB phases coding unit weaves together A phases sequential and B phase sequential to form coding A0B0、A1B1To AnBn
The AB phases encode judging unit and judge that spaced coding when differing, sends a signal to AB phase mistakes Coding count unit, the wrong coding count unit of the AB phases is reset.
Z phase differential signals are respectively converted into Z phase single-ended signals by the differential signal converting unit, in addition to:Encoder Pulse counter, for recording the umber of pulse that encoder is often enclosed;4 times of frequency counters of A phases or B phases, for recording A phases or B in real time The umber of pulse of phase;Z phase signals judging units, for judging whether to receive Z phase signals high level;Z phase fault judging units, are used for Fault-signal is exported when not receiving Z phase signals high level and 4 times of frequency counters are more than 1.5 times of often circle umber of pulse.
The Z phase signals judging unit judges to receive Z phase signals high level, sends a signal to A phases or the frequency multiplication of B phases 4 is counted Device, the frequency multiplication counter O reset of A phases or B phases 4.
A kind of incremental encoder disconnection detection method of the embodiment of the present invention and system, compared with prior art, the present invention Embodiment is encoded to A phases and B phase sequential, judges whether encoder breaks by detecting coding, detection method ratio It is relatively accurate, and encoder can be detected when motor is rotated and reverse, in any situation and any state It can fast and accurately judge whether a certain single-ended signal of encoder has disconnection fault.
【Brief description of the drawings】
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing:
Fig. 1 is the flow chart of a kind of incremental encoder A phases of the embodiment of the present invention and B phase wire break detection methods;
Fig. 2 is a kind of incremental encoder A phases of the embodiment of the present invention and B phase time diagrams;
Fig. 3 is a kind of flow chart of incremental encoder Z phase wire break detection methods of the embodiment of the present invention;
Fig. 4 is a kind of incremental encoder A phases of the embodiment of the present invention and B phase broken wire detection system block diagrams;
Fig. 5 is a kind of incremental encoder Z phases broken wire detection system block diagram of the embodiment of the present invention.
【Embodiment】
Below in conjunction with the accompanying drawing of the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, the scope of protection of the invention is belonged to.
A kind of incremental encoder disconnection detection method of embodiment one, the embodiment of the present invention, as shown in figure 1, including:
S11:A phases and B phase differential signals are respectively converted into A phases and B phase single-ended signals;
Specifically by differential signal A+, A- is converted to A phase single-ended signals, by differential signal B+, and B- is converted to the single-ended letter of B phases Number.
S12:The sequential of A phases and B phase single-ended signals is encoded;
It is specific to weave together A phases sequential and B phase sequential to form coding A0B0、A1B1To AnBn
S13:Continuously there is identical number of times in the coding that counting period is set, and sets it to errors number;
A phases sequential and B phase sequential are specifically woven together into the code storage to be formed in a register, the counting period is set Coding continuously there is identical number of times, such as work as A0B0And A2B2Errors number is designated as 1 time when identical.
For example:As shown in Fig. 2 the sequential of AB signals is 00-01-11-10 when rotating forward, it is assumed that when AB signals wherein single line When disconnection, signal can be changed into often being 1 or being often 0, and the signal of output can be caused to be changed into 00-01-00-01 and continuously become Change, can occur that servomotor is started with maximum speed according to the signal of feedback for digital control system if not handling Rotate, it may appear that break lathe.When the state twice of assay intervals is identical, we are designated as occurring errors number once.
When detection method of the embodiment of the present invention is equally applicable to reversion.
S14:Judge whether the errors number is more than set threshold value;
It is preferred that, the number of times of the threshold value is set as 2500 times, i.e., be considered when continuously there are 2500 mistakes Encoder feedback signal occurs in that sequential is abnormal.
S15:When the speed that the errors number is more than set threshold value and motor is not zero, into step S16;
Specifically, when relative to motor zero-speed, because system has PID regulations, so in the presence of when zero-speed is shaken Also easily occur mistake sequential, therefore in this program consider zero-speed when will not walk about, it is necessary to when zero-speed screen Cover this detection.
S17:In the step S14 when spaced coding is differed, errors number is started from scratch.
S16:Export fault-signal.
As shown in figure 3, the incremental encoder disconnection detection method also includes:
S21:Z phase differential signals are respectively converted into Z phase single-ended signals;
Specifically by differential signal Z+, Z- is converted to Z phase single-ended signals
S22:The umber of pulse that record encoder is often enclosed;
S23:4 times of frequency counters of real-time A phases or B phases are triggered to start counting up;
S24:Judge whether to receive Z phase signals high level;
S25:When judging not receive Z phase signals high level and real-time A phases or the frequency multiplication counter records number of B phases 4 are more than Often enter step S26 during circle 1.5 times of umber of pulse;
S26:Export fault-signal.
S27:When judgement receives the clearing of Z phase signals high level hour counter in step S24.
Because each circle just has a Z signal for incremental encoder, so when the counting of quadruple in detection In be also not received by the high level of Z signals when count value is to 1 circle half, it is believed that be not receive Z signals, now break Servo is opened to enable and display alarm.
A kind of incremental encoder disconnection detection method of the embodiment of the present invention, compared with prior art, the embodiment of the present invention A phases and B phase sequential are encoded, judge whether encoder breaks by detecting coding, Comparison between detecting methods are accurate, And encoder can be detected when motor is rotated and reverse, can be quick in any situation and any state Accurately judge whether a certain single-ended signal of encoder has disconnection fault.
Embodiment two, the present invention also provide a kind of incremental encoder broken wire detection system, as shown in Figure 4 and Figure 5, bag Include:
Differential signal converting unit, for A phases and B phase differential signals to be respectively converted into A phases and B phase single-ended signals;
AB phase coding units, for the sequential of A phases and B phase single-ended signals to be encoded;
AB phases encode judging unit, for judging whether spaced coding continuously occurs;
AB phases mistake coding count unit, encodes judging unit for AB phases and judges that the counting period coding of setting continuously goes out The number of times of its appearance is calculated now, and sets it to errors number;
AB phase fault judging units, for judging when the errors number is more than the speed of set threshold value and motor When being not zero, fault-signal is exported.
Institute AB phases coding unit weaves together A phases sequential and B phase sequential to form coding A0B0、A1B1To AnBn
The AB phases encode judging unit and judge that spaced coding when differing, sends a signal to AB phase mistakes Coding count unit, the wrong coding count unit of the AB phases is reset.
Z phase differential signals are respectively converted into Z phase single-ended signals by the differential signal converting unit, in addition to:Encoder Pulse counter, for recording the umber of pulse that encoder is often enclosed;4 times of frequency counters of A phases or B phases, for recording A phases or B in real time The umber of pulse of phase;Z phase signals judging units, for judging whether to receive Z phase signals high level;Z phase fault judging units, are used for Fault-signal is exported when not receiving Z phase signals high level and 4 times of frequency counters are more than 1.5 times of often circle umber of pulse.
The Z phase signals judging unit judges to receive Z phase signals high level, sends a signal to A phases or the frequency multiplication of B phases 4 is counted Device, the frequency multiplication counter O reset of A phases or B phases 4.
A kind of incremental encoder broken wire detection system of the embodiment of the present invention, compared with prior art, the embodiment of the present invention A phases and B phase sequential are encoded, judge whether encoder breaks by detecting coding, Comparison between detecting methods are accurate, And encoder can be detected when motor is rotated and reverse, can be quick in any situation and any state Accurately judge whether a certain single-ended signal of encoder has disconnection fault.
In the above-described embodiments, exemplary description only has been carried out to the embodiment of the present invention, but those skilled in the art exist The embodiment of the present invention can be entered in the case where not departing from the spirit and scope of the embodiment of the present invention after reading present patent application The various modifications of row.

Claims (10)

1. a kind of incremental encoder disconnection detection method, it is characterised in that including:
A phases and B phase differential signals are respectively converted into A phases and B phase single-ended signals;
The sequential of A phases and B phase single-ended signals is encoded;
Continuously there is identical number of times in the coding that counting period is set, and sets it to errors number;
When the speed that the errors number is more than set threshold value and motor is not zero, fault-signal is exported.
2. incremental encoder disconnection detection method according to claim 1, it is characterised in that described that A phases is single with B phases The sequential of end signal, which carries out coding step, to be included:A phases sequential and B phase sequential are woven together to form coding A0B0、A1B1To AnBn
3. incremental encoder disconnection detection method according to claim 1, it is characterised in that the counting period is set Coding continuously there is identical number of times, and set it to errors number step and include:When spaced coding occurs not When identical, errors number is started from scratch.
4. incremental encoder disconnection detection method according to claim 1, it is characterised in that also include:By Z phase difference Signal is respectively converted into Z phase single-ended signals;
The umber of pulse that record encoder is often enclosed;
4 times of frequency counters of real-time A phases or B phases are triggered to start counting up;
When not receiving Z phase signals high level and real-time A phases or the frequency multiplication counter records number of B phases 4 are more than every circle umber of pulse Fault-signal is exported at 1.5 times.
5. incremental encoder disconnection detection method according to claim 4, it is characterised in that the real-time A phases of triggering Or 4 times of frequency counters of B phases start counting up step and included:When receiving Z phase signals high level, real-time A phases or B phases 4 frequency multiplication is counted Device is reset.
6. a kind of incremental encoder broken wire detection system, it is characterised in that including:
Differential signal converting unit, for A phases and B phase differential signals to be respectively converted into A phases and B phase single-ended signals;
AB phase coding units, for the sequential of A phases and B phase single-ended signals to be encoded;
AB phases encode judging unit, for judging whether spaced coding continuously occurs;
AB phases mistake coding count unit, when encoding judging unit for AB phases and judging that the coding of counting period setting continuously occurs The number of times of its appearance is calculated, and sets it to errors number;
AB phase fault judging units, for judging when the speed that the errors number is more than set threshold value and motor is not When zero, fault-signal is exported.
7. incremental encoder broken wire detection system according to claim 6, it is characterised in that institute AB phases coding unit will A phases sequential and B phase sequential weave together to form coding A0B0、A1B1To AnBn
8. incremental encoder broken wire detection system according to claim 6, it is characterised in that the AB phases encode judgement When the spaced coding of unit judges is differed, the wrong coding count unit of AB phases is sent a signal to, the AB is staggered Coding count unit is reset by mistake.
9. incremental encoder broken wire detection system according to claim 6, it is characterised in that the differential signal conversion Z phase differential signals are respectively converted into Z phase single-ended signals by unit, in addition to:Encoder pulse count device, for recording encoder The umber of pulse often enclosed;4 times of frequency counters of real-time A phases or B phases, the umber of pulse for recording A phases or B phases in real time;Z phase signals judge Unit, for judging whether to receive Z phase signals high level;Z phase fault judging units, for ought not receive the high electricity of Z phase signals 4 times of frequency counters of flat and real-time A phases or B phases export fault-signal when being more than 1.5 times of often circle umber of pulse.
10. incremental encoder broken wire detection system according to claim 9, it is characterised in that the Z phase signals judge Unit judges receive Z phase signals high level, send a signal to 4 times of frequency counters of real-time A phases or B phases, real-time the A phases or B phases 4 Frequency multiplication counter O reset.
CN201210593512.4A 2012-12-31 2012-12-31 A kind of incremental encoder disconnection detection method and system Active CN103076036B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210593512.4A CN103076036B (en) 2012-12-31 2012-12-31 A kind of incremental encoder disconnection detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210593512.4A CN103076036B (en) 2012-12-31 2012-12-31 A kind of incremental encoder disconnection detection method and system

Publications (2)

Publication Number Publication Date
CN103076036A CN103076036A (en) 2013-05-01
CN103076036B true CN103076036B (en) 2017-09-19

Family

ID=48152646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210593512.4A Active CN103076036B (en) 2012-12-31 2012-12-31 A kind of incremental encoder disconnection detection method and system

Country Status (1)

Country Link
CN (1) CN103076036B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104807490B (en) * 2015-03-31 2017-08-18 华中科技大学无锡研究院 A kind of rotary coding switch detection method
CN105067943B (en) * 2015-09-02 2017-11-03 泉州市桑川电气设备有限公司 Incremental encoder disconnection detection method and its circuit with UVW magnetic-pole signals
CN105606946A (en) * 2015-12-29 2016-05-25 珠海格力节能环保制冷技术研究中心有限公司 Incremental encoder wire disconnection detection method and system
CN105548596B (en) * 2016-01-14 2018-07-27 马鞍山市天力机械有限公司 A kind of wire stranding machine broken wire detection system and detection method
JP2019001649A (en) * 2017-06-19 2019-01-10 株式会社日立ビルシステム Elevator device and control method of the same
CN107991574B (en) * 2017-11-22 2020-02-28 苏州汇川技术有限公司 Encoder output signal detection circuit and motor controller
CN110487316B (en) * 2019-09-09 2021-06-25 配天机器人技术有限公司 Fault detection method of incremental encoder and robot
CN110806225B (en) * 2019-11-12 2021-06-08 华大半导体(成都)有限公司 System and method for detecting disconnection position of incremental encoder
CN110907658B (en) * 2019-12-13 2021-08-17 天津电气科学研究院有限公司 Code wheel rotating speed calculation and fault detection method
CN111549426B (en) * 2020-04-15 2021-11-19 苏州汇川技术有限公司 Loom galloping protection system and spindle motor driver of loom
CN113884124A (en) * 2021-10-28 2022-01-04 汇智机器人科技(深圳)有限公司 Self-diagnosis method and control device for incremental encoder
CN114543864B (en) * 2022-02-11 2023-08-29 深圳市禾望电气股份有限公司 FPGA-based incremental encoder fault diagnosis method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101825484A (en) * 2010-02-04 2010-09-08 哈尔滨工业大学 Malfunction detection method of incremental encoder
CN101995533A (en) * 2009-08-11 2011-03-30 深圳市英威腾电气股份有限公司 Real-time wire-break detection method and system for digital incremental encoder
CN102607630A (en) * 2012-02-20 2012-07-25 中联重科股份有限公司 Detection method, device and system of fault of encoder

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515294A (en) * 1994-06-10 1996-05-07 L & P Property Management Company Method and apparatus for testing coiled materials
ES2636675T3 (en) * 2006-01-30 2017-10-06 Otis Elevator Company Management of a malfunction of encoder in an elevator drive system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101995533A (en) * 2009-08-11 2011-03-30 深圳市英威腾电气股份有限公司 Real-time wire-break detection method and system for digital incremental encoder
CN101825484A (en) * 2010-02-04 2010-09-08 哈尔滨工业大学 Malfunction detection method of incremental encoder
CN102607630A (en) * 2012-02-20 2012-07-25 中联重科股份有限公司 Detection method, device and system of fault of encoder

Also Published As

Publication number Publication date
CN103076036A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
CN103076036B (en) A kind of incremental encoder disconnection detection method and system
CN101995533B (en) Real-time wire-break detection method and system for digital incremental encoder
CN101741626B (en) Method and device for processing alarm information
CN101571410B (en) Intelligent opto-electrical direct reader
CN101833049A (en) Abnormality monitoring apparatus
CN104378260B (en) Load factor test method and device, the system of CAN bus
CN102135757B (en) Safety input device
CN108663080A (en) Absolute value encoder method for diagnosing faults in a kind of servo drive system
CN103532451A (en) Fault diagnosis method for position signal of rotary transformer
CN102233718B (en) Code spraying machine, code spraying system, and code spraying method of code spraying system
CN103592455A (en) Digital detection device and method for speed of electric bicycle
CN103776364B (en) A kind of have the angular surveying and fault diagnosis system that fly to turn warning function
CN110487316A (en) The fault detection method and robot of incremental encoder
SE449535B (en) DEVICE FOR DETECTING ERRORS IN ASYNCHRONAL TRANSMISSION OF THE DIGITAL WHEEL SPEED METHOD IN AN ANTI-WHEEL ANTI-LOADING SYSTEM
CN101784900B (en) Velocity detection method and motor control device using the method
CN103743923A (en) High-frequency vehicle speed collection system and collection method
CN101221461B (en) Reset circuit and reset method for embedded system
CN102930333B (en) Star wheel counting device
CN102411326A (en) Encoder watchdog alarm system
CN104181333A (en) Self-diagnostic device and method of rotating speed signals
CN102074108A (en) Remote control code intelligent decoding system
CN105067943B (en) Incremental encoder disconnection detection method and its circuit with UVW magnetic-pole signals
CN104198919A (en) Kingview and PLC (programmable logic controller) based performance monitoring system for measurement while drilling instrument downhole circuit board
CN202870879U (en) Star-wheel-based counting device
CN204945294U (en) With the incremental type encoder offline detection circuit of UVW magnetic-pole signals

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: 518108, 102C, A3, third industrial zone, oyster Road, manhole industrial, Shenzhen, Baoan District, Guangdong

Applicant after: Shenzhen joins day intelligence and makes equipment limited company

Address before: 518108, 102C, A3, third industrial zone, oyster Road, manhole industrial, Shenzhen, Baoan District, Guangdong

Applicant before: Shenzhen Peitian Numerical Control Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN A+E NUMERICAL CONTROL TECHNOLOGY CO., LTD. TO: SHENZHEN PEITIAN INTELLIGENT MANUFACTURING EQUIPMENT CO., LTD.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant