sync encoder with magsensor

6 years 2 months ago #29529867 by TechSupport
Go to the run tab. In the bottom right area, select a channel for counter 2.

The counter should be 0 at power up since this is a ram based value and gets reset as soon as controller loses power.

Manually turn the motor by hand and see if this value goes + and - depending on the direction of the turn. If this works, then you can test it by setting your controller to closed loop count position and sending a serial command.

Disable the watchdog timer first in case motor starts spinning and then stops. Also disable the loop error detection in the closed loop parameters.

^rwd 0

Then send the command to go to count position 2000
!P 2 2000

If the motor doesn't move, then there may be a setting issue.

The mot

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

6 years 2 months ago #29529868 by Faisal_engr
okie i do it tomorrow because the only thing i havent done is not use ^rwd 0 command which is watch dog timer i think, i will do it tomorrow and then come back to you hope its start working.

thanks

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

6 years 2 months ago #29529884 by Faisal_engr
i was doing mistake that i am using motor2 as a command and counter1 for feedback so its not working. now i am using motor2 as command and counter2 as feedback so now it start working.

well now i want to know that can i save the counter value in sdc2130 .... if this can happen its help alot, or is there anyway that i save my counter value...

waiting for your reply
thanks

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

6 years 2 months ago #29529885 by TechSupport
Unfortunately this is not possible at this time.

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

Moderators: tonysantoni
Time to create page: 0.102 seconds