Você está na página 1de 40

Heidenhain CNC Mill Pgrm & Op Instr - Table of Contents Page 1 of 3

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Table of Contents
Note:
On this page, clicking on a navigation button will take
Canned you to the appropriate section of this page.
Cycles
Subroutines Chapter 1—System Characteristics
<S Loops
Console Features
Editing Programming Formats

Running
Programs Chapter 2—Manual Operations

Powering Up
Demo Spindle Motion
Program Joy Stick Mode
~ Manual Data Input Positioning Mode
Credits
Copyright Handwheel Mode
Establishing the X-Y-Z Origin

Chapter 3—Programming in the ISO Format(EIA-274-D or


G-Codes)

Changing the Controller's Format to ISO


Criteria
Address Words
G-Codes
M-codes
Circular Interpolation

BACH TO TOP

Chapter 4—Canned Cycles

Drilling (called "Pecking")


Rectangular Pocket Milling
Circular Pocket Milling

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-toc.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Table of Contents Page 2 of 3

Datum (Origin) Shift


Mirror Image
Rotation
Scaling

-QQ333333"1
Chapter 5—Labels: Subroutines (Macros) and Loops

Subroutine Syntax
Loop Syntax
Location of Lables
Example Problem

nQQ3333EEI3h
Chapter 6—Editing at the Console

Entering the Edit Mode


Accessing a Program for Editing
Editing a Statement
Inserting a Statement
Deleting a Statement
Program Protection
Unprotecting a Program

