Reload Program Through Pin

More
11 years 2 months ago #61725 by BigJohnT
Replied by BigJohnT on topic Reload Program Through Pin
I might add this would be a trivial task in Classicladder... turn a pin on and wait for a response is what ladder logic is good at.

JT

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

More
11 years 2 months ago #61727 by Delron
Replied by Delron on topic Reload Program Through Pin
So many hoops to go through just to reload a program after a touch-off.
I think I give up. Was hoping to run my machine mostly from the pendant, but I guess I'll have to keep a keyboard and or mouse nearby.

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

More
11 years 2 months ago #61736 by PCW
Replied by PCW on topic Reload Program Through Pin
Umm cradek on the linuxcnc-dev irc channel pointed out what should have been obvious:
How can you change the manual/mdi mode via M101 since you are running a program
by definition if you are executing a M101...

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

More
11 years 2 months ago #61743 by Delron
Replied by Delron on topic Reload Program Through Pin
I just don't understand. We are all simply trying to touch-off to a work piece by pressing a button on our pendents. When we do that, we a mostly triggering a sub routine to probe down, and set the working offset. However, Linuxcnc will not refresh the new offset plot in this manner, so we must reload the program.
All the experts say to use a M-Code to do a axis-remote --reload. However, when we all try that, we get errors. Then we ask why, and they say you can't do that while running a m-code????

I have searched the internet for many days on how to solve this simple problem, and it seems that lots of people have given advise, but never really tried it themselves. Zero working examples!

Andy once put it;


Re: [Emc-users] axis-remote in M-call problems
From: andy pugh <bodgesoc@gm...> - 2013-04-09 20:52:52

On 9 April 2013 19:54, Henrik Munktell <henrik.munktell@...> wrote:

> I have a probe function that probes towards the work piece, on contact, I
> set Z pos with "G10 L20". When I do that, the preview plot in axis does not
> update and represent the correct Z height. So I want to do a "axis-remote
> --reload" in the probe routine to refresh the plot

Refreshing the plot is a perfectly natural thing to want to do.
Wanting to reload a _running_program_ is just asking for trouble.

I wish I knew enough Python / tcl to know if it was trivial to add a
"refresh" command to Axis.

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

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

BigJohnT wrote:

strykerg wrote: is it possible to reload the current program through a hal pin?

i'm building a sort of pendant which includes a button for touching off the current axis. the touch-off works however unless the program is reloaded the backplot does not reflect the offset properly. and the only solution I found is to reload program .


Starting over, when you press the touch off button on your pendant what is it doing exactly? I assume your not in the middle of a program or are you?

JT


You know that Strykerg posted this 4 years ago right? I was reviving the thread.

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

More
11 years 2 months ago #61752 by BigJohnT
Replied by BigJohnT on topic Reload Program Through Pin
No, I missed that you had hijacked the thread...

JT

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

Time to create page: 0.337 seconds
Powered by Kunena Forum