beautypg.com

Positioning with manual data input (mdi) – HEIDENHAIN TNC 320 (340 551-01) User Manual

Page 50

background image

50

3 Positioning with Manual Data Input (MDI)

3.1 Pr

ogr

a

mming and Ex

ecuting Simple Mac

h

ining Oper

ations

3.1 Programming and Executing

Simple Machining Operations

The Positioning with Manual Data Input mode of operation is
particularly convenient for simple machining operations or pre-
positioning of the tool. You can write the a short program in
HEIDENHAIN conversational programming and execute it
immediately. You can also call TNC cycles. The program is stored in
the file $MDI. In the Positioning with MDI operating mode, the
additional status displays can also be activated.

Positioning with Manual Data Input (MDI)

Select the Positioning with MDI mode of operation.
Program the file $MDI as you wish.

To start program run, press the machine START key.

Example 1

A hole with a depth of 20 mm is to be drilled into a single workpiece.
After clamping and aligning the workpiece and setting the datum, you
can program and execute the drilling operation in a few lines.

First you pre-position the tool in L blocks (straight-line blocks) to the
hole center coordinates at a setup clearance of 5 mm above the
workpiece surface. Then drill the hole with Cycle 1 PECKING.

Limitation

FK free contour programming, programming graphics and
program run graphics, subprograms, program section
repeats, and path compensation cannot be used. The
$MDI file must not contain a program call (PGM CALL).

Y

X

Z

50

50

0 BEGIN PGM $MDI MM

1 TOOL DEF 1 L+0 R+5

Define tool: zero tool, radius 5

2 TOOL CALL 1 Z S2000

Call tool: tool axis Z

Spindle speed 2000 rpm

3 L Z+200 R0 FMAX

Retract tool (F MAX = rapid traverse)

4 L X+50 Y+50 R0 FMAX M3

Move the tool at F MAX to a position above the hole,

Spindle on

6 CYCL DEF 200 DRILLING

Define DRILLING cycle

Q200=5

;SET-UP CLEARANCE

Set-up clearance of the tool above the hole

Q201=-15

;DEPTH

Total hole depth (algebraic sign=working direction)