FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
14. FUNCTIONS TO SIMPLIFY
PROGRAMMING
B–62754EN/01
180
NOTE
Bit 6 (M5T) of parameter No. 5101 specifies whether the
spindle stop command (M05) is issued before the direction
in which the spindle rotates is specified with M03 or M04.
For details, refer to the operator’s manual created by the
machine tool builder.
M51 ; Setting C–axis index mode ON
M3 S2000 ; Rotating the drill
G00 X50.0 C0.0 ; Positioning the drill along the X– and C– axes
G83 Z–40.0 R–5.0 P500 F5.0 M31 ; Drilling hole 1
C90.0 M31 ; Drilling hole 2
C180.0 M31 ; Drilling hole 3
C270.0 M31 ; Drilling hole 4
G80 M05 ; Canceling the drilling cycle and stopping drill rotation
M50 ; Setting C–axis index mode off
Examples

Leave a Reply

Your email address will not be published. Required fields are marked *