cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Need to Insert G Codes before Tool Change

mbraaten
7-Bedrock

Need to Insert G Codes before Tool Change

I need to insert G91G28Z0. before the tool change. Suggestions? See below:

X-50.
Z15.
G0X150.Y100.
G0Z13.7
G1Z10.
X-50.
Z15.
G91G28Z0.
M5
; / NC SEQUENCE NAME : SQUARE_POCKET)
; / NC SEQUENCE COMMENTS)
; / THIS SEQUENCE MILL THE SQUARE POCKET.)
; / TOOL NAME : FEM5MM)
T4M6

Regards,
Michael Braaten
PLM/CAX Systems Analyst - Synthes, Inc.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Thanks to Francois Lamy for the answer! Just added the following to the fil file.

$$ ************************************************************* SPINDL
CIMFIL/ON,SPINDL
TYP=POSTF(7,4) $$ first param. of SPINDL command
OK=POSTF(20) $$ Save CL rec.
IF (TYP.EQ.ICODEF(OFF)) THEN
INSERT/'G91G28Z0.$'
ENDIF
OK=POSTF(21) $$ Restore CL rec.
OK=POSTF(13) $$ Process CL rec.
CIMFIL/OFF

This will put the command in front of the M5 SPINDL/OFF. Great solution, as usual! Thanks.

I need to insert G91G28Z0. before the tool change. Suggestions? See below:

X-50.
Z15.
G0X150.Y100.
G0Z13.7
G1Z10.
X-50.
Z15.
G91G28Z0.
M5
; / NC SEQUENCE NAME : SQUARE_POCKET)
; / NC SEQUENCE COMMENTS)
; / THIS SEQUENCE MILL THE SQUARE POCKET.)
; / TOOL NAME : FEM5MM)
T4M6

Regards,
Michael Braaten
PLM/CAX Systems Analyst - Synthes, Inc.

Regards,Michael BraatenPLM/CAX Systems Analyst - Synthes, Inc.
Top Tags