G10 L81 P101 Q5041 G10 L81 P102 Q5042 (M63 sets both ports 1 and 2 off - assigned ports for pen and knife respectively) M63P1 M63P2 G4 P1 (one second pause) (G90 G0 Z15) (Lift To Safe height is commented out) (G53 G90 G0 Z[ #5433 - 0.5 ]) (Lift to the Top is commented out) (Whole turns removed) G10 L80 P7005 Q0 () M212 (Move to C=0) G90 G10 L70 P#5220 C0 (Assign C=0 as work position) G90 G0 C0 (Double check C=0) N100 if [ #5409 NE 2 ] 200 (Tool 2 Knife) G10 L80 P7005 Q1 (turns on tangential knife programming) M63P1 (pen output is off) M62P2 (knife output is on) G4 P1 (one second pause) GOTO 2000 N200 if [ #5409 NE 4 ] 300 (Tool 4 Pen) G10 L80 P7005 Q0 (turns off tangential knife programming) M63P2 (knife output is off) M62P1 (pen output is on) G4 P1 (one second pause) GOTO 2000 N2000 G10 L81 P5400 Q5409 (set current tool number) G4 P0.3 (Pause 0.3sec to update new Z correction in the controller) G90 G0 X#101 Y#102