Jogging command failed and Set Origin all axis

More
14 Nov 2012 00:25 #26536 by diegoroman17
HI everybody,

I have two problems

I have a GUI with jog buttons. They work fine before of execute a G program, after this they don't work and I have a message in the terminal "can't do that (EMC_AXIS_JOG) in auto mode with the interpreter idle" how I can solution this?

In the middle of Jog buttons I have a button to set the actual position origin of my coordinate system. I think that it is with G53 command but I don't know how set this from my button in my GUI.

Thanks you for your help.

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

More
14 Nov 2012 01:19 - 14 Nov 2012 01:27 #26540 by BigJohnT
You need to change the mode back to manual or mdi I forget which.

Some clues here

linuxcnc.org/docs/html/common/python-int...ing_to_send_commands

John
Last edit: 14 Nov 2012 01:27 by BigJohnT.

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

More
14 Nov 2012 03:32 - 14 Nov 2012 03:35 #26545 by BigJohnT
This is one of my jog buttons

In my __init__ is the following
    self.cnc = linuxcnc
    self.s = self.cnc.stat()
    self.c = self.cnc.command()

My jog x plus button. See how I check for manual mode and if needed change the mode.
def on_jog_x_plus_pressed(self, widget, data=None):
    self.s.poll()
    if self.s.task_mode != self.cnc.MODE_MANUAL:
      self.c.mode(self.cnc.MODE_MANUAL)
      self.c.wait_complete()
    if self.builder.get_object("jog_speed").get_value() > 0:
      self.c.jog(self.cnc.JOG_CONTINUOUS, 0, self.builder.get_object("jog_speed").get_value() / 60)


John
Last edit: 14 Nov 2012 03:35 by BigJohnT.

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

More
14 Nov 2012 04:26 #26551 by diegoroman17
Thank you John, now it work :)

Now can you help me with a action update G Code program without use Update Action in GladeVCP. I want update my current G Code program in phyton code.

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

More
14 Nov 2012 04:52 #26553 by BigJohnT
My guess is it is one of these commands

program_open(string)
open an NGC file.
reset_interpreter()
reset the RS274NGC interpreter

John

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

More
15 Nov 2012 04:44 #26595 by diegoroman17
Neither command works. I tried in MDI mode, in AUTO mode and don't have any result. I tried in MANUAL mode and in my terminal appear a message that say can't do that (EMC_TASK_PLAN_OPEN) in manual mode. And with update action of GladeVCP this work. How this work?

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

More
15 Nov 2012 07:42 #26599 by diegoroman17
I have solved my problem by assigning both hal_reload_action and an activation signal to my button.

Now can anyone help me with the clean of gremlin component?

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

More
15 Nov 2012 16:07 #26614 by cmorley

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

Time to create page: 0.087 seconds
Powered by Kunena Forum