ME 1355 CAD/CAM LABORATORY CNC MILLING PROGRAM. Study of G Codes and M Codes to Write Manual Part Programming for Fanuc Control Systems



Similar documents
G and M Programming for CNC Milling Machines. Denford Limited Birds Royd Brighouse West Yorkshire England HD6 1NB Tel: +44 (0)

CNC Programming. Lecture 25. Engineering 475 Automated Production Systems

Mach4 CNC Controller Mill Programming Guide Version 1.0

Presentation on CNC MACHINES. By: Hafiz Muhammad Rizwan

Course outline. Know Your Machine From A Programmer s Viewpoint 11 If you ve had experience with conventional (non-cnc) machine tools 11

CNCTRAIN. Cnc Simulation Systems, 1985,2009

GSK928MA Milling Machine CNC System. User Manual. GSK CNC Equipment

COURSE : CNC TURN-MILL CENTRE - PROGRAMMING & OPERATION. (FANUC Oi-TB)

Sample. CNC Programming product family... CNC Programming: Basics & Tutorial Textbook. & CNC Programming: Reference Book. CNC Programming: Workbook

Computer-Aided Numerical Control (CNC) Programming and Operation; Lathe Introduction, Advanced Mills

SINUMERIK 810/840D DIN Programming for Milling

FAGOR CNC 8055 ia-mc Control

Mill Series Training Manual. Haas CNC Mill Programming

G10 Data Setting Command

3300M CNC Control Editing, Part Programming and Running simple program

Proficiency Test For Machining Center

Lathe Series Training Manual. Live Tool for Haas Lathe (including DS)

Queensborough Community College NSF Tech ASCEND

FANUC Series 0 -MODEL D. For Machining Center System USER S MANUAL B-64304EN-2/01

Shop-Talk Cad/Cam The language between man and machine!

NCGuide Academic packages

CNC 8055 / CNC 8055i SELF-TEACHING MANUAL ( TC OPTION) (REF 0607) (Ref 0607)

INTRODUCTION. Definition

Module 5. CNC Machines. Version 2 EE IIT, Kharagpur 1

CNC Applications. Tool Radius Compensation for Machining Centers

MITSUBISHI CNC M700V Series, M70 Series Simple programming function NAVI MILL / NAVI LATHE

CAD/CAM DESIGN TOOLS. Software supplied with all new and upgraded Boxford Lathes, Mills and Routers

2.008 Design & Manufacturing II

Part Programming Commands

From Wikipedia, the free encyclopedia

CNC Applications. Introduction to Machining Centers

INTRODUCTION TO COMPUTER NUMERICAL CONTROL

TEST PROJECT TEACHER GUIDELINES

Summary Of GCODE Commands By Category (HTT0196)

Radius Compensation G40, G41, & G42 (cutter radius compensation for machining centers, tool nose radius compensation for turning centers)

CNCTRAIN OVERVIEW CNC Simulation Systems

User Manual V

HUST Lathe CNC Controller

CNC Applications. Programming Arcs

ISO Dialects for SINUMERIK

TL-Series Sub-Spindle Operator s Addendum

H6C-T Lathe CNC Controller

Teachware CNC Technology

H6C-M Mill CNC Controller

SprutCAM is a CAM system for NC program generation for machining using multi-axis milling, turning, turn/mill, Wire EDM numerically controlled

Machine Tool Control. Besides these TNCs, HEIDENHAIN also supplies controls for other areas of application, such as lathes.

AXIS DESIGNATION IN NC PART PROGRAMMING

"The CNC Baron...in service to the one who commands it!"

Module 7: CNC Programming and Industrial Robotics Lecture 1 CNC programming: fundamentals

BRIDGEPORT CNC DX32. Programmer s Manual

HOBBING MACHINE TYPE ZFWZ 8000x40

Product Guide SaraDrill

Training Document for Integrated Automation Solutions Totally Integrated Automation (TIA) Module S01 Fundamentals of CNC Programming with SinuTrain

CNC Applications Speed and Feed Calculations

Chapter 2: Computer Aided Manufacturing TECH 4/

SmartCut EVS Series CNC Mills Combination of CNC technology and manual capability SC EVS-350B CNC SC EVS-550B CNC

GIBBSCAM PRODUCTION SYSTEMS: MILLING, TURNING, AND MILL-TURN

CNC 8055 MC. Self-teaching manual REF. 1010

SAMSUNG Machine Tools PL60 CNC TURNING CENTER

MACHINING OPERATIONS AND MACHINE TOOLS

WORKBOOK PROGRAMMING AND SUPERVISION OF CNC MACHINES

