- Posts: 1029
- Thank you received: 286
Brother TC-225 / TC-229 adventure!
- ihavenofish
- Offline
- Platinum Member
-
Less
More
9 years 2 months ago #97761
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ok, got m6 to remap to my subroutine, but i cant manage to figure out how i pass the T number to it. i assume i need to map T to variable which then gets read... somehow.
I'm tired now and my brain has stopped working
I'm tired now and my brain has stopped working
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 2 months ago #97764
by andypugh
Replied by andypugh on topic Brother TC-225 / TC-229 adventure!
Are you using the standard-glue Python scripts in the remap?
In your G-code you can probably use #<tool> for the tool number.
There may also be #<tool_in_spindle>, #<selected_tool>, #<current_pocket> and #<selected_pocket>
In your G-code you can probably use #<tool> for the tool number.
There may also be #<tool_in_spindle>, #<selected_tool>, #<current_pocket> and #<selected_pocket>
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97786
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
no python at this point.
i guess that's required?
i guess that's required?
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97787
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
looking at the python stuff... is there a "standard" one? or am i creating one and placing it somewhere, based on the example in the docs?
----
def change_prolog(self, **words):
try:
if self.selected_pocket < 0:
return "M6: no tool prepared"
if self.cutter_comp_side:
return "Cannot change tools with cutter radius compensation on"
self.params["tool_in_spindle"] = self.current_tool
self.params["selected_tool"] = self.selected_tool
self.params["current_pocket"] = self.current_pocket
self.params["selected_pocket"] = self.selected_pocket
return INTERP_OK
except Exception, e:
return "M6/change_prolog: %s" % (e)
---
----
def change_prolog(self, **words):
try:
if self.selected_pocket < 0:
return "M6: no tool prepared"
if self.cutter_comp_side:
return "Cannot change tools with cutter radius compensation on"
self.params["tool_in_spindle"] = self.current_tool
self.params["selected_tool"] = self.selected_tool
self.params["current_pocket"] = self.current_pocket
self.params["selected_pocket"] = self.selected_pocket
return INTERP_OK
except Exception, e:
return "M6/change_prolog: %s" % (e)
---
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago - 9 years 2 months ago #97788
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ooooh, stdglue is something different. i see where that's supposed to be added.
is the idea that this will pass the #<tool> into my ngc's list of variables?
thanks!
is the idea that this will pass the #<tool> into my ngc's list of variables?
thanks!
Last edit: 9 years 2 months ago by ihavenofish.
Please Log in or Create an account to join the conversation.
- ihavenofish
- Offline
- Platinum Member
-
Less
More
- Posts: 1029
- Thank you received: 286
9 years 2 months ago #97789
by ihavenofish
Replied by ihavenofish on topic Brother TC-225 / TC-229 adventure!
ok, i think i got it. (not at the shop yet, so this is just in my head)
we add stdglue, which contains out prolog and epilog scrpts. those allow parameters to pass back and forth.
so in my ngc, i need to both read (for the T value) and write back status so the system knows the tool has changed for use in other features, like tool tables, display, etc..
ill get this all down eventually
we add stdglue, which contains out prolog and epilog scrpts. those allow parameters to pass back and forth.
so in my ngc, i need to both read (for the T value) and write back status so the system knows the tool has changed for use in other features, like tool tables, display, etc..
ill get this all down eventually
Please Log in or Create an account to join the conversation.
Time to create page: 2.970 seconds