# Fanuc Series 15i/150i-MA (Programming) Operators Manual

9.SPINDLE SPEED FUNCTION (S FUNCTION) PROGRAMMING B-63324EN/03
- 232 -
9.3.1 Spindle Positioning
Explanation
There are two programming methods: indexing at an arbitrary angle,
and indexing at a semi-fixed angle.
- Indexing at a semi-fixed angle with an M code
This is specified with a two-digit numeric value following address M.
Up to six codes of Mα to Mβ can be specified. α is preset with
parameter (No.5896,5897). The following table shows the
correspondence between Mα to Mβ and indexing angles. γ is preset
with parameter 5898. Note that a rotation direction can be specified
using the sign of γ.
Table9.3.1 M Codes for Positioning at Semi-Fixed Angles
M code Indexing angle (deg) Example (When γ= 30°)
Mαγ 30°
M(α+1)
2γ
60°
M(α+2)
3γ
90°
M(α+3)
4γ
120°
M(α+4)
5γ
150°
M(α+5)=Mβ
6γ
180°
- Positioning to an arbitrary angle by an axis address
An index position is specified using an axis address followed by a
numeric value. (A signed value can be specified.) Either absolute or
incremental programming can be used. Specify an axis address in G00
mode. The position of the decimal point represents the position of
"degrees."
Example) C35.0 C35 degrees
- Program zero-point
The position after orientation is assumed to be a program zero-point.
The program zero-point can, however, be changed by setting a
coordinate system (G92).
- Absolute and incremental programming
For indexing at a semi-fixed angle based on an M code, incremental
programming must always be used. For indexing at an arbitrary angle
based on an axis address, a command must be specified.
- Feedrate
The rapid traverse rate specified in parameter No. 1420 is used as a
feedrate for positioning, and linear acceleration/deceleration is applied.