+ All Categories
Home > Documents > NC; CNC; DNC; FMS; Theory

NC; CNC; DNC; FMS; Theory

Date post: 16-Oct-2014
Category:
Upload: kamleshyadavmoney
View: 1,541 times
Download: 12 times
Share this document with a friend
21
10/1/2011 1 NC, CNC & Robotics By S K Mondal What is NC/CNC? NC is an acronym for Numerical Control and CNC is an acronym for Computer Numerical Control. What is the difference between NC and CNC ? The difference between NC and CNC is one of age and capability. The earliest NC machines performed limited functions and movements controlled by punched tape or punch cards cards. As the technology evolved, the machines were equiped with increasingly powerful microprocessors (computers) with the addition of these computers, NC machines become CNC machines. CNC machines have far more capability than their predecessor. contd….. What is the difference between NC and CNC ? Some of the enhancements that came along with CNC include: Canned Cycles, Sub Programming, Cutter Compensation, Work coordinates, Coordinate system rotation, automatic corner rounding, chamfering, and Bspline interpolation. Where did CNC get started? 1940 Jhon Parson developed first machine able to drill holes at specific coordinates programmed on punch cards. 1951 MIT developed servomechanism 1952 MIT developed first NC machines for milling. 1970 First CNC machines came into picture Nowaday’s modified 1970’s machines are used. Is it necessary to have a CAD/CAM system to program a CNC machine? No, yes, may be. It all depends on the kind of work you are doing, your customer’s requirements and your staff’s capability. CAM system give the programmer a tool for creating set up sheets and process drawings.
Transcript
Page 1: NC; CNC; DNC; FMS; Theory

10/1/2011

1

NC, CNC & Robotics

By  S K Mondal

What is NC/CNC?NC is an acronym for Numerical Control and CNC is an

acronym for Computer Numerical Control.

What is the difference between NC and CNC ?The difference between NC and CNC is one of age andcapability.The earliest NC machines performed limited functionsand movements controlled by punched tape or punchcardscards.As the technology evolved, the machines were equipedwith increasingly powerful microprocessors (computers)with the addition of these computers, NC machinesbecome CNC machines.CNC machines have far more capability than theirpredecessor. contd…..

What is the difference between NC and CNC ?

Some of the enhancements that came along with CNC

include: Canned Cycles, Sub Programming, Cutter

Compensation, Work coordinates, Coordinate system

rotation, automatic corner rounding, chamfering, and B‐

spline interpolation.

Where did CNC get started?1940 Jhon Parson developed first machine able to drill

holes at specific coordinates programmed on punch

cards.

1951 MIT developed servo‐mechanism

1952 MIT developed first NC machines for milling.

1970 First CNC machines came into picture

Now‐a‐day’s modified 1970’s machines are used.

Is it necessary to have a CAD/CAM system to program a CNC machine?

No, yes, may be. It all depends on the kind of work you

are doing, your customer’s requirements and your staff ’s

capability.

CAM system give the programmer a tool for creating set

up sheets and process drawings.

hp
Made Easy Logo
Page 2: NC; CNC; DNC; FMS; Theory

10/1/2011

2

Do all machines speak the same CNC language

No, while there is fairly standard set of G and M codes,

there is some variation in their application. For example

a G0 or G00 command is universally regarded as the

command for rapid travel. Some older machines do not

have a G00 command. On these machines, rapid travel is

commanded by using the F (feed) word address.

What is a “Conversational Control”CNC machine tool builders offer an option what is

known as the conversational control. This control lets

the operator/programmer use simple descriptive

language to program the part. The control then

displayed a graphical representation of the instructions

so the operator/programmer can verify the tool path.

Are CNC machines faster than conventional machines?

Yes, No, Sometimes. When it comes to making a single,

simple part it is hard to beat a conventional mill or lathesimple part it is hard to beat a conventional mill or lathe.

CNC machines move faster in rapid travel than

conventional machines.

Are CNC machines more accurate than conventional machines?

Yes, they can be. But like anything else it depends on

h i i th hi h ll th hi hwho is running the machine, how well the machines has

been maintained, quality of setup and so on.

NC/CNC Machines‐AdvantagesHigh Repeatability and Precision e.g. Aircraft partsVolume of production is very highComplex contours/surfaces need to be machined. E.g.TurbinesFlexibility in job change, automatic tool settings, lessscrapMore safe, higher productivity, better qualityLess paper work, faster prototype production, reductionin lead times

NC/CNC Machines‐DisadvantagesCostly setup, skilled operators

Computers, programming knowledge required

Maintenance is difficultMaintenance is difficult

hp
Made Easy Logo
Page 3: NC; CNC; DNC; FMS; Theory

10/1/2011

3

NC/CNC/DNCDirect Numerical Control is a system that uses acentral computer to control several machines at the sametimeDistributed Numerical Control (DNC): the central

t d l d l t t th CNC

13

computer downloads complete programs to the CNCmachines, which can be workstations or PCs, and can getthe information for the machine operations.The speed of the system is increased, large files can behandled and the number of machine tools used isexpanded.

Direct numerical control

14

DNC

15

Basic Length Unit (BLU)In NC machine, the displacement length per one pulseoutput from machine is defined as a Basic Length Unit(BLU).In the CNC computer each bit (binary digit) represents 1BLUBLU.

Bit = BLUExample: If one pulse makes a servo motor rotate by onedegree and the servo motor moves the table by 0.0001mm, one BLU will be 0.0001 mm.The lead of a ball screw is related to the displacementunit of the machine tool table.

Stepper MotorThe stepper motor is special type of synchronous motor

which is designed to rotate through a specific angle

(Called step) for each electrical pulse received from the

control unit.

hp
Made Easy Logo
Page 4: NC; CNC; DNC; FMS; Theory

10/1/2011

4

Control Systems possible in CNC MachinePoint to point mode:

Point‐to‐point  straight line mode

Co‐ordinate systemAll the machine tool use Cartesian Co‐ordinate system.The first axis to be identified is the Z – axis, This isfollowed by X and Y axes respectively.

Right‐hand coordinate systems

hp
Made Easy Logo
Page 5: NC; CNC; DNC; FMS; Theory

10/1/2011

5

5 axes CNC vertical axis machining centre configuration

Absolute and Incremental Coordinate System

Absolute Coordinate System Incremental Coordinate System

The following are the steps to be followed while developing the CNC part programs.

Process planningAxes selectionTool selectionCutting process parameters planningJob and tool setup planningMachining path planningPart program writingPart program proving

hp
Made Easy Logo
Page 6: NC; CNC; DNC; FMS; Theory

10/1/2011

6

Basic CNC Principles

For a CNC machine control unit (MCU) decides cuttingspeed, feed, depth of cut, tool selection , coolant on offand tool paths. The MCU issues commands in form ofnumeric data to motors that position slides and toolaccordingly.

Part ProgrammingFANUC CONTROLL

SIEMENS CONTROLL

CNC programmingImportant things to know:

• 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 LettersO ‐ Program number (Used for program identification)N ‐ Sequence number (Used for line identification)G ‐ Preparatory functionX ‐ X axis designationY ‐ Y axis designationgZ ‐ Z axis designationR ‐ Radius designationF – Feed rate designationS ‐ Spindle speed designationH ‐ Tool length offset designationD ‐ Tool radius offset designationT ‐ Tool DesignationM ‐Miscellaneous function

Explanation of commonly used G codes

• G00 – Preparatory code to control final positionof the tool and not concerned with the path thatis followed in arriving at the final destination.

• G01 – Tool is required to move in a straight lineG01 Tool is required to move in a straight lineconnecting current position and final position.Used for tool movement without any machining‐point to point control. (linear interpolation)

• G02 – Tool path followed is along an arc specifiedby I, J and K codes.( circular interpolation)

hp
Made Easy Logo
Page 7: NC; CNC; DNC; FMS; Theory

10/1/2011

7

CNC Programming BasicsEach letter address relates to a specific machinefunction. “G” and “M” letter addresses are two of themost common. A “G” letter specifies certain machinepreparations such as inch or metric modes, orabsolutes versus incremental modes.absolutes versus incremental modes.A “M” letter specifies miscellaneous machinefunctions and work like on/off switches for coolantflow, tool changing, or spindle rotation. Other letteraddresses are used to direct a wide variety of othermachine commands.

Table of Important G codesG00 Rapid Transverse

G01 Linear Interpolation

G02 Circular Interpolation, CW

G03 Circular Interpolation, CCW

G  XY Pl G  XZ Pl G  YZ PlG17 XY Plane,G18 XZ Plane,G19 YZ Plane

G20/G70 Inch units

G21/G71 Metric Units

G40 Cutter compensation cancel

G41 Cutter compensation left

G42 Cutter compensation right

Table of Important G codesG43 Tool length compensation (plus)

G44 Tool length compensation (minus)

G49 Tool length compensation cancel

G80 Cancel canned cyclesG80 Cancel canned cycles

G81 Drilling cycle

G82 Counter boring cycle

G83 Deep hole drilling cycle

G90 Absolute positioning

G91 Incremental positioning

Rapid traverse: G00G00: 

to make the machine move at maximum speed. It is used for positioning motion. 

G90  G00  X20 0  Y10 0G90  G00  X20.0  Y10.0

Start

EndG90: 

absolute coordinate

s

(0,0)

(10,10)

(20,10)

Linear interpolation: G01 G01: 

linear interpolation at feed speed.G91 G0l X200.0 Y100.0 F200.0

YY

100.0

XStart

End

200.0

G91: incremental coordinates

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

⎫⎧⎫⎧

__;____

____0302

19

__;____

____0302

18

__;____

____0302

17

FKJ

RZY

GG

G

FKI

RZX

GG

G

FJI

RYX

GG

G

⎭⎬⎫

⎩⎨⎧

⎭⎬⎫

⎩⎨⎧

⎭⎬⎫

⎩⎨⎧

⎭⎬⎫

⎩⎨⎧

⎭⎬⎫

⎩⎨⎧

⎭⎬⎫

⎩⎨⎧

End point

Circle center,  radius

hp
Made Easy Logo
Page 8: NC; CNC; DNC; FMS; Theory

10/1/2011

8

Circular interpolation: G02, G03

EndR=-50mm

Y

XSpecify R with sign before it:

G91 G02  X60.0  Y20.0  R50.0 F300.0G91 G02  X60.0  Y20.0  R‐50.0 F300.0

Start R=50mm

sign before it:

≤180° +R

>180° ‐R

Circular interpolation: G02, G03Specify Center with I, J, K

I, J, K are the incremental distance from the start of 

Y End

the arc;

Viewing the start of arc as the origin, I, J, K have positive or negative signs.

Center

Start

X

i

j

Circular interpolation: G02, G03N0010 G92   X200.0  Y40.0  Z0 ;N0020 G90   G03  X140.0  Y100.0  I ‐60.0  F300;N0030 G02   X120. 0  Y60.0  I‐ 50.0;

OrN0010 G92  X200 0  Y40 0  Z0;

G92:To define working 

coordinate

R60R50

90 120 140 200

100

6040

O

Y

X

N0010 G92  X200.0  Y40.0  Z0;N0020 G90  G03  X140.0   Y100.0  R60.0  F300;N0030 G02  X120.0  Y60.0   R50.0;

G90: absolute 

coordinates

coordinate

Circular interpolation: G02, G03

Annotation for Circular InterpolationI0.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  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 CompensationTool‐Radius Compensation 

Left hand G41 Right hand G42 C l  l di   i  GCancel tool‐radius compensation G40

Tool‐Height CompensationPositive G43 Negative G44 Cancel tool‐height compensation G49

Tool‐Radius CompensationTool‐radius compensations make it possible to program directly from the drawing, and thus eliminate the tool‐offset calculation 

G41 (G42) H××H  th   di   f t l t   t  i   d i       it th t H××: the radius of tool to compensate is saved in a memory unit that is named H××G41/G42 is directly related with direction of tool movement and which side of part is cut. 

hp
Made Easy Logo
Page 9: NC; CNC; DNC; FMS; Theory

10/1/2011

9

Cancel Tool Compensation: G40

Note the difference between two ways

N0060 G40 G01 X2.000 Y1.700 M02 N0060 G01 X2.000 Y1.700N0070 G40 M027 4

ramp off block effective to the end point

Tool‐Height CompensationG43 (G44) H××

H××: specified memory unit used to save height compensation of tool.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 CompensationExample:

N0010   G91  G00  X12.0   Y80.0 N0020   G44   Z‐32.0  H02;

G91: incremental coordinates

If we put 0.5mm into H02, real position = ‐32.0 ‐ 0.5 = ‐32.5

Cancel tool‐height compensation: G49

coordinates

Table of Important M codesM00 Program stopM01 Optional program stopM02 Program endM03 Spindle on clockwiseM04 Spindle on counterclockwiseM05 Spindle stopM06 Tool changeM08 Coolant onM09 Coolant offM10 Clamps onM11 Clamps offM30 Program stop, reset to start

Rules for programmingBlock Format

N135 G01 X1.0 Y1.0 Z0.125 F5

Sample Block• Restrictions on CNC blocks• 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 beindependent of all other commands (on separate lines)• The data within a block should follow the sequence shownin the above sample block

Example of CNC Programming

What Must Be Done To Drill A Hole On A CNC Vertical Milling Machineg

hp
Made Easy Logo
Page 10: NC; CNC; DNC; FMS; Theory

10/1/2011

10

Top View

Tool Home

Front View

1.) X & Y Rapid To Hole Position

Top View 2.) Z Axis Rapid Move 

Just Above Hole

3.) Turn On Coolant

) O i dl

Front View

4.) Turn On Spindle

.100”

Top View

5.) Z Axis Feed Move to 

Front View

5Drill Hole

Top View 6.) Rapid Z Axis Move 

Out Of Hole

Front View

Top View 7.) Turn Off Spindle

8.) Turn Off Coolant

Front View

9.) X&Y Axis Rapid Move Home

Top View

Tool At Home

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08

Here’s The CNC Program!

Front View

N015 G43 H01 Z.1 M08N020 G01 Z‐.75 F3.5

N030 G91 G28 X0 Y0 Z0N035 M30

N025 G00 Z.1 M09

hp
Made Easy Logo
Page 11: NC; CNC; DNC; FMS; Theory

10/1/2011

11

Top View

Tool At Home

O0001O0001 

Number Assigned to this program

Front View

Top View

Tool At Home

O0001N005 G54 G90 S600 M03N005  Sequence NumberG54  Fixture OffsetG90  Absolute Programming Mode

Front View

G90  Absolute Programming ModeS600  Spindle Speed set to 600 RPMM03  Spindle on in a Clockwise Direction

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0G R id M i

Front View

G00 Rapid MotionX1.0 X Coordinate 1.0 in. from ZeroY1.0 Y Coordinate 1.0 in. from Zero

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08

Front View

N015 G43 H01 Z.1 M08G43 Tool Length CompensationH01 Specifies Tool length compensationZ.1 Z Coordinate .1 in. from ZeroM08 Flood Coolant On

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08

Front View

N015 G43 H01 Z.1 M08N020 G01 Z‐.75 F200G01 Straight Line Cutting MotionZ‐.75 Z Coordinate ‐.75 in. from ZeroF200 Feed Rate set to 200  mm/min.

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08

Front View

N015 G43 H01 Z.1 M08N020 G01 Z‐.75 F3.5

G00 Rapid MotionZ.1 Z Coordinate .1 in. from ZeroM09 Coolant Off

N025 G00 Z.1 M09

hp
Made Easy Logo
Page 12: NC; CNC; DNC; FMS; Theory

10/1/2011

12

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08N020 G01 Z‐.75 F3.5

Front View

75 3 5

N030 G91 G28 X0 Y0 Z0G91 Incremental Programming ModeG28 Zero Return CommandX0, Y0, Z0 

X,Y,& Z Coordinates at Zero

N025 G00 Z.1 M09

Top View

O0001N005 G54 G90 S600 M03N010 G00 X1.0 Y1.0N015 G43 H01 Z.1 M08N020 G01 Z‐.75 F3.5

Front View

N020 G01 Z .75 F3.5

N035 M30N030 G91 G28 X0 Y0 Z0N025 G00 Z.1 M09

M30 End of Program

APT LanguageAPT (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: ABCDEFGHIJKLMNOPQRSTWWXYZLetters: ABCDEFGHIJKLMNOPQRSTWWXYZNumerals: 0123456789/ 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., CI = CIRCLE/25,50,30.

WordsThe 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.

The complete APT part program consists of the following four types of statements

Geometry

Motion 

Post processor

Compilation control

hp
Made Easy Logo
Page 13: NC; CNC; DNC; FMS; Theory

10/1/2011

13

APT LanguageAdditional statements:MACHIN/DRILL, 2COOLNT/

For example: COOLNT/MIST COOLNT/FLOOD COOLNT/OF

73

pFEDRAT/SPINDL/

For example: SPINDL/ON SPINDL/1250, CCLWTOOLNO/TURRET/END

APT LanguageOther capabilities of APT, the macro facility, with use variable argument as in a 

FORTRAN subroutine, for example:P0 = POINT/0.0, 0.3, 0.1FROM/P0CALL/DRILL, X=1.0, Y=1.0, Z=0.1, DEPTH=0.7CALL/DRILL, X=2.0, Y=1.0, Z=0.1, DEPTH=0.7

74

GOTO/P0

when the definition of the macro DRILL is:DRILL = MACRO/X, Y, Z, DEPTH

GOTO/X,Y,ZGODLTA/0,0, -DEPTHGODLTA/0,0, DEPTHTARMAC

Other Part Programming Languages

ADAPT (ADaptation APT) was the first attempt to adapt APT programming system for smaller computersAUTOSPOT (AUTOmatic Sytem for POsitioning Tools) was developed by IBM and first introduced in 1962EXAPT (EXtended subset of APT) was developed jointly in German in about 1964 by several universities to adapt APT for E    I  i   ibl   i h APT  d  h       h  

75

European use. It is compatible with APT and thus can use the same processor as APTCOMPACT was developed by Manufacturing Data Systems, Inc. (MDSI)SPLIT (Sundstrand Processing Language Internally Translated) was developed by Sundstrand Corporation, intended for its own machine toolsMAPT (Micro‐APT) is a subset of APT, to be run on the microcomputers

Point (POINT)

PTA = POINT/ 3,4,5

y

(3, 4, 5)

PTA

x

z

Point (POINT)

PTB = POINT/ INTOF, LIN1, LIN2

LIN2

LIN1PTB

Point (POINT)

PTD = POINT/ YSMALL, INTOF, LIN3, C1PTD = POINT/ XSMALL, INTOF, LIN3, C1PTC = POINT/ YLARGE, INTOF, LIN3, C1PTC = POINT/ XLARGE, INTOF, LIN3, C1 PTC

y

PTD

LIN3

C1

x

hp
Made Easy Logo
Page 14: NC; CNC; DNC; FMS; Theory

10/1/2011

14

Point (POINT)

PTE = POINT/ YLARGE, INTOF, C1, C2PTE = POINT/ XLARGE, INTOF, C1, C2PTF = POINT/ YSMALL, INTOF, C1, C2PTF = POINT/ XSMALL, INTOF, C1, C2

y

C1

PTE

x

C2

PTE

PTF

Point (POINT)

PT7 = POINT/ CENTER, C6

C6

y

PT7

x

Line (LINE)

LIN1 = LINE/ P1, P2

y

LIN1

P1

P2

x

Line (LINE)

LIN4 = LINE/ PT6, 15, -30, 3

PT6

y

L4 (15, ‐30, 3)

x

Line (LINE)

L12 = LINE/ PT4, ATANGL, 20, XAXISL14 = LINE/ PT1, ATANGL, 40L15 = LINE/ 32, -3, 2, ATANGL, -15, XAXISL16 = LINE/ PT3, ATANGL, 40, YAXIS

yPT3 L

x

L16

PT3

PT1

L14

L12

PT4

(32, ‐3, 2)L15

40°

40° 20°

15°

Line (LINE)

LIN = LINE/ POINT, ATANGL, ANGLE (in degrees), LINE

LINE2

y

P1

LINE1

x

LINE2 = LINE/ P1, ATANGL, 30, LINE1 

30°

hp
Made Easy Logo
Page 15: NC; CNC; DNC; FMS; Theory

10/1/2011

15

Line (LINE)

LIN = LINE/ SLOPE, SLOPE VALUE, INTERC, MODIFIER, dwhere the slope value is y/x. The modifier options are [XAXIS,

YAXIS], and d is the corresponding intercept value on the selectedaxis (i.e., modifier).

y

x

y

(6,0)  Point of X‐Intercept

LINE1

LINE1 = LINE/ SLOPE, 1, INTERC, x‐axis, 6

Line (LINE)

LIN = LINE/ ATANGL, DEGREES, INTERC, MODIFIER, dThe modifier options are [XAXIS, YAXIS], and d is the

corresponding intercept value on the selected axis (i.e., modifier).

y

x

y

d

LINE1

θ = 30°

LINE1 = LINE/ ATANGL, 30, INTERC, d

Line (LINE)

The LEFT & RIGHT modifier indicates whether the lineis at the left or right tangent point, depending on howone looks at the circle from the point.

L1 = LINE/ PT51, LEFT, TANTO, C11

L1

C11

PT51

Line (LINE)

L2 = LINE/ PT51, RIGHT, TANTO, C11L3 = LINE/ PT40, RIGHT, TANTO, C11L4 = LINE/ PT40, LEFT, TANTO, C11

L3 Right

Left

Right

PT51

L1

L4

L2

Left

PT40

Line (LINE)

LN3 = LINE/ PNT6, PARLEL, LN15LN4 = LINE/ PNT5, PERPTO, LN13

yy

x

PNT6 LN3

LN15LN13

PNT5

LN4

Plane (PLANE)

LN5 = LINE/ INTOF, PLAN1, PLAN2

LN5

PLAN2

PLAN1

hp
Made Easy Logo
Page 16: NC; CNC; DNC; FMS; Theory

10/1/2011

16

Plane (PLANE)

PLAN10 = PLANE/ PT6, PT12, PT15

PT15PLAN10

PT12PT6

PT4

y

x

zPLAN14

3.0

Plane (PLANE)

PLAN14 = PLANE/ PT4, PARLEL, PLAN10PLAN14 = PLANE/ PARLEL, PLAN10, YSMALL, 3.0

PLAN10

PT15

PT12PT6

PT4

y

x

zPLAN14

3.0

Circle (CIRCLE)

C1 = CIRCLE/ 3, 6, 5, 4.3C1 = CIRCLE/ CENTER, PT3, RADIUS, 4.3

y

PT3(3,6,5)

C1

y

x

4.3

Circle (CIRCLE)

C3 = CIRCLE/ CENTER, PT6, TANTO, LN4C7 = CIRCLE/ CENTER, PT8, PT5

y y

C3

y

x

LN4

PT6C7

y

x

PT8

PT5

The Machining Plan:

Contouring:

Part surface: the surface on which the end of the tool isriding.

Drive surface: the surface against which the edge of thetool rides.

Check surface: a surface at which the current tool motionis to stop.

The Machining Plan

z

y

Direction of 

Drive surface Check surface

cutter

x

Direction of cutter motion

Part surface

hp
Made Easy Logo
Page 17: NC; CNC; DNC; FMS; Theory

10/1/2011

17

The Machining Plan

CS CS CS

DS

TO

DS

ON

DS

PAST

The Machining Plan

Motion commands:

GOLFT/ : Move left along the drive surface

GORGT/ : Move right along the drive surface

GOUP/ : Move up along the drive surface

GODOWN/ : Move down along the drive surface

GOFWD/ : Move forward from a tangent position

GOBACK/ : Move backward from a tangent position

Machining Specifications

Postprocessor commands for a particular machine tool are:

MACHIN/ : used to specify the machine tool and call thepostprocessor for that tool:

MACHIN/ DRILL, 3,

COOLNT/ : allows the coolant fluid to be turned on or off:

COOLNT/ MIST

COOLNT/ FLOOD

COOLNT/ OFF

Machining Specifications

FEDRAT/ : specifies the feed rate for moving the tool along thepart surface in inches per minute:

FEDRAT/ 4.5

SPINDL/ : gives the spindle rotation speed in revolutions perSPINDL/ : gives the spindle rotation speed in revolutions perminute:

SPINDL/ 850

TURRET/ : can be used to call a specific tool from an automatictool changer:

TURRET/ 11

Machining Specifications

TOLERANCE SETTING: Nonlinear motion is accomplished instraight-line segments, and INTOL/ and OUTTOL/ statementsdictate the number of straight-line segments to be generated.

INTOL/ 0.0015

OUTTOL/ 0.001

Machining Specifications

PARTNO: identifies the part program and is inserted at the start ofthe program.

CLPRINT: indicates that a cutter location printout is desired.

CUTTER: specifies a cutter diameter for offset (rough versus finishp ( gcutting). If a milling cutter is 0.5 in. in diameter and we have

CUTTER/ 0.6

then the tool will be offset from the finish cut by 0.05 in.

hp
Made Easy Logo
Page 18: NC; CNC; DNC; FMS; Theory

10/1/2011

18

Machining Specifications

FINI: specifies the end of the program.

APT ProgramMACHIN/ MILL

P0 = POINT/ 0, 0, 3P1 = POINT/ 1, 0L1 = LINE/ P1, SLOPE, 0L2 = LINE/ P1, SLOPE, 90L3 = LINE/ PARLEL, L1, YLARGE, 2L4 = LINE/ (POINT/ 4, 2), SLOPE, 1, L3L5 = LINE/ (POINT/ 6, 4), ATANGL, 270, L4L6 LINE/ (POINT/ 10 0) PEPTO L3

P3L6 = LINE/ (POINT/ 10, 0), PEPTO, L3P2 = POINT/ INTOF, L3, L4P3 = POINT/ INTOF, L4, L5P4 = POINT/ INTOF, L5, L3PL = PLANE/ P1, P2, P3

CUTTER/ 60TOLER/ 0.1SPINDL/ 200COOLNT/ ONFEDRAT/ 20

P1 L1

L3 L3

L2 L6

L5L4

P2 P4

P0

APT ProgramMACHIN/ MILL

P0 = POINT/ 0, 0, 3P1 = POINT/ 1, 0L1 = LINE/ P1, SLOPE, 0L2 = LINE/ P1, SLOPE, 90L3 = LINE/ PARLEL, L1, YLARGE, 2L4 = LINE/ (POINT/ 4, 2), SLOPE, 1, L3L5 = LINE/ (POINT/ 6, 4), ATANGL, 270, L4L6 LINE/ (POINT/ 10 0) PEPTO L3L6 = LINE/ (POINT/ 10, 0), PEPTO, L3P2 = POINT/ INTOF, L3, L4P3 = POINT/ INTOF, L4, L5P4 = POINT/ INTOF, L5, L3PL = PLANE/ P1, P2, P3

CUTTER/ 60TOLER/ 0.1SPINDL/ 200COOLNT/ ONFEDRAT/ 20

L1

L3

L6 L2

L4L5

P0

APT Program

FROM/ P0

GOTO/ L1, TO, PL, TO, L2

GOFWD/ P1, PAST, L3

GORGT/ L3, TO, P2

GOLFT/ P2, TO, P3

GORGT/ P3, TO, P4

GORGT/ P4, PAST, L6L5L4

P2 P4

P3

GORGT / L6, PAST, L1

GORGT / L1, TO, P1

COOLNT/ OFF

END

FINI

P1 L1

L3 L3

L2 L6

P2 P4

P0

APT Language Example:

107

APT Language Answer:FROM/SPGO/TO, L1, TO, PS, ON, L6GORGT/L1, PAST, L2GORGT/L2, TANTO, C1

108

GORGT/L2, TANTO, C1GOFWD/C1, TANTO, L3GOFWD/L3, PAST, L4GOLFT/L4, PAST, L5GOLFT/L5, PAST, L6GOLFT/L6, PAST, L1GOTO/SP

hp
Made Easy Logo
Page 19: NC; CNC; DNC; FMS; Theory

10/1/2011

19

APT Language Example 1:

109

APT Language Answer:P0 = POINT/0.0, 3.0, 0.1P1 = POINT/1.0, 1.0, 0.1P2 = POINT/2.0, 1.0, 0.1FROM/P0

110

GOTO/P1GODLTA/0, 0, -0.7GODLTA/0, 0, 0.7GOTO/P2GODLTA/0, 0, -0.7GODLTA/0, 0, 0.7GOTO/P0

APT LanguageOther Motion statements:

GO/{TO}, Drive surface, {TO} Part surface, {TO}, Check surface

OrGO/{TO}, Drive surface, {TO} Part surface, {TANTO}, Check surface

111

Check surface…And the same with PAST or ON instead of TO

GOLFT/GORGT/GOUP/GODOWN/GOFWD/GOBACK/For example:

GO/TO, L1, TO, PS, TANTO, C1GO/PAST, L1, TO, PS, TANTO, C1

APT Language Example 2:

112

APT Language Answer:FROM/SPGO/TO, L1, TO, PS, ON, L4GORGT/L1, PAST, L2GOLFT/L2 PAST L3

113

GOLFT/L2, PAST, L3GOLFT/L3, PAST, C1GOLFT/C1, PAST, L3GOLFT/L3, PAST, L4GOLFT/L4, PAST, L1GOTO/SP

hp
Made Easy Logo
Page 20: NC; CNC; DNC; FMS; Theory

10/1/2011

20

hp
Made Easy Logo
Page 21: NC; CNC; DNC; FMS; Theory

10/1/2011

21

hp
Made Easy Logo

Recommended