Tutorial: Basic G Code Programming By: Matthew Jourden Brighton High School Brighton, MI

Similar documents
CIRCULAR INTERPOLATION COMMANDS

Exercise Guide. Published: August MecSoft Corpotation

Polar coordinate interpolation function G12.1

Autodesk Fusion 360 Training: The Future of Making Things Attendee Guide

What s new in EZCAM Version 18

3 AXIS STANDARD CAD. BobCAD-CAM Version 28 Training Workbook 3 Axis Standard CAD

Autodesk Inventor - Basics Tutorial Exercise 1

CNC Programming Simplified. EZ-Turn / TurnMill Tutorial.

Modeling a Gear Standard Tools, Surface Tools Solid Tool View, Trackball, Show-Hide Snaps Window 1-1

TOOLPATHS TRAINING GUIDE. Sample. Distribution. not for MILL-LESSON-4-TOOLPATHS DRILL AND CONTOUR

NCPlot v2.22 User Manual. Copyright 2011 NCPlot Software LLC

StickFont v2.12 User Manual. Copyright 2012 NCPlot Software LLC

Lesson 1 Parametric Modeling Fundamentals

Visual 2012 Help Index

An Introduction to Autodesk Inventor 2010 and AutoCAD Randy H. Shih SDC PUBLICATIONS. Schroff Development Corporation

NCPlot v2.20 User Manual

Section 20: Graphics

Inventor 201. Work Planes, Features & Constraints: Advanced part features and constraints

Parametric Modeling with. Autodesk Fusion 360. First Edition. Randy H. Shih SDC. Better Textbooks. Lower Prices.

Plate 'n' Sheet Development Version 4 Professional Edition. Module 1

CNC Turning. Module2: Introduction to MTS-TopTurn and G & M codes. Academic Services PREPARED BY. January 2013

Chapter 39. Mastercam Jewelry Box Tray. A. Sketch Tray Circle. B. Twin Edge Point Circles. Mastercam 2017 Tray Jewelry Box Page 39-1

COPYCAT NEW FANGLED SOLUTIONS 2/6/2009

Fig. 2 Mastercam 2020 Spinning Top SW 19 to MCam20 TOOLPATHS Page 13-1

Jewelry Box Lid. A. Sketch Lid Circle. Step 1. If necessary start a new Mastercam file, click FILE Menu > New. Fig. 3

Tutorial Second Level

Parametric Modeling. With. Autodesk Inventor. Randy H. Shih. Oregon Institute of Technology SDC PUBLICATIONS

Tutorial Second Level

Learning Autodesk Inventor 2014

Parametric Modeling. with. Autodesk Inventor Randy H. Shih. Oregon Institute of Technology SDC

Mill Level 1 Training Tutorial

An Introduction to Autodesk Inventor 2012 and AutoCAD Randy H. Shih SDC PUBLICATIONS. Schroff Development Corporation

Autodesk Inventor 2018

Battery Holder. Chapter 9. Boat. A. Front Extrude. Step 1. Click File Menu > New, click Part and OK. SolidWorks 10 BATTERY HOLDER AA BOAT Page 9-1

Input CAD Solid Model Assemblies - Split into separate Part Files. DXF, IGES WMF, EMF STL, VDA, Rhino Parasolid, ACIS

An Introduction to Autodesk Inventor 2013 and AutoCAD

4.10 INVOLUTE INTERPOLATION (G02.2, G03.2)

Autodesk Inventor Design Exercise 2: F1 Team Challenge Car Developed by Tim Varner Synergis Technologies

NCPlot v2.30 User Manual. Copyright NCPlot Software LLC

CAD Tutorial 23: Exploded View

Turning ISO Dialect T

Chapter 2 Parametric Modeling Fundamentals

The ProtoTRAK Parasolid Converter Operating Manual

GETTING STARTED WITH MASTERCAM SOLIDS

ECE 480: Design Team #9 Application Note Designing Box with AutoCAD

Introduction to the Work Coordinate System (WCS) April 2015

Autodesk User Group International AUGI Training Program (ATP)

CNC Programming Simplified. EZ-Turn Tutorial.

3D Design with 123D Design

Tutorial 1 Engraved Brass Plate R

