Home Page View Syllabus Projects Page Documents Instructor's Page
ENTC 3710 — Lab #3
Programming with Subroutines & Loops
In this laboratory assignment, you will use both subroutines and loops to program either the Anilam Crusader II or the Heidenhein TLC 155 controller to generate multiple sets of the geometries in developed in Lab 2. (See: Chapter 10 of the Anilam Crusader II Pgrm & Op Instr or Chapter 5 of the Heidenhain Pgrm & Op Instr.) Lab 3
For a larger, PDF version of the assignment, click here or inside the image above.
To Top of Page
Programming Requirements:
Revise and extend the commented CNC program developed in Lab #2 to the following items and generate three (3) of each shape in the manner specified:
  • Appropriate header information (setup and operational information before the first '%' character). Click here for an example.
  • A subroutine to go to the Work Change Point (WCP) & stop (dwell).
  • A subroutine to go the the Tool Change Point.
  • A subroutine to create the triangle including a curl on & curl off. This subroutine will be called three times.
  • A subroutine to create the square including a curl on & curl off
  • A subroutine to create the interior arc.
  • The subroutines for the square and arc will be called inside one or more loops.
To Top of Page
Deliverables:
  • An appropriately commented CNC program.
  • A plot of the assignment's CADD drawing. On the plot, identify all programming points including the arc's start and stop points.
  • A pen plot of the final program run. All team members need to sign the pen plot.
  • Staple all sheets together and place into the class notebook by the due date.
To Top of Page
Notes
  1. If porting the program to the Bridgeport/Heidenhain TNC 155 controller:
    1. Download and use the Heidenhain program template.
    2. Read the Absolute/Incremental Format Problem in Chapter 3 of the Bridgeport Heidenhain CNC Mill Programming & Operating Instructions.
  2. Optimize the location of the shapes to fit on a single sheet of letter-sized paper.
  3. On your CAD drawing, include a 8½ x 11 rectangle to represent the paper.
  4. Locate the CAD origin near an appropriate corner of the paper.
  5. Locate the machines ABS (i.e., "world") origin at a suitable place so that all movement is made within the machine's physical work envelope.
  6. If operating near the limits of travel, configure and call the subroutines &/or loops to avoid overtravel.
  7. If necessary, recalculate and rewrite the point-to-point tool paths developed in Lab #2 from absolute to incremental. To aid in the ABS to INCR conversion process, you can use a spread sheet application (see below) or you can use your CAD application's object properties capability to fine the incremental ΔX & ΔY coordinate values. To see an example of how this process would work, see the Absolute to Incremental Cutter Path Conversion Using AutoCAD web page.
To Top of Page
Example Microsoft Excel spreadsheet that converts
absolute X-Y & I-J values to incremental X-Y & I-J values.
Example Absolute to Incremental Spreadsheet
---------------
Back to the top of this page Back to Projects page
Website Copyright © 2000-2005 by Bill Hemphill   All Rights Reserved
Feb. 10, 2005