physical start button + pause switch

More
9 years 10 months ago #83743 by andypugh
Halui has two pins that do the same thing, program_stop and abort:
github.com/LinuxCNC/linuxcnc/blob/master..._intf/halui.cc#L1229

Axis would appear to do something very similar.
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L2200

(Which uses the Python interface, defined here:
github.com/LinuxCNC/linuxcnc/blob/b9fc3b...s/emcmodule.cc#L1002 )
And that looks to be the same thing

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

More
9 years 10 months ago - 9 years 10 months ago #83745 by Todd Zuercher
Been busy, with other things. Lets start over, with a good description of what your hardware is and what exactly you want it to do.

Please correct:

You have a gluing machine,
It has a switch/sensor that detects if the part is in position.
The operator places the part on the machine, presses your cycle start button.
The operator can interrupt the cycle by removing the part?
-if the cycle is interrupted you want the machine to:
a) Always restart from the beginning
b) Continue from where stopped
c) Something else?
d) Operator's choise of a, b, or c

Are you very limited in the number of inputs you have available?
Last edit: 9 years 10 months ago by Todd Zuercher.

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

More
9 years 10 months ago #83747 by Todd Zuercher
Went back and looked at some of the 1st posts, and you said something about the program starting as soon as you load it. That doesn't sound right, how are you loading the program? Maybe there are other problems with your configuration that need addressed? Might be helpful to zip your config dir and upload it for us to peek at.

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

More
9 years 10 months ago #83760 by an92626
I figured out a solution to avoid the "can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in auto mode with the interpreter idle" error when stopping the program while the program is performing a interpolated move. What seems to work is first pausing the program, and then stopping it. I issue a halui.program.pause command, and then the halui.program.stop command and it seems to do the trick. I was able to stop a nc program in the middle of an interpolated move without getting the error.
The following user(s) said Thank You: SenorAguas

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

More
9 years 10 months ago - 9 years 10 months ago #83768 by SenorAguas
an92626, [strike]Almost none of my moves are 2 axis interpolated moves. Its a simple machine that moves one axis at a time for 95% of its program. This error has been consistent.[/strike]

Thanks, I'm editing this post because I was wrong. I checked with the machine this morning and there's more interpolated moves than I thought. You are correct about it only happening in interpolated moves.
Last edit: 9 years 10 months ago by SenorAguas. Reason: bad info the first time around

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

More
9 years 10 months ago #83769 by SenorAguas
Corrected:

You have a gluing machine, YES, it also cures with UV light using a different area of the "spindle"
It has a switch/sensor that detects if the part is in position. YES
The operator places the part on the machine, presses your cycle start button.YES
The operator can interrupt the cycle by removing the part? YES, unfortunately
-if the cycle is interrupted you want the machine to:
a) Always restart from the beginning YES, after restart button is hit
b) Continue from where stopped This would be ok too, but I don't want it to restart the previous line of code like it is doing now
c) Something else? NO
d) Operator's choice of a, b, or c interesting idea..

Are you very limited in the number of inputs you have available? YES, but I could probably add another or two

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

Time to create page: 0.477 seconds
Powered by Kunena Forum