Crazy? I am not a psychological medical professional. Seems like you might be going about it the hard way unless someone can just give you the answer. If your machine can use M-codes to execute tool clamp, unclamp, and spindle orient, I would push for that.
Can be done in sub-calls:
(Tool pick up)
T20 M06 (Empty tool pocket)
G00 Xxx.xxx Yxx.xxx (Rapid to align with oversized tool)
G00 Zxx.xxx (Rapid to just above the tool)
M19 (Orient spindle)
Mxxx (M-code for tool unclamp)
G01 Zxx.xxx Fxx.x (Lower spindle onto tool)
Mxxx (M-code for tool clamp)
G04 Xxx.xxx (Delay)
G00 G28 G91 Z0. (Rapid to clear - ready to machine)
(Tool drop off)
G00 Xxx.xxx Yxx.xxx (Rapid to align with oversized tool drop off location)
G00 Zxx.xxx (Rapid to just above tool drop off location)
M19 (Orient spindle)
G01 Zxx.xxx Fxx.x (Lower spindle to tool drop off location)
Mxxx (M-code for tool unclamp)
G04 Xxx.xxx (Delay)
G01 Zxx.xxx Fxx.x (Raise spindle off of oversize tool)
Mxxx (M-code for tool clamp)
G00 G28 G91 Z0. (Rapid to clear - ready for next command)


LinkBack URL
About LinkBacks




