Code oddity ??
- Vmax549
- Offline
- Platinum Member
Less
More
- Posts: 341
- Thank you received: 28
06 May 2023 09:10 - 06 May 2023 09:11 #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
How do I make it run the MDI call to G53 Z0
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')
Last edit: 06 May 2023 09:11 by Vmax549.
Please Log in or Create an account to join the conversation.
- gerritv
- Offline
- Senior Member
Less
More
- Posts: 71
- Thank you received: 16
07 May 2023 15:19 - 07 May 2023 15:23 #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.
Last edit: 07 May 2023 15:23 by gerritv.
Please Log in or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
Less
More
- Posts: 341
- Thank you received: 28
07 May 2023 22:03 #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
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 or Create an account to join the conversation.
- Vmax549
- Offline
- Platinum Member
Less
More
- Posts: 341
- Thank you received: 28
07 May 2023 23:27 #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
( TP
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds