An NC program is a program that defines the entire sequence of a machining operation to be carried out on a particular CNC machine tool:

Similar documents
Interpolation. Create a program for linear interpolation of a three axis manufacturing machine with a constant

Drive Control Instructions

STANDARD & OPTION 1 X, Y, Z axis linear scale 2 Saddle slideway cover 3 Table slideway cover 4 Table Splash guard 5 Working light 6 Coolant circulatio

Single axis (X) move example: X.25 This will move to a diameter of.5 The programming in X can be done as radius movements (G73) or diameter (G72).

Haas trunnions have more than one configuration. Thus, to make a program for the trunnion, you must know these facts:

ST - DS - Toolholders to the Spindle Centerline - Correction

Study Guide. Physics 3104A. Science. Force, Motion and Energy. Adult Basic Education. Prerequisite: Physics 2104B or Physics 2204.

Electronic Edge Finder Run-out Compensation, Version 1.0

Pitch Circle. Problem 8.17

Technical Notes and Cutting Formulas BELIN PRECISION TOOLS. Recommended cutting & feed rates for specific materials METRTIC FORMULAS

Coating K = TFE wear resist, dry lubricant Kerkote X = Special coating, (Example: Kerkote with grease)

M A N U F A C T U R I N G P R O C E S S E S ME A S S I G N M E N T

Clausing Industrial, Inc. Variable Speed 20" Single and Multi-spindle, Belt Drive Industrial Drill Presses

Effective Measurement Method of Thermal Deformation of Machine Tools Caused by Linear Axis Motion

DNM 750 Ⅱ series. series. High Speed High Performance Horizontal Machining Center DNM 750 [ L ] Ⅱ DNM 750 [ L ] / 50 Ⅱ. ver.

2015 MPS Qualify Exam

Hand Coding AX Plane G Code for a Centroid Equipped Mill In Order to Cut a Helix, Version 2.0

Variable Speed 20" Single and Multi-spindle, Belt Drive Industrial Drill Presses

150 Lecture Notes - Section 6.1 Angle Measure

55% OFF CARBIDE HIGH SPEED STEEL COBALT. Phone: (616) Toll-Free: Fax: (616) cbdekorne.com

Deterministic Finite Automaton (DFA)

TOPCNC TC55V Instruction Manual.

Worksheet 1.7: Introduction to Vector Functions - Position

MACHINING CENTER FIXED DOUBLE COLUMNS. Quality, Credibility, Innovation, Service. Auto A/C swiveling head. Auto 90 o milling head

Measurement. Scientific Notation. Measurements and Problem Solving. Writing Numbers in Scientific Notation

Large Vertical Turning Center with RAM Head Spindle

Circuit Analysis and Ohm s Law

Journal of Advanced Mechanical Design, Systems, and Manufacturing

PRODUCT CATALOG

Study of the Effect of Progressive Feed Rate on the Cutting Force in CNC End Milling of AISI 1045 Steel

TOPCNC TC55V Instruction Manual

Fig. 1: Example of Scallops

OPERATING INSTRUCTIONS ROTOKLICK MK 150 MULTIKLICK MK 150 MULTIDEX

Read the following BEFORE getting started:

Centripetal Force. Equipment: Centripetal Force apparatus, meter stick, ruler, timer, slotted weights, weight hanger, and analog scale.

Teach Yourself AP Physics in 24 Hours. and Equilibrium. Physics Rapid Learning Series

Chapter 13. Editing Intermediate Files. Overview

Trigonometric Functions. Copyright Cengage Learning. All rights reserved.

Uncertainty due to Finite Resolution Measurements

Rotational Kinematics and Dynamics. UCVTS AIT Physics

Introductory Chemistry: A Foundation, 6 th Ed. Introductory Chemistry, 6 th Ed. Basic Chemistry, 6 th Ed.

CHEMDRAW ULTRA ITEC107 - Introduction to Computing for Pharmacy. ITEC107 - Introduction to Computing for Pharmacy 1

Problem A Self-Assembly

Digital Systems Overview. Unit 1 Numbering Systems. Why Digital Systems? Levels of Design Abstraction. Dissecting Decimal Numbers

Principles Of Engineering. Part A

RGS08 Linear Rails: RGS08 Non-Motorized With and Without Guide Screw. RGS08 Non-Motorized Linear Rails

New Mexico Tech Hyd 510

Instructions for using the Point Mass Ballistics Solver 2.0 Computer Program

BARNHART BOLT - Late Model Okuma & Hurco CNC Machinery

Constrained Rectilinear Motion Dynamics Laboratory, Spring 2008

11.3 Solving Radical Equations

SYNCHROMASTER HYDRAULIC PRESSBRAKES

Example 1 Give the degree measure of the angle shown on the circle.

Differentiation 1. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

RGS06 Linear Rails: RGS06 Non-Motorized With and Without Guide Screw. RGS06 Non-Motorized Linear Rails

One sided tests. An example of a two sided alternative is what we ve been using for our two sample tests:

Vectors 1. The METRIC Project, Imperial College. Imperial College of Science Technology and Medicine, 1996.

Lab 9 - Rotational Dynamics

CSCE 155N Fall Homework Assignment 2: Stress-Strain Curve. Assigned: September 11, 2012 Due: October 02, 2012

The hitch in all of this is figuring out the two principal angles and which principal stress goes with which principal angle.

hexadecimal-to-decimal conversion

DMS, LINEAR AND ANGULAR SPEED

Heavy-Duty Horizontal Machining Center

Chapter 5 Introduction to Trigonometric Functions

Problem A. Crystal Ball Factory

Precalculus Lesson 6.1: Angles and Their Measure Mrs. Snow, Instructor

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

AP Physics 1 Lesson 15.a Rotational Kinematics Graphical Analysis and Kinematic Equation Use. Name. Date. Period. Engage

33. SOLVING LINEAR INEQUALITIES IN ONE VARIABLE

Chapter 10. Path Following. Beard & McLain, Small Unmanned Aircraft, Princeton University Press, 2012, Chapter 10, Slide 1

The Circular Motion Lab

2 - Machining Fundamentals Measurement. Manufacturing Processes - 2, IE-352 Ahmed M El-Sherbeeny, PhD Spring-2015

Objective: Recognize halves within a circular clock face and tell time to the half hour. (60 minutes) (2 minutes) (5 minutes)

An angle in the Cartesian plane is in standard position if its vertex lies at the origin and its initial arm lies on the positive x-axis.

Release notes for measuring cycles, software version

Which is the centre of the circle E? (A) U (B) V (C) P (D) W. Which figure P, Q, R or S has the largest area? (A) P (B) Q (C) R (D) S

CMM Uncertainty Budget

Introductory Physics PHYS101

Physics 202 Laboratory 3. Root-Finding 1. Laboratory 3. Physics 202 Laboratory

FAGOR 8055i CNC Ordering Handbook. Ref. 1502

SECTION 3.5: DIFFERENTIALS and LINEARIZATION OF FUNCTIONS

Moments and Torques. M = F d

1/4 Square, Single-Turn, Through-Hole Sealed Cermet Trimmers. Environmental

Base Number Systems. Honors Precalculus Mr. Velazquez

Getting to the Roots of Quadratics

II. Unit Speed Curves

Contents. Chapter 1 Introduction Chapter 2 Unacceptable Cam Curves Chapter 3 Double-Dwell Cam Curves... 27

Metrology Prof. Dr Kanakuppi Sadashivappa Bapuji Institute of Engineering and Technology Davangere

Chapter 12. Magnetism and Electromagnetism

Lecture Outlines Chapter 22. Physics, 3 rd Edition James S. Walker

Rotation. Kinematics Rigid Bodies Kinetic Energy. Torque Rolling. featuring moments of Inertia

PiXL AQA Style Paper 1H (March 2017) Mark Scheme

Magnetic Force. A vertical wire carries a current and is in a vertical magnetic field. What is the direction of the force on the wire?

ISO INTERNATIONAL STANDARD. Test code for machine tools Part 4: Circular tests for numerically controlled machine tools

AEROSPACE DIE & MOLD MACHINE TOOL INDUSTRY MEDICAL END MILLS HIGH-PERFORMANCE CARBIDE DRILLS A PRODUCT OF KENNAMETAL INC.

Bézier Curves and Splines

FAST CHECK THICKNESS GAGE

Physics 2135 Exam 3 April 18, 2017

Significant Figures The Jacobs Way

Transcription:

Outline MC Programming I NC Program NC Codes Blocks G and M codes Other codes Programming Basic Motions Rapid travel Linear motion Circular motion Examples NC Program An NC program is a program that defines the entire sequence of a machining operation to be carried out on a particular CNC machine tool: It informs the CNC controller about the trajectory of the cutter(s) employed so as to sculpture the part to the required dimensions and tolerances. It tells the controller which tools to be used through out the machining operation. which h auxillary functions to be performed during the process. Chapter 5a ME 0 2 Chapter 5a ME 0 NC Code Elements of NC Program An NC program is simply the translation of a machining process plan into the NC codes that are understandable by the CNC machine controller. NC code is originally based on recommended industry standard RS-27B of 1965. Even though ISO has issued an international standard on the NC Codes (e.g. ISO 698/1), the controllers made by different manufacturers employ different NC codes. Despite many similarities, an NC program is NOT portable to controllers with different design. Each line of an NC program is referred to as block. Format of a block is <Line #> <Motion Type or Machine Operation Mode> < Coord> < Coord> < Coord> <Feedrate> <Spindle Speed> <Misc. Functions> Chapter 5a ME 0 Chapter 5a ME 0 5

Block The controller reads the program one block at a time. Blocks do not extend past one line. The order of information on a block does not matter: G0 0.0 10.75 is the same as 10.75 G0 0.0 However, most programmers use the following word order: N G I J K U V W A B C P Q R F S T M H We ll go over the meaning of each letter as the course progresses. G and M Codes Machining centers have two basic types of codes: G codes also called preparatory codes Tell the machine what type of movement or function should be performed. For example, rapid moves, linear feed moves, arc feed moves, thread cutting, etc. M codes also called miscellaneous functions Turn the spindle on and off, coolant on and off, etc. Chapter 5a ME 0 6 Chapter 5a ME 0 7 Common G Codes Common M Codes G0 G1 G2 G Rapid travel (point-to-point) t i t) Rectilinear motion Circular motion (clockwise) Circular motion (counter clockwise) G20 G21 G28 G90 G91 G Dwell (wait) mode Imperial units (inch) Metric units (mm) Return to reference point (home) Absolute coordinate mode Incremental coordinate d M0 M M M5 M8/M9 M0 Program stop Start spindle (clockwise) Start spindle (counter clockwise) Turn spindle off Turn coolant on / off End-of-program Chapter 5a ME 0 8 Chapter 5a ME 0 9

Other Codes Specification of Coordinates O N Program number (FANUC) Line or block number,, New coordinates in [mm or inch] F S T Feedrate in [mm/min] or [inch/min] Spindle speed in [rpm] Tool number Let the programming g resolution (BLU) of the machine be 0.001 mm. 1. = 1.0 mm 1 = 0.001 mm (1 BLU) 100 = 0.100 mm (100 BLU) Don t forget to put decimal points on all numbers except 0! Chapter 5a ME 0 10 Chapter 5a ME 0 11 Modal Codes Most codes are modal (sticky). That is, they stay in effect until someone changes them. Preferred N150 G1 10.0 10.0 F00.0 N160 20.0 Easy to read and change. Works but poor style! N150 G1 10.0 10.0 F00.0 N160 G1 10.0 20.0 F00.0 Hard to follow and changes require considerable effort. Notes on Codes! Most machines only allow one M code per block. The M code is generally the one to be executed in a particular line. A program must start out with a name: FANUC: O followed by a five digit number SINUMERIK: name with a maximum of 2 characters The tool code (T) for CNC machining centers is usually two digits representing the tool number. All alphanumeric characters must be in uppercase. Chapter 5a ME 0 12 Chapter 5a ME 0 1

Basic Motions Rapid Travel (Point-to-point) to Rectilinear Motion Circular Motion Helical l Motion Parabolic Motion Complex Motion Bicubic Splines NURBS Chapter 5a ME 0 1 Rapid Travel Each axis G0 x f y f z f independently moves by a (prescribed) maximum speed until it reaches its destination. i i f f Chapter 5a ME 0 15 Rectilinear Motion Programming g Example 1 Move to the destination on a rectilinear path at the specified feedrate. f is usually a five-digit number (positive integer) representing the feedrate in [mm/min] (FANUC). 0 0 100 (not drawn to scale) 100 Material: AISI-100 Tool: HSS End-mill D = 10 mm Four flutes Feedrate: 250 mm/min Spindle Speed: 900 rpm Coolant off Initial Position 20 Chapter 5a ME 0 16 Chapter 5a ME 0 17

NC Program for Example 1 NC Program 1 (Cont d) 0 0 1 1 2 1 1 2 PROG_01 ; PROGRAM NUMBER N01 G21 G90 S900 M ; METRIC / ABS / 900 RPM / CW N02 G0-5.0-1.0 -.0 ; RAPID MOVE TO P1 N0 G1 101.0 F250.0 ; MOVE TO P2 N0 101.0 N05-1.0 2 ; MOVE TO P ; MOVE TO P Chapter 5a ME 0 18 Chapter 5a ME 0 19 NC Program 1 (Cont d) Incremental Version 5 6 5 5 6 5 PROG_01_INCR N01 G21 G90 S900 M N02 G0-5.0-1.0 -.0 N0 G91 G1 106.0 F250.0 N0 102.0 N05-102.0 0 N06-102.0 N07 G90 G0-0.0 0 0 M5 N08 M0 ; PROGRAM NUMBER ; METRIC / ABS / 900 RPM / CW ; RAPID MOVE TO P1 ; MOVE TO P2 ; MOVE TO P ; MOVE TO P ; MOVE TO P5 ; RAPID MOVE TO P6 / SPDL OFF ; END OF PROGRAM N06-1.0 ; MOVE TO P5 N07 G0-0.0 0 0 M5 ; RAPID MOVE TO P6 / SPDL OFF N08 M0 ; END OF PROGRAM Chapter 5a ME 0 20 Chapter 5a ME 0 21

