
PROGRAMMING
B–63534EN/02
20. AXIS CONTROL FUNCTIONS
583
O1234 ;
...........
...........
N01 G81 T20 L1 ; Starts synchronization with the spindle and
C–axis at the ratio of a 1/20 rotation about the
C–axis to one spindle rotation.
N02 Mxx S300 ; Rotates the spindle at 300 min
–1
.
N03 X... F... ; Makes a movement along the X–axis (for
cutting).
N04 Y... F... ; Makes a movement along the Y–axis (for
grinding). Axes such as the C–axis, X–axis,
and Y–axis can be specified as required.
N05 X... F... ; Makes a movement along the X–axis (for
retraction).
N06 Mzz ; Stops the spindle.
N07 G80 ; Cancels the synchronization between the
spindle and C–axis.
The programmed ratio (synchronization ratio) of a movement along the
slave axis to a movement along the master axis is converted to a detection
unit ratio inside the NC. If such converted data (detection unit ratio)
exceeds a certain allowable data range in the NC, synchronization cannot
be established correctly, and an alarm (P/S 181) is issued.
Even when a programmed master axis movement and a programmed
slave axis movement are within specifiable ranges, a detection unit ratio
obtained by conversion can exceed the allowable range, thus resulting in
an alarm.
Let K be a synchronization ratio. The internal data corresponding K is the
amount of slave axis movement (Kn) represented in the detection unit
divided by the amount of master axis movement (Kd) represented in the
detection unit; this fraction is represented as Kn/Kd (reduced to its lowest
terms) as indicated below.
K +
Kn
Kd
+
Amount of slave axis movement represented in the detection unit
Amount of master axis movement represented in the detection unit
Kn and Kd must lie within the following ranges:
–2147483648 v Kn v 2147483647
1 v Kd v 65535
When Kn or Kd exceeds its allowable range above, an alarm is issued.
In conversion to the detection unit, when the CMR (command
multiplication: parameter 1820) is a fraction or when inch/millimeter
conversion is used, the fraction is directly converted without modification
so that no error can occur in the conversion of specified amounts of
movement.
During conversion, the amount of movement is multiplied by 254/100 for
inch input on a millimeter machine, and 100/254 for metric input on an
inch machine. Thus, Kn and Kd can become large numbers. If a
synchronization ratio cannot be reduced to its lowest terms, an alarm
condition is likely to occur.
D Synchronization Ratio
Specification Range