CN111637905B - Method and system for rotary parameter adjustment of rotary encoder - Google Patents

Method and system for rotary parameter adjustment of rotary encoder Download PDF

Info

Publication number
CN111637905B
CN111637905B CN202010403470.8A CN202010403470A CN111637905B CN 111637905 B CN111637905 B CN 111637905B CN 202010403470 A CN202010403470 A CN 202010403470A CN 111637905 B CN111637905 B CN 111637905B
Authority
CN
China
Prior art keywords
rotary encoder
pulse
rotation
speed
rotary
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
CN202010403470.8A
Other languages
Chinese (zh)
Other versions
CN111637905A (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.)
Xiangyu Medical Co ltd
Original Assignee
Xiangyu Medical Co ltd
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 Xiangyu Medical Co ltd filed Critical Xiangyu Medical Co ltd
Priority to CN202010403470.8A priority Critical patent/CN111637905B/en
Publication of CN111637905A publication Critical patent/CN111637905A/en
Application granted granted Critical
Publication of CN111637905B publication Critical patent/CN111637905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING 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/00Mechanical 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/12Mechanical 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/244Mechanical 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/245Mechanical 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 a variable number of pulses in a train

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The invention discloses a method for adjusting parameters of a rotary encoder in a rotating way, which comprises the following steps: acquiring the rotating speed v of a rotary encoder; judging whether the rotating speed v is larger than 1 r/s: if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation; if it isControlling each rotation of the rotary encoder
Figure DDA0002490371840000011
Outputting a pulse; wherein a and b are both positive numbers greater than 1. When rotary encoder's rotational speed is less, then rotary encoder rotates the output pulse number of round and be a, and a is rotary encoder corresponds the minimum pulse number of rotatory round output under the low-speed state for a, can set up the numerical value of a in a flexible way as required to guarantee to realize the accurate regulation of small range parameter. The faster the rotational speed of the rotary encoder, the greater the acceleration of parameter adjustment, thereby enabling rapid adjustment of a wide range of parameters. The invention also discloses a system for rotating and adjusting parameters of the rotary encoder.

Description