CNCSimulator Example 1 Chapter 5a ME 0 22 Circular Motion Plane: x, y, z are the coordinates of the destination point (absolute or incremental). Plane: Extra parameters such as R, I, J, and K are needed to specify an arc. r is the radius of the circle. Plane: r < 0 if arc angle > 180 o. i,,j, k are the incremental coordinates of the circle center Complete Circle: from the starting position. If any of i, j, k words are omitted, it is assumed 0. G17 G2 20.0 1.5 I10.0 F00.0 ; HERE J=0 Chapter 5a ME 0 2 Direction of Rotation Examples for Circular Motion By definition, G2: Clockwise (CW) rotation G: Counter-clockwise (CCW) Mathematical positive direction. As a simple rule, when the thumb of your right-hand is aligned with a principal axis, the remaining fingers point the direction of G (CCW) rotation in that plane. A C (angle > 180 o ): B c C r (x c, y c ) center A (x a, y a ) A D: (x d,y d ) D c Chapter 5a ME 0 2 Chapter 5a ME 0 25

Examples (Cont d) Programming Example 2 - Smiley C (x c, y c ) (x b, y b ) B r center j (> 0) (x d,y d ) A (x a, y a ) A B: Material: AL-7076 Tool: HSS End-mill (Slot Drill) D = 18 mm Two flutes Feedrate: 00 mm/min Spindle Speed: 1200 rpm Coolant on D i (< 0) where x b = x b x a y b = y b y a Chapter 5a ME 0 26 Chapter 5a ME 0 27 NC Program 2 - Smiley 1, 2 2, 2' 2' 5 PROG_02 N01 G21 G90 S1200 M N02 G0-9.0-8.0 N0 M8 ; PROGRAM NUMBER ; METRIC / ABS / 1200 RPM / CW ; RAPID MOVE TO P1 ; COOLANT ON 1, 2 N0 G17 G2 I59.0 J0 F00.0 ; PLANE / CW FULL CIRCLE N05 G0 5.0 ; RAPID MOVE TO P2 N06 25.0 65.0 ; RAPID MOVE TO P 2 Chapter 5a ME 0 28 Chapter 5a ME 0 29

, 5 5 6 6, 7, 8 8 9, 5 5 6 7 6, 8 9 N07 G1-8.0 N08 5.0 N09 G0 75.0 ; MOVE TO P ; MOVE TO P5 ; RAPID MOVE TO P6 N10 G1-8.0 N11 5.0 N12 G0 5.0 ; MOVE TO P7 ; MOVE TO P8 ; RAPID MOVE TO P9 Chapter 5a ME 0 0 Chapter 5a ME 0 1 9, 10 11 10 9 10 N1 G1-8.0 N1 G2 25.0 5.0 I-25.0 J15.0 11 10 ; MOVE TO P10 ; MOVE TO P11 / CIRC. CW N15 G1 5.0 ; MOVE TO P12 N16 G0-0.0 50.0 M9 ; RAPID MOVE TO P1 / COOLANT OFF N17 0 M5 ; RAPID MOVE TO P1 / SPDL OFF N18 M0 ; END OF PROGRAM Chapter 5a ME 0 2 Chapter 5a ME 0

CNCSimulator - Smiley Helical Interpolation With helical interpolation, two motions are superimposed and executed in parallel: l A plane circular motion on which vertical linear motion o is superimposed Chapter 5a ME 0 Chapter 5a ME 0 5 Notes oeson Tool Rotation oa o Notes on Format Milling type (up- or down-milling) is a consequence of feed motion. It would be a serious mistake to try to control the milling type via changing the rotation of the tool! Remember right-hand tools must rotate t clockwise direction to perform machining (via issuing M command). Otherwise, they will fail to cut! For machining centers, the direction of spindle rotation is determined when the machine is viewed from the upperside. NC programs (to be uploaded!) are usually written via text (TT file) editors (notepad, edit, vi etc.). Format of the program may vary depending on the controller of the CNC machine. For some CNC controllers, line (block) numbers are optional and are mainly used for tagging purposes. If desired, spaces (ASCII character #2) may be omitted in a line. However, it obscures the readability of the program. Line end is usually indicated by either semi-colon (;) or ASCII control character carriage return (#1). NC programs may contain comments that are ignored by the controller. For FANUC Controllers, comments are written in parantheses (...). For Siemens Controllers, comments are written after semicolon (;). Chapter 5a ME 0 6 Chapter 5a ME 0 7