89
PLC applications- CNC MACHINES S.C. PATRA Chief Instructor(Mech)

CNC - Mechatronics

Embed Size (px)

Citation preview

Page 1: CNC - Mechatronics

PLC applications-CNC MACHINES

S.C. PATRA Chief Instructor(Mech)

Page 2: CNC - Mechatronics
Page 3: CNC - Mechatronics

Conventional Machine and CNC Machine

Page 4: CNC - Mechatronics

Greater Automation……

Productivity……..

Improved quality & accuracy of manufactured

parts………..

Repeatability……

Flexibility to manufacture complex jobs.…..

Reduced scrap rate …..

Cost Effective ....

Why CNC ?

Page 5: CNC - Mechatronics

Reduced manpower ……

Shorter cycle time …….

Increased Operational Safety …..

Page 6: CNC - Mechatronics

Types of CNC Machines

CNC Turning Centre

CNC Milling Machine

CNC Horizontal Machining Centre (HMC)

CNC Grinder

CNC Drilling Machine

CNC Gear Cutting Machine

CNC Turret Punch Press

Page 7: CNC - Mechatronics

CNC MACHINING CENTRE: 1. Vertical Machining Centre (VMC):

• Vertical spindle configuration comprising of three basic servo axes (X - axis, Y-axis & Z - axis ): Two for the table movement and one for

the spindle head.

Page 8: CNC - Mechatronics

2. Turret Machining Centre (TMC):

• Same configuration as VMC but vertical spindle head replaced by an indexable tool turret.

• Automatic selection of tool by indexing turret.

• Facilitates machining on sides of cubical components.

Note :• TMC eliminated manual tool change.• It also introduced a large tool magazine and Auto Tool Changer • (ATC) for automatic transfer of tools from the magazine to the spindle and vice-versa.

Page 9: CNC - Mechatronics

ATC & Tool MagazineATC & Tool Magazine

ATC is a device which can automatically change the

tool from the tool magazine to the machine spindle

as per the CNC programme.

Tool Magazine is a device which holds number of

tools and can automatically index to enable ATC to

pick the right tool and to replace the used tool.

Page 10: CNC - Mechatronics

Turret Machining Centre

Page 11: CNC - Mechatronics

Horizontal Machining Centre (HMC):

It can perform machining on different faces of a cubical or prismatic component.

Both VMC and HMC introduces a Automatic Pallet Changer (APC) to

set the job on the machine table.

Next piece of work could be loaded or set on the additional APC while the machine is busy in cutting the previous work piece.

After the machining , the pallet with the finished work piece and the pallet on APC having a raw component could be exchanged automatically.

.

Page 12: CNC - Mechatronics

Automatic Pallet Automatic Pallet ChangerChangerAutomatic Pallet Changer

(APC) is a device which can

automatically change the

pallet to/from machine to

pallet stand.

Pallet is a transferable work