Method and system for rotary parameter adjustment of rotary encoder
Technical Field
The invention relates to the technical field of parameter adjustment, in particular to a method for rotary parameter adjustment of a rotary encoder.
Background
The rotary encoder is a device capable of realizing rapid parameter adjustment by measuring rotating speed and matching with a pulse technology, and can realize adjustment of various parameter ranges to be set by rotating the rotary encoder in a left-handed or right-handed rotating mode on an equipment operation panel.
The ratio of the rotation speed to the parameter adjustment speed of the existing rotary encoder is uniformly increased, various parameter settings or adjustments are involved in the process of using the device by a user, if the parameter setting or adjustment is needed to be wider, such as 1-1000, usually the parameter is increased or decreased by 20 when the rotary encoder rotates one circle, then the rotary encoder rotates 50 circles from 1 to 1000 to reach the maximum 1000, the adjustment is quite laborious and time-consuming, and the user experience is poor.
Of course, it is also possible to use a common circuit or program to control the frequency multiplication from 20 to 200, but the disadvantages come from that the parameter is increased or decreased by 1 for 1/20 turns, and the parameter is increased or decreased by 10 for 1/20 turns, so that the high resolution setting or adjustment cannot be realized, and the user can hardly find the desired value, the deviation of the value is large after stopping the rotation, and the fine adjustment is performed step by step, which wastes time.
Therefore, a problem to be solved by those skilled in the art is how to solve the problem that the conventional rotary encoder has low adjustment efficiency or cannot accurately adjust when faced with a wide parameter range.
Disclosure of Invention
In view of the above, the present invention provides a method for adjusting parameters of a rotary encoder, which can realize fast adjustment of parameters in a large range and also can realize accurate adjustment of parameters in a small range when facing a numerical value with a wide parameter range.
It is another object of the present invention to provide a system for rotary parameter adjustment of a rotary encoder.
In order to achieve the above purpose, the invention provides the following technical scheme:
a method of rotary encoder parameter tuning, comprising:
acquiring the rotating speed v of a rotary encoder;
judging whether the rotating speed v is larger than 1 r/s:
if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation;
if yes, controlling the rotary encoder to rotate every time
Figure BDA0002490371820000021
Outputting a pulse;
wherein a and b are both positive numbers greater than 1.
Preferably, when the rotating speed v is less than or equal to 1r/s, the rotary encoder is controlled to output one pulse every 1/20 turns.
Preferably, if the rotating speed v is more than 1r/s, controlling the rotary encoder to rotate every time
Figure BDA0002490371820000022
The loop outputs a pulse.
Preferably, if the rotating speed v is more than 1r/s, the rotary encoder is controlled to rotate every time
Figure BDA0002490371820000023
The loop outputs a pulse.
Preferably, when the rotating speed v is less than or equal to 1r/s, the rotary encoder is controlled to output one pulse every 1/200 turns.
Preferably, if the rotating speed v is more than 1r/s, the rotary encoder is controlled to rotate every time
Figure BDA0002490371820000024
The loop outputs a pulse.
A system for rotary encoder rotary parameter adjustment, comprising:
a rotational speed acquisition means for acquiring a rotational speed v of the rotary encoder;
pulse control means for determining whether the rotational speed v is greater than 1 r/s:
if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation;
if yes, controlling the rotary encoder to rotate every time
Figure BDA0002490371820000025
Outputting a pulse;
wherein a and b are both positive numbers greater than 1;
the rotating speed acquisition device is connected with the pulse control device.
Preferably, if the rotating speed v is less than or equal to 1r/s, the pulse control device controls the rotary encoder to output one pulse every 1/20 turns.
Preferably, if the rotating speed v is greater than 1r/s, the pulse control device controls the rotary encoder to rotate every time
Figure BDA0002490371820000026
The loop outputs a pulse.
The method for adjusting the parameters of the rotary encoder in the rotating mode enables the acceleration of parameter adjustment of the rotary encoder to be increased according to corresponding proportion along with the rotating speed of the rotary encoder, when the rotating speed is equal to or less than 1r/s, namely the rotating speed of the rotary encoder is small, the number of output pulses of the rotary encoder rotating for one circle is a, a is the minimum number of pulses output by the rotary encoder rotating for one circle in a corresponding low-speed state, and the value of a can be flexibly set according to needs so as to guarantee accurate adjustment of parameters in a small range.
When the rotating speed is more than 1r/s, the number of output pulses corresponding to one rotation of the rotary encoder is a multiplied by b along with the increase of the rotating speedv-1That is, the number of output pulses corresponding to one rotation of the rotary encoder is increased by b times every time the rotation speed is increased by 1, and a and b are positive numbers larger than 1, that is, the faster the rotation speed of the rotary encoder is, the larger the acceleration of parameter adjustment is, thereby realizing the rapid adjustment of parameters in a large range.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an embodiment of a method for rotary parameter adjustment of a rotary encoder according to the present invention;
fig. 2 is a schematic diagram showing the relationship between the number of pulses output from the rotary encoder and the rotation speed when a is 20 and b is 2.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the invention is to provide a method for rotating and adjusting parameters of a rotary encoder, which can realize the rapid adjustment of parameters in a large range and also can realize the accurate adjustment of parameters in a small range when facing to values with wider parameter ranges. Another core of the present invention is to provide a system for rotary parameter adjustment of a rotary encoder.
Referring to fig. 1 and 2, fig. 1 is a flow chart of an embodiment of a method for adjusting a parameter of a rotary encoder according to the present invention; fig. 2 is a schematic diagram showing the relationship between the number of pulses output from the rotary encoder and the rotation speed when a is 20 and b is 2.
The invention provides a method for adjusting parameters of a rotary encoder in a rotating mode, which comprises the following steps: acquiring the rotating speed v of a rotary encoder; judging whether the rotating speed v is larger than 1 r/s: if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation; if yes, controlling the rotary encoder to rotate every time
Figure BDA0002490371820000041
Outputting a pulse by the coil; wherein a and b are both positive numbers greater than 1.
The rotary encoder is used for adjusting numerical parameters, and a user can adjust the numerical value by rotating the rotary encoder, such as adjusting volume, frequency and the like by the rotary encoder.
In the present invention, the rotation speed of the rotary encoder and the acceleration of the parameter adjustment are proportional to each other, that is: the faster the rotation speed, the faster the acceleration of the parameter adjustment increases and decreases. Specifically, when the rotating speed of the rotary encoder is less than or equal to 1r/s, the number of pulses output by the rotary encoder in one rotation is a, and one pulse is output by the rotary encoder in every 1/a rotation, so that fine adjustment of a single increment is realized, and high-resolution adjustment can be completed.
That is, when the rotation speed of the rotary encoder is low, the number of output pulses corresponding to the rotary encoder is relatively small, wherein a is the minimum number of pulses output by one rotation of the rotary encoder in a low-speed state, so as to realize high-resolution adjustment of the numerical parameter.
When the rotating speed is greater than 1r/s, the rotating speed is increased by b times every time the rotating speed is increased by 1, wherein a and b are positive numbers greater than 1, for example, when b is 2 and the rotating speed is 2r/s, the number of pulse outputs corresponding to one rotation of the rotating encoder is 2a, and the numerical range of adjustment of the rotating encoder per second is 4 a; when b is 2 and the rotating speed is 3r/s, the corresponding pulse output number of one rotation of the rotary encoder is 4a, and the numerical range of the adjustment of the rotary encoder per second is 12 a; by analogy, the faster the rotation speed of the rotary encoder is, the faster the parameter adjustment speed is, so as to realize the rapid adjustment of the parameters in a large range.
Therefore, the method for adjusting the parameter of the rotary encoder provided by the invention increases the acceleration adjusted by the parameter of the rotary encoder according to the corresponding proportion along with the rotating speed of the rotary encoder, when the rotating speed is equal to or less than 1r/s, namely the rotating speed of the rotary encoder is smaller, the number of output pulses of one rotation of the rotary encoder is a, a is the minimum number of pulses output by one rotation of the rotary encoder in a low-speed state, and the value of a can be flexibly set according to the requirement so as to ensure that the accurate adjustment of the parameter in a small range can be realized.
When the rotating speed is more than 1r/s, the number of output pulses corresponding to one rotation of the rotary encoder is a multiplied by b along with the increase of the rotating speedv-1That is, the number of output pulses corresponding to one rotation of the rotary encoder is increased by b times every time the rotation speed is increased by 1, and a and b are positive numbers larger than 1, that is, the faster the rotation speed of the rotary encoder is, the larger the acceleration of parameter adjustment is, thereby realizing the rapid adjustment of parameters in a large range.
In addition to the above-described embodiments, in consideration of the specific setting of the number of pulses output by the rotary encoder per rotation, it is preferable to control the rotary encoder to output one pulse per 1/20 rotations if the rotation speed v is less than or equal to 1 r/s. That is, in this embodiment, the minimum number of pulses output by one rotation of the rotary encoder corresponding to the low-speed state is 20, and then one pulse is output every time 1/20 rotations pass, so that fine adjustment of a single increment is realized, accurate adjustment of a small-range parameter is ensured, and high-resolution adjustment is completed.
On the basis of the above embodimentsConsidering the setting of a specific ratio of the acceleration of the parameter adjustment of the rotary encoder to increase with its rotation speed, it is preferable to control the rotary encoder to rotate every time if the rotation speed v is greater than 1r/s
Figure BDA0002490371820000051
The loop outputs a pulse.
That is, in this embodiment, when the rotation speed is 2r/s, and the number of pulse outputs corresponding to one rotation of the rotary encoder is 40, the number of the adjustment values per second of the rotary encoder is 80; when the rotating speed is 3r/s, the number of pulse outputs corresponding to one rotation of the rotary encoder is 80, and the numerical range of the rotary encoder adjusted every second is 240; and so on.
In addition to the above embodiments, in order to further increase the efficiency of adjusting parameters of the rotary encoder in a wide range, it is preferable that the rotary encoder is controlled to rotate every time when the rotation speed v is greater than 1r/s
Figure BDA0002490371820000052
The loop outputs a pulse. That is, in this embodiment, when the rotation speed is 2r/s, and the number of pulse outputs corresponding to one rotation of the rotary encoder is 60, the number of the adjustment values per second of the rotary encoder is 120; when the rotating speed is 3r/s, the number of pulse outputs corresponding to one circle of rotation of the rotary encoder is 180, and the numerical range of adjustment of the rotary encoder per second is 540; by analogy, the faster the rotation speed of the rotary encoder is, the faster the parameter adjustment speed is, so as to realize the rapid adjustment of the parameters in a large range.
If the adjustment range is larger, the minimum number of pulses output by the rotary encoder corresponding to one rotation in the low-speed state can be further increased, and specifically, if the rotation speed v is less than or equal to 1r/s, the rotary encoder is controlled to output one pulse every 1/200 rotations. On the basis of the above-described embodiment, it is preferable that the rotary encoder is controlled to rotate every rotation if the rotation speed v is greater than 1r/s
Figure BDA0002490371820000061
The loop outputs a pulse. In this embodiment, a is 200 and b is 2. Of course, a and b can be set to other values as required to meet the adjustment requirements of different parameter ranges.
In addition to the above method for adjusting the parameter of the rotary encoder, the present invention also provides a system for adjusting the parameter of the rotary encoder, comprising:
a rotational speed acquisition means for acquiring a rotational speed v of the rotary encoder;
pulse control means for determining whether or not the rotation speed v is greater than 1 r/s:
if not, controlling the rotary encoder to output one pulse every 1/a circle of rotation;
if yes, controlling the rotary encoder to rotate every time
Figure BDA0002490371820000062
Outputting a pulse;
wherein a and b are both positive numbers greater than 1;
the rotating speed acquisition device is connected with the pulse control device.
Preferably, the pulse control device controls the rotary encoder to output one pulse per 1/20 rotations if the rotating speed v is less than or equal to 1 r/s.
Preferably, the pulse control device controls the rotary encoder to rotate every time when the rotating speed v is larger than 1r/s
Figure BDA0002490371820000063
The loop outputs a pulse.
The method and system for rotary parameter adjustment of rotary encoder provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (6)

