Number of Mototrs Revolutionss

5 years 5 months ago - 5 years 5 months ago #29530403 by maha
hello,
I have Roboteq SDC21xx motor controller and I want to get how much is the number of revolutions did the motor at any time.
in order to get the Encoder value.

I tried to use the _ABCNTR but it gives me the speed the i provided for the motor.
e.g.
setcommand(_GO, 1 , 700)
getvalue(_ABCNTR, 1)

i get 750 and so on.
I need how many revolutions did the motor do?
u have any idea?

what should i put in the getvalue function instead of the _ABCNTR in order to get the number of revolution or at least pulses?
what does _ABCNTR brings up?

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

5 years 5 months ago #29530408 by TechSupport
1 pulse = 4 counts.

To get an idea of how many counts per 1 full revolution do the following.

Go directly "Run" tab of the Roborun+ utility.

In the bottom right corner of the browser, set a channel drop down for counter 1 or counter 2 if using second channel.

The value to the right of it tells you the encoder absolute count. If powered up and motor has not moved, this value is 0.

See what the value of the count is first. the rotate the shaft of the motor manually by hand 1 full turn and the utility will tell you how many counts were used to make that turn. So if it gives you a value of say 24, then (1 pulse = 4 counts) then you divide by 4, to get the number of pulses.
The following user(s) said Thank You: maha

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

Moderators: tonysantoni
Time to create page: 0.273 seconds