Professional Documents
Culture Documents
PROGRAMMING
IE550
HISTORICAL DEVELOPMENT
• 15th century - machining metal.
• 18th century - industrialization, production-type machine tools.
• 20th century - F.W. Taylor - tool metal - HSS
Automated production equipment -
Screw machines
Transfer lines
Assembly lines
...
using cams and preset stops
Programmable automation -
NC
PLC
Robots
IE550
NEW NCs or CNCs
IE550
NC MACHINES
• Computer control
• Servo axis control MCU - Machine control
• Tool changers unit
• Pallet changers
• On-machine programming
CLU - Control-loops unit
• Data communication
• Graphical interface
DPU - Data processing
unit
Machine
MCU Tool
CLU
DPU
IE550
NC MOTION-CONTROL
NC Program
Execut ion
Sy st em
IE550
NC MACHINE CLASSIFICATIONS
1. Motion control: point to point (PTP)
and continuous (contouring) path
IE550
POINT TO POINT
• Moving at maximum rate from point to point.
IE550
CONTINUOUS PATH
• Controls both the displacement and the velocity.
• Machining profiles.
• Precise control.
• Use linear and circular interpolators.
IE550
MAJOR COMPONENTS OF
AN NC MACHINE TOOL
Machine table Gear Tachometer
Position box
Controller transducer
Motor
Leadscrew
Servo
drive
Magnetics control
cabinet
IE550
NC MACHINE RATING
Accuracy
Repeatability
Spindle and axis motor horsepower
Number of controlled axes
Dimension of workspace
Features of the machine and the controller.
IE550
NC ACCURACY AND REPEATABILITY
IE550
HARDWARE INACCURACIES
Component tolerances:
inaccuracies in the machine elements, machine-
tool assembly errors, spindle runout, and
leadscrew backlash.
Machine operation:
Tool deflection (a function of the cutting force),
produces dimensional error and chatter marks on
the finished part.
Thermal error:
heat generated by the motor operation, cutting
process, friction on the ways and bearings, etc.
Use cutting fluids, locating drive motors away
from the center of a machine, and reducing friction
IE550
REPEATABILITY
Programmed p osition
Repeatability
Avg. error
Test result
IE550
LEADSCREWS
Converting the rotational motion of the motors to a linear motion.
Nut
Leadscrew
Pitch
pulses motor
Differential
_ amplifier Shaft
Up-down + DC Tacho-
DAC Amp Motor meter Encoder
counter
+
Reference pulses
IE550
INTERPOLATION
Control multiple axes simultaneously to move on a
line, a circle, or a curve.
Y Y
(10,5) (10,5)
(3,2) (3,2)
X X
(10-3) 7
Vx =6 =6 = 5.5149
(10-3) 2+ (5-2) 2 49+ 9
(5-2) 3
Vy =6 =6 = 2.3635
(10-3)2+ (5-2)2 49+ 9
IE550
INTERPOLATORS
Most common interpolators are: linear and circular
y z
IE550
MACHINE COORDINATES
IE550
PROGRAM STORAGE
• Paper tape
Paper or Mylar coated paper.
• Diskettes
• From other computers through RS 232 or local area
network (LAN)
IE550
SYMBOLIC CODES
• ASCII or ISO, use even parity
• EIA - Binary Coded Decimal (BCD), RS 244A
standard, use odd parity.
IE550
TAPE INPUT FORMATS
EIA RS-274 standard
• Word-address format
N0010 G01 X07500 Y06250 S612
IE550
NC WORDS
IE550
BASIC REQUIREMENT OF NC
MACHINE CONTROL
a. Preparatory functions: which unit, which interpolator, absolute or
incremental programming, which circular interpolation plane,
cutter compensation, etc.
b. Coordinates: three translational, and three rotational axes.
c. Machining parameters: feed, and speed.
d. Tool control: tool diameter, next tool number, tool change.
e. Cycle functions: drill cycle, ream cycle, bore cycle, mill cycle,
clearance plane.
f. Coolant control: coolant on/off, flood, mist.
g. Miscellaneous control: spindle on/off, tape rewind, spindle rotation
direction, pallet change, clamps control, etc.
h. Interpolators: linear, circular interpolation
IE550
NC WORDS
N code. sequence number
N0010
G code. preparatory word.
Table 9.1 G codes
g00 Rapid traverse g40* Cutter compensation - cancel
IE550
NC WORDS (continue)
Circular Interpolation:
Full circle ON
(5.000,4.000)
(7.000,2.000)
(5.000,2.000)
IE550
NC WORDS (continue)
F Code. feed speed.
F code must be given before either G01, G02, or G03 can be used.
N0010 S1000
IE550
NC WORDS (continue)
T Code. tool number.
Actual tool change does not occur until a tool change M
code is specified.
0.7" 2
The cycle may be programmed R plane
in one block, such as: (cycle 0.3"
programming is vendor
specific.) 1" 3 5
N0010 G81 X1.000
Y2.000 Z0.000 R 1.300 Z point
4
IE550
NC WORDS (continue)
M Code. miscellaneous word.
Table 9.2. M codes
IE550
PART DRAWING
2 ho les ø0 .7 5 ± 0 .00 1
.7 5 ø0.0 0 1 M
MA BC
4 .0 0 0
R1 .0 0 0
3.0 0 0
2 .0 00
1 .0 0 0
A 1 .7 5
3.0 0 0
B
5 .0 0 0
.5 00
2.0 0 0
C
All dimension in inches. A ll t olerance ± 0. 00 1 "
IE550
SOLUTION TO EXAMPLE
Solution:
The cutting parameters need be converted into rpm and ipm.
12 x 620 fpm
Milling: RPM = 12 V = = 3,157 rpm
BD B0.75 inch
12 x 100 fpm
Drilling: RPM = 12 V = = 509 rpm
B D B 0.75 inch
IE550
SETUP AND CUTTER PATH
p2 p3
H2 p6
p7
p8
H1
p4 p5
p9
p1
(0,0,0)
Vise jaw
(0,0,0)
IE550
CUTTER LOCATIONS
The coordinates of each point (cutter location) are calculated below:
IE550
PART PROGRAM
Part program Explanation
IE550
CNCS 3D DRAWING
IE550
TOOL-RADIUS COMPENSATION
Start of Compensation.
(a) G41 (b) G42
G41 (or G42) and G01 in the same block ramp takes place at block
N0010. (0.5, 1.7)
G41 (or G42) and G01 in separate blocks the compensation is effective
from the start.
N0010 G41 G41
IE550
TOOL-RADIUS COMPENSATION
Inside Corner.
Cutter path is inside a corner, stops at the inside cutting point
(1.5, 2.0)
N0010 G41
G42
N0020 G01 X1.500 Y2.000
N0030 G01 X0.000 Y1.600
(0, 1.6)
IE550
TOOL-RADIUS COMPENSATION
G41 G40
Cancel Tool Compensation.
G40 in the same block ramp off block.
N0060 G40 X2.000 Y1.700 M02 G42
(2.000, 1.700)
G40
G42
(2.000, 1.700)
IE550
EXAMPLE
A square 2.0 in. x 2.0 in. is to be milled using a 1/2 in. end milling
cutter. Write an NC part program to make the square.
Solution
Let us set up the lower left corner of the square at (6.0,6.0). Using
tool-radius compensation, the square can be produced.
2.000
2.000
(6,6)
IE550
PART PROGRAM
Part Program Explanation
N0010 G41 S1000 F5 M03 Begin compensation, set feed and speed, spindle on
N0020 G00 X6.000 Y6.000 Move to lower left corner
N0030 G01 Z-1.000 Plunge down the tool
N0040 Y8.000 Cut to upper left corner
N0050 X8.000 Cut to upper right corner
N0060 Y6.000 Cut to lower right corner
N0070 X6.000 Cut to lower left corner
N0080 Z1.000 Lift the tool
N0090 G40 M30 End compensation, stop the machine
IE550
TURNING
2.875
.250
.625
1.125
R.125
1.000 Z
2.125
2.875 X
Part design
Cutter path
IE550
Programming tool point TURNING No compensation needed.
Surfaces cut
Programmed
tool path
Surface created
IE550
COMPUTER ASSISTED
PART PROGRAMMING
Machine-oriented languages - machine specific
Post
Processor
CL
BCL RS-494
N-G code RS-273
IE550