Programming Methods - Lecture Notes
Programming Methods - Lecture Notes
Programming Methods - Lecture Notes
PROGRAMMING METHODS
Numerical Control (NC) Defined
Program Machine
Instructions Control Unit
Transformation
Process
Power
Controller components
Controller components:
1. Data Processing Unit (DPU)
2. Control-Loops Unit (CLU)
Controller components
Point-to-Point systems
Also called position systems
System moves to a location and performs an
operation at that location (e.g., drilling)
Also applicable in robotics
(10,5) (10,5)
(3,2) (3,2)
X X
Point-to-point control path Linear path
Interpolation Methods
1. Linear interpolation
Straight line between two points in space
2. Circular interpolation
Circular arc defined by starting point, end point, center or radius, and
direction
Absolute vs. Incremental Positioning
Absolute positioning
Move is: x = 40, y = 50
Incremental positioning
Move is: x = 20, y = 30.
Introduction to NC programming
- What are the cutting conditions (speed, feed, coolant ON/OFF etc)
5”
2.5”
p4
p2 p3 p5
1”
(4, 4)
p1 Motion of tool:
p0 → p1 → p2 → p3 → p4 → p5 → p1 → p0
p0 (2, 2)
1. Set up the programming parameters
5”
2.5”
p4
p2 p3 p5
1”
Programming in inches
5”
Use absolute coordinates
Feed in ipm
45°
N010 G70 G90 G94 G97 M04
(4, 4)
p1
Spindle speed in rpm
p0 (2, 2)
Spindle CCW
2. Set up the machining conditions
5”
2.5”
p4
p2 p3 p5
1”
Machine moves in XY-plane
Spindle speed
45°
N020 G17 G75 F6.0 S300 T1001 M08
(4, 4)
p1
Tool no.
p0 (2, 2)
Flood coolant ON
3. Move tool from p0 to p1 in straight line
5”
2.5”
p4
p2 p3 p5
Linear interpolation
1”
target coordinates
45°
(4, 4)
p1
p0 (2, 2)
4. Cut profile from p1 to p2
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
5” target coordinates
p0 (2, 2)
X-coordinate does not change ➔ no need to program it
5. Cut profile from p2 to p3
5”
2.5”
p4 Linear interpolation
p2 p3 p5
target coordinates
1”
5”
y = 9 + 0.125 = 9.125
(6.5 - x)2 + 0.1252 = (1 - 0.125)2
x = 5.634
p3
(x, y)
45°
(6.5, 9)
(4, 4) .125
p1
p0 (2, 2)
1”
6. Cut along circle from p3 to p4
5”
2.5”
p4
p2 p3 p5
1”
5”
target coordinates
(4, 4)
coordinates of center of circle
p1
p0 (2, 2)
7. Cut from p4 to p5
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
8. Cut from p5 to p1
5”
2.5”
p4
p2 p3 p5
1”
5”
Linear interpolation
p0 (2, 2)
9. Return to home position, stop program
5”
2.5”
p4
p2 p3 p5
1”
Linear interpolation
45°
end of data
(4, 4)
N100 M00
p1
Define Tool
CNC data
Make 3D model
Simulate
cutting
Automatic part programming and DNC