1. A method of rotary parameter adjustment for a rotary encoder, comprising:
acquiring the rotating speed v of a rotary encoder;
judging whether the rotation speed v is larger than 1 r/s:
if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation;
if yes, controlling the rotary encoder to rotate every time
Figure FDA0003311071130000011
Outputting a pulse;
wherein a and b are both positive numbers greater than 1;
and if the rotating speed v is less than or equal to 1r/s, controlling the rotary encoder to output one pulse every 1/20 turns or 1/200 turns.
2. The method for tuning the rotation of a rotary encoder according to claim 1, wherein if the rotation speed v is greater than 1r/s, controlling the rotary encoder to rotate every time
Figure FDA0003311071130000012
The loop outputs a pulse.
3. The method for tuning the rotation of a rotary encoder according to claim 1, wherein if the rotation speed v is greater than 1r/s, controlling the rotary encoder to rotate every time
Figure FDA0003311071130000013
The loop outputs a pulse.
4. The method for tuning the rotation of a rotary encoder according to claim 1, wherein if the rotation speed v is greater than 1r/s, controlling the rotary encoder to rotate every time
Figure FDA0003311071130000014
The loop outputs a pulse.
5. A system for rotary parameter adjustment of a rotary encoder, comprising:
a rotational speed acquisition means for acquiring a rotational speed v of the rotary encoder;
pulse control means for determining whether the rotational speed v is greater than 1 r/s:
if not, controlling the rotary encoder to output a pulse every 1/a circle of rotation;
if yes, controlling the rotary encoder to rotate every time
Figure FDA0003311071130000015
Outputting a pulse;
wherein a and b are both positive numbers greater than 1;
the rotating speed acquisition device is connected with the pulse control device;
and if the rotating speed v is less than or equal to 1r/s, controlling the rotary encoder to output one pulse every 1/20 turns or 1/200 turns.
6. The rotary encoder parameter adjusting system according to claim 5, wherein if the rotation speed v is greater than 1r/s, the pulse control device controls the rotary encoder to rotate every time
Figure FDA0003311071130000016
The loop outputs a pulse.
CN202010403470.8A 2020-05-13 2020-05-13 Method and system for rotary parameter adjustment of rotary encoder Active CN111637905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010403470.8A CN111637905B (en) 2020-05-13 2020-05-13 Method and system for rotary parameter adjustment of rotary encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010403470.8A CN111637905B (en) 2020-05-13 2020-05-13 Method and system for rotary parameter adjustment of rotary encoder