FAGOR AUTOMATION MC TRAINING MANUAL

ADT-CNC4940 CNC4940 Milling Machine Control System. Programming Manual

Lesson 4 Introduction To Programming Words

Licom Systems Ltd., Training Course Notes. 3D Surface Creation

Skateboard. Hanger. in the Feature Manager and click Sketch on the Context toolbar, Fig. 1. Fig. 2

Freeform / Freeform PLUS

AutoCAD 2013 Tutorial - Second Level: 3D Modeling

GENIO CAD/CAM software powered by Autodesk technology for parametric programming of boring, routing and edge-banding work centers Genio SPAI SOFTWARE

COMPUTER NUMERICAL CONTROL OF MACHINE TOOLS

Dolphin 3DCAM Help. Copyright <2018> by <Dolphin Cadcam Systems Ltd>. V All Rights Reserved.

Getting Started with Mastercam Solids. March 2016

Randy H. Shih. Jack Zecher PUBLICATIONS

AutoCAD 3D I. Module 7. Modifying 3D Models - Part 1. Curriculum Development Unit PREPARED BY. August 2013

Parametric Modeling with UGS NX 4

MASTERCAM DYNAMIC MILLING TUTORIAL. June 2018

Mastercam X9 for SOLIDWORKS

TRAINING GUIDE LATHE-LESSON-1 FACE, ROUGH, FINISH AND CUTOFF

Version 2011 R1 - Router

TRAINING GUIDE. Sample. Distribution. not for LATHE-LESSON-1 FACE, ROUGH, FINISH AND CUTOFF

CHAPTER 12. CNC Program Codes. Miscellaneous CNC Program Symbols. D - Tool Diameter Offset Number. E - Select Work Coordinate System.

to display both cabinets. You screen should now appear as follows:

Photocopiable/digital resources may only be copied by the purchasing institution on a single site and for their own use ZigZag Education, 2013

TRAINING GUIDE WCS - VIEW MANAGER - PART-2

EZ-Mill EXPRESS TUTORIAL 2. Release 13.0

Feature-based CAM software for mills, multi-tasking lathes and wire EDM. Getting Started

Century Star Turning CNC System. Programming Guide

VisualCAM 2018 for SOLIDWORKS-TURN Quick Start MecSoft Corporation

Figure 1: NC > 2 Axis menu > Options

CATIA V5 Parametric Surface Modeling

An Approach to Content Creation for Trainz

AutoCAD 2009 Tutorial

Chapter 2 Parametric Modeling Fundamentals

VERO UK TRAINING MATERIAL

Brief Introduction to MasterCAM X4

ACR-MotionMax Programmer's Reference Manual

CAD/CAM/CAE Computer Aided Design/Computer Aided Manufacturing/Computer Aided Manufacturing. Part-9 CNC Fundamentals

TRAINING GUIDE SOLIDS-LESSON-3

TRAINING GUIDE. Sample not. for Distribution LATHE-LESSON-1 FACE, ROUGH, FINISH AND CUTOFF

CO 2 Shell Car. Body. in the Feature Manager and click Sketch from the context toolbar, Fig. 1. on the Standard Views toolbar.

4 & 5 Axis Mill Training Tutorials. To order more books: Call or Visit or Contact your Mastercam Dealer

1 Introduction to AutoCAD

Structural & Thermal Analysis Using the ANSYS Workbench Release 12.1 Environment

GETTING STARTED TABLE OF CONTENTS

Parametric Modeling with NX 12

Acknowledgement INTRODUCTION

Mach4 CNC Controller Mill Programming Guide Version 1.0

2. INTRODUCTION TO CNC

EXPERIENCE THE POWER. THE NEW BobCAD-CAM V31. We have upgraded the entire customer experience to be more intuitive, modern and efficient.

This document shows you how to set the parameters for the ModuleWorks Material Removal Simulation.

Belt Buckle A. Create Rectangle. Step 1. If necessary start a new Mastercam file, click New

Transcription:

Tutorial: Basic G Code Programming By: Matthew Jourden Brighton High School Brighton, MI Reference: Coordinate Axis Direction Z Y X Tutorial is designed to create a wireframe model of a part. This tutorial will not simulate a full G and M code program for a 3D Print. The program for a 3D Printing is at minimum 15,000+ lines long because of the closeness of the layers and the infill pattern. Cube 10mm x 10mm x 10mm CAD Solid Model Wireframe Model

