Startup procedure rotation direction

#1

Hi

I was wondering if it is possible to set the rotation direction for the startup procedures and if so, how?

Cheers

Carelsbergh Stijn

0 Likes

#2

Hi Stijn!

Funny, I have the same question. Why? Before I will start my motion platform, the weight of the platform will move the actuators to the internal hardware stop. When switching on the Odrive, the startup precedure will turn the motors in the direction that the cylinder rod will be retracted - but it is still on the hardware-stop :scream:. The solution could be to start turning the motors in the opposite direction first.
I am eager to the answers you will get!
Kind regards Peter

0 Likes

#3

Hi

For me, it’s the same application.

Cheers

Carelsbergh Stijn

0 Likes

#4

If you wish to scan for the index pulse in the other direction (if for example your axis usually starts close to a hard-stop), you can set a negative value in <axis>.encoder.config.idx_search_speed .

Source:

1 Like

#5

Hi Robin,

thank you for your hint!
I was able to change the direction, but nevertheless, during the startup process, one time the motor is going further back than the starting point.
I tryed to change this with the: .encoder.config.offset = xxx command. But after a reboot the setting is gone. Dont know whether this is a bug in the firmware? Maybe its the completely wrong command to influence this ?
kind regards
Peter

0 Likes

#6

Switch your phase wires around.

Also, make sure there is no load on the motor when calibrating the offset (like a load that drives the carriage back to the endstops)

0 Likes

#7

I solved this by changing the parameter “motor.config.direction”.
I set “1” to go forward, “-1” to go reverse.

0 Likes

#8

Don’t change this motor direction variable, it is not the right way to do it. The correct way is what @Robin said with the negative search speed.

0 Likes