Publications (2)

Publication Number Publication Date
CN111637905A CN111637905A (en) 2020-09-08
CN111637905B true CN111637905B (en) 2022-05-03

Family

ID=72329355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010403470.8A Active CN111637905B (en) 2020-05-13 2020-05-13 Method and system for rotary parameter adjustment of rotary encoder

Country Status (1)

Country Link
CN (1) CN111637905B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115371713A (en) * 2022-08-15 2022-11-22 安徽海尚变频技术有限公司 Control method for improving speed regulation experience of encoder

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7547875B1 (en) * 2008-05-29 2009-06-16 Delta Electronics, Inc. Absolute type encoder apparatus and method for operating the same
JP5088313B2 (en) * 2008-12-18 2012-12-05 株式会社安川電機 Linear encoder signal processing apparatus and signal processing method
JP6448942B2 (en) * 2014-07-31 2019-01-09 日本電産シンポ株式会社 Traction power transmission reduction device and motor with reduction device
CN106153079B (en) * 2015-04-02 2018-05-25 深圳海天力科技有限公司 Recognition methods and system are adjusted for the digital encoder of parameter regulation
CN109959400B (en) * 2017-12-25 2021-06-04 深圳市优必选科技有限公司 Method and device for calculating absolute encoder parameters and terminal equipment
CN110906885B (en) * 2019-12-24 2021-03-30 洛阳恒锐测控科技有限公司 High-speed high-precision contact angle measurement method for angular contact bearing