NC Viewer Program 1. Open Browser > go to ncviewer.com This site is a simulator for compiling machining code whether machining, turning or 3D Printing Software Overview Standard Menu Bar Click Surfaces to look at 2D Views Program Area Origin Simulation Work Space Quick Access Views 2D: Front, Top and Right Runs Code tracking to plot program (I.E Play, Stop, Pause, Fast Forward, Reverse, etc. 3D: Iso (Isometric) Default View Downloads a.txt file Default Folder Windows Downloads Menu Bar Recommended to Move download file to another file location by copy/cut then paste Undo and Redo New Program Open Program: File types:.gcode.txt Opens a Sample Program

Work screen Movement Mouse Left Mouse Button Click- Select Left Mouse Button Hold- Pan Right Mouse Button- Hold down to rotate screen Center Roll Bar- Pull (roll towards user) = Zoom OUT Push (roll away from user) = Zoom IN Machine Setup Code Setting Units G20 = inches G21 = mm It is important to set the units so the machine knows how far to incrementally change when programming in the distance from one point to the next Coordinate Position G90 = Absolute Position G91 = Incremental Position G92 = Offset Coordinate System User needs to make allotment for the size of the tool they are using. The user can by using absolute position make the change in the X, Y, Z coordinate when laying out the coordinate points or program the change using incremental or offset positioning within the program setup phase. Note: For this program we do not know the size of the tool we are using so absolute position will work best. Homing A series of X, Y, Z coordinate movements that moves the tooling away from the part for easy setup and removal of the object; providing safety for the operator when working on the machine. For some machines specific sections of code are preset based upon the machine build volume that is being used to find the traversing limits. Some machines also contain a set of code that will set the home position of the extruder or milling tool. The home position is typically a location up and away from the build plate (3D Printing) or off the stock material that is to be machined, that way the build plate or stock material does not get damaged when the machine is extruder head heats up or the cutting tool begins its motion. Some machines will use switches to locate the home position; this is done via a function or sub routine set of code that gets added to all programs that are run on a particular machine. NOTE: For this tutorial we will set a home position that is above and to the right of the right top most point on the wireframe model. For this tutorial the user will not set this position as the origin of the virtual machine, but keep the origin point as one of the corners of the object.

Code: Cube 10mm x 10mm x 10mm 1. Select New Program Icon 2. Type in the following Code (NOTE: // = Comment; by placing the two back slashes before any text results in the compiler ignoring any text after the backslashes on that one line of code) Coded Line ID Generated by Software. NOTE: Not all compilers contain line code ID markers Coded Line ID generated by user. Designed to help ID line of code easier when each line has a unique marker. Increment change (N10, N20) does not have to be by tens, but can be setup as any increment change. It is preferable to create a larger space between ID change, in case a new line needs to be inserted between two existing lines; this way the rest of the program does not need to be renumbered NOTE: the Above Code can also be written on one line as follows. User needs to be careful in not combining too many codes onto one line because more errors due to typos or wrong code declaration could occur when setting up the machine. 3. The next set of code would be used to setup the machine for example a. 3D Printer: Setting up Extruder Head Temperature, Build Plate Temperature (If Applicable), b. CNC Machine: Tool number from the carousel, Tool Speed, This program we will setup as if we were using a 3D printing to create the object Copy the following code below the code typed from above

4. Homing Position The Homing position should always be set away from where the object is being printed Copy the following Code Press Play in the work screen or Plot from the Coding window > you should notice an orange line (represents G00 rapid traverse movement.) moving from the center of the build plate up vertically and then on an angle towards the third quadrant on the graph. NOTE: G00 Rapid Traverse should only be used when the machine is moving to a point in space; NEVER to be used when cutting, printing or any other machining process, result could be the tooling moving too fast and crash into the build plate or workpiece breaking the machine and/or the part being created. Movement 2 (Line: N80) and Movement 3 (Line N100) Home Position Movement 1 (N70) and Movement 4 (110) Once position reached extruder will heat up then re-traverse back over points returning to origin to begin printing

5. Cube 10mm x 10mm x 10mm Creation a. 1 st Wall (Front Surface): Copy down the following lines of code > Plot (Play) the code Plot the code. Should have same as below b. 2 nd Wall (Left Surface): Copy down the following lines of code > Plot (Play) the code. Current location Origin (x0 y0 z.1)

c. Reposition tool Option 1: Trace a line to move tool (pen) back to start location of the back surface Option 2: Would have the user move the tooling away from the part and reposition it using a combination of G00 and G01. For Example Left Side (2 nd Wall) Home Position N200-N220 Movements to move the tool off the part and reposition it at desired location (Back Wall) Front View (1 st Wall) Note: For this tutorial user will follow Option 1

d. 3 rd Wall (Back Surface) Copy down the following lines of code > Plot (Play) the code. Current location Bottom Left Corner on the Left Side View(x0 y10 z.1) e. Trace a line to move tool (pen) back top right corner of back surface f. 4 th Wall Right Surface Copy down the following lines of code > Plot (Play) the code. Current location Bottom Left Corner on the Left Side View(x10 y10 z10.1) NOTE: the Top and Bottom Surfaces are completed based on the shared edges from the other four surfaces

g. Return to Home Position Once a part is complete it is important to return the tooling back to its home position. This makes it easier and safer to remove the part from the machine. User should make sure not to make movements that run into the part so we will move the tool away from the part with a series of moves. Copy the following code > Plot Code h. Machine Shutdown

Code: Curve/Arc/Circles To create a curve/arc/circle the user will need to choose one of two methods. Method 1 uses radius for its formation and Method 2 uses offset values from the start point. For both methods it is important that the user has programmed the proper G code Axis s (G17=XY, G18=ZX, G19=ZY), this will place the tool at the correct orientation to create the Curve, Arc or Circle based upon its view plane. Note it is important to understand that not every machine has the ability to rotate the tooling into the different axis positions. Read instruction manual of machine being used before trying to run a series of code, so has to avoid possible damage to the equipment. Method 1 Using R (radius) Next we will modify the existing code by adding curves. There is two types of curved edges we can make G02: Clockwise Interpolation G03: Counter-Clockwise Interpolation The Direction of the curve (Concave v. Convex) is dependent upon the direction of the tool For example: Tool moves in a counter clockwise Direction (x0 y0 z.1 to x10 y0 z.1) G02: Clockwise Interpolation G03: Counter Clockwise Interpolation

a. Change the cube code to the G03 Counter Clockwise interpolation b. Change the following lines of code to create an arc on the top edge of the front surface; Notice how this is a G02 (Clockwise) this is because the direction of the tool is moving in a clockwise direction from Line N130 to Line N140 Method 2 Offset Values: I, J, K Radius does not always ensure the proper size arc/circle for when programming in G Code. I,J,K option allows the user to check or even double check the location of arc/circle being created by setting offset values from the start point to locate the center of the arc/circle. The following shows the relationship between axis (X,Y,Z) and offset value (I,J,K) I = X Axis J = Y Axis K = Z Axis I, J, K Code represent the offset distance from the start point for the arc/circle in the direction of motion. Note the I,J,K value can be either positive or negative based on the start point of the arc/circle and the direction the tooling is drawing the arc/circle. Y (J) R50 Code G01 x0 y0 z0 G02 x50 y0 z0 I50 X (I) Start Point (0,0) End Point (50,0)

Y (J) R50 Code G01 x50 y0 z0 G03 x0 y0 z0 I-50 X (I) End Point (0,0) Start Point (50,0) a. Change the Code to the following //Cube Print 10mm x 10mm x 10mm //1st Wall Front Face N120 G03 x10 y0 z.1 I5 //I=X-Axis Radius 5 (-5 because of direction of tool; Tool is moving to the right from previous point making the directional motion negative N130 G01 x10 y0 z10.1 N140 G02 x0 y0 z10.1 I-5 //I=X-Axis Radius 5 (-5 because of direction of tool; Tool is moving to the left from previous point making directional motion negative N150 G01 x0 y0 z.1 Assignment: Add an arc of 5mm that is 180 degrees on the right face of the cube. Student decides the following - Choose Y or Z direction. - Concave or Convex