B/*CK TO TOP

Chapter 7—Setting Tool Length Offsets (TLOs)

Definition
Procedures for Setting TLOs

.jj223B3EE3ÿ
Chapter 8—Running Programs

Transferring Programs into the "Run" Buffer


Dry Running Programs
Going for Broke
Precautions

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-toc.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Table of Contents Page 3 of 3

Chapter 9—Data Transfer: PC <to/from> CNC

PC to Heidenhain Data Transfer


Heidenhain to PC Data Transfer

Demo Program (in EIA-274 Format)

Dimensioned Part Drawing (PDF format)


G-codes Used
Canned Cycle Parameter Identification
M-codes Used
Cutting Tools
Demo Program in ISO Format

Credits and Copyright

Credits
Copyright

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-toc.htm 06-Mar-17
Heidenhain TNC 155 CNC Mill Programming & Operating Instructions - Chapter 1 Page 1 of 2

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

System Chapter 1
Characteristics

Features
Introduction
Programming System Characteristics
Formats

Manual The ETSU Department of Technology's Bridgeport/Heidenhain Computerized


Operation Numerical Control (CNC) mill consists of a modified Bridgeport Series I vertical mill
ISO Format fitted with a Heidenhain model TNC 155 closed-loop 3-axis CNC Controller. (The
Programming 155 model is the same as the 154 model, but has no graphics. Also, the TNC 155
Canned Parameter data appearently is quite similar to the Bridgeport Series 1 Interact 151B
Cycles parameter data.) The table, saddle, and quill axes are fitted with zero-backlash ball
Subroutines
screws and servo motors with rotary resolvers.
tS Loops

Editing
Setting Features
TLOs
Running The Bridgeport/Heidenhain CNC's many features include:
Programs
PC CMC
«ÿ • It can be programmed either in Heidenhain's "conversational" format (which
Data Transfer doesn't use G-codes) or in the traditional RS-274-D (ISO) word address G-code
format.
Demo
Program • The controller has two registers: one for entering or editing a program and
another for running a program. Thus one program can be run while another is
Credits « being entered or edited.
Copyright
• Its range of axis motion is: X=18.0 Y=11.9 Z=4.9 inches.
• It has a 2 HP motor, with about 80% (1.6 HP) available at the spindle.
• The origin can be established anywhere desired and moved to another location
whenever desired.
• It can execute loops and macros—or subroutines—nested up to 8 levels deep.
• It can operate in either the incremental positioning mode or absolute
positioning mode you can go back-and-forth between these modes. It defaults
to absolute mode.
• It can cut angular paths (linear interpolation) in the X-Y, X-Z, Y-Z, and X-Y-Z
planes.
• It can cut circular paths (circular interpolation) in the X-Y, X-Z and Y-Z planes
and perform thread milling (helical interpolation).
• It can operate in either metric or inch units.
• It has canned X-Y axis cycles for circular pocket and rectangular pocket
milling.
• It has canned Z-axis cycles for drilling, peck drilling, boring, and
countersinking, counterboring, or spotfacing.
• It can be programmed in either Cartesian (X-Y-Z) or polar coordinates.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp1.htm 06-Mar-17
Heidenhain TNC 155 CNC Mill Programming & Operating Instructions - Chapter 1 Page 2 of 2

• Will accept tool length offsets (TLOs) thru either numerical data or by
digitizing.
• Geometry can be rotated about the origin to any desired angle.
• It can scale a part up or down—make it larger or smaller.
• It has cutter compensation capability to permit the use of undersize or oversize
cutters.
• It can store 3100 blocks or 32 programs; no program can contain >1000 blocks.

Programming Formats

The Heidenhain controller can be programmed in either of two formats:

1. the ISO format--otherwise called the RS-274-D, EIA-274, or G-Code format;


and
2. the "conversational" format, a somewhat more intuitive and flexible format
than the ISO format but more sensitive to spelling and other syntax errors from
off-line programming. Therefore, the ISO format will be explained herein.

The following chapters list most of the factors that you must consider when writing a
program for the Bridgeport/Heidenhain Mill. They will show you step-by-step
procedures for utilizing loops, macros, canned cycles, circular interpolation, and tool
length offsets (TLOs). Instructions are also given for manual data input (MDI) and
program input and output via the computer.

Last updated on Friday, April 6, 2001 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp1.htm 06-Mar-17
Heidenhain Pgrm & Op Instr - Chapter 2: Manual Operations Page 1 of 3

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 2
Operation
Manual Operations
IPowering Up
Spindle Powering Up the System
Motion

Joy Stick When the machine has had the power shut off, it is necessary to perform the
Mode following steps to allow the controller to run its diagnostic tests and to locate the
Manual Data limits of the axes. Note: it is important to shut down the system overnight to avoid
Input Mode
burning the phosphors on the CRT screen.
Handwheel
Mode
1. Turn on the power switch located on the power panel located on the right hand
Establishing side of the mill. A memory test is automatically performed and the CRT
X-V-Z Origin
display appears.
ISO Format 2. Rotate the brightness and contrast knobs on each side of the controller monitor
Programming to their midpoint positions.
Canned 3. If the display is in German (i.e., SPEICHER-TEST), then the battery back-up
Cycles has failed. Before continuing with the power on procedures, you will need to
Subroutines reload the controller's parameters. Click here for step-by-step instructions for
& Loops accomplishing this task by uploading the parameters automatically.
Console
Editing CE
4. Press the Cancel Entry key on the console. The CE button is located in
Setting the lower left hand corner of the numeric keypad.
TLOs 5. Press the yellow POWER ENABLE button located at the upper left hand
Running corner of the console.
Programs 6. Set the feed override dial at 100% and press the green CYCLE START button
PC « CMC four (4) times to overcome the "PASS OVER REFERENCE MARK" for each
Data Transfer axis highlighted.
7. The machine is now ready for use as an ordinary milling machine in both the
Demo
Program manual mode and the handwheel mode
Credits &
Copyright

Spindle Motion

The spindle is controlled by two switches in series which must be simultaneously


actuated. Both switches are located on the front of the mill above and to the left of
the spindle.

The procedure to turn on the spindle is as follows:

1. Press and hold the green "SPINDLE ENABLE" button.


2. The handle-actuated spindle on/off switch, which has two positions (high range
and low range) that must correspond to the high range/low range setting of the

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp2.htm 06-Mar-17
Heidenhain Pgrm & Op Instr - Chapter 2: Manual Operations Page 2 of 3

speed range selector handle on the right side of the head. Mixing the positions
up results in the spindle going in reverse.
3. Once the motor has started, release both the spindle enable button and the
switch handle button. The on/off switch has a spring-loaded start position and
will automatically rotate to the run position

Joy Stick Mode

1. Press the MANUAL mode key or the HAND WHEEL mode


key on the console. The joy sticks are now active for jogging the axes.
2. Press down on the joy stick's tip and move the joy stick in the desired direction.

Manual Data Input Positioning Mode

This mode of operation is used primarily to move an axis (for example, to the origin)
or to retract the quill.

1. Press the Manual Data Input (MDI) key on the console.


END
ÿ
2. To retract the quill, key in M25 and press the EOB key.
3. To move an axis (for example to the X-origin), key in G90 G07 X0 (or other
END
ÿ
single-axis command) F5555 and press the EOB key.
4. To move an axis at feedrate key in G07 (single axis) or G01 (multi-axis) G90
Y0 (or other axis data) F2-- (=20.0 ipm) or other feedrate.
5. Press the green CYCLE START button.

QQ333SES31
Handwheel Mode

Press the HANDWHEEL key on the console to move the axis that is
highlighted on the CRT. Change highlighted axis by pressing the desired axis key
and the ENT (enter) key.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp2.htm 06-Mar-17
Heidenhain Pgrm & Op Instr - Chapter 2: Manual Operations Page 3 of 3

In this mode the CRT will display "INTERPOLATION FACTOR:n" where "n" is a
numeral that can range from 2 to 10. This number concerns how far the axis will
travel per turn of the handwheel. The approximate relationships are:

Interpolation Distance/Revolution
Factor [in.] [mm.]
2 0 .197 5.0
3 0.098 2.5
4 0.049 1.25
5 0.025 0.625
6 0.012 0.3125
7 0.006 0.156
8 0.003 0.078
9 0.0015 0.039
10 0.0008 0.020

.j2i33B3EE3ÿ
Establishing the X-Y-Z Origin at the Desired Location

1. Position the spindle axis over the desired origin location.

2. Zero out the X and Y axis counters by pressing X 0 and Y 0


3. Retract the quill using the Z-axis joy stick. If the Z-axis counter does not read

zero, then press Z 0 .

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp2.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 1 of 6

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 3
Operation
Programming in the ISO Format
ISO Format
Programming (EIA-274-D or G-Codes)
Converting to
ISO Format
Changing the Controller's Format to ISO
ISO Criteria
If the controller is in the conversational format mode, the Heidenhain controller must
Address Words be reset to ISO format in order to receive external (offline) ISO (or G-code)
programs.
O-Codes
It is recommended that you have your instructor perform this operation.
M-Codes

Circular
Interpolation
1. Press the MOD key.
Canned
Cycles
Subroutines 2. Cursor up to "USER PARAMETERS" and press .
& Loops 3. Cursor to "DIALOG=0 ISO-1" prompt.
4. Press "1" for ISO format.
Console
Editing DEL
ÿ
Setting 5. Press the delete block key. This "shuts down" the control while the
TLOs control converts every program in its memory to the ISO format.
Running 6. Re-power up the controller following the instructions in Chapter 2: Powering
Programs up the Controller.
PC »CMC
Data Transfer gjjgjgf.
Demo
Program
ISO Criteria
Credits 6<
Copyright
RS-274-D or word address (G-code) programs must:

• Begin with block containing only a percent sign, the program number, a G70
(or G71), and a carriage return (CR) (no sequence number).

1. The program number can be any number between 01 and 499;


numbers 500 and above are reserved for faculty.
2. The program's floppy disk filename can be the same as the
program number, but it could be any valid alphanumeric
combination that follows the MS-DOS 8-3 filename.ext naming
rules.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 2 of 6

• End with a block containing only N9999, a percent sign, the program number,
and a G70 (or G71), and CR.
• Utilize the ASCII (RS-358, even parity) tape code for paper tape input.
• Utilize the block format:
N4.0 G2.0 XYZIJK3.4 F3.1 S4.0 T3.0 M2.0

1. EXCEPTION: Circular/arc path (see below).


2. Parameters associated with certain G-codes use various address
words such H, DR, P, and R.
3. Spaces are ignored.
4. Positive values are assumed.
5. Leading and trailing zeros can be omitted (zero suppression) for
XYZIJK data but not for other data.
6. Sequence numbers should be incremented by 10s. They must not
be duplicated and must be in numerical order.

• Example program structure.


%250 G70 (or G71)
N10 G99 T1 L-2. R0.25
N20 G17 G00 (or G01 or G02 or G03) G90 (or G91)
Nnn PROGRAM STATEMENTS
N450 M30
N9999 %250 G70 (must match 1st line)

B/ÿCK TO TOP

Address words

D = Parameter definition (program variable parameter Q)

F = Feedrate
F = Dwell time with G04
F = Scaling factor with G72

G = Preparatory functions (G-codes)

H = Polar coordinate angle


H = angle of rotation with G73

I = X coordinate of circle/arc center or pole


J = Y coordinate of circle/arc center or pole
K = Z coordinate of circle/arc center or pole

L = Set (Define) label (subroutine/loop) number with G98 preface


L = Label (subroutine/loop) call number
L = Tool length with G99 preface

M = Miscellaneous (auxiliary) codes.

N = Sequence number

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 3 of 6

P = Machining canned cycle parameter


P = Parameter in parameter definitions

Q = Program parameter (variable) "Q"

R = Polar coordinate radius


R = Circle radius with G02/G03/G05
R = Rounding-off radius with G25/G26/G27
R = Chamfer length with G24
R = Tool radius with G24
R = Tangential approach radius with G26
R = Tangential departure radius with G27

S = Spindle speed
S = Angular position with G36

T = Tool definition with G99 preface (TLOs)


T = Tool call

X = X-axis
Y = Y-axis
Z = Z-axis

RETURN = End of block (EOB).

G-codes

Non-modal commands are prefaced with *; note that the "*" is not part of the code.

G00 = One- or two-axis rapid travel move.


G01 = Two-axis linear motion (can also be three-axis)
G02 = Circular motion, CW
G03 = Circular motion, CCW
* G04 = Dwell with F seconds (e.g. G04 F2.5)
G06 = Circular motion, tangential from previous move
* G07 = Single axis move
G11 = Linear polar motion
G12 = Circular polar motion, CW
G13 = Circular polar motion, CCW
G16 = Circular polar motion, tangential from previous move
G17 = Plane selection XY, spindle axis Z
G18 = Plane selection ZX, spindle axis Y
G19 = Plane selection YZ, spindle axis X
* G24 = Chamfer with R
* G25 = Corner rounding with R
* G26 = Tangential approach with R
* G27 = Tangential departure with R
G28 = Mirror image w/ mirror axis (e.g., G28 X)

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 4 of 6

* G29 = Designate current position as pole location


* G38 = Stop (untimed dwell)
G40 = Tool radius compensation off
G41 = Tool radius compensation, left
G42 = Tool radius compensation, right
G54 = Origin shift
G70 = Inch (usable only at start of program)
G71 = metric (usable only at start of program)
G72 = Scaling with F factor (e.g, G72 F0.5)
G73 = Coordinate system rotation
G74 = Slot milling canned cycle
G75 = Rectangular pocket cycle, CW
G76 = Rectangular pocket cycle, CCW
G77 = Circular pocket cycle, CW
G78 = Circular pocket cycle, CCW
* G79 = Cycle call
G83 = Drilling, both peck & non-peck
G90 = Absolute positioning
G91 = Incremental positioning
* G98 = Set (define) label (subroutine/loop) number preface
* G99 = Tool definition preface

M-codes

M-codes are acted on first/last as appropriate

M03 = Spindle on CW (first)


M25 = Retract quill, spindle & coolant off (first)
M30 = Rewind memory = program end (last)
M89 = Cycle call, modal (canceled by M99)
M99 = Cycle call, nonmodal

Circular Interpolation

Absolute/Incremental Format Problem

The Heidenhain rearranges the elements in circular/arc blocks such that the I and J
elements occur before the G02/G03 and G90/G91 commands

From
Nnnn G02 G91 Xnnn Ynnn Innn Jnnn
To
Nnnn Innn Jnnn G02 G90 Xnnn Ynnn

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 5 of 6

This causes no problem if the program is written entirely in the absolute (G90) mode
or entirely in the incremental (G91) mode. But when linear moves are written in the
G90 mode and arc moves in the G91 mode (or vise-versa), problems arise.

In the rearranged format, the G02/G03 and G90/G91 commands follow the I & J
elements and are then in turn followed by the X & Y elements. If the previous block
was absolute (G90), it will evaluate the I & J elements as being absolute, then read
the G91 command and then evaluate the following X & Y elements as being
incremental. An error message results.

For example, consider the following EIA-274-D program statements.

Note
All comments ('$' and subsequent characters) must be removed
prior to uploading program into the Heidenhain controller.
Click here to download a zipped copy of 274UTILS

%501 G70 $ Program # & inch units


N5 G99 T1 L-2.0 R+0.0 $ Define TLO
N10 G00 G40 G90 X0 Y0 M25 $ RPD to origin
N20 T1 G17 S1800. $ Load tool 1; X-Y, RPMs
N30 G01 X+2.1737 F300 $ ABS X-axis to arc start
N40 G02 G91 X+0.2457 Y-0.4721 I+0 J-0.3 $ Incr arc
N50 M25 $ Retract quill
N60 M02 $ Rewind memory
N70 %501 G70 $ End of program

The controller rearranges line N40 so that the program appears thus:
N40 I+0 J-0.3 G02 G91 X+0.2457 Y-0.4721 $ Incr arc

Note that the controller will still be in the absolute (G90) mode (from the prior block)
as it reads sequence N40's I & J elements, not changing its positioning mode to
incremental until it reads the G91, which now occurs after the I & J elements. Then it
will interpret the X & Y elements (occurring after the G91) as being incremental.
Hence, to the controller, the statement comes out as a mix of absolute and
incremental data, which is both confusing and illegal.

The Solution

Insert a G91 command in a block all by itself, just ahead of each incremental arc
command thus:
N35 G91 $ Set positioning mode to incremental
N40 I+0 J-0.3 G02 G91 X+0.2457 Y-0.4721 $ Incremental arc

In this manner, the positioning mode will have already been set to incremental when
sequence N40's I & J elements are read. (The G91 in sequence N40 is now redundant,
but harmless.)

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 3 ISO Format Programming Page 6 of 6

Last updated on Jan. 17, 2005, by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp3.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 1 of 6

T able of Bridgeport Heidenhain CNC Mill


Contents
Programming & Operating Instructions
Introduction

Manual Chapter 4
Operation
Canned Cycles
ISO Format
Programming
Drilling (called "Pecking")
Canned
Cycles
Preliminary information
Drilling

Rectangular When activated by a G79 command, the cutter will feed down a specified "peck"
Pockets distance (which could be equal to the entire hole depth) at a specified downfeed rate.
Circular The cuter will then rapid travel out of the hole to clear the chips and then (if a second,
Pockets etc. peck is required) rapid back down almost to the bottom of the hole and then feed
Datum (Origin) down another peck increment. The process is repeated until the final depth is
Shift
achieved. A dwell can be specified for countersinking, spotfacing, and counterboring
Mirror Image operations.

J Scaling ISO format syntax and parameter values


Subroutines Nxxx G83 P01 0 P02 -n P03 -n P04 n P05 n
& Loops
Console where
Editing
Setting P01 = Unneeded "clearance" parameter; set at zero (0)
'TLOs
• This parameter serves no useful purpose and can mess things up when
Running improper values are used. Simply set this parameter to zero value.
Programs
~ • FYI: According to the Heidenhain manual, the "SET-UP CLEARANCE"
PC CMC represents the distance above the top of the hole that the drill point will be
Data Transfer located at the beginning of the cycle. In effect this tells the controller the
Demo incremental distance from the tool point to the surface to be drilled (typically
Program set at 0.100 inch). Therefore this value must be assigned a negative ( - ) sign!
Credits & Be sure to have the drill located at this Z-plane when activating (calling up) the
Copyright cycle.

P02 = TOTAL Z-STROKE (Incremental; MUST be negative!)

P03 = Peck increment (set @ P02 value for no peck)

P04 = Dwell (sec) Set at zero.

P05 = Drill feedrate (IPM; format = 2.1; decimal assumed, not entered.)

Activate the drill cycle with:

Nxxx G79 M03

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 2 of 6

The "G79" activates the drill cycle. The "M03" is required to activate the spindle
(even though it is already turning).

Rectangular Pocket Milling

Preliminary information

This cycle assumes the cutter is initially placed over the center of the pocket and at
some clearance distance (typically 0.100 inch) above the top of the pocket. Then the
cycle will take over from that point, plunging the cutter down to the "peck depth" and
feeding the cutter around the pocket in ever increasing increments until the final size
is attained. The process is repeated until the desired total depth is attained. Then the
cutter is returned to the center of the pocket at the clearance height.

The overall length and width of the pocket, rather than the distance of cutter motion,
are programmed into this cycle. The controller must be told what the cutter radius is
in the tool definitation statement.

The amount of stepover for each go-around of the cutter is calculated by the
controller and cannot be specified by the programmer.

Use this cycle for rouging out pockets. There is no provision for a light finish pass for
the final go-around. Likewise, there is no provision for corner radii (other than the
cutter's radius), nor for a downfeed ramp. Hence it is wise to leave the pocket
undersize, and then program individual axis moves to finish the pocket.

ISO format programming syntax and parameter values


for the G75 (CW) & G76 (CCW) Rectangular Pocket Cycles.

CUTTER RADIUS

Figure 2
Heidenhain (375/676
Rectangular Pocket Canned Cycle

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 3 of 6

Syntax:

G75 P01 0 P02 -n P03 -n P04 n P05 X+n P06 Y+n P07 n
or
G76 P01 0 P02 -n P03 -n P04 n P05 X+n P06 Y+n P07 n

where:

P01 = Unneeded "clearance" parameter; set at zero

• This parameter serves no useful purpose and can mess things up when
improper values are used. Simply set this parameter to zero value.
• FYI: According to the Heidenhain manual, the "SET-UP CLEARANCE"
represents the distance above the top of the hole that the tool point will be
located at the beginning of the cycle. In effect this tells the controller the
incremental distance from the tool point to the surface to be drilled (typically
set at 0.100 inch). Therefore this value must be assigned a negative ( - ) sign!
Be sure to have the drill located at this Z-plane when activating (calling up) the
cycle.

P02 = Pocket depth (incremental; must be negative)

P03 = Peck increment (set at P02 value for no peck)

P04 = Downfeed feedrate

P05 = 1st (longer) side axis & length

P06 = 2nd (shorter) side axis & length

P07 = X/Y feedrate

Circular Pocket Milling

Preliminary information

This cycle assumes the cutter is initially placed over the center of the pocket and at
some clearance distance (typically 0.100 inch) above the top of the pocket. Then the
cycle will take over from that point, plunging the cutter down to the "peck depth" and
feeding the cutter around the pocket in a spiral path until the final size is attained.
The process is repeated until the desired total depth is attained. Then the cutter is
returned to the center of the pocket at the clearance height.

The overall radius of the pocket, rather than the radius of cutter motion, is
programmed into this cycle. The controller must be told what the cutter radius is in
the tool definitation statement.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 4 of 6

The amount of stepover for each go-around of the cutter is calculated by the
controller and cannot be specified by the programmer.

There is no provision for a downfeed ramp nor for a light finish pass for the final go-
around. It is wise to use this cycle for roughing out purposes, leaving the pocket
undersize, and then program a separate circular interpolation statement to finish
the pocket.

ISO format programming syntax and parameter values


for the G77 (CW) & G78 (CCW) Circular Pocket Cycles

G77 P01 0 P02 -n P03 -n P04 n P05 n P06 n


or
G78 P01 0 P02 -n P03 -n P04 n P05 n P06 n

where

P01 = Unneeded "clearance" parameter; set at zero

• This parameter serves no useful purpose and can mess things up when
improper values are used. Simply set this parameter to zero value.
• According to the Heidenhain manual, the "SET-UP CLEARANCE" represents
the distance above the top of the hole that the tool point will be located at the
beginning of the cycle. In effect this tells the controller the incremental
distance from the tool point to the surface to be drilled (typically set at 0.100
inch). HENCE THIS VALUE MUST BE ASSIGNED A NEGATIVE (-)
SIGN! Be sure to have the drill located at this Z-plane when activating (calling
up) the cycle.

P02 = Pocket depth (incremental; must be negative)

P03 = Peck increment (set at P02 value for no peck)

P04 = Downfeed feedrate

P05 = Pocket radius

P06 = X/Y feedrate

Datum (Origin) Shift

Preliminary information

• This cycle is active immediately upon definition.


• Datum shift can be specified in either absolute (default) or incremental terms.
• One, two, or all three axes can be "shifted" in a single statement.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 5 of 6

ISO format programming syntax and parameter values

G54 G90 Xn.nnn G90 Yn.nnn G90 Zn.nnn


or
G54 G91 Xn.nnn G91 Yn.nnn G91 Zn.nnn

where

G90 = Origin shift to absolute current location


G91 = Origin shift to incremental location

• Omit axes with no change


• Incremental and absolute can be mixed.

Mirror Image

Preliminary information.

• This cycle is active immediately upon definition.


• Mirroring always occurs about the origin; it may be necessary to shift the
origin to a new location in order to have the mirror axis in the desired location.
• Mirroring can occur about the X axis, Y axis, or both the X and Y axes.

ISO format programming syntax and parameter values


for the G77 (CW) & G78 (CCW) Circular Pocket Cycles

G28 [axis to be mirrored about] (e.g., G28 X)

ÿÿÿSIEESS-
Rotation

Preliminary information.

• This cycle rotates the coordinate system a specified number of degrees, either
incrementally, or absolute relative to angle zero at the 3:00 o'clock position.
• This cycle is active immediately upon definition.
• Rotation always occurs about the origin; it may be necessary to shift the origin
to a new location in order to have the axis of rotation at the desired location.

ISO format programming syntax and parameter values

G90 G73 H+nnn G17


H-nnn G18
G19

where

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 4 Canned Cycles Page 6 of 6

H+nnn = Counterclockwise rotation angle

H-nnn = Clockwise rotation angle

G17 = Rotation of the X-Y plane (usual choice)

G18 = Rotation of the X-Z plane

G19 = Rotation of the Y-Z plane

SCALING

Preliminary information

• This cycle multiplies all coordinates and radii by the specified factor. It does
NOT move the origin.
• This cycle is active immediately upon definition.

ISO format programming syntax and parameters

G72 Fn.nnn

where

F = Scaling factor (0 to 99.999999)

Scaling is canceled by redefining a G72 cycle and specifying a scaling factor of zero.
It is also canceled by the M30 at the end of a program.

Last updated on Thursday, April 19, 2001, by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp4.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 5 Subroutines (Macros)& Loops Page 1 of 2

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 5
Operation
Lables: Subroutines (Macros) and Loops
ISO Format
Programming
Subroutine Syntax
Canned
Cycles
Subroutine "Label" definitions begin with
Subroutines
tS Loops G98 Ln
Subroutine
Syntax and end with
Loop Syntax G98 L0
Location of
Lables where "n" = the label (subroutine) number.
Example
Program • A call statement is used in the main program—or it can be "nested" within
another subroutine "label"—to execute a subroutine label.
Console
Editing It consists simply of Ln where "n" = the label (subroutine) number (without
the G98).
Setting

Running
Programs
PC- CMC Loop Syntax
Data Transfer
Demo Loops (also called labels) begin with a
Program
G98 Ln
Credits â
Copyright and end with

Ln.r (again, no G98)

where the "n" = the label number and the "r" = the number of repeats, not executions.

• The "r" is usually set at one less than the total executions because the loop "r"
counter is not read until the cycle has been initially executed once. Then the "r"
counter, located at the end of the loop, is read. The loop is exited when the "r"
counter reads zero.

1 BÿCK TO TOP
1

Location of Lables

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp5.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 5 Subroutines (Macros)& Loops Page 2 of 2

Labels used as subroutines or as loops should be defined beyond the end of the
program—after the M30 so that it is never encountered except as the result of a label
call statement.

Example Problem

:Drill an array of six 1/4" dia. holes thru 1/2" thick material, 1/2" apart on X axis.
Z clearance = 0.100".
Z-stroke = 0.775" = (.3*.25") point length + 0.1" top clearance + 0.5" part thickness
+ 0.1" bottom clearance Z-stroke

Note:
The loop is in boldface type.
Comments following the '$' character must be removed prior to uploading program.
%560 G70 $ PROGRAM NO. INCH
N10 G99 T7 L-1.0 R+0. $ DEFINE TOOL #7; TLO = 1.0"
N20 T7 G17 $ ACTIVATE T7's TLO
N30 L5.0 $ CALL LABEL (SUBROUTINE) #5
N40 M30 $ REWIND MEMORY; END OF PROGRAM

N50 G98 L5 $ BEGIN SUBROUTINE #5 DEFIN.


N60 G00 G90 X+2 Y-3 $ POSITION X-Y TO 1ST HOLE LOCN.
N70 Z+.1 $ DRILL = 0.100" ABOVE WORKPIECE
N80 M03 $ SPINDLE ON
N90 G83 P01 0 P02 -0.775 P03 -0.775 P04 0 P05 200
$ DEFINE CANNED DRILL CYCLE.
N100 G79 $ DRILL 1ST HOLE G79 - cycle call
N100 G98 L6 $ LABEL (LOOP) START
N120 G00 G91 X+0.5 $ MOVE INCR. X+ 1/2" G91 -incremental dimesions
N130 G79 $ DRILL 2ND HOLE
N140 L6.4 $ DRILL 3RD - 6TH HOLES; LOOP END
N150 G00 G90 X+0.0 Y+0.0 M25 $ RET. TO ORIGIN, QUILL UP
N160 G98 L0 $ END SUBR.; BACK TO MAIN PROGRAM

N9999 %560 G70 $ END OF FILE

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp5.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 6 Console Editing Page 1 of 3

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 6
Operation
Editing at the Console
ISO Format
Programming
Entering the Edit mode
Canned
Cycles
Subroutines
<S Loops Press the EDIT key
Console
Editing • The EDIT key is located in the group of keys below the numeric keypad. The
Entering the EDIT key is the the right most key in the upper row of keys.
Edit Mode
Accessing
Programs
Editing a
Statement Accessing a program for editing
Inserting a
Statement

Deleting a
Statement
Press the PGM NR (program number) key
Protecting
Programs
• The PGM NR key is located in the group of keys to the left of the numeric
Unprotecting keypad. The PGM NR key is the the left most key in the upper row of keys.
Programs
• Pressing this key will display all programs resident in the Heidenhain's
Setting memory using two numbers separated by a slash. The first number is the
TLOs program's number; the second number is the program's length in blocks.
Running
Programs There are two ways to chose a particular program:
PC «CNC
Data Transfer
Demo
1. Use the cursor keys E1EEIQ to align the cursor over the desired
program number.
Program or
Credits â 2. Enter the number of the desired program using the numeric key pad
Copyright

Press the ENT key to select the program.

Program selection can be aborted by pressing the NO ENT key.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp6.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 6 Console Editing Page 2 of 3

Editing a statement

Use the up/down cursor


be edited.
mm keys to align the cursor with the desired block to

Use the right/left cursor EB keys to align the cursor over the desired
parameter.

Use the numeric keypad to re-enter the data in the parameter highlighted by the
cursor.

END
ÿ
D. Press the EOB key to close the block.

Inserting a statement

Insertions are made BEHIND the active block.

Use the cursor EEEB keys to align the cursor with the block behind
which the statement is to be inserted.

Enter the block in the normal manner and close the block be pressing the EOB
END
ÿ
key.

Deleting a statement

Use the cursor keys to align the cursor with the desired block to be deleted.

DEL
ÿ
Press the DB delete block key and the block will disappear. Following blocks
will be moved up one notch in the memory.

Program protection

To "write protect" a program so it cannot be altered by the operator:

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp6.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 6 Console Editing Page 3 of 3

1. Press the EDIT key


GOTO

2. Press GOTO key, 0 (on the numeric keypad), then the ENT
key.

3. Use the right cursor key to move the cursor past the "INCH" (or "MM").

4. When prompted by the controller, respond by pressing the ENT key to

enable program protection or the NO ENT key to abort.

Unprotecting a program

Note
This procedure should only be done by the instructor
as the chances of screwing up the controller are quite high.

1. Load the program into the EDIT memory .

2. Repeatedly press the MOD key (about 18 times) until the "CODE ="
prompt is displayed.

3. Using the numeric key pad, enter 8 6 3 5 7 and press the ENT key.

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp6.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 7 Setting Tool Length Offsets (TLOs) Page 1 of 2

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 7
Operation
Setting Tool Length Offsets (TLOs)
ISO Format
Programming
Definition
Canned
Cycles
Tool length offsets (TLOs) amount to nothing more than the jog distance the Z-axis
Subroutines must travel from its fully retracted position to the position where the cutter makes
<S Loops
contact with a Z-zero reference surface (usually the top surface of the workpiece).
Console This is accomplished by "touching off" each cutter on the reference surface (using a
Editing feeler gage) and loading the jog distance into the appropriate TLO register. When
Setting each tool is "called," the appropriate TLO is accessed and used to offset the Z-axis
TLOs origin.
Def initction

Procedures for
Setting TLOs

Running Procedures for Setting TLOs


Programs
~
PC CMC
Data Transfer
1. Make sure the quill is fully retracted and the Z-axis register reads zero at that
position. If necessary, zero out the Z-axis register (in Chapter 2).
Demo 2. Load each cutter into a toolholder, making sure it is securely held so it won't
Program slip in use.
3. Adjust the height of the table so that the longest cutter/toolholder assembly can
Credits â
Copyright be installed in the spindle without interfering with anything.

4. Press the HAND WHEEL OPERATION key and press Z and


keys to make the Z-axis active.
5. Hand wheel the cutter to the Z-reference plane, using a feeler gage such as a
0.100" gage block.

6. Press the EDIT program key and move the cursor to highlight the "L"
parameter in the appropriate Tool Definition block.

7. Press the DATA TRANSFER key to transfer the jog distance displayed
in the Z-axis counter into the Tool Definition block. Then press the EOB
END
ÿ
key.
8. Retract the quill back to Z = zero.
9. Repeat the process for each cutter.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp7.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 7 Setting Tool Length Offsets (TLOs) Page 2 of 2

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp7.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 8 Running Programs Page 1 of 3

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 8
Operation
Running Programs
ISO Format
Programming
Transfering programs into the "run" buffer
Canned
Cycles
Subroutines
<S Loops 1. Press the program run-continuous key.
Console PGM
Editing HR
2. Press the Program Number key to display the directory of programs
Setting resident in the controller's memory.
TLOs
3. Choose the program you wish to run by either using the cursor keys or by
Running entering the number of the program using the numeric key pad. Press the Enter
Programs

ITransfering
Programs to Run
Dry Running
Programs
Soing for
key.

B/CK TO TOP

Precautions,: Dry running programs


PC- CMC
Data Transfer
Demo 1. Press the Dry Run key to check out program for syntax errors, math
Program errors, and axis limit interferences without actually moving and axes.
Credits â
Copyright The program will run until an error, a dwell, or a tool change command is
encountered.
HO
EHT
2. When a dwell (G38) or tool change is encountered, press the NO ENT
key to cause the program to continue its run.
3. When a syntax or programming error is encountered, an error message will be
displayed. Most messages are self-explanatory. If you don't understand the
message, refer to the error message section of the Heidenhain Operating
Manual.
4. Ultimately, if no errors are encountered, the CRT will redisplay the first block
of the program.

BÿCK TO TOP

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp8.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 8 Running Programs Page 2 of 3

Going for broke

1. Clean, stone, and wipe down the table.


2. Clean, stone, and wipe down the vise, quick mount base plate, or workpiece
thoroughly.
3. Mount the vise, quick mount base or workpiece on the table and clamp
securely.
4. Indicate in the vise's fixed jaw or the quick mount base plate to within 0.001"
runout.
5. If using the quick mount system, clean, stone (as appropriate), and wipe down
the carrier (top) plate. Secure the carrier plate to the base plate using two ball
locks. Tighten the Allen screws securely.
6. If this is not a production run of a proven part (i.e., it is a test of a student
generated program), do not install any cutters into the spindle.
7. Note where all clamps, if used, are located. Make sure the program will not
send the cutter into the clamps. If necessary, relocate the clamps or modify
the program.
8. "Float" the X-Y origin to the desired location using an edge finder or dial
indicator as described in Chapter 2.
9. Mount the cutters in their holders and set the tool length offsets as described in
Chapter 7.

Precautions

Run the program through twice without cutters installed to see if it looks like
everything is going where its supposed to go.

1. The first time through use the single block mode. Press the RUN SINGLE

BLOCK key.
2. Second time through use the continuous run mode. Press the RUN

CONTINUOUS key.

• Note the dial reading on the knee dial. Drop the knee down a sufficient
distance so that no cutter will contact the workpiece. Record the distance. Then
run the program through in the continuous or single-block mode as you choose.
If everything looks OK, then raise the knee back to its former position.
• It is always wise to first run a dummy part in wood or machinable wax—just in
case an error remains.

• After running the first genuine workpiece, perform a First Article Inspection
Report, measuring each dimension and comparing it to the print dimension and
tolerance. Make any necessary adjustments to the program and/or setup. Then
run and check another piecepart. Once a good part is obtained, the rest of the
run will be just like it.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp8.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 8 Running Programs Page 3 of 3

Last updated on Friday, January 14, 2005 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp8.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 9 PC-CNC Data Transfer Page 1 of 4

T able of
Contents
Bridgeport Heidenhain CNC Mill
Programming & Operating Instructions
Introduction

Manual Chapter 9
Operation
Data Transfer: PC <to/from> CNC
ISO Format
Programming
The Ins and Outs of Remote Data Input and Output Using PCs
Canned
Cycles
PC to Heidenhain Data Transfer
Subroutines
<S Loops
The following procedures have been written to reflect the PC hardware and software
Console available in the ETSU Machine Tool Lab (Room 103 Wilson-Wallis Hall). As one or
Editing
more of the computers in the lab will be undergoing serious upgrades, these
Setting directions may be out of date. Ask your instructor for specific instructions on the
current data transfer procedures.
Running
Programs 1. Ensure the PC-Heidenhain Serial Communications Cable is connected to the
PC CMC
ÿ+ back of the Heidenhain Controller and to either the appropriate COMM port on
Data Transfer the PC or to the serial stitchbox.
fpcto 2. If applicable, set the lab's serial A-B-D-E switch box to the
Heidenhain Heidenhain/Bridgeport position (E).
Heidenhain 3. If applicable, set the serial A-B switch box to the proper PC.
to PC 4. For PCs running DOS/Windows 3.x
Demo
Program • At the PC's DOS prompt, type in HEID-24 and press the
[ENTER] key to run a batch file that sets up the correct
Credits &
Copyright communications parameters (MODE COMx 2400 E 7 2).
• Install the disk containing your program
• Use Norton Commander to locate and highlight your program's
file name.

◦ If the Norton Commander DOS shell is not


active, type in NC and press the [ENTER] key.
◦ Display your floppy disk's files in the left panel
by pressing the [ALT] key and at the same time
the F1 key. Then type in A (for 5-1/4" disk) or B
(for 3-1/2" disk).
◦ Press the TAB key to move back and forth
between the left and right panels.
◦ Use the cursor arrows to highlight your
program's filename.

• If you do not know the program identifier number (the number at


the top of the file immediately after the '%' character, view the file
by pressing the F3 function key (press [ESC] key to exit).

4. At the Heidenhain controller

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp9.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 9 PC-CNC Data Transfer Page 2 of 4

• Press the EDIT key.

• Press the EXTernal communications key.


• Use the cursor keys to highlight the "READ-IN SELECTED PROGRAM"

prompt and press .


• Key in the number to be assigned to the program by the controller—its

identifier—and press .

The number MUST be exactly the same as the program identifier number
contained in the first (and last) statement in your program.

The number must not already be in use. If necessary, either (a) go back to the
computer and edit the statement, changing the program number to one not
already in use or (b) delete the conflicting program from the Heidenhain's
memory.

5. Back at the PC, type in from the DOS prompt:

COPY <filename> COM2: and press the [ENTER] key.

6. At the Heidenhain controller

• The CRT will read "EXTERNAL DATA INPUT" and the


program's number while the program is being "read-in" to the
controller. Upon completion of the transmission, the program will
be displayed on the CRT in the edit mode.

It is possible that the transmission might be interrupted by a syntax


DEL
ÿ
or data error. Pressing the Delete Block key will display
the last line in the program that was accepted. The error lies in the
following block.

• Transfer the program into the run buffer then dry run the program
for an error check. If everything looks OK then go for broke.

Heidenhain to PC Data Transfer

1. Set the lab's serial A-B-D-E switch box to the Heidenhain/Bridgeport position
(E).
2. Set the serial A-B switch box to the proper PC.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp9.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 9 PC-CNC Data Transfer Page 3 of 4

3. For PCs running DOS/Windows 3.x

• At the PC's DOS prompt, type in RECEIVE and press the


[ENTER] key to run a batch file that runs the PROCOMM utility.
• Set the COM2 serial port parameters for 2400, E, 7, 2 by typing
the following:
Simultaneously press [ALT] - [ P ]
3 [ENTER]
19 [ENTER]
21 [ENTER]
[ESCAPE]

• Press the [PAGE DOWN] key to activate the receiving (or


DOWNLOAD) mode.

• Press 7 to activate the ASCII character mode.

• Type in the appropriate floppy drive (A: or B: NOT C: or D:) and


the filename you wish to use for the program and press the
[ENTER] key. The filename need not be the same as the
Heidenhain's program number identifier.

4. At the Heidenhain controller:

• Press the EDIT


<9> key

• Press the EXT


E>| key.

• Use the cursor EE0B keys to highlight the "READ-


OUT SELECTED PROGRAM" prompt and press .
• Use the cursor keys to highlight the file selected for export and

press . The file is now being sent and should be appearing


on the microcomputer's screen.

5. Back at the PC

• After the transmission is completed, press the [ESCAPE] key to


close the file and release the Heidenhain from the PC.
• Simultaneously press [ALT] - [ X ] to exit from PROCOMM and
return to the DOS prompt.
• Use the Norton Commander or the DOS DIR command to bring
up a directory of your floppy disk's files. Verify that your file is
contained therein.

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp9.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Chapter 9 PC-CNC Data Transfer Page 4 of 4

Last updated on Feb. 27, 2003 by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-chp9.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Demo Program Page 1 of 4

Table of Bridgeport Heidenhain CNC Mill


Contents
Programming & Operating Instructions
Introduction

Manual Demo CNC Program


Opierati on
for the Heidenhain/Bridgeport Interact Controller
ISO Format
Programming
ISO (RS-274-D) FORMAT
Canneid
Cycles
Subroutines o-coaoo&D-aoocD-ao

(S Loops
A A
Consol e
Editing COO
Setting
TLOs A A
Runnin'9
Pr ograms *+
Click here or on the figure for a PDF version of the complete, dimensioned part drawing
Pt> CNC
ÿ

PDF files require the Free Adobe Acrobat Reader


bata Transfer
Demo
W Get Acrobat'
Adobe Reader
P
Creditis & B/1CK TQ TOP
Coipyright

G-Codes Used

G00 = Rapid travel


G01 = two- or three-axis linear move at feedrate
G02 = clockwise circular interpolation
G03 = counter clockwise circular interpolation
G07 = single axis linear move at feedrate
G16 = polar arc
G17 = X/Y plane; Z-axis = spindle
G25 = corner rounding with R
G38 = Stop--as for tool or part change
G40 = Tool radius compensation cancel
G70 = Inch format
G76 = Rectangular pocket canned cycle
G78 = Circular pocket canned cycle
G79 = Cycle call
G83 = Drill canned cycle (peck & no peck)
G90 = Absolute positioning
G91 = Incremental positioning
G98 = Preface to define label (subroutine or loop)
G99 = Tool definition preface

B./CK TQ TOP

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-demo.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Demo Program Page 2 of 4

Cannned Cycle Parameter Identification

G83 Drill Cycle


P01 = Clearance plane to Z-zero; set at zero
P02 = Hole depth
P03 = Peck increment
P04 = Dwell (sec)
P05 = Drill feedrate

G77 (CW) & G78 (CCW) Circular Pocket Cycle


P01 = Clearance plane to Z-zero; set at zero
P02 = Pocket depth
P03 = Peck increment
P04 = Downfeed feedrate
P05 = Pocket radius
P06 = X/Y feedrate

G75 (CW) & G76 (CCW) Rectangular Pocket Cycle


P01 = Clearance plane to Z-zero; set at zero
P02 = Pocket depth
P03 = Peck increment
P04 = Downfeed feedrate
P05 = 1st (longer) side axis & length
P06 = 2nd (shorter) side axis & length
P07 = X/Y feedrate

-gaaasI
M-Codes Used

M03 = Spindle on
M25 = Retract quill
M30 = Rewind memory = end of MAIN program

Cutting Tools

T1 = 120 degree point engraving cutter for border


T2 = 1/4" stubby drill
T3 = 90 degree engraving tool for triangles
T4 = 3/8" 2-flute end mill for circular pockets
T5 = 1/2" 2-flute end mill for rectangular pocket

Demo Program in ISO Format

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-demo.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Demo Program Page 3 of 4

Note
All comments ('$' and subsequent characters) must be removed
prior to uploading program into the Heidenhain controller.
Click here to download a zipped copy of 274UTILS

%1 G70 $ Program #1; Inch


N10 G99 T1 L-2 R+0. $ Define T1; TLO; Radius
N20 G99 T2 L-2 R+0.25 $ Define T2; TLO; Radius
N30 G99 T3 L-2 R+0. $ Define T3; TLO; Radius
N40 G99 T4 L-2 R+0.1875 $ Define T4; TLO; Radius
N50 G99 T5 L-2 R+0.25 $ Define T5; TLO; Radius
N60 G17 G00 G90 X+0 Y+0 M25 $ Z=Spndl; X/Y@Origin;Retract quill
N70 T1 S1000 $ Activate T1's TLO; RPM
N80 G38 $ Stop--for tool change
N90 L10 $ Call label (subr) 10 = border
N100 T2 G17 S2000 $ Activate T2's TLO; Z=spindle; RPM
N110 G38 $ Stop--for tool change
N120 G00 G90 X+3 Y+10 $ Rapid X/Y to 1st hole location
N130 Z+0.1 $ Rapid Z down to clearance plane
N140 G83 P01 0 P02 +0 P03 +0 P04 0 P05 200 $ Define drill cycle
N150 G79 M03 $ Cycle call (drills hole); spindle on
N160 G98 L20 $ Define label 20 (a loop)
N170 G91 X+0.5 M99 $ Rapid incr. X.5; cycle call (dr. hole)
N190 L20.13 $ Call label 20 as loop w/ 13 repeats
N200 G00 G90 X+0 Y+0 M25 $ Retract quill; rapid to origin
N210 T3 G17 S3000 $ Activate T3's TLO; Z-axis=spindle; RPM
N220 G38 $ Stop--for tool change
N230 L30 $ Call label (subroutine) 30--triangles
N240 T4 G17 S2000 $ Activate T4's TLO; Z-axis=spindle; RPM
N250 G38 $ Stop--for tool change
N260 L40 $ Call label (subroutine) 40--cir. pocket
N270 T5 G17 S2000 $ Activate T5's TLO; Z-axis=spindle; RPM
N280 G38 $ Stop--for tool change
N290 L50 $ Call label (subr.) 50--rect. pocket
N300 G38 M30 $ Stop; rewind memory
$ End of Main Program
N310 G98 L10 $ Define label (subr) 10--border
N320 G00 G90 X+1 $ Rapid X to LH border w/Y @ origin
N330 Z+0.1 M03 $ Rapid Z down to Z+.100; spindle on
N340 G07 Z+0 F200 $ Feed Z down to cutting plane @ 20 IPM
N350 G01 X+1 Y+11 F400 $ Linear feed LH border @ 40 IPM
N360 G25 R1 $ Corner round w/1" radius
N370 G01 X+11 Y+11 $ Linear feed upper border
N380 G02 X+12 Y+10 R+1 $ Arc w/end point & radius
N390 G07 Y+2 $ Linear feed RH border
N400 I+11 J+2 $ Circle (arc) center location
N410 G02 X+11 Y+1 $ Arc w/end point & using center loc.
N420 G07 X+2 $ Linear fed lower border
N430 I+2 J+2 $ Polar pole location
N440 G16 R+1 H-180 $ Polar arc cut
N450 G00 G91 X-0.1 $ Incr. rapid pull away from LH border
N460 G00 G90 X+0 Y+0 M25 $ Retract quill; rapid to origin
N470 G98 L0 $ End of subroutine 10

N480 G98 L30 $ Define label (subr) 30--triangles


N490 G00 G90 X+3.5 Y+8.5 $ Rapid X/Y to 1st triangle center
N500 Z+0.1 M03 $ Rapid Z down to clearance plane
N510 L3 $ Call subr. 3--triangle geometry
N520 G00 G90 X+9.5 Y+8.5 $ Rapid X/Y to 2nd triangle center
N530 L3 $ Call subr. 3--triangle geometry
N540 G00 G90 X+9.5 Y+3 $ Rapid X/Y to 3rd triangle center
N550 L3 $ Call subr. 3--triangle geometry

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-demo.htm 06-Mar-17
Heidenhain CNC Mill Pgrm & Op Instr - Demo Program Page 4 of 4

N560 G00 G90 X+3.5 Y+3 $ Rapid X/Y to 4th triangle center
N570 L3 $ Call subr. 3--triangle geometry
N580 G00 G90 X+0 Y+0 M25 $ Retract quill; rapid to origin
N590 G98 L0 $ End of subroutine 30

N600 G98 L3 $ Define label (subr.) 3--triangle geom.


N610 G00 G91 X-0.839 Y-0.4844 $ Rapid X/Y to triangle LH corner
N620 G07 G90 Z+0 F200 $ Feed Z down to cutting plane
N630 G01 G91 X+1.678 F400 $ Feed incr along base
N640 X-0.839 Y+1.4532 $ Feed incr along RH slope to apex
N650 X-0.839 Y-1.4532 $ Feed incr along LH slope to base
N660 G00 G91 Z+0.1 $ Incr. raise cutter to clearance plane
N670 G00 G91 X+0.839 Y+0.4844 $ Rapid X/Y to triangle center.
N680 G98 L0 $ End of subroutine 3

N690 G98 L40 $ Define label (subr.) 40--cir. pockets


N700 G00 G90 X+3.5 Y+6 $ Rapid to LH pocket center
N710 Z+0.1 $ Rapid Z-axis down to clearance plane
N720 G78 P01 0 P02 +0 P03 +0 P04 100 P05 1 P06 200 $ Def. pocket cycle
N730 G79 M03 $ Cycle call; spindle on (mill 1st pkt)
N740 G00 G90 X+9.5 Y+6 M99 $ Rapid to & mill RH pocket.
N750 X+0 Y+0 M25 $ Retract quill; rapid to origin
N760 G98 L0 $ End of subroutine 40

N770 G98 L50 $ Define label (subr.) 50--rect. packet


N780 G00 G90 X+6.5 Y+6 $ Rapid X/Y to pocket center
N790 Z+0.1 $ Rapid Z-axis down to clearance plane
N800 G76 P01 0 P02 +0 P03 +0 P04 100 P05 X+3 P06 Y+2 P07 400 $ Def. pock
N810 G79 M03 $ Cycle call; spindle on
N820 X+0 Y+0 M25 $ Retract spindle; rapid to origin
N830 G98 L0 $ End of subroutine 50

N9999 %1 G70 $ End of program incl/subroutines

-hftU'IJ.IJ.J-

Last updated on Jan. 17, 2005, by Bill Hemphill

http://faculty.etsu.edu/hemphill/entc3710/heid-op/h-demo.htm 06-Mar-17
CORNER ROUNDING ARC

-11.1
- ARC W/ RADIUS

-7.000- ED. SR. -


O O O O O O O O O O O O O O

11

-6.000" TYP.

f 2.000" 16
+
7.500
V
10.000"
2.0 D A. TYP

R TYP 1.687" TYP.

-X
: -OLAR COORDINATE ARC ARC W/ CARTESIAN CENTER

START HERI
HEIDENHAIN ENE DEMO
SUBROUTINES TECHNOLOGY 3710
10 = PERIPHERY DIMENSIONS IN INCHES
20 = HOLES W/ LOOP
30 = TRIANGLES IW/ SUBR 3) TOLERANCES UNLESS NOTED:
40 = CIRCULAR POCKETS DECIMAL = +/- 0.000
50 = RECTANGULAR POCKET
ERACTIONAL = +/- 1/64
ANGULAR = +/- 0.E DEG.

EAST TENNESSEE
STATE UNIVERSITY
E:\WEBSHARE\WWWROOTENTC3710\lmages\CADD\Appndx-2.vcd 8/24/1999
Schematic of PC - Heidenhain Controller
Serial Communications Cable
PC Heidenhain
COMM Port Controller
Shield/Ground 1 1 Shield/Ground
Blue 2 2 Red
Red 3 3 Blue
4 4
5 5
6 6
Black 7 7 Black
20 20
PC Comm Mode:
2400 E 7 2

Você também pode gostar