Search the Community
Showing results for tags 'end of toolpath'.
-
Hello, I'm trying to use Misc Values to create a line that, when added to toolpath, checks for tool break and pullout. I have recently dealed with Misc values and all of my other modifications work fine, but now i'm clueless. I have added a line to the post: if mi7$ = 1, n$ "G112", e$ pretract #End of tool path, toolchange sav_coolant = coolant$ coolant$ = zero # if nextop$ = 1003, #Uncomment this line to leave coolant on until eof unless # [ # explicitely turned off through a canned text edit if all_cool_off, [ #all coolant off with a single off code here if coolant_on, pbld, n$, sall_cool_off, e$ coolant_on = zero ] else, [ local_int = zero coolantx = zero while local_int < 20 & coolant_on > 0, [ coolantx = and(2^local_int, coolant_on) local_int = local_int + one if coolantx > zero, [ coolantx = local_int pbld, n$, scoolantx, e$ ] coolantx = zero ] coolant_on = zero ] # ] #cc_pos is reset in the toolchange here #cc_pos$ = zero gcode$ = zero pbld, n$, sccomp, *sm05, psub_end_mny, e$ pbld, n$, scoolant, e$ pbld, n$, sgabsinc, sgcode, "G53", "Z400.", e$ if mi7$ = 1, n$ "G112", e$ coolant$ = sav_coolant This is the part where the tool check should be active, just before next tool and toolchange. But there is a small problem. When I add the misc value to some operation (the last done by the tool i want to check), then in some cases it displays my G112 and sometimes it is just in a very wrong place. Lets say I want to check T26, next is T5 and after that comes T11, then applying G112 to T26 it somehow goes to the end of T11, so it is very random in some cases. I know that this is more less the place that this G112 should be, but why is it not with the right tool or not displaying at all...? Maybe you guys can help me out - or offer a more common solution to get the tool to check itself. I know that Manual Entry is there, but we like Misc values more and I would want to learn about post edit some more. Thank you!
- 8 replies
-
- end of toolpath
- g112
-
(and 1 more)
Tagged with:
Join us!
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.