- Posts: 22
- Thank you received: 0
Reload Program Through Pin
Please Log in to join the conversation.
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 to join the conversation.
ArcEye wrote: 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 to join the conversation.
Please Log in to join the conversation.
PCW wrote: 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 to join the conversation.
(of course you cannot invoke this when running a program)
Please Log in to join the conversation.
PCW wrote: 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 to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
