The axis of rotation has no negative direction

More
4 years 10 months ago #229705 by jess
I am a novice and am configuring a 5-axis program on raspberry PI 4 using GPIO to output pulses.
But in the simulation, I found that my axis of rotation had no negative direction, so that it always rotated 360°.
For example, if axis A moves from 30° to 0°, axis A will rotate 330° instead of -30°
I hope to get your help and I will be grateful.

Please Log in to join the conversation.

More
4 years 10 months ago #229741 by Michael
Will need some config files to help sort it out. Hal and ini

Please Log in to join the conversation.

More
4 years 10 months ago #229783 by jess
 

Attachment not found

 

Attachment not found

这是我的配置文件,我是通过Stepconf配置复制过来的,可能有点乱。

Please Log in to join the conversation.

More
4 years 10 months ago #229785 by Michael
Just looked at this real quick. But how are you asking for it to go in a negative direction?

If your command is to move from A30 to A0 then it will move to that in a positive direction. It looks like if you were to ask for A-0 then it would go in the negative direction.

wiki.linuxcnc.org/cgi-bin/wiki.pl?WrappedRotaryAxes
www.forum.linuxcnc.org/49-basic-configur...-wrapped-rotary-axis

Also noticed you have in your INI "WRAPPED_ROTARY = 3" and was wondering what that means.

 

Please Log in to join the conversation.

More
4 years 10 months ago #229787 by jess
Thank you very much
The articles were very useful to me, and he solved my problem
"WRAPPED_ROTARY = 3" this should be wrong, I didn't notice

Thank you again for

Please Log in to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum