Emulating lathe compound angle via manipulation of X & Z drives

More
19 Jun 2025 07:34 - 19 Jun 2025 07:34 #330491 by slowpoke
Axis GUI for a lathe, using Mesa 
I have servos driving the X (cross slide), and Z (carriage) all working.
I also have MPG to manipulate X & Z.
I have removed my compound to make the lathe more rigid, with the rationale that I can emulate the compound via correct step pulse generation of the X & Z drives via the MPG.

Has someone done this?
HAL example?

Thank you

 
Last edit: 19 Jun 2025 07:34 by slowpoke.

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
19 Jun 2025 09:37 #330494 by Aciera
The following user(s) said Thank You: besriworld, slowpoke

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

More
19 Jun 2025 12:27 - 19 Jun 2025 12:52 #330499 by slowpoke

For jogging there is the 'anglejog' component:
linuxcnc.org/docs/stable/html/man/man9/anglejog.9.html
 

Thank you, and this is what I love about LinuxCNC, it seems that whatever somewhat custom idea you dream up LinuxCNC has the handle to make it happen. It's a tinkerer's  candy store.
Last edit: 19 Jun 2025 12:52 by slowpoke.
The following user(s) said Thank You: tommylight, besriworld

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

More
25 Jun 2025 18:38 #330869 by slowpoke

For jogging there is the 'anglejog' component:
linuxcnc.org/docs/stable/html/man/man9/anglejog.9.html
 
Thank you, and this is what I love about LinuxCNC, it seems that whatever somewhat custom idea you dream up LinuxCNC has the handle to make it happen. It's a tinkerer's  candy store.
 

I need a little assistance with anglejog please.
I added anglejog to the real time thread so I can see the parameters in HAL.
I was hoping to just do a little test jog from HAL before connecting coscounts and sincounts to the servos in HAL.
However both those outputs seem to have really large numbers. Please see attached.
is there anything obvious that I'm doing wrong?
   
 
Attachments:

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
26 Jun 2025 06:39 #330884 by Aciera
The most likely problem is that you have 'anglejog.current-scale' = '0'.

Note that the 'anglejog.scale-in' value is only sampled when 'anglejog.enable-in' is false. (See 'Notes' in the man page linked above)

You may want to have a look at the anglejog sim config :
configs/sim/axis/anglejog

 
Attachments:
The following user(s) said Thank You: slowpoke

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

Time to create page: 0.375 seconds
Powered by Kunena Forum