Professional Documents
Culture Documents
Ie 550 NC
Ie 550 NC
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
high speed spindle (> 20,000 rpm)
high feed rate drive ( > 600 ipm)
high precision ( < 0.0001" accuracy)
IE550
NC MACHINES
Computer control
Data communication
Graphical interface
Machine
Tool
MCU
CLU
DPU
IE550
NC MOTION-CONTROL
NC Program
Execution
Syst em
Commands
Dimensions
Interpolator &
Servo-cont rol
Mechanism
Control Logic
Linear Motion
IE550
T ranslat or
Power
Relay
Solenoid
NC MACHINE CLASSIFICATIONS
1. Motion control: point to point (PTP)
and continuous (contouring) path
2. Control loops: open loop and closed loop
3. Power drives: hydraulic, electric,
or pneumatic
4. Positioning systems: incremental and
absolute positioning
5. Hardwired NC and softwired Computer
Numerical Control (CNC)
IE550
POINT TO POINT
Moving at maximum rate from point to point.
Accuracy of the destination is important but not the path.
Drilling is a good application.
IE550
CONTINUOUS PATH
IE550
Machining profiles.
Precise control.
MAJOR COMPONENTS OF
AN NC MACHINE TOOL
Position
transducer
Controller
Machine table
Gear Tachometer
box
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
IE550
HARDWARE INACCURACIES
Component tolerances:
inaccuracies in the machine elements, machinetool 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 position
Repeat abilit y
Avg. error
T est result
IE550
LEADSCREW
Sof the motors to a linear motion.
Converting the rotational motion
Nut
Leadscrew
Pitch
IE550
CONTROL LOOPS
Open loop - No position feedback.
Use stepping motor.
pulses
table
motor
CLOSED
LOOP
Differential
amplifier
_
Up-down
counter
DAC
Amp
Shaft
DC
Motor
Tachometer
+
Reference pulses
IE550
Encoder
INTERPOLATION
Control multiple axes simultaneously to move on a
line, a circle, or a curve.
Y
(10,5)
(10,5)
(3,2)
X
(10-3)
(10-3)2+ (5-2)2
(5-2)
(10-3)2+ (5-2)2
(3,2)
X
Linear path
=6
7
= 5.5149
49+ 9
=6
3
= 2.3635
49+ 9
INTERPOLATORS
Most common interpolators are: linear and circular
Since interpolation is right above the servo level,
speed is critical, and the process must not involve
excessive computation.
Traditional NC interpolators: Digital Differential
Analyzer (DDA)
Higher order curves, such as Bezier's curve, use offline approximation algorithms to break the curves
into linear or circular segments.
IE550
COORDINATE SYSTEMS
z
x
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
IE550
NC
WORDS
A G-code program consists the following words:
N, G, X, Y, Z, A, B, C, I, J, K, F, S, T, R, M
An EIA standard, RS-273 defines a set of standard
codes.
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
N code. sequence number
WORDS
N0010
G code. preparatory word.
Table 9.1 G codes
IE550
g00
Rapid traverse
g40*
g01
Linear interpolation
g41
g02
Circular interpolation, CW
g42
g03
g04
Dwell
g71
Metric format
g08
Acceleration
g74
g09
Deceleration
g75 *
g80
g18
Z-X Plane
g19
Y-Z Plane
g90 *
g33
Inch format
Absolute dimension
programming
Incremental deimension
NC WORDS
(continue)
IE550
NC WORDS
(continue)
Circular Interpolation:
Full circle ON
(5.000,4.000)
(5.000,2.000)
IE550
(7.000,2.000)
NC WORDS
(continue)
F Code. feed speed.
inch/min (ipm), or ipr.
F code must be given before either G01, G02, or G03 can be used.
N0100 G02 X7.000 Y2.000 I5.000 J2.000 F6.00
S Code. cutting speed code.
It is programmed in rpm.
S code does not turn on the spindle, spindle is turned on by a M
code.
N0010 S1000
IE550
NC WORDS
(continue)
T Code. tool number.
Actual tool change does not occur until a tool change M
code is specified.
R Code. cycle parameter.
(1,2,2)
Initial height
2
0.7"
IE550
R plane
0.3"
1"
Z point
NC WORDS
(continue)
M Code. miscellaneous word.
m06
Tool change
m07
Flood coolant on
m08
Mist coolant on
m03 Spindle CW
m09
Coolant off
m30
End of tape
IE550
PART DRAWING
2 holes 0.750.001
.75
0.001 M
MA BC
4.000
R1.000
3.000
2.000
1.000
1.75
3.000
5.000
.500
2.000
C
All dimension in inches. A ll tolerance 0.001"
IE550
SOLUTION TO EXAMPLE
Solution:
The cutting parameters need be converted into rpm and ipm.
12 x 620 fpm
= 3,157 rpm
0.75 inch
Milling:
RPM = 12 V =
D
Drilling:
12 x 100 fpm
RPM = 12 V =
= 509 rpm
D
0.75 inch
IE550
p3
p6
H2
p8
H1
p4
p7
p5
p9
p1
(0,0,0)
Drill
End mill
Vise jaw
(0,0,0)
IE550
CUTTER LOCATIONS
The coordinates of each point (cutter location) are calculated below:
p1': ( 1.75+0.375, -0.1-0.375, 4.00) = (2.125, -0.475, 4.000)
p1: (2.125,-0.475, 2.000-0.500) = (2.125,-0.475,1.500)
p2: (2.125,4.000+0.100,1.500) = (2.125,4.100,1.500)
p3: (3.000-0.375,4.100,1.500) = (2.625,4.100,1.500)
p4: (2.625,1.375,1.500)
p5: (3.000,2.000-1.000+0.375,1.500) = (3.000,1.375,1.500)
p6: (3.000,2.625,1.500)
p7: (3.000,2.000,1.500)
p8: (2.625,2.000,1.500)
p9: (2.625,-0.100,1.500)
p9': (2.625,-0.100,4.000)
IE550
Part program
PART PROGRAM
Explanation
CNCS VERIFICATION
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
(0.5, 1.7)
N0010.
N0010 G01 G42 X0.500 Y1.700
(1.5, 1.7)
G41
G42
G41 (or G42) and G01 in separate blocks the compensation is effective
from the start.
N0010 G41
G41
IE550
G42
TOOL-RADIUS COMPENSATION
Inside Corner.
Cutter path is inside a corner, stops at the inside cutting point
N0010 G41
(1.5, 2.0)
G42
M96
N0010 G41
N0020 G01 X1.000 Y1.000
N0030 G01 Y0.800 M97
N0040 G01 X2.000
IE550
G41
M97
TOOL-RADIUS COMPENSATION
G41
G40
G42
(2.000, 1.700)
G41
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
N0010 G41 S1000 F5 M03
N0020 G00 X6.000 Y6.000
N0030 G01 Z-1.000
N0040 Y8.000
N0050 X8.000
N0060 Y6.000
N0070 X6.000
N0080 Z1.000
N0090 G40 M30
IE550
Explanation
Begin compensation, set feed and speed, spindle on
Move to lower left corner
Plunge down the tool
Cut to upper left corner
Cut to upper right corner
Cut to lower right corner
Cut to lower left corner
Lift the tool
End compensation, stop the machine
TURNING
2.875
.250
.625
1.125
R.125
1.000
2.125
2.875
Part design
Cutter path
Cutter path
IE550
Tool
TURNING
No compensation needed.
Surfaces cut
Programmed
tool path
Surface created
IE550
COMPUTER ASSISTED
PART PROGRAMMING
Machine-oriented languages - machine specific
General-purpose languages - use post processors to generate
machine specific code
Translate input symbols
Arithmetic calculation
Part program
Language
Processor
CL
BCL
CL data
Post
Processor
RS-494
N-G code
IE550
RS-273