Overview. Milling Machine Fundamentals. Safety. Shop Etiquette. Vehicle Projects Machine Shop

5. Tutorial. Starting FlashCut CNC

SAMSUNG Machine Tools

Milling and Machining Center Basics

Mastercam Instructions. KTH School of Architecture Digital Fabrication Lab - CNC Router Version

GSK980TD Turning Machine CNC System. User Manual. GSK CNC Equipment

SAMSUNG Machine Tools

Understanding Gcode Commands as used for Image Engraving

UNIT 1 INTRODUCTION TO NC MACHINE TOOLS

TECHNICAL DESCRIPTION

Custom Macro Programming

Lead Screw Backlash and Mach3, version 2

EVOLUTION Complete CNC Machining in Compact Format. provides for complete machining on all 4 workpiece edges as well as the surface.

EVOLUTION Complete CNC Machining in Compact Format. provides for complete machining on all 4 workpiece edges as well as the surface.

Control systems. CNC 8 x 6 CNX 8 x 9. Operation manual. Production and service: MEFI, s.r.o. Peroutkova 37, Praha 5

InventorCAM + Inventor. The complete integrated Manufacturing Solution GETTING STARTED

The Basics of a Rotary Table with Cross Slide mounted on a Mill Table, Version 2

Pos. Qty. Article Description Price /

Top 5 Ways to Cut Machining Costs

CNC HARDWARE & TOOLING BASICS

2010 CATIA V5 CAM EĞĐTĐMLERĐ ĐÇERĐĞĐ

CNC Turning Training CNC MILLING / ROUTING TRAINING GUIDE. Page 1

FACULTY OF ENGINEERING UNIVERSITY OF STELLENBOSCH USER INSTRUCTIONS FOR LEADWELL VMC40 NUMERICALLY CONTROLED MILLING MACHINE

SET-UP AND INSTALLATION FOR LEAD SCREW CARTRIDGE ASSEMBLY

Gang Type CNC Turning Center. KIT Series

Copyright. Adtech (Shenzhen) Technology Co., Ltd. (Adtech hereafter) is in possession of the

That s E[M]CONOMY: Not just training: Real Action! CONCEPT TURN 250. Training reality with industrial performance

Setting up the DeskCNC controller.

Milling and turning with SINUMERIK: CNC solutions for the shopfloor

Signature Norman Crepeau Special Condition Subject to prior sale Johnford ST60B. CNC Turning Center

Easy Machining Center Setup

DUGARD. Machine Tools Since Dugard 700L Series Heavy Duty CNC Lathes.

MET 306 Activity 6. Using Pro/MFG Milling Operations Creo 2.0. Machining a Mast Step

Table of Contents Getting Started... 3 The Motors... 4 The Control Board... 5 Setting up the Computer with Mach Starting up the Equipment...

TUBULAR Holing and Slotting Of Casing

EQUIPMENT LIST. CNC MACHINING CENTERS (12 Machining Centers)

Precision made in Europe. As per DIN The heart of a system, versatile and expandable.

Optimized NC programming for machinery and heavy equipment. Summary NX CAM software redefines manufacturing productivity with a full range of NC

Transcription:

ME 1355 CAD/CAM LABORATORY CNC MILLING PROGRAM Ex.No.1 Study of G Codes and M Codes to Write Manual Part Programming for Fanuc Control Systems PREPARATORY FUNCTION ( G CODES ) The preparatory functions are the commands, which prepare the machine for different modes of movement like contouring, thread cutting, positioning, peck drilling etc. These functions are also called as G codes. G codes are used as machining commands. MISCELLANEOUS FUNCTION ( M CODES ) The miscellaneous functions are the commands describing miscellaneous functions like subprogram call or exit., spindle clockwise or counter clockwise, coolant ON/ OFF, program end etc. these functions are also called as M codes. M codes are used as machine control commands. SUBROUTINES Subroutines or subprograms are mini programs similar to macros but are used in manual part programming. It can be defined as a set of instructions that can be activated and used for repetitive applications in the main program. In Fanuc control systems, subprograms are written as separate programs with specific subprogram names. When a subprogram name is called in the main program, the set of instructions in the subprogram is executed. After execution of the program flow returns to the main program at a point immediately after the original call point. CANNED CYCLE Canned cycles are built-in- functions that are available to perform specific tasks like thread cutting, grooving, pattern repeating, pocketing etc. A canned cycle simplifies the program using one or two blocks with specific G codes to specify the machining operations, instead of using several blocks. Examples are G71 - Multiple turning cycle G73 - Pattern turning cycle G75 - Grooving cycle G76 - Multiple thread cutting cycle G170, G171 - Rectangular pocketing G172, G173 - Circular pocketing

