The axis of rotation has no negative direction

More
22 Dec 2021 08:15 - 22 Dec 2021 08:17 #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.
Last edit: 22 Dec 2021 08:17 by jess.

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

More
22 Dec 2021 15:39 #229741 by Michael
Will need some config files to help sort it out. Hal and ini

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

More
23 Dec 2021 00:54 - 23 Dec 2021 00:55 #229783 by jess
 

File Attachment:

File Name: rpi3b-5axis.ini
File Size:6 KB
 

File Attachment:

File Name: rpi3b-5axis.hal
File Size:8 KB
这是我的配置文件,我是通过Stepconf配置复制过来的,可能有点乱。
Attachments:
Last edit: 23 Dec 2021 00:55 by jess.

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

More
23 Dec 2021 01:47 - 23 Dec 2021 01:50 #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.

 
Last edit: 23 Dec 2021 01:50 by Michael.

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

More
23 Dec 2021 03:55 #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
The following user(s) said Thank You: Michael

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

Time to create page: 0.072 seconds
Powered by Kunena Forum