Reload Program Through Pin

More
11 years 2 months ago #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
11 years 2 months ago #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
11 years 2 months ago #61703 by Delron
Replied by Delron on topic Reload Program Through Pin

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 or Create an account to join the conversation.

More
11 years 2 months ago #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
11 years 2 months ago #61706 by Delron
Replied by Delron on topic Reload Program Through Pin

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 or Create an account to join the conversation.

More
11 years 2 months ago #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.

Time to create page: 0.092 seconds
Powered by Kunena Forum