Reload Program Through Pin

More
11 years 2 months ago #61708 by Delron
Replied by Delron on topic Reload Program Through Pin

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

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

More
11 years 2 months ago #61715 by PCW
Replied by PCW on topic Reload Program Through Pin
Thats why I was suggesting a race condition, a script that changes the mode
may have to wait until the mode change occurs before proceeding with operations that depend on the
requested mode change

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

More
11 years 2 months ago #61717 by BigJohnT
Replied by BigJohnT on topic Reload Program Through Pin
Exactly, if your changing to mdi mode you must wait for halui.mode.is-mdi to be true before marching on in your program.

JT

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

Time to create page: 0.298 seconds
Powered by Kunena Forum