Feature request: Different acceleration for rapid and feed moves

More
6 years 9 months ago #154658 by Shu
I would like to be able to set different acceleration values in the ini for rapids and feeds.

Right now I use a custom m code to execute something like
Code:
halcmd setp ini.0.max_acceleration 9800
right before G0 lines. With a custom CAM postprocessor. And after the last G0 movement another custom m code to set it back to the default. This works well and shaves of a lot of time while keeping the finish quality high. The particular machine has more than 3000mm of travel and can move with 82000 mm/min (3200 in/m) thus it makes a huge difference for G0 moves what acceleration the config has. On the other hand, acceleration needs to be set low during cuts to have a high surface finish.

I'm wondering if there are cases where this hack is not going well. E.g. with G64 active and switching acceleration between two G0 or G1 codes that will be affected by path blending. I have not checked if the halcmd does bust the queue. :whistle:

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

More
6 years 9 months ago #154712 by aleksamc
I think you should look for analog output and change it for G-code using M68 E<Out_numb> Q<acceleration>
in hal you should use input to your acceleration from motion.analog−out−NN.
For example:
Inhal
Code:
net set_accel motion.analog-out-00 => ini.0.max_acceleration

And from G-code you should write:
M68 E0 Q9800

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

More
6 years 9 months ago #154767 by Shu
Yes that might be cleaner than using halcmd. But how to ditch m codes to change acceleration before and after every g0 entirely?

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

More
6 years 9 months ago - 6 years 9 months ago #154776 by aleksamc
Currently it's not question for linuxcnc program. I tried to tell you what to do to operate your accelaration from g-code.

1) The simplest way to write G0 with M68 command is to use "Replace" statment in your text editor, for example "G0 raplace with M68 E0Q100 G0".
2) Configure your post for generating G-code that you need.
3) Remap G0
Last edit: 6 years 9 months ago by aleksamc.

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

More
6 years 9 months ago #154815 by Shu
1.) is a bad idea as it will break blending between two subsequent G0 lines. A custom m code that checks a flag if the acceleration needs to be altered is better. Any M68 will bust the queue.
2.) Is the current state. As I explained, I have a custom m code and the post processor handles it, only inserts it once, not for every G0 line. I would like to ditch this and have separate acceleration values for rapid and feed moves.
3.) Can you give advice on how to do that without recompiling? AFAIK G0 can't be remapped.

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

More
6 years 9 months ago #154839 by aleksamc

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

Time to create page: 0.273 seconds
Powered by Kunena Forum