Professional Documents
Culture Documents
Cad Cam Full Subject
Cad Cam Full Subject
Cad Cam Full Subject
Shijil p k
MODULE I
INTRODUCTION
INTRODUCTION
MOTIVATION FOR THE STUDY OF CAD
Application of CAD/CAM
○ Aerospace
○ Automotive
○ Chemical & Process
○ Communications
○ Computers & IT
○ Electrical & Electronics
○ Medical & Pharma
○ Military & Defence
○ Rail & Marine
○ Structural & Civil
○ Apparel and Textile
DESIGN
DESIGN
THE DESIGN PROCESS
1. Need
2. Concept
3. Modelling and Simulation
4. Analysis – FEM (Geometrical Data)
5. Optimize – Shape / Structure / Topology
6. Evaluate – testing / Inspection / Comparison
7. Communicate – prepare drawings and details
CAD
● Computer aided Design is a subprocess of Design process
CAD
CAD
CAD
ADVANTAGES OF CAD OVER MANUAL DRAFTING
CAD
CAD
CAD
CAD
CAD
CAD
CAD
CAD HARDWARE
CAD
INPUT-OUTPUT
DEVICES
INPUT-OUTPUT DEVICES
INPUT DEVICES
● Keyboard
● Mouse
● Digitizer
● Joystick
● Light pen
● scanner
INPUT-OUTPUT DEVICES
OUTPUT DEVICES
● CRT monitor
● Direct-view storage tubes
● LCD monitor
● Plasma monitor
● LED monitor
● Printers
● Plotters
INPUT DEVICES
1. KEYBOARD
● It is the most common input device used for entering data and information into
the computer system. This is the standard input device attached to all
computers.
● The keyboard is a primary device for inputting text by pressing a set of keys. All
the keys are neatly mounted in a keyboard connected to the computer system.
● Keyboard devices can be classified into two types General purpose keyboards
and Special purpose keyboards. General purpose keyboard are standard
keyboards used with most computer system
INPUT DEVICES
1. KEYBOARD
● The layout of keyboard is just like the traditional typewriter of the type QWERTY.
It also contains some extra command keys and function keys. It contains a total
of 101 to 104 keys
● In general, a computer keyboard has following keys :
○ Alphanumeric Keys: It includes letters and numbers.
○ Punctuation Keys: These include comma, period, semicolon etc.
○ Special Keys: These can be function keys, control keys, arrow keys and Caps
lock keys etc
INPUT DEVICES
1. KEYBOARD
INPUT DEVICES
2. MOUSE
● A Mouse is a handy device which can be moved on a smooth surface to cause
the movement of a cursor on the screen.
● It is a pointing device which is used to input data and information into the
computer system by pointing on it.
● Physically, a mouse contains a small case, held under one of the user’s hands
with one or more buttons. For GUI-based systems a mouse is an essential
pointing-device.
● The cursor of the mouse moves in the same direction in which the mouse ball
rolls
INPUT DEVICES
2. MOUSE
Types of Mouse
○ Mechanical Mouse
○ Optical Mouse
○ Cord-Less Mouse
INPUT DEVICES
3. DIGITIZING (GRAPHIC) TABLET
● Digitizing or Graphics’ tablet is a computer input device that allows one to hand-
draw images and graphics, similar to the way one draws images with a pencil and
paper.
● These tablets may also be used to capture data of handwritten signatures. Some
tablets are intended as a general replacement for a mouse as the primary
pointing and navigation device for desktop computers.
● These are used by architects, engineers and designers in Computer Aided Design
(CAD) for designing purposes, such as buildings, cars, mechanical parts, robots
etc. These are also used in Geographical Information System (GPS) for digitizing
of maps
INPUT DEVICES
3. DIGITIZING (GRAPHIC) TABLET
● Graphics tablet is most suited for artists and those who want the natural feel of a
pen-like object to manipulate the cursor on their screen. Wacom is the most well
known manufacturer of graphics tablets, and is incredibly well respected.
INPUT DEVICES
4. JOYSTICK
● Joystick is a remote control device for a computer which is used for playing video
games to indicate the position. It has a stick that pivots on a base and is used for
controlling the action in video games.
● The User moves a spherical ball with the help of a stick in the joystick as opposed
to the trackball where fingers are used for moving the ball.
● Joysticks are also used for controlling machines such as cranes, trucks,
underwater unmanned vehicles, flight simulators, industrial robots etc
INPUT DEVICES
4. JOYSTICK
INPUT DEVICES
5. LIGHT PENS
● A Light pen is a pen like light-sensitive device. It is connected by a wire to the
computer terminal to detect the CRT beam when pointed towards the screen
and generate a narrow electrical pulse that can be fed to the computer as an
input signal.
● It is used to draw on the screen or to point to the displayed objects. It operates
by detecting the light emitted by the screen phosphors.
● A light pen can work with any CRT monitor but not with LCD monitors. It is used
by architects and engineers for CAD applications and editing
INPUT DEVICES
5. LIGHT PENS
INPUT DEVICES
6. SCANNERS
● A Scanner is an input device and is used to input data into the computer system
in the form of pictures. It optically scans images, printed text, handwriting, or an
object, and converts it to a digital image.
● Examples of scanners are a desktop or flatbed scanner. In scanners the
document is placed on a glass window for scanning. Mechanically driven
scanners that move the document are typically used for large-formatted volume
of documents.
● Another type of scanner is a planetary scanner. This scanner takes photographs
of books and documents. Three dimensional scanners are used for producing
three-dimensional models of objects
INPUT DEVICES
6. SCANNERS
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT)
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT)
● It is an evacuated glass tube.
● An electron gun at the rear of the tube produce a beam of electrons which is
directed towards the screen of the tube by a high voltage typically 15000 to
20000 volts
● Inner side screen is coated with phosphor substance which gives light when it is
stroked bye electrons.
● Control grid controls velocity of electrons before they hit the phosphor.
● The control grid voltage determines how many electrons are actually in the
electron beam. The negative the control voltage is the fewer the electrons that
pass through the grid
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT)
● Thus control grid controls Intensity of the spot where beam strikes the screen.
● The focusing system concentrates the electron beam so it converges to small
point when hits the phosphor coating.
● Deflection system directs beam which decides the point where beam strikes the
screen.
● Deflection system of the CRT consists of two pairs of parallel plates which are
vertical and horizontal deflection plates.
● Voltage applied to vertical and horizontal deflection plates is control vertical and
horizontal deflection respectively
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT)
● There are two techniques used for producing images on the CRT screen
○ Vector scan/Random scan display.
○ Raster scan display
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT):VECTOR SCAN/RANDOM SCAN DISPLAY
● Vector scan display directly traces out only the desired lines on CRT.
● If we want line between point p1 & p2 then we directly drive the beam
deflection circuitry which focus beam directly from point p1 to p2.
● If we do not want to display line from p1 to p2 and just move then we can blank
the beam as we move it.
● To move the beam across the CRT, the information about both magnitude and
direction is required. This information is generated with the help of vector
graphics generator.
● shows architecture of vector display. It consists of display controller, CPU, display
buffer memory and CRT
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT):VECTOR SCAN/RANDOM SCAN DISPLAY
OUTPUT DEVICES
CATHODE RAY TUBE MONITORS (CRT):RASTER SCAN DISPLAY
● Figure shows the architecture of Raster display. It consists of display controller,
CPU, video controller, refresh buffer, keyboard, mouse and CRT.
● The display image is stored in the form of 1’s and 0’s in the refresh buffer.
● The video controller reads this refresh buffer and produces the actual image on
screen.
● It will scan one line at a time from top to bottom & then back to the top.
● In this method the horizontal and vertical deflection signals are generated to
move the beam all over the screen in a pattern shown in figure.
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT):RASTER SCAN DISPLAY
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT):RASTER SCAN DISPLAY
OUTPUT DEVICES
1. CATHODE RAY TUBE MONITORS (CRT):RASTER SCAN DISPLAY
OUTPUT DEVICES
2. DIRECT-VIEW STORAGE TUBES (DVST)
OUTPUT DEVICES
2. DIRECT-VIEW STORAGE TUBES (DVST)
● In raster scan display we do refreshing of the screen to maintain a screen image.
● DVST gives alternative method for maintaining the screen image.
● DVST uses the storage grid which stores the picture information as a charge
distribution just behind the phosphor coated screen.
● DVST consists two electron guns a primary gun and a flood gun.
● A primary gun stores the picture pattern and the flood gun maintains the picture
display.
● A primary gun emits high speed electrons which strike on the storage grid to
draw the picture pattern.
OUTPUT DEVICES
2. DIRECT-VIEW STORAGE TUBES (DVST)
● As electron beam strikes on the storage grid with high speed, it knocks out
electrons from the storage grid keeping the net positive charge.
● The knocked out electrons are attracted towards the collector.
● The net positive charge on the storage grid is nothing but the picture pattern.
● The continuous low speed electrons from flood gun pass through the control grid
and are attracted to the positive charged area of the storage grid.
● The low speed electrons then penetrate the storage grid and strike the phosphor
coating without affecting the positive charge pattern on the storage grid.
● During this process the collector just behind the storage grid smooth out the
flow of flood electrons
OUTPUT DEVICES
2. DIRECT-VIEW STORAGE TUBES (DVST)
Advantage of DVST
○ Refreshing of CRT is not required.
○ Very complex pictures can be displayed at very high resolution without
flicker.
○ Flat screen.
Disadvantage of DVST
○ They do not display colour and are available with single level of line intensity.
○ For erasing it is necessary to removal of charge on the storage grid so erasing
and redrawing process take several second.
○ Erasing selective part of the screen cannot be possible.
OUTPUT DEVICES
2. DIRECT-VIEW STORAGE TUBES (DVST)
Disadvantage of DVST
○ Cannot used for dynamic graphics application as on erasing it produce
unpleasant flash over entire screen.
○ It has poor contrast as a result of the comparatively low accelerating potential
applied to the flood electrons.
○ The performance of DVST is somewhat inferior to the refresh CRT
OUTPUT DEVICES
3. PLASMA PANELS DISPLAYS
OUTPUT DEVICES
3. PLASMA PANELS DISPLAYS
● This is also called gas discharge displays.
● It is constructed by filling the region between two glass plates with a mixture of
gases that usually includes neon.
● A series of vertical conducting ribbons is placed on one glass panel and a set of
horizontal ribbon is built into the other glass panel.
● Firing voltage is applied to a pair of horizontal and vertical conductors cause the
gas at the intersection of the two conductors to break down into glowing plasma
of electrons and ions.
OUTPUT DEVICES
3. PLASMA PANELS DISPLAYS
● Picture definition is stored in a refresh buffer and the firing voltages are applied
to refresh the pixel positions, 60 times per second.
● Alternating current methods are used to provide faster application of firing
voltages and thus brighter displays.
● Separation between pixels is provided by the electric field of conductor.
● One disadvantage of plasma panels is they were strictly monochromatic device
that means shows only one colour other than black like black and white.
OUTPUT DEVICES
4. LIQUID CRYSTAL DISPLAY (LCD)
● First introduced in watches and clocks in the1970’s, LCDs are now used to
display images in monitors.
● A newer technology in computer screens is TFT LCD monitors. These are light
weight monitors and are used in laptop computers.
● Active matrix structure is used by most of the modern LCD monitors and
television sets. In this technology, a matrix of thin-film transistors (TFT) is added
to the polarizing and colour filters.
● It enhances the display to make it look brighter and sharper. It can also produce
much better images and have quicker response times.
OUTPUT DEVICES
4. LIQUID CRYSTAL DISPLAY (LCD)
OUTPUT DEVICES
5. LIGHT EMITTING DIODE (LED) DISPLAY
OUTPUT DEVICES
5. LIGHT EMITTING DIODE (LED) DISPLAY
● Light Emitting Diodes (LED) is the latest technology which is being used now a
days for making high definition TV screens and monitors.
● It is a semi-conductor light source. In this technology diodes are used to light up
the screen instead of liquid crystal Diodes. LED is known as light emitting diode.
● It is an electronic device that lights up when electricity is passed through it. LEDs
are usually red. They are good for displaying images because they can be
relatively small, and they do not burn out. However, they require more power
than LCD monitors. LED is light weight monitors and is used in laptop computers
and in TV.
OUTPUT DEVICES
5. LIGHT EMITTING DIODE (LED) DISPLAY
● The Life of LED monitors is three times than that of LCD monitors and they have
less warm up time than that of CRT or LCD monitors. These monitors require less
space on the desk, less power consumption and have flicker free screen.
● In this display a matrix of multi-colour light emitting diode is arranged to form
the pixel position in the display. And the picture definition is stored in refresh
buffer.
● Similar to scan line refreshing of CRT information is read from the refresh buffer
and converted to voltage levels that are applied to the diodes to produce the
light pattern on the display
OUTPUT DEVICES
6. PRINTERS
● Printers are used for producing output on paper. There are a large variety of
printers and printing devices which can be classified according to the print
quality and printing speed
● On the basis of speed printers are of following types
1. Character Printer : These printers can print only one character at a time. They
work similar to a typewriter. The examples are Daisy Wheel Printer, Dot Matrix
Printer and Inkjet Printer.
○ (a) Daisy-Wheel Printer : This printer is similar to a ball-head typewriter. This
type of printer has a plastic or metal wheel on which the shape of each
character is embossed.
OUTPUT DEVICES
6. PRINTERS
○ (b) Dot-Matrix Printer : This is one of the most popular printers used for
personal computing systems. These printers are relatively cheaper compared
to other technologies and use impact technology.
Problems
○ Training is necessary to understand the drawing
○ Mistakes often occur
○ Does not support subsequent applications such as finite element analysis
(FEA) or NC part programming.
GEOMETRIC MODELING
2. WIREFRAME MODELING
● A wireframe representation is a 3-D line drawing of an object showing only the
edges without any side surface in between.
● A frame constructed from thin wires representing the edges and projected lines
and curves
● Model consists entirely of points, lines, arcs and circles, conics, and curves.
● In 3D wireframe model, an object is not recorded as a solid. Instead the vertices
that define the boundary of the object, or the intersections of the edges of the
object boundary are recorded as a collection of points and their connectivity
GEOMETRIC MODELING
2. WIREFRAME MODELING
● A wireframe model of an object is the simplest and represents mathematically in
the computers.
● It is most commonly used technique and all commercial CAD/CAM systems are
wire-frame based.
GEOMETRIC MODELING
2. WIREFRAME MODELING
Advantages
● Can quickly and efficiently convey information than multiview drawings.
● The only lines seen are the intersections of surfaces.
● Can be used for finite element analysis.
● Can be used as input for CNC machines to generate simple parts.
● Contain most of the information needed to create surface, solid and higher order
models
GEOMETRIC MODELING
2. WIREFRAME MODELING
Disadvantages
● Geometric entities are lines and curves in 3D
● Volume or surfaces of object not defined
● Easy to store and display
● Hard to interpret – ambiguous
● Hidden lines are not removed
● For complex items, the result can be a jumble of lines that is impossible to
determine.
GEOMETRIC MODELING
3. SURFACE MODELING
GEOMETRIC MODELING
3. SURFACE MODELING
● A surface model represents the skin of an object, these skins have no thickness
or material type.
● Surface models define the surface features, as well as the edges, of objects.
● A mathematical function describes the path of a curve (parametric techniques).
● Surfaces are edited as single entities
● In general, a wireframe model can be extracted from a surface model by deleting
or blanking all surface entities
● Shape design and representation of complex objects such as car, ship, and
airplane bodies as well as castings
GEOMETRIC MODELING
3. SURFACE MODELING
Advantages
● Eliminates ambiguity and non-uniqueness present in wireframe models by hiding
lines not seen.
● Renders the model for better visualization and presentation, objects appear
more realistic.
● Provides the surface geometry for CNC machining.
● Provides the geometry needed for mold and die design.
● Can be used to design and analyze complex freeformed surfaces (ship hulls,
airplane fuselages, car bodies, …).
GEOMETRIC MODELING
3. SURFACE MODELING
Advantages
● Surface properties such as roughness, colour an reflectivity can be assigned and
demonstrated
Disadvantages
● Surface models provide no information about the inside of an object.
● Complicated computation, depending on the number of surfaces
GEOMETRIC MODELING
4. SOLID MODELING
● The solid modeling technique is based upon the "half-space“ concept.
● The boundary of the model separates the interior and exterior of the modelled
object.
● The object is defined by the volume space contained within the defined
boundary of the object.
● In general speaking, a closed boundary is needed to define a solid object.
● Informationally complete, valid, and unambiguous representation (Spatial
addressability)
○ points in space to be classified relative to the object, if it is inside, outside, or
on the object
GEOMETRIC MODELING
4. SOLID MODELING
● Store both geometric and topological information; can verify whether two
objects occupy the same space.
● Improves the quality of design, improves visualization, and has potential for
functional automation and integration
GEOMETRIC MODELING
4. SOLID MODELING
MODULE II
CAM
CAD
● Use of computers for designing products, processes or systems.
● It has the capacity to experiment with a large numbers design parameters and
usual view of different designs on the screen.
● Applications include designing air craft, engine parts, printed circuit boards,
casting moulds etc.
ADVANTAGES
● Improved productivity
● More standard design
● Fewer errors in NC part programming
● Lead time can be reduced
● Cost saving in tool design
CAM
COMPUTER AIDED MANUFACTURING
● Implies the use of computers to monitor and controls the manufacturing process
as a whole.
● CAD/CAM can prove to be cost effective if both are properly integrated.
● CAD systems offers the opportunity to develop a data base to manufacture the
designed products.
● CAM systems creates NC instructions for machine tools and produces process
plans for complete manufacture and assembly.
CAM
FUNCTIONS
1. NUMERICAL CONTROL
2. PROCESS PLANNING
3. ROBOTICS
4. FACTORY MANAGEMENT
2. Low in wear
Because of rolling contact, wear is less than that of
sliding contact
Advantages of Ball screws
Highly efficient and reliable.
Less starting torque.
Lower co efficient of friction compared to sliding type screws and
run at cooler temperatures
Power transmission efficiency is very high and is of the order of
95 %.
Could be easily preloaded to eliminate backlash.
The friction force is virtually independent of the travel velocity
and the friction at rest is very small; consequently, the stick-slip
phenomenon is practically absent, ensuring uniformity of motion.
Has longer thread life hence need to be replaced less frequently.
Ball screws are well -suited to high through output, high speed
applications or those with continuous or long cycle times.
Smooth movement over full range of travel.
Disadvantages of Ball screws
Tend to vibrate.
Require periodic overhauling to maintain their
efficiency.
Inclusion of dirt or foreign particles reduces the life of
the screws.
Not as stiff as other power screws, thus deflection and
critical speed can cause difficulties.
They are not self-locking screws hence cannot be used
in holding devices such as vices.
Require high levels of lubrication
Applications of Ball screws
Ball screws are employed in cutting machines, such as machining
centre and NC lathe where accurate positioning of the table is
desired
Used in the equipment such as lithographic equipment or
inspection apparatus where precise positioning is vital
High precision ball screws are used in steppers for semiconductor
manufacturing industries for precision assembly of micro parts.
Used in robotics application where precision positioning is
needed.
Used in medical examination equipment since they are highly
accurate and provide smooth motion.
Tool magazines and transfer systems
Machining centers are used to carry out multiple operations
like drilling, milling, boring etc. in one set up on multiple
faces of the workpiece. These operations require a number of
different tools. Tool changing operation is time consuming
which reduces the machine utilization. Hence the tools
should be automatically changed to reduce the idle
time.
This can be achieved by using automatic tool changer (ATC)
facility. It helps the workpiece to be machined in one setup
which increases the machine utilization and productivity.
Large numbers of tools can be stored in tool magazines.
Tool magazines are specified by their storage capacity, tool
change procedure and shape. The storage capacity ranges
from 12 to 200.
Tool magazines
Tool magazines are generally employed in CNC drilling and
milling machines.
tool magazines can hold number of tools therefore proper
management of tools is essential.
Duplication of the tools is possible and a new tool of same
type may be selected when a particular tool is worn off.
The power required to move the tools in a tool magazine is
more.
The following are some of the tool magazines used in
automation. -Disc or drum type , chain type, rack type
magazine
,
Disc type magazine
Disc type magazine
The disc type tool magazine rotates to get the desired
tool in position with the tool change arm (Fig.).
Larger the diameter of the disc/drum more the
number of tools it can hold.
It has pockets where tool can be inserted.
In case of drum type magazine which can store large
amount of tools, the pockets are on the surface along
the length. It carries about 12 to 50 tools
Chain type magazine
Chain type magazine
When the number of tools is more than 50, chain type
of magazines are used (Fig).
The magazine is mounted overhead or as a separate
column.
In chain magazines the tools are identified either by
their location in the tool holder or by means of some
coding on the tool holder.
These types of magazines can be duplicated
Rack type magazine
Rack type magazine
• Coordinate System
• Units, incremental or absolute positioning
• Coordinates: X,Y,Z, RX,RY,RZ
• Feed rate and spindle speed
• Coolant Control: On/Off, Flood, Mist
• Tool Control: Tool and tool parameters
Programming Key Letters
O - Program number (Used for program identification)
N - Sequence number (Used for line identification)
G - Preparatory function
X - X axis designation
Y - Y axis designation
Z - Z axis designation
R - Radius designation
F – Feed rate designation
S - Spindle speed designation
H - Tool length offset designation
D - Tool radius offset designation
T - Tool Designation
M - Miscellaneous function
Table of Important G codes
Code Meaning Format
G00 Rapid Transverse N__G00 X___ Y___ Z___
G01 Linear Interpolation N__G01 X___ Y___ Z___ F___
G02 Circular Interpolation, N__G02 X__ Y__ Z___ R___ F___
CW N__G02 X___ Y__Z__I ___J __K __ F __
G03 Circular Interpolation, N__G03 X___ Y___ Z__R__F___
CCW N__G03 X__ Y__Z__I __J __K __ F __
G04 Dwell N__G04P___
G17 XY Plane
G18 XZ Plane
G19 YZ Plane
Table of Important G codes
Code Meaning Format
G20/G70 Inch Unit
G21/G71 Metric Unit
G28 Automatic Return to Reference
Point
G40 Cutter compensation cancel
G41 Cutter compensation left N__G41D__
G42 Cutter compensation right N__G42D__
Start (0,0)
Linear interpolation: G01
G01:
linear interpolation at feed speed.
G91 G0l X200.0 Y100.0 F200.0
Y
G91: End
incremental 100.0
coordinates
Start 200.0 X
Circular interpolation: G02, G03
G02, G03:
For circular interpolation, the tool destination and the circle
center are programmed in one block
G02 is clockwise interpolation, G03 is counterclockwise
interpolation
G 02 R
G17 X __ Y __ F __;
G 03 I __ J __
G 02 R
G18 X __ Z __ F __;
G 03 I __ K __
G 02 R
G19 Y __ Z __ F __;
G 03 J __ K __
End Circle center, radius
point
Circular interpolation: G02, G03
Y
X R=-50mm
End Specify R with
sign before it:
180° +R
R=50mm >180° -R
Start
G90: Y
absolute 100 R50
coordinates 60 R60
40
X
O 90 120 140 200
Circular interpolation: G02, G03
Annotation for Circular Interpolation
I0.0, J0.0, and K0.0 can be omitted.
If X,Y,Z are all omitted in the program, that means
start and end of arc are same points.
N0020 G02 I20.0 (a full circle)
If I, J, K, and R all appears in circular interpolation
instruction, R is valid and I, J, and K are invalid
Tool Compensation
Tool-Radius Compensation
Left hand G41
Right hand G42
Cancel tool-radius compensation G40
Tool-Height Compensation
Positive G43
Negative G44
Cancel tool-height compensation G49
Tool-Radius Compensation
Tool-radius compensations make it possible to
program directly from the drawing, and thus eliminate
the tool-offset calculation
G41 (G42) D
D: the radius of tool to compensate is saved in a memory unit that
is named D
G41/G42 is directly related with direction of tool movement and
which side of part is cut.
Tool-Height Compensation
G43 (G44) H
H: specified memory unit used to save height
compensation of tool.
Positive compensation (G43):
real position = specified position + value saved in H
Negative compensation (G44):
real position = specified position - value saved in H
Tool-Height Compensation
Example:
N0010 G91 G00 X12.0 Y80.0 G91:
N0020 G44 Z-32.0 H02; incremental
coordinates
Sample Block
• Restrictions on CNC blocks
• Each may contain only one tool move
• Each may contain any number of non-tool move G-codes
• Each may contain only one feed rate
• Each may contain only one specified tool or spindle speed
• The block numbers should be sequential
• Both the program start flag and the program number must be
independent of all other commands (on separate lines)
• The data within a block should follow the sequence shown
in the above sample block
Tool Home
Top
View
.100”
Front
View
Top
View
5.) Z Axis Feed Move to
Drill Hole
Front
View
Top
View 6.) Rapid Z Axis Move
Out Of Hole
Front
View
Top
View 7.) Turn Off Spindle
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
Front N030 G91 G28 X0 Y0 Z0
View N035 M30
Tool At Home
Top O0001
O0001
View Number Assigned to this program
Front
View
Tool At Home
Top O0001
View N005 G54 G90 S600 M03
N005 Sequence Number
G54 Fixture Offset
G90 Absolute Programming Mode
S600 Spindle Speed set to 600 RPM
M03 Spindle on in a Clockwise Direction
Front
View
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
G00 Rapid Motion
X1.0 X Coordinate 1.0 in. from Zero
Y1.0 Y Coordinate 1.0 in. from Zero
Front
View
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
G43 Tool Length Compensation
H01 Specifies Tool length compensation
Z.1 Z Coordinate .1 in. from Zero
Front M08 Flood Coolant On
View
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
G01 Straight Line Cutting Motion
Z-.75 Z Coordinate -.75 in. from Zero
Front F3.5 Feed Rate set to 3.5 in/min.
View
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
Front G00 Rapid Motion
Z.1 Z Coordinate .1 in. from Zero
View M09 Coolant Off
O0001
N005 G54 G90 S600 M03
Top
View N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
N030 G91 G28 X0 Y0 Z0
G91 Incremental Programming Mode
Front G28 Zero Return Command
View X0, Y0, Z0
X,Y,& Z Coordinates at Zero
Top O0001
View N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N025 G00 Z.1 M09
Front N030 G91 G28 X0 Y0 Z0
View N035 M30
M30 End of Program
APT Language
APT (Automatically Programmed Tools)
The APT language consists of many different types of
statements made up of the following valid letters, numerals
and punctuation marks.
Letters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Numerals: 0 1 2 3 4 5 6 7 8 9
/ A slash divides a statement into two sections. eg.,
GO/PAST,
, A comma is used as a separator between the elements in
a statement generally to the right of the slash.
= An equals is used for assigning an entity to a symbolic
name, e.g., P1 = POINT/25,50,30.
Words
The words to be used in the statements are built up from
one to six letters or numerals with the first one being a
letter. No special character is allowed in the words.