table having `T’ slots or

tapped holes for

component/fixture clamping.

Used to avoid the machine

waiting time during loading

& unloading of component.

Page 13: CNC - Mechatronics

Automatic Pallet ChangerAutomatic Pallet Changer

Pallet is held on the machine

table by locating pins and

clamping mechanism to

ensure repeatability and

accuracy.

Pallet stand with 4 x 900

manual indexing facility to

approach on all sides of

pallet/fixture.

Provision of air cleaning

system for locating pins and

reference surfaces during

pallet change.

Page 14: CNC - Mechatronics

Horizontal Machining Centre with Auto Pallet Changer

Page 15: CNC - Mechatronics

Value wise contents of mechanical and electronic software and hardware in different manufacturing facilities

Page 16: CNC - Mechatronics

CNC SYSTEMS

• Computer Numerical Control (CNC) is computer based system to store and process data for control of slide motions and auxiliary motions of machine tools.

• CNC Systems are constructed with NC Unit integrated with Programmable Logic Controller (PLC) with a ‘Feed Back Device’.

• PLC controls the ON/OFF functions of the machine tool. It sets the output based on the input conditions & corresponding logic.

PLC Functions: Coolant ON/OFF. Spindle ON/OFF. Selection of a tool. Change of workpiece (Pallet Changing). Workpiece clamping etc.

Page 17: CNC - Mechatronics
Page 18: CNC - Mechatronics

Electrical/ Control Features:

CNC System (Controller)

Drives.

Servo Motors

Actuators

Sensors/ Feedback devices.

Page 19: CNC - Mechatronics

CNC MACHINE : CNC MACHINE : The The

Heart…..Heart…..    

CNCSYSTEM

DRIVES & ELECTRICALS

MACHINETOOL

MACHINED

PART

Page 20: CNC - Mechatronics

HOW A CNC SYSTEMHOW A CNC SYSTEM WORKS

RS 232 INTERFACE

DISPLAYUNIT

SYSTEMKEYBOARD

TAPE READER/PUNCH

PERIPHERALINTERFACE

(MMI OR HMI)

CNC SYSTEMDRIVES & ELECTRICALS

COMMANDS

POS. F/Bs FROM M/C

TOOL

AXES OR SERVO

CONTROLLER

COMMAND

F/B FROMM/C TOOL

SPINDLECONTROLLER

MACHINE TOOL

OUTPUTSINPUTS

OUTPUTSINPUTS

I/O CONTROLLER

(PLC)

AXESDRIVES

SPINDLEDRIVE

SWITCH-ING

ELEMENTS

AXES MOTORSWITH

POSITION& VELOCITYFEEDBACK

SPINDLE MOTORWITH POSITION

& VELOCITY FFEDBACK

ACTUATORS,MISCELLANEOUS

MOTORS

SENSORS / FEEDBACK DEVICE

Page 21: CNC - Mechatronics

CLASSIC SERVO LOOPCLASSIC SERVO LOOP

Interpolator issues position commands

Accumulator holds following error

Position feedback is subtracted from

position command to provide following

error

D/A Converter changes following

error to analog voltage

POSITION LOOP

VELOCITY LOOP

Tacho

Speed feedback is subtracted from speed command

AmplifierServo Motor

Slide

Position Transducer Monitors Position

Page 22: CNC - Mechatronics

Analog Servo Loop in CNC System

DAC M+ +- -

Velocity Amplifier

Tacho generator

Lead screw

Accumulated Command

VELOCITY FEEDBACK

POSITION FEEDBACK

Encoder

SlideFollowing error signal

Counter

Velocity Error Signal

Current Amplifier

Accumulated feedback

CNC SYSTEM DRIVES

Page 23: CNC - Mechatronics

Special Features of CNC M/c Mechanical Features:

Ball Lead Screws.

Linear Bearings.

Improved Guide ways.

Timing Belts.

Curvic Coupling.

Page 24: CNC - Mechatronics

Ball Lead Screws

• Smooth Linear Motion.• Low starting friction.• Wear resistant.• Very Low Backlash.

Page 25: CNC - Mechatronics

• Smooth Linear Motion.• Low starting friction.• Wear resistant.• Very Low Backlash.

Linear Bearings on guide-ways

Page 26: CNC - Mechatronics

• Toothed Belt, Steel-wires.• Slip-Proof Drive.

Timing Belt

Page 27: CNC - Mechatronics

Curvic Coupling

• Used in Turret Indexing of CNC m/c.

Page 28: CNC - Mechatronics
Page 29: CNC - Mechatronics

Fanuc Serial Servo bus (FSSB)

Fanuc I/o Link

I/O devices

Drive amplifier Servo motor

Spindle motor

Fanuc Series 0i System

Connection Panel I/O Modules

Spindle Interface (Serial)

MOP

CNC Controller

Page 30: CNC - Mechatronics

Centralized Lubrication System

Diagnostic Features

Turret/ Pallet Changers

Auto Tool Changer

Special Features of CNC M/c

Page 31: CNC - Mechatronics

Centralised Lubrication System

Page 32: CNC - Mechatronics

Online Machine Diagnosis System

Page 33: CNC - Mechatronics

Technically defining a CNC System:Technically defining a CNC System:

   AXIS FUNCTIONS

       ON / OFF CONTROL

       POSITION CONTROL

       VELOCITY CONTROL

   SPINDLE FUNCTIONS

       ON / OFF CONTROL

       DIRECTION CONTROL

       SPEED CONTROL

   TOOL SELECTION / TURRET INDEXING

   WORKPIECE CLAMPING / PALLET CHANGING

   COOLANT ON / OFF

   LUBRICATION ON / OFF

   MACHINE TOOL SAFETY INTERLOCK

(i)(i) MACHINE FUNCTIONS MACHINE FUNCTIONS CONTROLLED BY CNC CONTROLLED BY CNC

SYSTEMSYSTEM

Page 34: CNC - Mechatronics

   CNC SYSTEMS FOR

o LATHESo MACHINING CENTERo MILLING CENTERo GRINDINGo PUNCH PRESS

   SYSTEM TYPES 

o T - TURNINGo M - MILLING, MACHINING CENTER o G - GRINDING

(ii) CNC SYSTEM TYPES(ii) CNC SYSTEM TYPES

Technically defining a CNC System:Technically defining a CNC System:

Page 35: CNC - Mechatronics

CNC SYSTEMSCNC SYSTEMSMANUFACTURERMANUFACTURER COUNTRYCOUNTRY MODELMODEL

ROCKWELL AUTOMATION U. S. A ALLEN BRADLEY

8610, 8650, 9/PC

CINCINNATI MILACRON U. S. A ACRAMATIC 950, 2100

FAGOR SPAIN FAGOR 800, 8025, 8050

FANUC JAPAN FANUC 15i/150i, 16i/160i, 18i/180i, 21i/210i

FANUC INDIA INDIA FANUC 0 , 0i

HEIDENHAIN GERMANY TNC 155, 426, 430

NUM FRANCE NUM 1040, 1050, 1060

SIEMENS GERMANY SINUMERIK 810, 820, 840, 880

MITSUBISHI ELECTRIC AUTOMATION INC. JAPAN M64 CNC, FUSION 640, MPLUS, TPLUS AND 600 SERIES.

MANUFACTURERMANUFACTURER COUNTRYCOUNTRY MODELMODEL

ROCKWELL AUTOMATION U. S. A ALLEN BRADLEY

8610, 8650, 9/PC

CINCINNATI MILACRON U. S. A ACRAMATIC 950, 2100

FAGOR SPAIN FAGOR 800, 8025, 8050

FANUC JAPAN FANUC 18i/180i, 21i/210i, 30i/31i/32i, 300i/310i/320i

FANUC INDIA INDIA FANUC 0 , 0i

HEIDENHAIN GERMANY TNC 155, 426, 430

GSK CNC EQUIPMENT CHINA GSK980TDa., GSK983M

SIEMENS GERMANY SINUMERIK 802, 840, 880

MITSUBISHI ELECTRIC AUTOMATION INC. JAPAN 70/700 SERIES, C6/C64 SERIES, 60S/E60/E68 SERIES

Page 36: CNC - Mechatronics

CNC SYSTEM FEATURESCNC SYSTEM FEATURES

Axis, Spindle and I/O control featuresAxis, Spindle and I/O control features

Operating featuresOperating features

Programming featuresProgramming features

Keyboard and display featuresKeyboard and display features

Communication featuresCommunication features

Compensation featuresCompensation features

Safety and diagnostic featuresSafety and diagnostic features

Page 37: CNC - Mechatronics

Axis, Spindle And I/O Control Axis, Spindle And I/O Control FeaturesFeatures AXIS CONTROL

Number Of Axis Controllable.

Feed rates.

SPINDLE CONTROL

Maximum Spindle Speed.

Auto Gear Selection.

Spindle Speed Direction

Page 38: CNC - Mechatronics
Page 39: CNC - Mechatronics
Page 40: CNC - Mechatronics

Operating FeaturesOperating Features

Basic Operating Modes:

JOG Mode

MDI MODE

AUTO MODE

Page 41: CNC - Mechatronics

JOG MODE Manual movement of axes Manually select the tool. Manually move the axes Find the tool offset

MDI MODE Program phase Manually feed the program

AUTO MODE

Create a Program Store the Program Execute the program

Page 42: CNC - Mechatronics

Part Programming FeaturesPart Programming Features

Inch / Metric Programming

Absolute / Incremental Programming

Linear / Circular / Helical / Spiral Interpolation

Full Circle Programming

Canned Cycles

Page 43: CNC - Mechatronics

Keyboard And Display Keyboard And Display FeaturesFeatures KEYBOARD FUNCTIONS

System Keyboard - Feed & Edit a Programme.

Machine Control Panel - For controlling the machine parameters.

DISPLAY FEATURES

Display of various screens like:

Position

Part Program

Offsets

Alarms And Messages

Page 44: CNC - Mechatronics

Communication Communication FeaturesFeatures

Upload / Download Of Programs

Machine Status Monitoring

Page 45: CNC - Mechatronics

Compensation FeaturesCompensation Features

Tool Offset

Tool Length Compensation

Diameter Compensation

Page 46: CNC - Mechatronics

Safety And Diagnostic Safety And Diagnostic FeaturesFeatures

• Emergency Stop

• Axis Overtravel

• Power Up Diagnostics

Page 47: CNC - Mechatronics

Configuration of CNC System:

A CNC system basically consists of the following:

• Central Processing Unit (CPU)• Servo-control Unit (NC)• Operator Control Panel• Machine Control Panel• Programmable Logic Controller (PLC)

Page 48: CNC - Mechatronics

Spectrum of production alternatives

Page 49: CNC - Mechatronics

CNC PROGRAMMING

Basic steps in CNC machining:

i) First, prepare the program from part drawing

(ii) Read the part program to the CNC system

(iii) Mount the workpiece & tool on the machine

(iv) Execute the program

Page 50: CNC - Mechatronics
Page 51: CNC - Mechatronics
Page 52: CNC - Mechatronics
Page 53: CNC - Mechatronics

PROGRAMMING CODES:

G – Preparatory code (Tool movement related function.)

F – Feed function

T – Tool No.

D – Tool offset.

M – Misc. code (for ON/OFF Function)

S – Spindle rpm (for spindle rotation)

Page 54: CNC - Mechatronics

G - CODES

G-codes are used to move the tool or axes by Program.

G 00 – Rapid travel.

G 01 – Linear interpolation.

G 02 – Circular interpolation clock-wise.

G 03 - Circular interpolation anti-clockwise.

G 04 – Dwell time.

G 20 – Inch data input

G 21 – Metric data input.

G 22 – Stored stroke check on.

G 23 - Stored stroke check off.

G 27 – Reference point return check.

Page 55: CNC - Mechatronics

G 28 – Reference position return.

G 29 – Return from reference point

G 30 – Return to second reference point.

G 31 – Skip function.

G 32 – Thread function.

G 36 – Automatic tool compensation X

G 37 - Automatic tool compensation Z

G 40 – Tool nose radius compensation cancel

G 90 – Absolute dimensioning.

G 91 – Incremental dimensioning.

G 98 – Feed rate in mm/min.

G 99 - Feed rate in mm/rev.

Page 56: CNC - Mechatronics

M- CODES ( Miscellaneous Codes )

• ON/OFF Codes.

• Controlled by PLC

.

M 00 – Optional stop.

M 01 – Programmable stop.

M 02 – Main program end.

M 03 – Spindle clock-wise.

M 04 – Spindle counter clock-wise.

M 05 – Spindle stop.

M 06 – Tool change.

Page 57: CNC - Mechatronics

M 07 – Coolant b on.

M 08 - Coolant a on.

M 10 – Chuck open.

M 11 – Chuck close.

M 13 – Spindle forward & coolant on.

M 14 - Spindle reverse & coolant on.

M 16 – Special tool call.

M 17 – Sub-program end.

M 19 – Spindle orientation.

M 30 – Main program end & rewind.

Page 58: CNC - Mechatronics

Tool movement along a straight Line

Page 59: CNC - Mechatronics

Tool movement along a tapper Line

Page 60: CNC - Mechatronics

Tool movement along an Arc

Page 61: CNC - Mechatronics

Thread Cutting(straight)

Page 62: CNC - Mechatronics

Tapper thread cutting

Page 63: CNC - Mechatronics

Feed Function

Page 64: CNC - Mechatronics

Reference position (Machine specific position)

Page 65: CNC - Mechatronics

Coordinate system

Page 66: CNC - Mechatronics

Co-ordinate system specified by CNC

Page 67: CNC - Mechatronics

Setting of coordinate system :– When coordinate zero point is set at chuck face

Page 68: CNC - Mechatronics

Setting of coordinate system :– When coordinate zero point is set at work end face

Page 69: CNC - Mechatronics

Absolute Command

Page 70: CNC - Mechatronics

Incremental Command

Page 71: CNC - Mechatronics

Diameter Programming

Cordinate values of points A and B = A(30,80), B(40,60)

Page 72: CNC - Mechatronics

Radius Programming

Page 73: CNC - Mechatronics

Cutting speed & spindle speed function

Page 74: CNC - Mechatronics

FEED: FEED-FUNCTION = The function of deciding the feed rate is called feed function.

Page 75: CNC - Mechatronics

Selection of tool and tool function

Page 76: CNC - Mechatronics

Miscellaneous function

Page 77: CNC - Mechatronics

Program configuration

Page 78: CNC - Mechatronics

Block configuration

Page 79: CNC - Mechatronics

Program configuration

Page 80: CNC - Mechatronics

Tool Length compensation(Tool offset)

Page 81: CNC - Mechatronics

PROGRAMMING CODES:

G – Preparatory code (Tool movement related function.)

F – Feed function

T – Tool No.

D – Tool offset.

M – Misc. code (for ON/OFF Function)

S – Spindle rpm (for spindle rotation)

Page 82: CNC - Mechatronics

G - CODES

G-codes are used to move the tool or axes by Program.

G 00 – Rapid travel.

G 01 – Linear interpolation.

G 02 – Circular interpolation clock-wise.

G 03 - Circular interpolation anti-clockwise.

G 04 – Dwell time.

G 20 – Inch data input

G 21 – Metric data input.

G 22 – Stored stroke check on.

G 23 - Stored stroke check off.

G 27 – Reference point return check.

Page 83: CNC - Mechatronics

.G 28 – Reference position return.

G 29 – Return from reference point

G 30 – Return to second reference point.

G 31 – Skip function.

G 32 – Thread function.

G 36 – Automatic tool compensation X

G 37 - Automatic tool compensation Z

G 40 – Tool nose radius compensation cancel

G 90 – Absolute dimensioning.

G 91 – Incremental dimensioning.

G 98 – Feed rate in mm/min.

G 99 - Feed rate in mm/rev.

Page 84: CNC - Mechatronics

M- CODES ( Miscellaneous Codes )

• ON/OFF Codes.

• Controlled by PLC

.

M 00 – Optional stop.

M 01 – Programmable stop.

M 02 – Main program end.

M 03 – Spindle clock-wise.

M 04 – Spindle counter clock-wise.

M 05 – Spindle stop.

M 06 – Tool change.

Page 85: CNC - Mechatronics

M 07 – Coolant b on.

M 08 - Coolant a on.

M 10 – Chuck open.

M 11 – Chuck close.

M 13 – Spindle forward & coolant on.

M 14 - Spindle reverse & coolant on.

M 16 – Special tool call.

M 17 – Sub-program end.

M 19 – Spindle orientation.

M 30 – Main program end & rewind

M98 – Subprogram call

M99 – Subprogram end

Page 86: CNC - Mechatronics

7. A raw material of size: ǿ 40 and 60 mm. length is supplied to you . Make a CNC part program for step turning of the given job as shown in the diagram.

1020

ǿ 38

ǿ 36

Page 87: CNC - Mechatronics

Step Turning:

O 0001;

N10 G21 G99 ;

N20 G28 X0.0 Z0.0 ;

N30 T01 D01 M06 ;

N40 S1000 M03 ;

N50 G00 X41.0 ;

N60 G00 Z0.0 ;

N70 G01 X0.0 F1.0 ;

Page 88: CNC - Mechatronics

N80 G00 Z5.0 ;

N90 G00 X41.0 ;

N100 G00 Z0.0 ;

N110 G01 X38.0 F1.0 ;

N120 G01 Z-30.0 ;

G130 G01 X41.0 F1.0 ;

G140 G00 Z0.0 ;

G150 G01 X36.0 F1.0 ;

N160 G01 Z-10.0 F1.0 ;

N170 G01 X41.0 F1.0 ;

N180 G00 Z0.0 ;

N190 G28 U0 W0 ;

N200 M05 ;

N219 M30 .

Page 89: CNC - Mechatronics

THANK YOU