0
754views
SUBROUTINE (REPETITIVE METHOD) | Write a milling program for a given sketch using G-code and M-codes.
1 Answer
0
2views

enter image description here

SIMULATION MODEL :-

enter image description here

ABSOLUTE MODE(G90)

Program Description
N010 G00 G71 G90 G40 G80 Rapid, metric, absolute, cancel tool comp and canned cycle
N020 T01 M06 Tool change
N030 G43 M07 Z50 Cutter comp on , coolant ON
N040 S1000 M03 Spindle speed, clockwise ON
N050 G90 G00 X45 Y60 Rapid move to point
N060 M98 P30055 call sub program
N070 G00 Z50 Rapid to z-axis
N080 G90 G00 X135 Y60 Rapid to next position
N090 M98 P30055 call sub program
N100 G00 Z50 Rapid to z-axis
N110 G90 G00 X45 Y150 Rapid to next position
N120 M98 P30055 call sub program
N130 G00 Z50 Rapid to z-axis
N140 G90 G00 X135 Y150 Rapid to next position
N150 M98 P30055 call sub position
N160 G00 Z50 Rapid to z-axis
N170 G90 G00 X250 Y250 M09 Move to point away from job, coolant OFF
N180 M05 Spindle stop
N190 M30 End of program, Machine STOP

Sub-program

Sub-Program Description
O55 Program Id
G01 Z-5 F50 Feed in z direction
G91 G03 X30 Y0 R15 Anti-clockwise rotation
G91 G03 X-30 Y00 R15 Anti-clockwise rotation
M99 Return to main program
Please log in to add an answer.