Traj error while hitting cycle start

More
26 Sep 2015 22:20 #63025 by bevins
Hi all,

I am getting an error when hitting cycle start button on button panel.

"cant do that (EMC_TRAJ_SET_TELOP_ENABLE) in auto mode with the interpreter idle"

axis version 2.5.3

net cycle-start <=hm2_5i25.0.7i77.0.0.input-12 halui.mode.auto halui.program.run

IT is a bit intermittant which I assume depending on the state that linuxcnc is in at the moment.
I am just running toolpath, when it is done, raise the Z, change parts, recheck z0 then raise Z with button then hit cycle-start button. Sometimes it does it and sometimes it does not.
I cant seem to figure out what logic makes it happen but cannot.

Any help is appreciated. Not a show stopper, I would just hit the play button in axis to cycle-start when it does it. I have accociates that when they operate it they want to know why it is happening.

It has done it to me this morning 8 times.

Thanks,

Bob

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

More
29 Sep 2015 16:30 #63190 by andypugh

net cycle-start <=hm2_5i25.0.7i77.0.0.input-12 halui.mode.auto halui.program.run


You might need a delay between program-auto and program-run.

maybe
net cycle-start <=hm2_5i25.0.7i77.0.0.input-12 halui.mode.auto timedelay.0.in
net cycle-start-deleayed timedelay.0.out halui.program.run

It does check the mode switch before the run command, but the mode switch may take some time to take effect.
git.linuxcnc.org/gitweb?p=linuxcnc.git;a...16fcaf;hb=HEAD#l1696

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

More
29 Sep 2015 19:54 - 29 Sep 2015 19:55 #63206 by bevins
ok, I'll try that.

What does the cycle start button in axis call? That works everytime.
Last edit: 29 Sep 2015 19:55 by bevins.

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

More
30 Sep 2015 23:14 #63286 by BigJohnT
I'm sure axis changes the mode then waits for the mode to change then starts. You can do the same thing in hal with halui and and2.

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

Have your input set mode to auto and an input on the and2. Have is auto set the other input on the and2. Have the output set the run.

JT

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

Time to create page: 0.078 seconds
Powered by Kunena Forum