One of the most powerful chapters in the manual is Custom Macro Programming. The Oi-TF Plus supports variable programming (arguments like #1, #2, #100, #500 series).
After running a G71 or G72, you use G70 to finish. However, the manual explicitly states that only linear (G01) and circular (G02/G03) moves are allowed between the P and Q blocks. An M-code or extra G-code will cause an alarm. fanuc series oitf plus programming manual
The Fanuc Series OiTF Plus is a CNC (computer numerical control) system designed for turning centers and turning/milling machines. It integrates motion control, I/O, and operator interface with built-in functions for lathes, multitasking, and advanced threading/contouring. The “Plus” generation adds usability and functionality improvements over earlier OiT/OiM variants. One of the most powerful chapters in the
O1000 (PROGRAM NAME)
N10 G28 U0 W0 (Return to reference point)
N20 T0101 (Select Tool 1, Offset 1)
N30 G97 S800 M03 (Set RPM 800, Spindle CW)
N40 G00 X50. Z5. (Rapid move to start point)
...
N100 M30 (End of Program)
A typical program:
O1234 (Program number)
N10 G50 S2000 (Max spindle speed clamp)
N20 G96 S200 M03 (Constant surface speed, spindle CW)
N30 G00 X100. Z5. T0101 (Rapid to safe position, select tool 1 offset 1)
N40 G71 U1.5 R1. (Roughing cycle – depth of cut, retract)
N50 G71 P60 Q120 U0.2 W0.05 F0.25 (Profile definition start/end, finishing allowances)
N60 G00 X40. (Profile path)
N70 G01 Z-30. F0.15
N80 X70. Z-50.
N90 Z-70.
N100 G02 X90. Z-80. R10.
N110 G01 Z-90.
N120 X120.
N130 G70 P60 Q120 (Finishing cycle)
N140 G28 U0 W0 (Return to reference)
N150 M30