Introduction To CNC Machine
Introduction To CNC Machine
spindle
Slide
movement
Drive motor
Avdelningen för mekanisk teknologi och verktygsmaskiner
Lund Tekniska Högskola Drive motor signal Feedback
device
MCU
Feedback signal
NC part program
Ball-bearing leadscrew
1
Two Basic Types of Control in CNC
Control of CNC Machine Tool • Open loop system
– Operates without verifying that the actual position is equal to
the specified position
• Interpret a CNC program – Usually a stepping motor
• Produce coordinated pulses for multiple axes of motion
• Activate the series of commands in sequential order • Closed loop control system
– Uses feedback measurement to verify that the actual position is
equal to the specified location
– Servo motor with a feedback loop
Absolute encoders
• Every position of an absolute device is unique, and these devices do Machine
coordinate system
not lose position when power is removed.
Touch probes used in machining
centers for determining workpiece and
tool positions and surfaces relative to
the machine table or column. (a)
Touch probe determining the X-Y
(horizontal) position of a workpiece,
(b) determining the height of a
horizontal surface, (c) determining the
planar position of the surface of a
cutter (for instance, for cutter-diameter
compensation), and (d) determining
the length of a tool for tool-length
offset. Source: Hitachi Seiki Co., Ltd.
2
Motion control - point to point control Motion control - continuous path (CP)
B Continuous simultaneous control of more than one axis, thus
• Workpiece is moved to a programmed
controlling path followed by tool relative to part
location with no regard for path taken
to get to that location
• Controls both the displacement and the velocity.
• Once the move is completed, some • Use linear and circular interpolators.
A
processing action is accomplished by • Interpolator: Digital differential analyzers (DDA).
Workpiece the cutting tool
– Examples: drilling or punching a hole
A
• Moving at maximum rate from point to B
point.
Avg. error
Test result
3
NC Words NC Words – M Codes
Spindle control words M Code. miscellaneous word.
• ”S” word is used to specify the spindle speed
• M03: turn spindle on in clockwise M0 Program stop Example
• M04 turns spindle on in counter clockwise M01 Optional stop N10 MSG(“This is my first
M02 End of main program NC program”)
• M05 turn spindle off N20 T1 D2 M06
M03 Spindle CW
Dimensional words M04 Spindle CCW N25 F200 S900 M3 M07
• X, Y, Z for primary motion direction in X, Y, Z N30 G0 X100 Y100
M05 Spindle stop N40 G1 X150
Feed words M06 Tool change N50 Y120
• F Code. feed speed. mm/min (mmpm), or mmpr. M07 Flood coolant on N60 X100
Automatic tool change M08 Mist coolant on N70 Y100
M09 Coolant off N80 G0 X0 Y0 M05
• ”T” word is used to tell the machine which tool station is to N90 M30
placed in the spindle. M17 End of subprogram
M30 End of program