Also Published As

Publication number Publication date
CN111637905A (en) 2020-09-08

Similar Documents

Publication Publication Date Title
CN111637905B (en) Method and system for rotary parameter adjustment of rotary encoder
CN109412494B (en) Motor calibration method and device
CN102485625A (en) Constant tension winding device and regulating module thereof
CN108155844A (en) A kind of calibration method and device of motor initial position angle
CN107086835A (en) A kind of permagnetic synchronous motor rotation becomes initial zero position angle calibration system and calibration method
CN106529141A (en) Parameter adjusting method and apparatus
CN108512472A (en) A kind of follow-up control method and its system based on electronic gear
CN111106764B (en) Sine and cosine encoder correction method and system
CN206894546U (en) A kind of permagnetic synchronous motor rotation becomes initial zero position angle calibration system
CN101478856B (en) Radio frequency automatic impedance matcher and implementing method thereof
CN109391189B (en) Stepping motor rotation angle compensation method and device
US3932794A (en) Revolution speed controller using both analog and digital control
CN107690603A (en) A kind of rotation speed regulating method of Digit Control Machine Tool and spindle motor
CN110635742B (en) Initial position angle calibration method for permanent magnet synchronous motor and motor controller
CN106933261A (en) Position following control system and control method based on stepper drive
CN106787960B (en) A kind of method, apparatus and self-service dealing equipment controlling paper money case electric motor starting
CN108631679A (en) A kind of position signal filtering method and system
CN206387883U (en) A kind of residual current adjusting means
CN111694296A (en) Intelligent knob adjusting device and adjusting method thereof
WO2012077767A1 (en) Motor control circuit
CN103576699A (en) Micro-adjustment method for equipment coordinate position
CN111010060B (en) DC compensation method and circuit for stepping motor
WO2021143915A1 (en) Control method and apparatus, and storage medium
CN111948537B (en) Method for calibrating maximum torque flux linkage ratio working point of salient pole type permanent magnet synchronous motor
CN108462428A (en) Motor speed adjusting method and device, computer readable storage medium, terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant