
B–62073E–1/04 2. INTERFACE BETWEEN CNC AND PMC–NA OR NB
– 185 –
2.3.30 Spindle positioning function
The turning operation rotates a spindle connected to a spindle motor at a specified speed, allowing a workpiece
mounted to the spindle to be rotated and machined.
The spindle positioning function, on the other hand turns a spindle connected to a spindle motor to a specified
angle, allowing a workpiece mounted to the spindle to be positioned at a specified angle.
Use this function to drill a hole at an arbitrary position on a workpiece.
The spindle control system is illustrated below.
When the spindle is rotated for the turning operation (hereinafter called spindle turning mode), the value corre-
sponding to the spindle speed is input from the spindle control unit to the D/A converter. When the spindle is
positioned (hereinafter called spindle positioning mode), the specified angle by which to turn the spindle is input
to the error counter to generate a speed command to the spindle motor via the D/A converter. The position of
the spindle is detected by a position coder mounted on the spindle.
x4
xM
CMR
DMR 1024pul/rev
Spindle control
Error counter
Spindle
Gear ratio
n:m
l:p
Gear ratio
D-A converter
Spindle AMP Spindle motor
Position coder
x1
+
-
NOTE Since the spindle positioning axis
operates as a control axis, set the
signals related to a control axis
(such as the OT rigid signal) for the
spindle control axis.
Gear ratio of spindle
to position coder (l : p)
Minimum movement unit
(detection unit) deg
1 : 1
1 : 2
1 : 4
1 : 8
0.088 (1×360 / 4096)
0.176 (2×360 / 4096)
0.352 (4×360 / 4096)
0.703 (8×360 / 4096)
The spindle positioning function consists of the following three operations:
1. Exiting the spindle turning mode and entering the spindle positioning mode
2. Positioning the spindle in the spindle positioning mode
3. Exiting the spindle positioning mode and entering the spindle turning mode
Basic procedures for each operation are explained below.
1) Exiting the spindle turning mode and entering the spindle positioning mode
Use an Mxx command to exit the spindle turning mode and enter the spindle positioning mode. Number
xx can be set in a parameter.
(1) Mxx is specified in a program.
(2) Miscellaneous function code signals M0 to M31 are output and miscellaneous function strobe signal
MF is turned on. These operations are the same as those of the ordinary miscellaneous function.