Subprogram

CNC Lathe Subprogram Call Multiple Times Example

CNC Lathe Subprogram Call Multiple Times Example

Main Program: N5 G90 F0.2 S1200 T0101 M04 N10 G00 X40 Z0 N20 M98 P37000 (call subprog O7000 three times) N30 G01 W-30 N40 G28 U0 W0 N50 M05 M30…

OD Turning with G73 Pattern Repeating Cycle CNC Lathe Example Program

OD Turning with G73 Pattern Repeating Cycle CNC Lathe Example Program

Main Program: N0 G90 F0.2 S1200 T0101 M04 N10 G00 X42 Z2 N30 M98 P12000 (call subprog O2000 once) N130 G28 U0 W0 N140 M05 M30 Subprogram: O2000; N30 G73…

Socket with Thread Fanuc 21i CNC Program Exercise

Socket with Thread Fanuc 21i CNC Program Exercise

( CONTROL FANUC 21I) ( PART – CYLINDER D102.000 L121.000) ( G54 X+000.000 Z+0240.000) O11 N10 G40 G00 N20 G99 N30 M5 N40 M9 N60 T0101 (LEFT CORNER TOOLCL-SDJCL-2020 L…

Centroid G65 Macro Program for Slots of varying Depth and Length

Centroid G65 Macro Program for Slots of varying Depth and Length

;The main program would call this macro five times, ;each time specifying the depth and length required. ;macro variables would handle the length in the Y direction ;and depth in…