The list of G codes and M codes that can be used in milling machines are given below. M CODES FUNCTION M00 M01 M02 M03 M04 M05 M06 M08 M09 M10 M11 M13 M14 M30 M70 M71 M80 M81 M98 M99 PROGRAM STOP OPTIONAL STOP PROGRAM STOP SPINDLE CLOCKWISE ROTATION SPINDLE ANTI-CLOCKWISE ROTATION SPINDLE STOP TOOL CHANGE COOLANT ON COOLANT OFF VICE ON VICE OFF COOLANT, SPINDLE CW COOLANT, SPINDLE CCW PROGRAM STOP AND REWIND X MIRROR ON Y MIRROR ON X MIRROR OFF Y MIRROR OFF SUBPROGRAM CALL SUBPROGRAM OFF/EXIT

G CODE G00 G01 G02 G03 G04 G20 G21 G28 G40 G41 G42 FUNCTION RAPID POSITIONING LINEAR INTERPOLATION CIRCULAR INTERPOLATION CW CIRCULAR INTERPOLATION CCW DWELL INPUT IN INCH INPUT IN MM RETURN TO REFERENCE POINT CUTTER COMPENSATION CANCEL CUTTER COMPENSATION LEFT CUTTER COMPENSATION RIGHT G43 TOOL LENGTH COMPENSATION ( + ) G44 TOOL LENGTH COMPENSATION ( - ) G49 G73 G74 G76 G80 G81 G82 G83 G84 G85 G90 G91 G92 G94 G95 TOOL LENGTH COMPENSATION CANCEL PECK DRILLING CYCLE COUNTER TAPPING CYCLE FINE BORING CYCLE CANNED CYCLE CANCEL DRILLING CYCLE, SPOT BORING DRILLING CYCLE, COUNTER BORING PECK DRILLING CYCLE TAPPING CYCLE BORING CYCLE ABSOLUTE COMMAND INCREMENTAL COMMAND PROGRAMMING OF ABSOLUTE ZERO POINT FEED PER MINUTE FEED PER REVOLUTION

A list of G codes and M codes that can be used in lathes are given below. M CODES FUNCTION M00 M01 M02 M03 M04 M05 M06 M08 M09 M10 M11 M30 M98 M99 PROGRAM STOP OPTIONAL STOP PROGRAM END SPINDLE CLOCKWISE SPINDLE COUNTER CLOCKWISE SPINDLE STOP TOOL CHANGE COOLANT ON COOLANT OFF VICE OPEN VICE CLOSE PROGRAM END AND REWIND SUBPROGRAM CALL SUBPROGRAM EXIT

G CODES G00 G01 G02 G03 G04 G20 G21 G28 G32 G40 G41 G42 G50 G70 G71 G72 G73 G74 G75 G76 G90 G94 G98 G99 FUNCTION RAPID POSITIONING LINEAR INTERPOLATION CIRCULR INTERPOLATION CW CIRCULAR INTERPOLATION CCW DWELL INPUT IN inch INPUT IN mm REFERENCE POINT RETURN THREAD CUTTING TOOL NOSE RADIUS COMPENSATION CANCEL TOOL NOSE RADIUS COMPENSATION LEFT TOOL NOSE RADIUS COMPENSATION RIGHT SPINDLE SPEED CLAMPING FINISHING CYCLE MULTIPLE TURNING CYCLE MULTIPLE REPEATING CYCLE PATTERN REPEATING CYCLE PECK DRILLING CYCLE GROOVING CYCLE THREAD CUTTING CYCLE BOX TURNING CYCLE BOX FACING CYCLE FEED PER MINUTE FEED PER REVOLUTION

LINEAR INTERPOLATION AND CIRCULAR INTERPOLATION Ex.No.2 Write a manual part program for the given diagram using Linear interpolation and circular interpolation O2000 [BILLET X100 Y100 Z10; [TOOLDEF T1 D5; [EDGEMOVE X0 Y0; N10 G21 G40 G94; N20 G50 S2000; N30 G91 G28 Z0; N40 G28 X0 Y0; N50 M06 T0101; N60 M03 S1000; N70 G90; N80 G00 X20 Y20 Z1; N90 G01 X20 Y20 Z-1 F35; N100 G01 X60 Y20 Z-1 F35; N110 G03 X80 Y40 Z-1 R20 F35; N120 G01 X80 Y60 Z-1 F35; N130 G02 X60 Y80 Z-1 R20 F35; N140 G01 X40 Y80 Z-1 F35; N150 G03 X20 Y60 Z-1 R20 F35; N160 G01 X20 Y20 Z-1 F35; N170 G00 Z1; N180 G91 G28 Z0; N190 G28 X0 Y0; N200 M05; N210 M30;

The same program can also be written as given below. EXAMPLE PROGRAM 2 FOR MILLING OPERATION O2001 [BILLET X100 Y100 Z10; [TOOLDEF T1 D5; [EDGEMOVE X0 Y0; N10 G21 G40 G94; N20 G50 S2000; N30 G91 G28 Z0; N40 G28 X0 Y0; N50 M06 T0101; N60 M03 S1000; N70 G90; N80 G00 X20 Y20 Z1; N90 G01 Z-1 F35; N100 X60 ; N110 G03 X80 Y40 R20; N120 G01 Y60; N130 G02 X60 Y80 R20; N140 G01 X40; N150 G03 X20 Y60 R20; N160 G01 Y20; N170 G91 G28 Z2; N180 G28 X0 Y0; N190 M05; N200 M30;

CIRCULAR POCKETING AND RECTANGULAR POCKETING Ex.No.3 Write a CNC program for milling machine for the profile given using circular pocketing and rectangular pocketing. The syntax for circular pocketing is given below. G170 R0 P0 Q3 X10 Y10 Z - 5 I0 J0 K24 G171 P75 S1000 R50 F45 B1500 J15 R - Position of tool to start cycle P - Roughing (0) / finishing (1) Q - Peck increment for each cut X,Y & Z - Coordinates of bottom center of the circular pocket. I & J - Finishing allowance for side and pocket base K - Radius of circular pocket P - Cutter movement percentage for next step S - Roughing spindle speed R - Roughing feed in Z direction F - Roughing feed in XY directions B - Finishing spindle speed J - Finishing feed

The syntax for rectangular pocketing is given below: G172 I30 J50 K0 P0 Q.5 R0 X10 Y10 Z-5 G173 I0 K0 P75 T1 S1000 R35 F45 B1500 J15 Z5 Where I,J - Length of pocket in X, Y directions K - Corner radius P - Roughing (0) / Finishing (1) Q - Depth of cut for each pass R - Absolute depth from the surface X & Y - Pocket corner coordinates Z - Base of pocket I,K - Pocket side and base finish allowance P - Cutter width percentage T - Tool number S - Roughing spindle speed R - Roughing feed in Z direction F - Roughing feed in XY directions B - Finishing spindle speed J - Finishing feed

O2002; [BILLET X100 Y100 Z10; [TOOLDEF T1 D5; [EDGEMOVE X0 Y0; N10 G21 G40 G94; N20 G91 G28 Z0; N30 G28 X0 Y0; N40 M06 T0101; N50 M03 S2000; N60 G90 G00 X30 Y10 Z5; N70 G01 Z-1 F35; N80 X30 Y30; N90 X10 Y30; N100 X10 Y40; N110 G03 X10 Y60 R10; N120 G01 X10 Y70; N130 X30 Y70; N140 X30 Y90; N150 X40 Y90; N160 G03 X60 Y90 R10; N170 G01 X70 Y90; N180 X70 Y70; N190 X90 Y70; N200 X90 Y60; N210 G03 X90 Y40 R10; N220 G01 X90 Y30; N230 X70 Y30;

N240 X70 Y10; N250 X60 Y10; N260 G03 X40 Y10 R10; N270 G02 X30 Y10; N280 G00 Z5; N290 G172 I30 J30 K0 P0 Q0.5 R0 X35 Y35 Z-1.5; N300 G173 I0 K0 P75 T1 S2000 R75 F275 B2500 J200 Z6; N310 G170 P0 Q0.5 R1 X50 Y50 Z-3 I0 J0 K10; N320 G171 P75 S2000 R50 F150 B1500 J150; N330 G91 G28 X0 Y0 Z0; N340 M05; N350 M30;

Ex.No.4 CNC PROGRAM USING SUBPROGRAM Write a CNC program for milling machine for the profile given using sub program. Profile depth = 5 mm SUBPROGRAM O9000; N10 G91 G01 Z-1 F35; N20 G90; N30 G01 X40 Y20; N40 G02 X60 Y20 R10; N50 G01 X80 Y20; N60 X80 Y50; N70 G03 X20 Y50 R30; N80 G01 X20 Y20; N90 M99; ** save the subprogram as 4 digit number 9000.

Main Program O2003 [BILLET X100 Y100 Z20; [EDGEMOVE X0 Y0; [TOOLDEF T1 D5; N10 G21 G94 G40; N20 G91 G28 Z0; N30 G28 X0 Y0; N40 M06 T0101; N50 M03 S1000; N60 G90 G00 X20 Y20 Z1; N70 G01 Z0 F35; N80 M98 P0059000; N90 G01 Z1; N100 G91 G28 Z0; N110 G28 X0 Y0; N120 M05; N130 M30; The statement M98 P0059000 can be explained as follows: M 98 For subprogram call. P0059000 005 is the number of times the subprogram 9000 has to be called. (i.e. the subprogram 9000 has to be executed for 5 times.)

MIRRORING USING SUBPROGRAM Ex.No.5 Write a CNC program for milling machine for the profile given using sub program and mirror command. Subprogram O8000; N10 G90 G00 X10 Y10 Z1; N20 G01 Z-1 F35; N30 G01 X30 Y10; N40 G03 X10 Y30; N50 G01 X10 Y10; N60 G00 Z1; N70 G00 X0 Y0; N80 M99; ** save the file as 4 digit number 8000. Main Program O2004 [BILLET X100 Y100 Z10; [EDGEMOVE X-50 Y-50; [TOOLDEF T1 D5; N10 G21 G94 G40; N20 G91 G28 Z0; N30 G28 X0 Y0;

N40 M06 T0101; N50 M03 S1000; N60 G90 G00 X0 Y0 Z5; N70 M98 P0018000; PROFILE 1 N80 M70; X Mirror On N90 M98 P0018000; PROFILE 4 N100 M71; Y Mirror On N110 M98 P0018000; PROFILE 3 N120 M80; X Mirror Off N130 M98 P0018000; PROFILE 2 N140 M81; Y Mirror Off N150 G91 G28 Z0; N160 G28 X0 Y0; N170 M05; N180 M30;

CNC PROGRAM USING DRILLING CYCLE Ex.No.6 Write a CNC program for milling machine as shown in diagram using drilling cycle. O2005; [BILLET X100 Y100 Z20; [TOOLDEF T1 D10; [EDGEMOVE X-50 Y-50; N10 G21 G94 G41; N20 G91 G28 Z0; N30 G28 X0 Y0; N40 M06 T0101; N50 M03 S1000; N60 G90 G00 X0 Y0 Z5; N70 G83 X0 Y25 Z-10 Q0.5 R1 F35; DRILL 1 N80 X21.65 Y12.5; DRILL 2 N90 X21.65 Y-12.5 ; DRILL 3 N100 X0 Y-25; DRILL 4 N110 X-21.65 Y - 12.5; DRILL 5 N120 X-21.65 Y 12.5; DRILL 6 N130 G80; N140 G91 G28 Z0; N150 G28 X0 Y0; N160 M05; N170 M30;

CNC PROGRAM USING FAST DRILLING CYCLE Ex.No.7 Write a CNC program for milling machine as shown in diagram using fast peck drilling cycle. O2006 [BILLET X100 Y100 Z20; [TOOLDEF T1 D10; [EDGEMOVE XO YO; N10 G21 G94 G41; N20 G91 G28 Z0; N30 G28 X0 Y0; N40 M06 T0101; N50 M03 S1000; N60 G90 G00 X15 Y80 Z5; N70 G01 Z0; N80 G91 G73 X10 Y0 Z-5 Q0.5 R0.0 K5 F35; N90 G90; N100 G00 X25 Y80 Z0; N110 G91 G73 X15 Y-15 Z-5 Q0.5 R0.0 K4 F35; N120 G91 G28 Z0; N130 G28 X0 Y0; N140 M05; N150 M30;

Explanation Statement N20:- G73- Peck drilling X10, Y10 denotes the incremental distance from its present position ( Present position is defined in N10) Z-5 denotes the depth of the drill Q0.5 denotes the depth of cut for each peck K5 denotes that drilling has to be done five times at the given increment X & Y distances R - denotes the position of tool to start in Z direction The block N20 drills five holes. Initially the tool is positioned at X15 and Y80 in block N10. From this position the tool takes a move of 10mm in X direction, which is point 1 and starts drilling. Then it moves to point 2 and starts drilling. So on, five drills at points 1,2,3,4 & 5 are drilled. After that, the tool is positioned at point 1. Then as per instructions in the block N30, the tool moves 15mm in X direction and 15mm in Y direction, which is point 6 and starts drilling. It moves to points 7,8 & 9 and performs drilling operation at each point as explained above.