CN111649769A - Multi-circle using method of robot joint tail end single-circle magnetic encoder - Google Patents
Multi-circle using method of robot joint tail end single-circle magnetic encoder Download PDFInfo
- Publication number
- CN111649769A CN111649769A CN202010434522.8A CN202010434522A CN111649769A CN 111649769 A CN111649769 A CN 111649769A CN 202010434522 A CN202010434522 A CN 202010434522A CN 111649769 A CN111649769 A CN 111649769A
- Authority
- CN
- China
- Prior art keywords
- magnetic encoder
- module
- turn
- data
- circle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/12—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
- G01D5/244—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
- G01D5/249—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains using pulse code
- G01D5/2497—Absolute encoders
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Manipulator (AREA)
Abstract
The invention discloses a multi-circle using method of a robot joint tail end single-circle magnetic encoder, which belongs to the field of robotics and comprises the steps of establishing a parameter reading module, a position analysis module, a calculation module and a storage module; the invention solves the technical problem that a single-circle magnetic encoder cannot perform multi-circle judgment, and has the advantages of less hardware, easy realization, low cost and high precision.
Description
Technical Field
The invention belongs to the technical field of robots, and particularly relates to a multi-circle using method of a robot joint tail end single-circle magnetic encoder.
Background
The current use of absolute magnetic encoders on robotic joints is for controlling joint position, but most magnetic encoders are single-turn (i.e., can only sense absolute angular position within one turn). For some applications, for example, when the rotation angle exceeds 360 degrees, a single turn cannot meet the requirement, and the cost is greatly increased by adopting a multi-turn magnetic encoder.
Disclosure of Invention
The invention aims to provide a multi-turn using method of a single-turn magnetic encoder at the tail end of a robot joint, and solves the technical problem that the single-turn magnetic encoder cannot judge the multi-turn.
In order to achieve the purpose, the invention adopts the following technical scheme:
a multi-circle using method of a robot joint tail end single-circle magnetic encoder comprises the following steps:
step 1: establishing a parameter reading module, a position analysis module, a calculation module and a storage module; the parameter reading module is used for reading the position coded data Q of the single-turn magnetic encodertWherein Q is position encoding data and t is a time stamp; the position analysis module is used for analyzing position coded data Qt(ii) a The calculation module is used for calculating the number of turns of the current position coded data;
step 2: the parameter reading module reads position coding data of the single-turn magnetic encoder according to a time sequence;
and step 3: the position analysis module encodes data Q according to the current positiontAnd position coded data Q of the previous timet-1Calculating a position variation parameter from the difference;
and 4, step 4: the position analysis module sets a position change constant and judges whether the position change parameter is larger than the position change constant: if yes, executing step 5; if not, executing the step 6;
and 5: the position analysis module judges that the single-turn magnetic encoder is in reverse rotation at the moment, records that the number of turns is reduced by one, and executes the step 7;
step 6: the position analysis module judges that the single-turn magnetic encoder rotates forwards at the moment, records the number of rotation turns and adds one, and executes the step 7;
and 7: computing moduleCalculating continuous position data Q according to the following formulam:
Qm=Nloop×65535+Qt;
Wherein N isloopFor number of turns, QtEncoding data for the position of a single-turn magnetic encoder;
and 8: calculating continuous position data QmThe position PID feedback value is used for participating in multi-turn detection calculation of a single-turn magnetic encoder at the tail end of the robot joint;
and step 9: recording the number of turns NloopAnd storing the position data into a storage module, reading the turn number value in the storage module after next power-on, participating in the continuous position data Q of the calculation modulemAnd (4) calculating.
Preferably, the storage module is an EEPROM module.
Preferably, when step 4 is performed, the value of the position change constant is not greater than the maximum encoded value output by the single-turn magnetic encoder.
The multi-turn using method of the robot joint tail end single-turn magnetic encoder solves the technical problem that the single-turn magnetic encoder cannot judge the multi-turn, and is few in hardware, easy to realize, low in cost and high in precision.
Drawings
FIG. 1 is a flow chart of the present invention.
Detailed Description
The multi-turn using method of the robot joint tail end single-turn magnetic encoder shown in the figure 1 comprises the following steps:
step 1: establishing a parameter reading module, a position analysis module, a calculation module and a storage module; the parameter reading module is used for reading the position coded data Q of the single-turn magnetic encodertWherein Q is position encoding data and t is a time stamp; the position analysis module is used for analyzing position coded data Qt(ii) a The calculation module is used for calculating the number of turns of the current position coded data;
in this embodiment, the parameter reading module, the position analyzing module and the calculating module are all disposed in the same MCU or the PLC controller.
Reading the position of the single-turn magnetic encoder, judging the current value and the value variation of the previous moment, setting a proper increment value according to the joint movement speed of the robot, so that the joint speed of the robot is generally not too high, if the position value mutation is large, the tail end of the joint can be considered to move to a second turn, and at the moment, a turn number variable can be set to remember the turn number.
Step 2: the parameter reading module reads position coding data of the single-turn magnetic encoder according to a time sequence;
and step 3: the position analysis module encodes data Q according to the current positiontAnd position coded data Q of the previous timet-1Calculating a position variation parameter from the difference;
and 4, step 4: the position analysis module sets a position change constant and judges whether the position change parameter is larger than the position change constant: if yes, executing step 5; if not, executing the step 6;
and 5: the position analysis module judges that the single-turn magnetic encoder is in reverse rotation at the moment, records that the number of turns is reduced by one, and executes the step 7;
step 6: the position analysis module judges that the single-turn magnetic encoder rotates forwards at the moment, records the number of rotation turns and adds one, and executes the step 7;
and 7: the calculation module calculates continuous position data Q according to the following formulam:
Qm=Nloop×65535+Qt;
Wherein N isloopFor number of turns, QtEncoding data for the position of a single-turn magnetic encoder;
and 8: calculating continuous position data QmThe position PID feedback value is used for participating in multi-turn detection calculation of a single-turn magnetic encoder at the tail end of the robot joint;
and step 9: recording the number of turns NloopAnd storing the position data into a storage module, and reading the turn number value in the storage module to participate in the calculation of the continuous position data Qm by the calculation module after the next power-on.
In this embodiment, a 16-bit single-turn magnetic encoder is taken as an example, a pulse value of a 16-bit single-turn magnetic encoder rotating a circle changes within 0 to 65535, that is, the pulse value is within 0 to 65535 no matter how many turns the encoder rotates, but in practical use, if a certain joint needs to rotate a plurality of turns, at this time, the value of the single-turn magnetic encoder used alone cannot be satisfied, and the joint cannot be judged to rotate several turns, so that the method of the present invention needs to be adopted, so that the actual number of turns (and angle) of the joint rotation can be correctly reflected:
the output of the single-turn magnetic encoder is only switched between 0 and 65535, when the single-turn magnetic encoder moves in the positive direction, if the set value is larger than 65535, the single-turn magnetic encoder does not process the set value at the moment, the position of the single-turn magnetic encoder does not reach the set value all the time, and the negative movement is the same. The output values of the encoder need to be processed (multi-turn detection).
In the embodiment, the change rate is over +/-32768 no matter the forward rotation is suddenly changed from 65535 to 0 or the reverse rotation is suddenly changed from 0 to 65535, so that +/-32768 can be selected as the position change constant to prevent other conditions from occurring.
After the forward motion detects that the change rate is less than-32768, the number of turns is added with 1, and when the position is calculated, the currently read encoding value Q output by the single-turn magnetic encoder is usedtPlus the number of turns NloopMultiplying 65535 to calculate continuously changing position data Qm;
After the forward motion detection change rate is larger than 32768, the number of turns is reduced by 1, and when the position is calculated, the currently read encoding value Q output by the single-turn magnetic encoder is usedtPlus the number of turns NloopMultiplying 65535 to calculate continuously changing position data Qm。
Preferably, the storage module is an EEPROM module.
Preferably, in the step 4, the value of the position change constant is not greater than the maximum encoding value output by the single-turn magnetic encoder, and the value of the position change constant is determined by the maximum rotation speed.
The multi-turn using method of the robot joint tail end single-turn magnetic encoder solves the technical problem that the single-turn magnetic encoder cannot judge the multi-turn, and is few in hardware, easy to realize, low in cost and high in precision.
Claims (3)
1. A multi-circle using method of a robot joint tail end single-circle magnetic encoder is characterized in that: the method comprises the following steps:
step 1: establishing a parameter reading module, a position analysis module, a calculation module and a storage module; the parameter reading module is used for reading the position coded data Q of the single-turn magnetic encodertWherein Q is position encoding data and t is a time stamp; the position analysis module is used for analyzing position coded data Qt(ii) a The calculation module is used for calculating the number of turns of the current position coded data;
step 2: the parameter reading module reads position coding data of the single-turn magnetic encoder according to a time sequence;
and step 3: the position analysis module encodes data Q according to the current positiontAnd position coded data Q of the previous timet-1Calculating a position variation parameter from the difference;
and 4, step 4: the position analysis module sets a position change constant and judges whether the position change parameter is larger than the position change constant: if yes, executing step 5; if not, executing the step 6;
and 5: the position analysis module judges that the single-turn magnetic encoder is in reverse rotation at the moment, records that the number of turns is reduced by one, and executes the step 7;
step 6: the position analysis module judges that the single-turn magnetic encoder rotates forwards at the moment, records the number of rotation turns and adds one, and executes the step 7;
and 7: the calculation module calculates continuous position data Q according to the following formulam:
Qm=Nloop×65535+Qt;
Wherein N isloopFor number of turns, QtEncoding data for the position of a single-turn magnetic encoder;
and 8: calculating continuous position data QmThe position PID feedback value is used for participating in multi-turn detection calculation of a single-turn magnetic encoder at the tail end of the robot joint;
and step 9: recording the number of turns NloopAnd storeIn the storage module, after the next power-on, reading the turn number value in the storage module and participating in the calculation module to continuous position data QmAnd (4) calculating.
2. The multi-turn use method of the robot joint end single-turn magnetic encoder as claimed in claim 1, characterized in that: the storage module is an EEPROM module.
3. The multi-turn use method of the robot joint end single-turn magnetic encoder as claimed in claim 1, characterized in that: in executing step 4, the value of the position change constant is not larger than the maximum encoding value output by the single-turn magnetic encoder.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010434522.8A CN111649769A (en) | 2020-05-21 | 2020-05-21 | Multi-circle using method of robot joint tail end single-circle magnetic encoder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010434522.8A CN111649769A (en) | 2020-05-21 | 2020-05-21 | Multi-circle using method of robot joint tail end single-circle magnetic encoder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111649769A true CN111649769A (en) | 2020-09-11 |
Family
ID=72343442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010434522.8A Pending CN111649769A (en) | 2020-05-21 | 2020-05-21 | Multi-circle using method of robot joint tail end single-circle magnetic encoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111649769A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113267204A (en) * | 2021-05-28 | 2021-08-17 | 中国电子科技集团公司第三十八研究所 | Rotary table rotation angle coding system capable of rotating for multiple circles |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203964927U (en) * | 2014-06-24 | 2014-11-26 | 王峰 | Multi-turn absolute value encoder |
US20150369636A1 (en) * | 2013-01-11 | 2015-12-24 | Jiangsu Multidimensional Technology Co., Ltd | Multi-turn absolute magnetic encoder |
CN105716634A (en) * | 2016-04-03 | 2016-06-29 | 长春汇通光电技术有限公司 | Multi-turn encoder adopting reed pipes and direction judging and turn-number counting method thereof |
CN205482991U (en) * | 2016-04-03 | 2016-08-17 | 长春汇通光电技术有限公司 | Adopt many rings of encoders of tongue tube |
CN106774451A (en) * | 2016-12-31 | 2017-05-31 | 深圳市优必选科技有限公司 | Multi-turn angle control method and device based on magnetic coding |
CN206479188U (en) * | 2017-02-24 | 2017-09-08 | 长春键坤联合科技发展有限公司 | Multi-turn modular converter and encoder |
CN108844558A (en) * | 2018-06-29 | 2018-11-20 | 上海共久电气有限公司 | A method of realizing that de-energized is remembered using individual pen absolute value encoder |
-
2020
- 2020-05-21 CN CN202010434522.8A patent/CN111649769A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150369636A1 (en) * | 2013-01-11 | 2015-12-24 | Jiangsu Multidimensional Technology Co., Ltd | Multi-turn absolute magnetic encoder |
CN203964927U (en) * | 2014-06-24 | 2014-11-26 | 王峰 | Multi-turn absolute value encoder |
CN105716634A (en) * | 2016-04-03 | 2016-06-29 | 长春汇通光电技术有限公司 | Multi-turn encoder adopting reed pipes and direction judging and turn-number counting method thereof |
CN205482991U (en) * | 2016-04-03 | 2016-08-17 | 长春汇通光电技术有限公司 | Adopt many rings of encoders of tongue tube |
CN106774451A (en) * | 2016-12-31 | 2017-05-31 | 深圳市优必选科技有限公司 | Multi-turn angle control method and device based on magnetic coding |
CN206479188U (en) * | 2017-02-24 | 2017-09-08 | 长春键坤联合科技发展有限公司 | Multi-turn modular converter and encoder |
CN108844558A (en) * | 2018-06-29 | 2018-11-20 | 上海共久电气有限公司 | A method of realizing that de-energized is remembered using individual pen absolute value encoder |
Non-Patent Citations (1)
Title |
---|
XIAYUFENG520: "算法:单圈绝对值编码器处理成多圈的", 《CSDN:HTTPS://BLOG.CSDN.NET/XIAYUFENG520/ARTICLE/DETAILS/89420131》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113267204A (en) * | 2021-05-28 | 2021-08-17 | 中国电子科技集团公司第三十八研究所 | Rotary table rotation angle coding system capable of rotating for multiple circles |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112757306B (en) | Inverse solution multi-solution selection and time optimal trajectory planning algorithm for mechanical arm | |
CN101402199B (en) | Hand-eye type robot movable target extracting method with low servo accuracy based on visual sensation | |
CN110653826B (en) | Real-time robot trajectory planning method oriented to conveyor belt target following | |
CN110450155B (en) | Optimal design method for controller of multi-degree-of-freedom mechanical arm system | |
CN109799701B (en) | Industrial robot vibration suppression method | |
CN109159151A (en) | A kind of mechanical arm space tracking tracking dynamic compensation method and system | |
US11340614B2 (en) | Robot and method and apparatus of controlling movement of transport robot | |
JPS59111502A (en) | Robot controller | |
EP0292575B1 (en) | Servo motor controller | |
CN109514041B (en) | Vehicle body tracking method and crawling welding robot | |
CN111649769A (en) | Multi-circle using method of robot joint tail end single-circle magnetic encoder | |
CN111687838A (en) | Online compensation method and system for manipulator track following error and storage medium | |
CN110794878B (en) | Servo system pitch angle tracking control method | |
CN1540469A (en) | Method and device of three coordinate circular interpolations in use for digital control machine tool | |
CN113359419B (en) | Fuzzy coupling control method for high-speed parallel robot | |
Man et al. | A kind of calligraphy robot | |
CN108724195B (en) | Coupling feedforward control method for robot | |
CN106338911A (en) | Expert PID control method applied to rotary electromechanical actuator servo system | |
CN113618741A (en) | Robot joint pose optimization method, robot control method and robot | |
CN108490874A (en) | A kind of non-linearity PID cross-coupling control method of biaxial movement control system | |
CN106773651B (en) | Steering engine critical point locking method and device | |
CN108388112A (en) | A kind of batch process two dimensional model forecast Control Algorithm | |
CN116638544A (en) | Joint module cooperative control method based on super local model | |
CN215749152U (en) | Six-degree-of-freedom parallel robot detection branch | |
CN205405098U (en) | Servo controller |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200911 |
|
RJ01 | Rejection of invention patent application after publication |