Adaptive-feed , any solution change in auto mode

More
4 years 1 month ago #253078 by tivoi
hi all
i read linuxcnc doc, adptive feed mode can change in mode manual or mdi
any solution can change it realtim, in mode auto pause

best regards

Please Log in to join the conversation.

More
4 years 1 month ago #253083 by andypugh
You could maybe change the way that it is calculated? Something in HAL which switches the calculation method.

M52 turns adaptive feed on and off too. You could insert that in the G-code (maybe as an optional block?)

What problem are you trying to address?

Please Log in to join the conversation.

More
4 years 1 month ago #253084 by tivoi
thanks your answer
i trying change by python
i want switch adaptive mode via external push button like syntec

import sys
import linuxcnc
c = linuxcnc.command()
s = linuxcnc.stat() # create a connection to the status channel
s.poll()
c.auto(linuxcnc.AUTO_PAUSE)
c.set_adaptive_feed(1)

Please Log in to join the conversation.

More
4 years 1 month ago #253090 by andypugh
One way would be to insert a mux HAL function with one input from the adaptive feed input and one set to 1, then trigger the mux switch from your python code. (either by creating and driving a HAL pin, or (more clumsily) by using
Code:
os.system("halcmd setp mux.0.sel 1")

Please Log in to join the conversation.

More
3 years 8 months ago #264230 by udoS
@andypugh or any one can help

How would I set the adaptive-feed value with a nml-command?  if there is one;

just like setting EMC_TRAJ_SET_RAPID_SCALE or EMC_TRAJ_SET_MAX_VELOCITY ??

thank's in advance

Please Log in to join the conversation.

More
3 years 8 months ago #264296 by cmorley
looks like there is only a message to enable/disable it.
Setting the value is only thru HAL

Please Log in to join the conversation.

More
3 years 8 months ago #264297 by udoS
@cmorley  thank's, I was almost expecting that;

What would it take ( How To ) to implement that input into the nml-channal;
23. Adding custom NML commands....
I think I'm not ready for that just yet; .... GGgggrrrr;
 

Please Log in to join the conversation.

More
3 years 8 months ago #264317 by cmorley
Why can't you just set the HAL pin?

Please Log in to join the conversation.

More
3 years 8 months ago #264348 by udoS
@cmorley  thank's,
Yes I could do it, using the halPin;
But up to this point the UI is just depending on the NML channel;
I wanted to avoid the HAL, and just see how far I can get; that's all.

best regards

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum