Drive controller to a fixed position using encoder counter

9 years 7 months ago #29526694 by Anonymous
I am having difficulty figuring out a way to drive the controller to a fixed position, using the encoder counter. I was able to do this with my AX-3500 and AX-2550, but when I went to get an encoder adapter for the AX2550, I was told you are no longer manufacturing this controller or parts. I have purchased 3 HDC2450's instead, but need to be able to drive to a position. I thought I could at least do this in the macrobasic scripting, but it doesn't seem like I can. Let me know what I can do to get this working.

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29526695 by Roboteq
Position mode is supported.
The current mode lets you define a count as min and another as max. Then you can give a command of -1000 to +1000 and the motor will move between the min and max count proportionally to the command value (i.e. you can position within 2000 points)
There is another mode that we are currently developing that lets you go to a specific encoder count.
In both cases, you can set and acceleration, steady speed, and deceleration.
The first mode is documented in the manual.
The second is not yet released. However, you can contact us at This email address is being protected from spambots. You need JavaScript enabled to view it. and we will send you a beta version of it.

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29526696 by Anonymous
I would love to try the beta version of the new mode! However, I will do that on a test bench, not on a production setup. The production setup, I am a little confused as to the order of commands to make the movement happen.

Here is what I think I am supposed to do, but I am confused, as it doesn't seem to get the motor moving.

*closed loop position mode
^eppr 1 200
^ell 1 1
^ehl 1 438,600
^emod 1 2

!AC 1 2000
!DC 1 4500
!S 1 280
!G 1 1000

and the !g should start the motion, I would then !g 1 0 to go back to my 'low / start'
what am I missing or doing wrong?

Please Log in or Create an account to join the conversation.

9 years 7 months ago #29526697 by Roboteq
Try first configuring things using the config tab. It is easy to miss something or get things wrong from the console.
Configure encoder 1 as feedback for motor 1. It wont work otherwise.
Then on the motor menu, set the acceleration, decel, and position mode velocity.
Then close the loop. Use the slider to move from min to max
The manual gives some info about the position mode and how to make it work.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.111 seconds