Lec 6 Numerical Control System
Lec 6 Numerical Control System
System
By
Doc Nam
Lecture 6
Numerical Control (NC) Defined
Programmable automation in which the mechanical actions of a ‘machine tool’
are controlled by a program containing coded alphanumeric data that
represents relative positions between a work head (e.g., cutting tool) and a
work part
Program Machine
Instructions Control Unit
Transformation
Process
Power
Components of NC system
An N/C machine is a system composed of two major components
together with various auxiliary equipment. The two major components
are
• (1) a machine tool such as a milling machine, drilling machine,
engine or turret lathe, flame cutting machine, laser cloth cutter,
or almost any other kind of machine that has a moveable cutter
of some sort; and
• (2) a controller to direct the motion of the cutter. Auxiliary equipment
may include programming hardware, such as a data-entry terminal,
line printer, and tape punch.
• Other programming equipment might include a computer for
computer-assisted N/C programming and an X-Y plotter for verifying
the accuracy of the program before trying it on the N/C machine.
Differences between N/C and Manual Control
The controller needs to know the progress of the cutter in its journey to its
destination in order to control the cutter's path and velocity. Two methods are
utilized to achieve this.
Open Loop Systems
The first method is called an open-loop system. It uses a special kind of motor called
a stepper motor to drive each axis. A stepping motor has no brushes, commutator,
or slip rings. It has a stator into which internal grooves have been cut. The stator is
wound with several coils of wire through which a direct current is fed. By
controlling the magnitude and direction of the current in each of the various coils, the
location of the stator's magnetic field poles can be manipulated and controlled. The
rotor consists of a very strong permanent magnet into which grooves have been cut,
each groove creating a magnetic pole. There are a few more grooves in the permanent
magnet rotor than there are in the electromagnetic stator. This sets up a vernier
relationship between the stator poles and the rotor poles, permitting rotation in
discrete increments (or steps) of 1/200 of a revolution, which a DC servo motor
cannot do.
Stator Grooves
Closed-Loop Systems
X-Axis The mill axis that moves right and left (as the operator is
facing the front of the mill) is the X-axis for both vertical and
horizontal spindle mills. For lathes, the X-axis is the cross slide
(or turret) motion at a right angle to the spindle axis.
Where = step angle (degrees), and , = the number of step angles for
the motor, which must be an integer.
Open Loop Positioning Systems…
motor shaft rotation
The angle through which the motor shaft
rotates is given by
where A == angle of leadscrew rotation (degrees), and rg = gear ratio, defined as the
number of turns of the motor for each single turn of the leadscrew. That is,
= =
Where
Nm: Rotational speed of motor (rpm)
N: Rotational speed of leadscrew (rpm)
Open Loop Positioning Systems…linear movement
of worktable
Linear movement of a worktable is given as
•
where x == xaxis position relative to the starting position (mm, inch), p = pitch of the
leadscrew (nun/rev, in/rev).and A/360 = number of Leadscrew revolutions.
The number of pulses required to achieve a specified x-position increment in a point-to-
point system can be found by combining the two preceding equations as follows:
= ==
Open Loop Positioning Systems…
control pulses generated
Control pulses are transmitted from the pulse generator at
a certain frequency, which drives the worktable at a
corresponding velocity or feed rate in the direction of the
leadscrew axis. The rotational speed of the leadscrew
depends on the frequency of the pulse train as follows:
EXAMPLE
• The worktable of a positioning system is driven by a leadscrew whose
pitch == 6.0 mm.
• The leadscrew is connected to the output shaft of a stepping motor
through a gearbox whose ratio is 5:1 (5 turns of the motor to one
turn of the leadscrew).
• The stepping motor has 48 step angles.
• The table must move a distance of 250 mm from its present position
at a linear velocity = 500 mm/min
• Determine (a) how many pulses are required to move the table the
specified distance and
• (b) the required motor speed and pulse rate to achieve the desired
table velocity,
solution
• To find the Leadscrew rotation angle A corresponding to a distance x = 250 mm,
Closed Loop Positioning Systems
A closed-loop NC system uses servomotors and feedback
measurements to ensure that the worktable is moved to the desired
position. A common feedback sensor used for NC (and also for
industrial robots) is the optical encoder, shown in Figure 6.28. An
optical encoder consists of a light source and a photodetector on either
side of a disk. The disk contains slots uniformly spaced around the
outside of its face. These slots allow the light source to shine through
and energize the photodetector. The disk is connected, either directly or
through a gear box, to a rotating shaft whose angular position and
velocity are to be measured. As the shaft rotates, the slots cause the
light source to be seen by the photocell as a series of flashes. The
flashes are converted into an equal number of electrical pulses. By
counting the pulses and computing the frequency of the pulse train,
worktable position and velocity can be determined.
Closed Loop Positioning Systems:
Equations
The equations that define the
operation of a closed loop NC
positioning system are similar to
those for an open loop system.
In the basic optical encoder, the angle
between slots in the disk must satisfy
the following requirement to the
right.
Where angle between slots
(degrees/slot)
the number of slots in the
disk(slot/rev)
The pulse count can he used to determine the linear x-axis position of
the worktable by factoring in the leadscrew pitch and the gear reduction
between the encoder shaft and the leadscrew. Thus,
where np and n, are defined above, p = leadscrew pitch (mm/rev, in/rev), and rge = gear reduction between the
encoder and the Leadscrew, defined as the number of turns of the encoder shaft for each single turn of the
The pulse train generated by the encoder is compared with
the coordinate position and feed rate specified in the part
program, and the difference is used by the MCV to drive a
servomotor, which in tum drives the worktable. A digital to
analog converter converts the digital signals used by
the MeV into a continuous analog current that powers the
drive motor. Closed loop NC systems of the type described
here are appropriate when a reactionary force resists the
movement of the table. Metal cutting machine tools that
perform continuous path cutting operations, such as
milling and turning, fall into this category.
EXAMPLE
• and is coupled to the motor shaft with a gear ratio of 5: I (5 turns of the drive
motor for each turn of the leadscrew). The optical encoder generates 48
pulses/rev of its output shaft. The encoder output shaft is coupled to the
Leadscrew with a 4: 1 reduction (4 turns of the encoder shaft for each turn of
the leadscrew). The table has been programmed to move a distance of 250 mm
at a feed rate = 500 mm/min. Determine (a] how many pulses should be
received by the control system to verify that the table has moved exactly 250
mm, (b) the pulse rate of the encoder, and (c) the drive motor speed that
correspond to the specified feed rate.
Solution