Reload Program Through Pin

More
18 Aug 2015 08:44 #61501 by Delron
I'm interested to know if anyone has solved this yet?

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

More
18 Aug 2015 20:07 #61506 by ArcEye
Replied by ArcEye on topic Reload Program Through Pin
Unless you hack into Axis itself, there is nothing to solve, Andy has given the answer.

axis-remote --reload

Send that by whatever method you like, the M code script is the easiest.

The best programmatic solution would be to add to axisui and create a bit pin which triggers a reload.

See www.mgware.co.uk/ > Axis Modifications > Disable Run
for an example of how to add to the axisui pins

regards

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

More
24 Aug 2015 00:17 #61703 by Delron
Replied by Delron on topic Reload Program Through Pin

Unless you hack into Axis itself, there is nothing to solve, Andy has given the answer.

axis-remote --reload

Send that by whatever method you like, the M code script is the easiest.

The best programmatic solution would be to add to axisui and create a bit pin which triggers a reload.

See www.mgware.co.uk/ > Axis Modifications > Disable Run
for an example of how to add to the axisui pins

regards


I have tried to use "Axis-remote --reload &" in every-which-way I can think of. It always hangs for seconds and then throws an error after executing.

Here is the last method I tried.

M101

#!/bin/sh
halcmd setp halui.mode.mdi true
axis-remote -m "o100 call"
axis-remote —reload &
exit 0

Sure would like to see Linuxcnc create a method to deal with this problem in the next release.

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

More
24 Aug 2015 00:54 #61705 by PCW
Replied by PCW on topic Reload Program Through Pin
Did you try your script from the command line to see what the errors were?

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

More
24 Aug 2015 00:58 #61706 by Delron
Replied by Delron on topic Reload Program Through Pin

Did you try your script from the command line to see what the errors were?


Works from the command line fine.
Only delays and error when evoked from M-code

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

More
24 Aug 2015 01:02 #61707 by PCW
Replied by PCW on topic Reload Program Through Pin
what is the error?
(of course you cannot invoke this when running a program)

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

More
24 Aug 2015 01:06 #61708 by Delron
Replied by Delron on topic Reload Program Through Pin

what is the error?
(of course you cannot invoke this when running a program)


Running a z-probe routine evoked from a pendant.

Error is "can't do this in manual mode."

It does do it, just hangs for a long time then spits the error after reloading.

I see many other people having the same problem.

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

More
24 Aug 2015 01:08 #61709 by Delron
Replied by Delron on topic Reload Program Through Pin
Same problem as this guy.

www.linuxcnc.org/index.php/english/forum...-vs-keyboard-end-key

this post led me to believe he may have solved it, but not for me. I'm running latest release.

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

More
24 Aug 2015 01:33 #61711 by PCW
Replied by PCW on topic Reload Program Through Pin
Wonder if there's is a race condition? (mode not changed before reload issued)

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

More
24 Aug 2015 02:52 #61714 by BigJohnT
Replied by BigJohnT on topic Reload Program Through Pin
If you get a wrong mode error then your code needs to check the mode and place LinuxCNC into the correct mode (MDI).

Take a look at halui modes.

www.linuxcnc.org/docs/2.7/html/man/man1/halui.1.html

You can also do this with the python interface.

JT

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

Time to create page: 0.157 seconds
Powered by Kunena Forum