Welcome, Guest

TOPIC: Convert x inches to motor position

Convert x inches to motor position 6 years 9 months ago #365

  • gwood24
  • gwood24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 2
  • Karma: 1
I have a smart motor with a 4000 count encoder. I need to have my user input a number in inches and have the motor move that distance relative to its current position.

How do I go about this?

We are calculating velocity as follows:

Velocity = X * Y * Z

where:
X = 4000 (motor is a class 5 4000 count per rev encoder)
Y = User Defined distance in inches
Z = User defined value for Hz (motor counts per inch)

I want to move the motor back and forth between the left limit and right limit of the user specified distance in inches assuming a starting position at the center of the user defined distance.

Right Limit = Current Motor Position + (User Defined Width / 2)
Left Limit = Current Motor Position - (User Defined Width / 2)

how do I convert that user defined distance in terms the motor program will understand?
Last Edit: 6 years 9 months ago by gwood24.
The administrator has disabled public write access.

Re: Convert x inches to motor position 6 years 9 months ago #366

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
The first thing that needs to be known how far the linear actuator (be it belt, screw, or rack and pinion) moves for one revolution of the motor shaft.

Ex.
If I have a ballscrew that moves 0.200"/revolution, and a motor with 4000 counts per revolution, then a move of one inch would be 5*4000 or 20000 encoder counts.
The administrator has disabled public write access.
The following user(s) said Thank You: gwood24

Re: Convert x inches to motor position 6 years 9 months ago #367

  • gwood24
  • gwood24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 2
  • Karma: 1
We are using an animatics H3-0409025B23MS1N1N4N HLD Actuator with animatics 23165DT class 5 motor. Am I correct in saying this actuator / motor combination will move 2.5mm per revolution?

If so my calculation would be

0.098425 * 4000 or 393.7 counts per inch?
Last Edit: 6 years 9 months ago by gwood24.
The administrator has disabled public write access.

Re: Convert x inches to motor position 6 years 9 months ago #368

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
Yes... the H3-0409025B23MS1N1N4N moves 2.5mm/revolution of the motor.
The administrator has disabled public write access.
The following user(s) said Thank You: gwood24

Re: Convert x inches to motor position 6 years 8 months ago #371

  • gwood24
  • gwood24's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 2
  • Karma: 1
The formula in my previous post was wrong....

(distance / 0.98425)* 4000 would give me the correct motor counts per inch assuming an actuator that moves 2.5mm per revolution of a motor with a 4000 count encoder
Last Edit: 6 years 8 months ago by gwood24.
The administrator has disabled public write access.
Moderators: hsummer, csearcy, swalters, mmeyers
Time to create page: 0.229 seconds
Powered by Kunena Forum