Adaptive-feed , any solution change in auto mode

More
30 Sep 2022 08:33 - 30 Sep 2022 08:38 #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

Last edit: 30 Sep 2022 08:38 by tivoi.

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

More
30 Sep 2022 09:56 #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 or Create an account to join the conversation.

More
30 Sep 2022 10:08 - 30 Sep 2022 10:12 #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)
Attachments:
Last edit: 30 Sep 2022 10:12 by tivoi.

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

More
30 Sep 2022 11:58 - 30 Sep 2022 11:59 #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
os.system("halcmd setp mux.0.sel 1")
Last edit: 30 Sep 2022 11:59 by andypugh.
The following user(s) said Thank You: tivoi

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

More
10 Feb 2023 15:59 - 10 Feb 2023 19:26 #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
Attachments:
Last edit: 10 Feb 2023 19:26 by udoS.

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

More
11 Feb 2023 17:00 #264296 by cmorley
looks like there is only a message to enable/disable it.
Setting the value is only thru HAL

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

More
11 Feb 2023 17:51 - 11 Feb 2023 17:52 #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;
 
Last edit: 11 Feb 2023 17:52 by udoS.

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

More
11 Feb 2023 20:59 #264317 by cmorley
Why can't you just set the HAL pin?

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

More
12 Feb 2023 09:53 - 12 Feb 2023 10:44 #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
Attachments:
Last edit: 12 Feb 2023 10:44 by udoS.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum