Code oddity ??

More
3 years 5 months ago #270780 by Vmax549
Code oddity ?? was created by Vmax549
Hi Guys I am working on a routine and part of that routine is for the Z to retract back to home (G53 Z0) .  The problem is when the code runs it will not retract. It gives a message that the program is still running and will not issue the MDI call.

How do I make it run the MDI call to G53 Z0

 
Code:
if event.type == gtk.gdk.KEY_RELEASE: if kv == gtk.keysyms.F9 : self.error_handler.log("start F9 button event") self.enqueue_button_press_release(self.button_list['feedhold']) global test1 test1 = hal.get_value("motion-program-line") self.enqueue_button_press_release(self.button_list['stop']) self.set_message_line_text("Program stopped on line number >: "+str(test1)) self.issue_mdi('G0 G53 Z0')

 

Please Log in to join the conversation.

More
3 years 5 months ago #270866 by gerritv
Replied by gerritv on topic Code oddity ??
take a look for firmly_issue_mdi(self, mdicmd) in rack_tool_change.py for a hint on how to solve this.

Please Log in to join the conversation.

More
3 years 5 months ago #270894 by Vmax549
Replied by Vmax549 on topic Code oddity ??
OK I see what it does. I tried to use the code directly but it is not recognized as it is in another modual.

SO I tried to import that function( rack_tool_change) and run firmly_issue_mdi and that did not work It still does not recognise firmly_issue_mdi.

Perhaps I did not import it correctly ?? import rack_tool_change

(;-) TP

Please Log in to join the conversation.

More
3 years 5 months ago #270897 by Vmax549
Replied by Vmax549 on topic Code oddity ??
OK I figured out this is not a good idea in all circumstances of cutting as the tool could be undercutting and would break the tool and part. SO let's drop this idea

(;-) TP

Please Log in to join the conversation.

Time to create page: 0.335 seconds
Powered by Kunena Forum