noc18-me69 Lecture 26

IIT Kanpur July 201
20 followers
Dec 3, 2023
This lecture module covers the following topics: basics of NC programming, fixed sequential format, tab sequential format, etc.
Hello and welcome to this design practice 2, module 26. This week we will be focusing
mostly on the computerized machines, particularly the computer numeric control machines. We
will also be looking into aspects related to rapid tooling and rapid prototyping and
what these are in terms of the current technology.
So, the reason why we want to integrate this area to the overall area of design is that
rapid prototyping happens to be a very amenable tool for 3D visualization, particularly creative
visualization in 3D space. Anything which is you know laid out in terms of computer
generated design package can be realistically made into a certain form or shape and it
is very important for designers to realize such creative visualizations of 3D geometry
for which it is important that rapid prototyping as a process is very heavily used.
In fact, there are these additive manufacturing processes like DSLS, selected laser sintering
as well as FDM, fusion deposition modeling which are in principle made with an aspect
of you know designing and prototyping before development of the product in mind. So, therefore,
it is absolutely important for us to know some of the aspects as a designer of how you
will integrate and try to computer control machinery, how would you use to do aspects
related to rapid prototyping or rapid tooling. And you have already extensively looked into
how CAD geometry is handled during the first part of the beginning of this course, where
we talk about various aspects like coordinate mapping, we talk about various aspects like
curve fits, how to generate a surface profile in terms of a database you know of coordinates
so on so forth. So, the idea is going ahead on this, once
you have the CAD model ready, how would you interface it or what you are going to do to
be able to realize such a complex 3D object. So, let us first justify why it was needed
for the industry to computer control manufacturing systems and how it gives you a lot of user
convenience when we talk about computerization of various manufacturing systems. So, obviously
there has been a great amount of work towards how to increase the overall productivity and
efficiency of any system from design to development to the whole phases of product life cycle.
In fact, in design practice one course there was a dedicated section to concurrent engineering
where we talk about how to take a design forward with a bunch of different activities of an
organization. So, that you can realize a full and final design in terms of you know laying
out in terms of the process which is subsequently involved and also in terms of different aspects
of the product life cycle if you move all at once with everybody all stakeholders involved.
So, there it is important that if we could have this freedom and luxury of controlling
the manufacturing through a CAD enablement where whatever we change on the design can
be rapidly altered you know can be rapidly manufactured. It will always be leading to
a very useful ecosystem. So, when we talk about computerization of manufacturing systems it
started with one of the earliest applications which is also otherwise known as numerical control.
So, in fact the idea was to make a certain manufacturing unit independent through control
using some numerics and from this particular concept now in the recent times there has
been an emergence of this programmable logic controller based applications at the manufacturing
system level. So, numeric control or NC as we popularly know if you look at historically it
is about the utilization of various functions of a machine through numeric data. So,
how beautifully we can control the different functionalities in a machine typically we
would like to see either the workpiece moving with respect to the tool or the tool moving
with respect to the workpiece. So, if we could actually maneuver that through in a logical
manner through numeric data very rapidly it will automatically lead to precise manufacture
of whatever be the design it will also have an aspect of manufacture the designers requirements.
So, if the designer has an enablement of you know a CAD enablement of whatever he is designing he
would be just changing the CAD design and everything will fall in place and get manufactured accordingly.
So, that is in fact the vision through which one can think of these computer controls related to
manufacturing systems which is actually the sort of the end of the road for any design to go through.
So, the first successful NC machine historically were demonstrated really in MIT there was a
subcontract from Parsons Corporation of the Traverse City which actually resulted in
retrofitting an otherwise normal machine with a variety of motors and the controller which
was actually invented to begin with in the late 1940s by G. C. DeWalt, but this was one of the
first applications of that controller. So, it could actually record something and play back and so,
this first initiative of retrofitting a machine was towards recording something which was like
a set of commands which it would play in terms of instructing variety of different motors which
would enable relative positioning between the workpiece and the tool to happen in a
very precise manner in a repeatable manner. So, whatever emerged from here today the very
famous numerical control in fact, it has left the domain of machining and emerged as a general
domain where not only machining, but a variety of other applications like welding, pressing,
riveting, bending, hole making you name the application of manufacturing system they are
all CNC enabled today. So, a vast majority of NC machines in use today are metal cutting machine
tools most of the machining shops find a lot of utility of this computer numeric control machines.
And so, what I am interested to sort of let you know is that what are the different features that
these machines would have and how would you develop a common language through which you
would interact with this machine. In other words, I am going to teach you a little bit of CNC
programming as we go along. So, when we talk about NC machine tools they are functionally
same as conventional machines of course, in terms of technological capabilities you do not
really find many differences from conventional machines. Only difference between NC machine
and conventional machine is that there is a difference in way in which various machine
functions and slide movements are controlled. For example, positioning of the tool, turning
the spindle on and off, setting cutting speeds or feed rates, turning coolant stream on or off
etcetera are now controlled through something called a machine control unit. It is removed
from the domain of work of the operator or the you know with manual switches etcetera getting
eliminated. So, it is more precise and it is also to some extent completely automated.
So, in the numerical control machine, the machine control unit MCU issues commands.
And these commands are in form of numeric data which are able to now perform a variety of tasks
including individual machine functions, including motor controls, you can use commands to rapidly
change directions, you can control rates of slide motion, you could also control spindle
rotation, tool changes, coolant flow so on so forth. Variety of these different processes can
now be controlled numerically. So, when we look at the very first NC machine, it was a retrofitted
system. I think I have just mentioned in the last slide about it. And such system was with
appropriate motors with different torque RPMs, and this was the first generation NC system.
All these motors were controlled through a central control, and this control was otherwise known as
a machine control unit. So, this is how it started off. In fact, there is a line diagram also and a
schematic of such a machine. You can see there is a otherwise conventional lathe here which has
a headstock, a tailstock, carriage, saddle, cross slides, whatever normal machine normal lathe has.
But the difference that it has is that everything is controlled through this machine control unit
or a controller, and there is a set of switches which are used to control through the controller
the various aspects of this particular machine. This is a real picture of an NC lathe which is
CNC enabled. When we go into understanding the programming aspects, a little bit of understanding
for what all systems are available within NC machines are very important. One of the very
important aspects behind NC machine is the type of control that it has, and we can classify such
control as either open loop control or closed loop control. And as the name indicates, the open loop
control is really without any feedback signal. So, the signals are so precise, normally carried
through stepper motors where you give a number of pulses and the motor operates based on these
number of pulses by a certain amount, and the precision is maintained throughout as pulses are
sent in. So, you really need not monitor as to whether there is an overshoot or did it not reach.
So, therefore, in the open loop control system is used with a special motor called
a stepper motor, and signals in form of current pulses are sent from the machine control unit
to the individual motor and very precisely controls itself. Actually what happens is
that each pulse results in a finite predetermined amount of revolution of the motor, and to cause
the specified amount of movement, the control system determines how many current pulses would
be needed accordingly sends precisely that number of pulses to the motor.
And therefore, it is understood that the control system need not any more monitor
specifically because the motors are pretty accurate. It is assumed that the required
motion would be achieved if correct number of pulses are generated and sent to the motor system.
And the only thing that the control system probably needs to keep track of is how many
revolutions the motor has gone through, and that also it is kept somewhere in the database. So,
that for future progress of how many more it would need to reach a certain destination or
target or after the operation is over reach back to the origin is determined. So, that is how you
define the open loop control system. So, there is also closed loop control system in some of
the particular applications, and one of the reasons is that metal removal processes normally are very
high torque processes, and sometimes stepper motors may not be sufficient. And in such high
torque applications you would prefer to use conventional variable speed DC motors or more
popularly known as servo motors. And the advantage that stepper motors have over
servo is that steppers have very less self-inertial aspects, and they can quickly start and stop
whereas servos do not. So, they overshoot or they sometimes you know undershoot based on
what is signal that is provided to such DC motors. So, DC motors definitely have an important
advantage of being able to generate very high level of torques, and also the advantage that
they can be reversed instantly. However, they cannot be caused to move in very precise amounts,
and therefore, this control system would be slightly different. So, it will need a signal
as to what would be the movement executed. And supposing there is a overshoot from the
target position or you know there is a gap between the current and the target position,
you need to be able to know about it. And so the machine control unit has a closed loop control
through something called a resolver. So, what the resolver does is to give a signal of whether the
target position was achieved, and what is the difference. And accordingly a signal is generated
again by the MCU to ensure that the target position is finally achieved. So, it is fed
back as a signal to the controller from the resolver, and the resolver is responsible
for any of the error determinations, and subsequent corrections in terms of additional motor movement
which is executed by again the central control. So, that is what closed loop control would
typically mean. So, having said that let us also talk a little bit about some other basic
programming aspects of NC machines, because in this particular module I would like all of you
to go through this topic of how you can logically make a machine control unit understand the
requirements which come from a CAD geometry aspect, which we have done in details earlier.
So, for a NC machine to accomplish the required machining operations, the necessary data have
to be entered into the machine control unit, and MCU can then convert the data into commands that
can be issued to the appropriate motors for necessary functions to be executed. And the
series of data that is fed into the MCU to generate the required machine tool command
is what we refer as NC part program. So, one has to very clearly understand that part program is
merely qualitative term which means programming for a certain part or an item, it does not mean
that it is a partial program or something. So, do not confuse. A part program is not a
subroutine, it is actually a program written for fabricating a machine part or an item.
So, obviously the part of writing the NC program is called part programming,
the person responsible for this part of the programmer. So, the first thing that a programmer
needs to understand while starting to write an algorithm for the machine to execute a certain
operation is a wide amount of manufacturing knowledge, because obviously how a certain CAD
geometry can be executed in terms of machine decision would be known to somebody who is
trained in that art. And so therefore, a part programmer necessarily should possess the necessary
skill as a machining operator or a operator for a certain manufacturing process for an NC part
program to generate. So, the one aspect that one needs to have in mind is thorough idea of
the capabilities that the particular machine has for which a program needs to be developed.
And while maximum usage of the machines capabilities are being targeted, one has
to be aware of its technological constraints, and there should not be overshoot so that the
constraints become important. And the current resource availability in respect of cutting
tools, jigs, fixtures, labour available, any other material handling equipment such as robots or
automated guided vehicles must somehow be also taken into account when we start doing NC
programming or NC part programming. So, what a programmer needs to do is to start from an
engineering drawing or a CAD drawing of the part which contains numerical data. And the first thing
he must look at is look at the data and interpret to determine the individual operations that should
be sequentially performed, so that a certain shape can get realized eventually, an engineering
part can get realized eventually. So, this is the basis used to determine the order in which
typically operations should be carried out, establish the cutting conditions to be used in
each machining operations, determine the associated non-machining operations such as tool changing,
machine setup, coolant use etcetera, select appropriate jigs, fixtures to be used to hold
the workpiece of the machining is being done. And somebody trained in the art can only understand
these things well. So, because NC system or NC motion involves the relative positioning between
the tool and the workpiece in aspect that machining or cutting happens, one has to have some guidelines
in order to know what would be conventionally used as the positive x, y, z directions.
And similarly, x, y, z rotations or rotations along these directions. So, the most important
axis for machining is the z axis. And a certain nomenclature is followed for determining the
coordinate system and how you move from one coordinate to the other. So, one has to always
remember that the z axis is always aligned with the spindle that imparts the basic cutting power
to the particular machine. Now, there can be various cases. There can be a case where the
spindle rotates or there can be a case where it rotates the workpiece, probably a case in lathe
or it might be a tool that it rotates in case of milling for example. So, based on different
machines, you have spindle doing variety of different operations. But the cutting power
is done or is imparted by the spindle and z axis always aligns with the spindle direction
or the spindle axis. Supposing there exists no such spindle axis, there are machine tools for
example, planers and shapers where there is no spindle as such which rotates. You know there
is probably a horizontally oscillating tool head which does scratching or scrubbing you know of
the material workpiece while metal is removed. So, in those cases one has to assume the z axis
to be perpendicular to the work holding surface. And having said that the positive motion in z
would tend to increase the separation between the workpiece and the tool. Let us look at for
example, the different cases that are mentioned here. This particular case shows a vertical
milling machine probably a face milling system where there is a spindle which is in this particular
direction and the work table which is put here. So, obviously the workpiece is kept on the work
table and the spindle contains the end mill which can be used for end milling operations.
Now when the mill milling cutter moves towards the workpiece, it always is considered as the
negative z. So, obviously z is along the spindle and negative z is when the tool workpiece gap
decreases. On the other hand positive z is when the tool workpiece gap increases. So,
we are looking straight ahead let us say into the column which is holding this particular tool,
we are looking from the spindle towards the column. So, z basically would mean the column
going z negative would mean the column going down towards the workpiece and z positive would mean
the column going away from the workpiece. So, having said that in this kind of a situation
if you were to look at the positive x direction, the positive x direction would be going right
words as you know you have a positive and negative z going right words to the spindle
would be treated as the positive x direction. So, there are other machines here for example,
in this case there is a rotating workpiece, workpiece of course is mounted in a spindle
what happens in a normal lathe. So, the z axis would actually align to the spindle here and it
would be part of the workpiece and so if the tool which is somewhere here goes into the workpiece
or towards the workpiece. So, that it starts shaving off the material would be treated as
a negative z and if the tool moves away it is treated as a positive z. So, these are some
examples of how z axis could be determined. So, once the positive negative z is freezed
the only thing you need to do is to freeze the positive x axis direction because obviously,
the right handed coordinate system being utilized the y direction would depend on the positive z
and the positive x direction. So, the x axis again is the principal axis of motion in which
moving elements is positioned, it is parallel to the work holding surface and is arranged to
be horizontally possible on machines with rotating workpieces. It can be radial, it is
radial and parallel to the cross slides on machine with rotating tool if the z axis is horizontal.
The positive x motion is to the right when looking from the spindle to the workpiece,
I think I had mentioned in the few minutes back that when we were looking from the spindle axis
the z axis of vertical mill towards the column on your right is the positive x axis. And so,
if your positive x axis on your right then obviously, the y axis would be towards the
column, the positive y axis would be towards the column from the particular spindle.
So, that is how you determine the x, y and z axis directions and obviously, if we were to
use the right hand grip rule, if the thumb pointed out towards the direction of the positive z,
then the direction of rotation, positive rotation along the z axis would be actually how the fingers
coil. So, this direction then would be looking from the top it is actually anticlockwise. So,
the fingers are coiling in this case from the top end anticlockwise direction that is positive z
rotation. And similarly, you have positive x rotation along the positive x direction with
thumb pointing towards the positive x direction and so on so forth in the y direction as well.
So, that is how you define how the different axis and the different angles are in all the
three axis. So, once the z and x axis are established obviously, the y axis automatically
completes right handed coordinate Cartesian coordinate system. There are also certain
supplementary linear motions on some machines, there are secondary linear motions parallel to
x, y and z motions and such supplementary motions are designated as u, v and w. And
I think I have mentioned about the rotary motions a, b, c to be based on the positive x,
y and z directions and the right hand group rule being applied. So, I think I will end this
particular lecture here, but in the next lecture given all this basic information about computer
enabled machines, we would like to start doing some programming in terms of numerals and understand
the language or the methodology behind such machines. Thank you very much.
