TNC 2500 Iso
TNC 2500 Iso
A
User Manual IS0 Programming
Screen displays
PROGRflM
RUN/FULL
SEQUENCE
Operating mode Error messages/dialog Preceding block Current block Next block Block after next
line
17410 G71 m N10 C99 11 L+0 R+2 m N20 Tl f17 S1000 4~ N25 t00 540 f90 X+10 Y+10 N30 G54 X+100 Y+20 4~ N40 528 X Af NSQ I+100 J+0 # N60 G73 G90 H+315 t ---------------------------ACTL. cc Tl
L t&N-
M03
2 x + Y + 2
98,008 1,560
YN
R + t
ROT SCL F
Status drsplay: ACTL.: x Y z etc. *: N: S: ROT: SCL: cc: T...: z: s: F: M: Type of position display, switchable with MOD (further displays: NOML, DIST., LAG - see index General Positron coordinates 1 Control in operation display Axis is locked display Datum shift, shown as an index on the shrfted axis. Mirror image, shown as an Index on the mirrored axis Basic rotation of the coordrnate system Scaling Circle center or pole Called tool Spindle axis Spindle speed Feed rate Spindle status (M03,
Information)
M04.
I 3l
I
4 5 6
Determine
A20
/ Switch
on machine
Ml
Clamping
instructions
7b Align workpiece, insert zero tool, mark workpiece and set datum Enter program via keyboard or from external Manual operation Manual Machine handbook: Tool change Back fold-out page, program example; Programming and edrtrng Programming, Test run run Programming, Graphic simulation Ml3
PI PI24 ! I
11
Test run without tool in single block mode Program run, Single block
12
Optimize
program
Programming editing
and
13
Insert tool and machine workpiece automatic program run Program run, Full sequence
El III 3 Dl
Parameter
13 mIDI 0 . 61 a program
Polar coordinate angle/ Angle of rotatron in cycle G73 X, Y, Z coordinates of a circle center
Set label number with G981 Jump to label number/ Tool length wrth G99 Polar coordrnate radius/ Rounding-off radius with G25, G26, G27l Chamfer with G24/ Circle radius with G02, G03. GO5 Tool radius with G99/ Tool definition Tool call with G99/
Program mil HI IB fa
Management Naming/selectrng Clear program Programmable External program Supplementary program call
Axis keys Graphics 11 Em I EE! Graphic operating modes Number Decimal keys
q
Override @ ns%
Start graphic
Transfer actual positron to memory m m ?~~~rt?e~certain block or cycle No entry, Enter data, Terminate block entry Clear entry Delete block
q
Feed rate override FO/oSpindfe speed override MrnB
Screen
control brightness
Contents
General
Information
Encoders
Machine
Operating
Modes
Swatch-On Manual Operation 3D Touch Probe Datum Setting Electronic Handwheel, Incremental Jog Positronrng with Manual Data Input Program Run
Programming
Modes
Programming in IS0 Program Selection Tool Defrnrtron Cutter Path Compensation Tools Feed Rate F/Spindle Speed S/Miscellaneous Functions M Programmable Stop/Dwell Time Path Movements Linear Movement, Cartesian Circular Movement, Cartesian Polar Coordinates Contour Approach and Departure Predetermined M Functions Program Jumps Program Calls Standard Cycles Coordtnate Transformations Other Cycles Parametric Programming Programmed Probing Teach-In Test Run Graphic Simulatron External Data Transfer Address Letters in IS0
PI P6 PI0 PI5 PI8 P20 P21 P22 P25 P30 P41 P48 P51 P55 P64 P65 P93 PI 02 PI05 PI 20 PI 23 PI 25 PI 26 PI 29 PI 37
Manufacturers Certificate This device is noise-suppressed In accordance with the Federal German regulations 1046/1984. The Federal German postal authorities have been notified of the market Introduction of this unrt and have been granted permission to test the series for compliance with the regulations. If the user Incorporates the device into a larger system then the entire system must comply wrth said regulations.
General
Information
(A)
Introduction Brief description Machine operating modes 3D Touch Probe Systems FE 401 Floppy Disk Unit HR 130/HR 330 Electronic of TNC 25008 modes
1 3
4
Programming Accessories:
5 6 7 7
Handwheels
MOD
8 9 10 11
Linear
and Angle
Encoders
18
Cutting
General
Information
Introduction
Description
The TNC 2500B from HEIDENHAIN is a shop-floor programmable contouring control wtth up to 4 axes for milling and boring machines as well as for machining centers. It is conceived for the man at the machine, featuring conversational programming and excellent graphic simulation of workpiece machrn ing. Its background programming feature permits a new program to be created (or a program located in memory to be edited) while another program is being executed. Besides fixed cycles, coordinate transformations and parametric programming, the control also includes functions for 3D touch probes. Programs can be output to peripheral devices and read into the control via the RS-232-C allowing programs to be created and stored externally. data interface,
or
In addition to programs written in conversational the snap-on keyboard or via the data Interface. reside in memory at the same time.
format, IS0 programs can also be entered, either via Both interactive format and IS0 format programs can
Compatibility
This control can execute programs from other HEIDENHAIN functions described in this manual.
controls,
provided
they contain
only the
Structure of manual
This manual addresses the skilled machine controlled boring and mrllrng. TNC beginners already worked
operator
and requires
appropriate
knowledge
of non-NC-
are advised to work through this manual and the examples with a HEIDENHAIN TNC, you can skip familiar topics.
systematically.
If you have
This manual deals with programming in IS0 format. HEIDENHAIN described in detail in a separate user manual for the TNC 2500B. The sequence of chapters in this operating manual IS according functions, as well as according to the logical working order: l Machine operating modes: Switch-on - setup - set display value - machine workpiece l Programming modes: Programming and edittng - test run
conversational
programming
is
to control
operating
modes
and key
The followrng
symbols
Empty square: cl Square with symbol, e g. Ckcle with symbol, e.g. The pages of this manual are distinctly
panel
panel
buttons
on the machine
operating
panel
marked
Program
are printed
General
Information
Page Al
Introduction
Program Examples
The example programs in this manual are based on a uniform blank size and can be displayed on the screen by adding the following blank definition (see index Programming Modes, Program Selection): G30 G17 X+0 G31 G90 X+100 Y+O Z-40 Y+lOO Z+O
The examples can be executed on machtne tools with tool axis Z and machining plane XY If your machine uses a different axis as the tool axis, this axis must be programmed instead of Z and likewise the correspondrng axes for the machining plane. Beware of collisions when executing the example programs!
protect
and machine
parameters
against
the message BUFFER BATIERY the batteries. once a year. you must change should Battery type: 3 AA-size batteries, leak-proof IEC designation LR6
EXCHANGE
The batteries
be replaced
Battery replacement
is described
in the manual
of the machine
manufacturer
Error messages
The TNC checks input data and status of the contra of the control: and machine. Remedy: Clear the value with the CE key, enter and confirm the correct value. Cause and reaction Input range exceeded
The permitted range of values is exceeded: e.g. feed rate too high. The value is not accepted and an error message appears. E.g. GO0 X+50 X+100
During TEST RUN or during program execution, the TNC stops with an error message before executing the corresponding block and displays the block number in which an error was found. Malfunctions that affect operating blinking error messages. Note down the error message! safety cause
Change to the PROGRAMMING AND EDITING operating mode. The error can normally be found either in the block with the displayed block number or in a previously executed block. Then: correct the error. Operating mode Full sequence and restart. Switch off the machine or the control.
Remove the fault if possrble. Attempt to restart If the program then runs correctly, was only a spurious malfunction. the problem
If the same error message comes up again, contact the customer service of the machine manufacturer.
Page A2
General
Information
TNC 2500B
Brief description
Control type Contouring control for 4 axes Traversing possibilities Background programming Graphics Program Input input Straight lines In 3 axes Circles in 2 axes Helix Programming Graphic and program execution simultaneously run operating to IS0 modes
simulation format
In HEIDENHAIN
resolution memory
Program Tools
Programmable
Contour
functions
tangen
Straight line, chamfer Circle (input. center and end point of the arc or radius and end point of the arc), circle connected tially to the contour (input: arc end point) Corner rounding (input: radius) Tangential approach and departure from a contour jumps Subprograms, program section repeats, call of other programs
Program
Fixed cycles
Drilling cycles for pecking, tapping Milling cycles for rectangular pocket, circular pocket, slot Subcontour List cycles for milling pockets and islands with irregular Move and rotate the coordinate For 3-D touch trigger Mathematical I& / I&+); range Max. f 30000 probe system, mirror image, scaling
contours
functions (= / + / - / x / t / sin / cos / angle a from axis sections parameter comparison (= / + / > / <) mm or 1180 inches or 1180 rnches/min
data
Hardware
Component Block processing Control loop cycle time Data interface Ambient temperature units time 6 ms RS232-C/V.24 Data transfer Logic unrt, control 1500 blocks/min panel and monochrome (40 ms) screen
speed.
max. 19200
baud
General
Information
Page A3
Machine modes
Manual operation
operating
The axes can be moved via the external axis drrection buttons. Workpiece datum can be set as desired.
MRNURL
OPERRTION
RCTL.
x Y
+ +
49,258
23,254 15,321
Iii0
MS/9
Electronic Handwheel
The axes can be moved either via an electronic handwheel or via the external axis direction buttons. It IS also possible to position by defined jog Increments.
INTERPOLRTION
FRCTOR:
RCTL.
+ +
49,258
Y 0
23,254 15,321
Id0
MS/9
The axes are positioned according to the data keyed In. These data are not stored.
MRNURL F200 + + m
DRTR
INPUT
Y z A
+ +
MS/9
Program
run
of the control
is
PROGRRN X7410 Nl0 N20 N25 N30 N40 NSO N60 G71 G99 RUN/FULL #c SECIUENCE
Full sequence
After starting vra the machine START button, the program IS automatically executed until the end or a STOP is reached. Each block is started separately START button. with the machrne
Tl L+0 R+2 stf Tl G17 Sl000 #c EBB G40 G90 X+10 Y+lQ GS4 X+100 Y+20 #f
628 X S Jt0
M03
Single fia 1% i
block
#c
Y R t t 8,200 0,180
RCTL.
MS/9
Page A4
General
Information
Programming
modes
Part programs can be entered, looked over and altered in the Programming and editing operating mode. In addrtion, programs can be read in and output via the RS-232-C data interface.
PROGRAMMING
RNO
N10 G99 Tl L+0 N20 Tl G17 Sl000 s N2.5 G00 G40 G90 X+10 N30 654 X+100 Y+20 * N40 G28 X 46 N50 It100 Jt0 #c N60 673 G90 Ht315 so __-----------------_____________ RCTL. E( 2 t + 9,375 8,985 Y R
t t
8,200 0,180
MS/9
Test run
In the Test run operating mode, machining programs are analyzed for logrcal programming errors, e.g. exceeding the traversing range of the machine, redundant programming of axes, certain geometrical incompatibilities etc.
TEST
RUN
Nl0 G99 Tl L+0 Rt2 * N20 Tl G17 Sl000 * N2S EBB G40 G90 X+10 Yt10 N30 G54 X+100 Yt20 +B N40 G28 X # N50 It100 Jt0 * N60 G73 G90 Ht315 * ____----------__________________ FICTL. El 2 t t 9,375 8,985 Y R t t
M03
8,200 0,180
MS/9
Test graphics
In the Program run operating modes full sequence and single block, you can graphically simulate machining programs via the GRAPHICS keys. Display plan l view l 3-D
l
GRAPHICS
indication
In the Programming and editing mode, programs can be read-in from an external storage medium and read-out to an external unit. Data transfer takes place via the RS-232-C data interface. In the Program run, single block and Program run, full sequence modes of operation it is possible to read-in programs whose size exceeds the controls memory block by block for simultaneous execution.
1
I Page A5
General
Information
Manual
use
posttron line 0 angle l corner point 0 circle radius and circle center The probing functions allow compensation of workpiece misalignment and automatic setting of the position displays to help you setup work pieces more easily, quickly and accurately. The probing functions can also be used for measurements on the workpiece.
Program
run
You can program positron measurements in the Programming and editing operating mode. This feature can be used with Q parameter programming to execute measurements before, during and after machining a piece (see index Programming and Editing, Programmable probing function and Parameter programming).
TS 120
HEIDENHAIN offers touch probes in various versions. There are different clamprng shafts to affix the probe head in the spindle like a tool. The stylus is replaceable. Standard versions are: TS 120 Touch Probe System 120 with cable connection and interface incorporated into probe.
electronics,
TS 511
Touch Probe System 511 with infrared transmission, separate interface electronrcs and transmitter/receiver unit. This probe head has a transmitter and receiver window (for the triggering signal) on one side and another transmitter window offset by 180. The side with the transmitter and receiver window must be pointed towards the transmitter/receiver unit during measurement. TS 511
are required
by the machine
tool manufacturer
of a
Page A6
General
Information
Programs written at off-line programming stations can also be stored on diskette with the FE 401 and read into the control as needed. In the case of extremely long programs which exceed the storage capacity of the TNC, the FE 401 can be used to transfer a program blockwrse into the control while simultaneously executing it. A second drskette drive is provided for backing up stored programs and for copying purposes
FE 401 Floppy Disk Unit with two drives 3 l/2 inch diskette, I approx. double-sided, 135 TPI
capacity
790 KB (25000
I Two RS-232-C
Handwheel
The control can be equipped with an electronrc handwheel for better machine setup. Two versions of the electronic handwheel are available: Designed to be incorporated into the machine control unit. The axis of control IS selected at the machine control panel. Includes keys for axis selection (A), axis drrection (B). rapid traverse (C). emergency stop (D). magnetic holding pads (E) and enabling switch (F).
HR 130
HR 330
HR 130
HR 330
General
Information
Page A7
MOD Functions
In addition to the main operating modes, the TNC has supplementary MOD functions. These permit additional displays and settings.
operating
modes or so-called
Selecting
Initiate the dialog I VACANT MEMORY 160044 Select MOD functions erther vra arrow keys or via the MOD key (only paging forward possible).
Terminating
Transfer numerical
Vacant
memory
of free characters
in the program
memory
is displayed
VACANT
You can use this MOD functron to switch the control between conversational and IS0 format (ISO). Switchover is performed with the ENT key.
format
(HEIDENHAIN)
Baud
rate
The transfer
is specified
with BAUD
RATE
RS-232-C interface
can be switched
via KS-232-C
interface
to the following
operating
modes
with the
operation
devices.
NC software number
The software
number
is displayed
The software
number
of the integrated
PLC is displayed
User parameters
Up to 16 machine parameters can be accessed by the machine operator with this MOD function. These user parameters are defined by the machine manufacturer - he may be contacted for more Information.
Code
number
A code number can be entered with this MOD function: l 86357: cancel erase and edit protection
l
123: select the user parameters. These user parameters are accessible
on all controls
Page A8
General
Information
X 15.789 1I
0 10
"'1""1'Irn
20
30
0.6216
0.5
--J--YlCtl
1
Position displays
The following
position
displays
0 nominal position of the control 0 difference nominal/actual positron (lag distance) 0 actual position 6 remaining distance to programmed position 0 position based on the scale datum
A = last programmed position (starting position) B = new (programmed) target position, which is presently targeted W = Workpiece datum for the part program M = scale datum (machine-based) Switchover is with the ENT key
The character height of the position display can be changed In the operating modes Program run/single block or Program run/full sequence. The position display shows 11 program blocks with small characters, two with large characters. Switchover is with the ENT key.
General
Information
Page A9
-0
8 Effectiveness
= scale datum
The entered limits do not account for tool compensations. Like the software limit switches, they are only effective after you traverse the reference points. They are reactivated with the last entered values after a power interruption.
Determine values
Traverse to the end positions of the axis/axes which is/are to be limited. Note the appropriate REF displays (with signs). Continue pressrng unttl LIMIT appears Enter value, or select the next limit
Enter
values
terminate
L
the input
Certain machine parameters which determine functions gramming and displays are accessible for the user.
dealing
procedures,
pro-
Examples
l l l
Scaling factor only effective on X, Y or on X, Y, Z. Adapting the data interface to different external devices. Drsplay possibilities of the screen.
Accessibility
parameters
Access by entering the code number 123. This access is possrble on every control (see code number
Access to addttronal parameters via the MOD function User parameters. You can only access via the MOD function if the manufacturer has made the machine accessible for this purpose. manufacturer can inform you about the sequence, meaning,
Only these machine parameters may be changed change any non-accessible machine parameters.
the user
Selection
Select the user parameter. Continue pressing until the desired USER PARAMETER or dialog appears.
Enter numbers.
Terminate
General
Information
Page A 11
User Parameters
After entering the code number 123 vra MOD, the following machine parameters and the parameters the data interface (see index Programmrng Modes, External data transfer) can be selected and changed. Measuring with the 3D touch Function probe Probe system selectron Probe system: feed rate for probing Probe system: measuring distance Parameter no. 6010 6120 6130 6140 Input 0 + Cable transmrssion 1 + Infrared transmrssron 80 to 3000 [mm/mm] [mm] [mm] Input values
for
0 to 30000.000 0 to 30000.000
Probe system: set-up clearance over measuring point for automatic measurement Probe system: probing Display and programming Function Programming station rapid traverse for
6150
80 to 29998
[mm/min]
Input 0 * Control 1 + Programming 2 + Programming 0 to 255 0 --f First dialog language 1 + Second dialog language 0 + Inhibited 1 + Uninhibited 0 + No central tool file 1 to 99 = Central tool file Input value = Number of tools 0 + No display 1 + Display (English)
Block number
increment language
Inhibit PGM Input for PGM no. = user cycle no Central tool file
Display of the current feed rate before start in the manual operating modes (same feed rate in all axes, i.e smallest programmable feed rate) Decimal character
7270
comma point
Display increment Clearing the status display and the Q parameters with M02, M30 and end of program Graphics (display mode) type
Page A 12
General
Information
User Parameters
Machining program
and run
Function Scaling cycle is effective on 2 axes or 3 axes SL cycles for milling pockets with irregular contour Rough out cycle: direction for pilot milling of contour
t 0 - Pilot mrllrng for pockets for islands t 1 + Pilot milling for pockets for islands
Rough out cycle: sequence for rough out and pilot milling
t 0 + First mill a channel around the contour, then rough out the pocket t 2 + First rough out the pocket, then mill a channel around the contour t 0 + Joining compensated contours t 4 + Joining uncompensated contours to- Rough out and pilot millrng are performed continuously over all infeeds Pilot milling and then rough out are performed for every infeed (depending on brt 1) prior to the next infeed
Rough out and pilot milling to pocket depth or for every infeed
t8-
3.1 to 1.414
Programmed
t 0 + Programmed stop at MO6 t 1 - No programmed stop at MO6 t 0 + No cycle call, normal output of M89 at start of block + 2 + Modal cycle call at end of block 0 to 179.999 0 + 0 to 359.999 1 + f 30000.000
7460 7470
General
Information
Page A 13
User Parameters
Hardware
Input
Input values
Feed rate override, if rapid traverse key is pressed in operating mode Program run Feed rate override in 2% increments or 1 % increments Feed rate override, if rapid traverse key and external direction buttons are pressed Handwheel 7640
+ 0 + Override + 1 + Override
inactive active
+ 0 + 2% increments + 2 + 1 % increments
+ 0 + Override inactive + 4 + Override active 0 = Machine with electronic handwheel 1 = Machine without electronic handwheel
Page A 14
General
Information
system
In a part program, the nominal positions of the tool (or of the tool cutting edge) are defined in relation to the workpiece; encoders on the machine axes continuously deliver the signals needed by the control for determining the current actual position. A reference system is always required be workpiece-based. for determining position. In the present case, such a system must
Cartesian coordinates
The reference system normally used is the rectangular or Cartesian* coordinate system (coordinates are those values which define a unique point In a reference system). The system consists of three coordinate axes, perpendicular to each other and lying parallel to the machine axes, which intersect each other at the so-called origin or (absolute) zero point. The coordinate axes represent mathematically ideal straight lines with divisions; the axes are termed X, Y and Z.
Righthand rule
You can easily remember the traversing directions with the right-hand rule: the positive direction of the X axis is assigned to the thumb, that of the Y axis to the index finger, and that of the Z axis to the middle finger. IS0 841 specifies that the 2 axis should be defined according to the direction of the tool spindle, whereby the positive Z direction always points from the workpiece to the tool.
Rene Descartes,
(1596 - 1650).
General
Information
Coordinates Datum
Relative tooi movement Part programs are always written with workpiecebased coordinates X, Y, Z. That is, they are written as if the tool moves and the workpiece remains still, Independent of the machine type. If, however, the work support on a given machine actually moves in any axis, then the direction of the coordinate axis and the direction of traverse will be opposite. In such a case the machine as X, Y and Z. axes are designated
For the zero point of the coordinate system, the position on the workpiece which corresponds to the datum of the part drawing is generally chosen - that is, the point to which the part dimensioning is referenced. For reasons of safety, the workpiece datum in the Z axis is almost always positioned at the highest point on the workprece. The datum position indicated in the drawing to the right is valid for all programming examples in this manual. Machining operations in a horizontal plane require freedom of movement mainly in the positive X and Y directions. lnfeeds starting from the upper edge of the workpiece Z = 0 correspond to negative posttion values. machine table
Datum
Setting
The workpiece-based rectangular coordinate system is defined when the coordinates of any datum P are known - that is, when the tool is moved to the datum position and the control sets the corresponding coordrnates (datum setting).
Page A 16
General
Information
coordinates
Absolute dimensions
The machine is to be moved to a certain or to certarn nominal coordinates. Example: GO0 G90 X+30 Y+30
position
Dimensions In this manual are given as absolute Cartesian dimensions unless otherwise indrcated.
Incremental dimensions in a part program always refer to the immediately preceding nominal position. Incremental dimensions are indicated bv the letter I. The machine is to be moved by a certain drstance: it moves from the previous position along a distance given by the incremental nominal coordinate values. Example: GO0 G91 X+10 Y+lO
It is possrble to mix absolute and incremental coordinates within the same program block. Example: GO0 G91 X+10 G90 Y+30
Polar coordinates
Posrtrons on the workpiece can also be programmed by entering the radius and the drrectron angle referenced to a pole (see index Programming Modes, Polar coordinates). I, J = Pole R = Polar radius (distance from pole) H = Polar angle (direction angle)
Y 1
J Xc/ Pole 5c I
General
Information
Page A 17
Encpders
Each machine axis requires a measuring system to provide the control with informatron position: linear encoders for linear axes, angle encoders for rotary axes.
on the actual
Grating
period
Light
source
Condenser
lens
Principle
of photoelectric
scanning
of fine gratings
LS IOIC, LS 107c
RON 706C, ROD 250C position measurement is generally based on either element (the electrical signals are
With linear
l l
axes,
a photoelectrically scanned steel or glass scale, or the high-precision ballscrew, which also functions as the moving then produced by a rotary encoder coupled to the ballscrew).
With rotary axes, a graduated disk permanently attached to the axis is photoelectrically TNC forms the position value by counting the generated impulses.
scanned.
The
Page A 18
General
Information
Encoders
are machine-based:
The datum for determination of the nominal and actual position must correspond to the workpiece datum, or be brought into correspondence by setting the correct position value (= the position value determined by the workprece datum) in any axis position. This procedure is called datum setting (or datum presetting).
Reference
marks
After the control has been switched off or after a power interruption, again. To simplify this task, the encoders possess reference marks, datum points.
The relationship between axis positions and position values which were established by the last setting of the workpiece datum (datum setting), are automatically retrieved by traversing over the reference marks after switch-on. This also re-establishes the machine-based references such as the software limit switch or tool change position. In the case of linear encoders with distance-coded reference marks, the machine axes need only be traversed by a maximum of 20 mm. For angle encoders with distance-coded reference marks, a rotation of just 20 is required. Linear encoders with only one reference mark have an RM label which indicates the position of the reference mark, while angle encoders with one reference mark indicate the position with a notch on the shaft.
Schematic
reference
marks
General
Information
Page A 19
number of teeth permitted depth of cut per tooth spindle speed feed rate
d [mm1
Spindle
speed
S [wml
Calculation Horizontal line through depth of cut 0.1 mm Vertical line through spindle soeed 500 m/min At the point of intersection, read off the feed rate F = 50 mm/min; this is multiplred by the number of teeth n = 6: F = 300 mm/min Formula d= F -orF=d.S.n S.n HEIDENHAIN TNC 2500B Prerequisites: The feed rate determination assumes that l the tool axis infeed = l/2 tool radius or l the lateral infeed = l/4 tool radius and the downfeed is selected equal to the tool radius
Page A 20
General
Information
Given: k = tool radius V = cutting speed Find: S = spindle speed Tool radius
R [mm1
Calculation
Horizontal line through the tool radius R = 16 mm Vertical line through the cutting speed V = 50 m/min Read off the value at the point of intersection: S=V approx. 500 rpm (calculated: 497 rpm)
V=2R.n.S;
2R r-r
General
Information
Page A 21
for tapping
When tapping a thread, the pitch P is given [mm/rev]. The spindle speed S and the feed rate F must be defined in the program. First, the spindle speed is determined in the appropriate diagram, then the feed rate IS found in the diagram below. Determine Given : Selected: Find : Pitch the required feed rate F in [mm/min] Example 1 [mm/rev] 100 [rpm]
p [mm/rev1
Spindle
speed
S [wl
Calculation
Horizontal line through pitch p = 1.0 mm/rev Vertical line through spindle speed S = 100 rpm Read off feed rate at point of intersection: F = 100 mm/min to tap this thread.
Formula
p=EorF=p.S
Page A 22
General
Information
Machine
Operating
Modes
(M)
Manual
Operation Traversing Spindle with the axis direction speed S/Miscellaneous buttons functions M 2 2
3D Touch or
effective length effective radius surface, Position measurement measurement corner coordinates the circle radius
Corner = datum/Determrnrng
Circle center = datum/Determining Datum setting probe system Electronic Incremental without
Handwheel/ Jog
15
axis/Spindle
speed
17 18
to entered
coordinates
Program
Q parameters
Machine
Operating
Modes
points
0
@:, MEMORY TEST
Switch
power
on.
The TNC tests the internal control electronics. The display is automatically cleared Delete the message. The control then tests the EMERGENCY STOP circuit
POWER
INTERRUPTED
RELAY
EXT.
DC VOLTAGE
MISSING
Switch
on the control
DC voltage.
MANUAL TRAVERSE
Traverse the axes over the reference in the displayed sequence. Start each axis separately or move the axes with the external direction keys.
points
by
MANUAL
OPERATION
is now selected
auto-
Encoders
The required traversing distance for linear and angle encoders with distance-coded reference marks is max. 10 mm or 20 mm/IO0 or 20. If the encoder has only one reference mark, it must be traversed.
Machine
Operating
Modes
Page Ml
Manual Operation Traversing with the axis direction buttons/ Spindle speed S/Miscellaneous functions M
The machine axes can be moved and the datum set in the Manual operating mode.
Jog mode
The machine axis moves as long as the corresponding external axis direction button is held down. Several axes can be driven simultaneously In the jog mode.
anon0 0000
00000 0000 0D00
Continuous operation
If the machine START button is pressed simultaneously with an axis direction button, the selected machine axis continues to move after the two buttons are released. Movement is stopped with the external STOP button.
A
Cl Iii
parameters
q nnn OIJOU
q OOOO
I=o/o s-0,
Feed rate override The traverse speed (feed rate) is preset by machine override (F O/o) of the control. and can be varied with the feed rate
Note
If a block number increment between 1 and 255 is selected (see index M General Information, user parameter MP 7220). the block number can be omitted since it is generated automatically pressing a function key.
by
Spindle speed
Example
NlO S 1000 *
Spindle override
variable spindle
Miscellaneous function
Example
N10 MO3 *
Combination
It is also possible
function
M in one block.
Example
Page M2
Machine
Operating
Modes
TS 511 Probing functions The touch probe functions described below can also be employed in the electronic handwheel operating mode. Pressing the TOUCH PROBE key calls the menu shown here to the right. The probing function is selected with the cursor keys and entered with the ENT key. The effective length of the probe and the effective radius of the probing ball must be calibrated once, before beginning touch probe work. Both dimensions are determined by CALIBRATION routines and stored in the control.
CALIBRATION EFFECTIVE LENGTH CALIBRATION EFFECTIVE RADIUS BASIC ROTATION SURFACE = DATUM CORNER = DATUM CIRCLE CENTER = DATUM
Calibration
can be terminated
at any
The probe head traverses to the side or upper surface of the work. The feed rate during measurement and the maximum measuring distance are set by the machine manufacturer via machine parameters. The touch probe system signals contact with the workpiece to the control. The control stores the coordinates of the contacted points. The probing axis is stopped and retracted to the starting point. Overrun caused by braking does not affect the measured result. @ = pre-positioning with the external axis direction buttons. Fl = feed rate for pre-positioning. F2 = feed rate for probing. FMAX = retraction in rapid traverse.
Machine
Operating
Modes
Page M3
Procedure
To determine the effective length of the stylus, the probe head touches the reference plane. After contacting the surface, the probe head is retracted in rapid traverse to the starting position. The length L IS stored by the control and automatically compensated during the measurements.
CALIBRATION
EFFECTIVE
LENGTH
TOOL
AXIS
= Z
0 cl
z+ z-
Enter a different
Select the Datum. DATUM +5 Enter the datum e.g. +5.0 mm. in the tool axis,
Move the touch probe to the vicinitv of the reference blane Select the direction of probe movement, here Z-. The probe head moves in negative After touching the surface and returning to the starting position, the control automatically switches to the Manual operation or Handwheel operating mode.
Display
by selecting
Calibration
effective length
again
Page M4
Machine
Operating
Modes
The probe ball is lowered Into the bore of the ring gauge. 4 points on the wall must be touched to determine the effective radius of the stylus ball. The traverse directions are determined by the control, e.g. X-t, X-, Y+, Y- (tool axis = Z). The probe head is retracted in rapid traverse the starting position after every deflection. to
The radius R is stored by the control and automatrcally compensated during the measurements.
Initiate the dialog CALIBRATION EFFECTIVE RADIUS Select probing and enter. function
TOOL
AXIS
= Z
Cl
= 10
RADIUS
RING
GAUGE
x+
x-
Y+
Y-
Traverse approxrmately to the center of the ring gauge. ect the traversing direction of the probe head (only necessary if you prefer a certain sequence or the exclusion of one probing direction). Probe a total of 4 times. After contacting the wall of the ring gauge four times, the control automatically switches to the Manual operation or Handwheel operating modes.
Display
Calibration
effective radius
again.
Error messages
All touch probe systems: TOUCH POINT INACCESSIBLE The stylus was not deflected within the measuring distance (machine parameter). STYLUS ALREADY IN CONTACT The stylus was already deflected at the start.
Touch probe system TS 511: PROBE SYSTEM NOT READY Probe system not set up correctly, or transmission path was interrupted. The transmitter and receiver window (i.e. the side with two windows) must be pointed towards the transmitter/receiver unit.
Machine
Operating
Modes
Page M5
Functions
l l l
Setting
plane @ @ 0
Measuring Measuring
Measuring positions
Initiate the dialog SURFACE = DATUM Select probing and enter. function
direction,
Move the probe head in negative Z direction. The probe head IS retracted in rapid traverse to the starting position after touching the surface.
Measured
value
r,,,,,,,
The control
displays
the measured
value.
C
You can also measure
l l
e.g. 0 mm.
Measuring distances
distances
on an aligned
workpiece
Probe the second position. The distance can be read in the Datum
Page M6
Machine
Operating
Modes
measurement
Functions
for an angular
Correct an angular misalignment (on a machine tool with rotary axis) Measure an angle.
-4
Basic
rotation
Initiate the dialog BASIC ROTATION Select probing and enter. Select the Rotation ROTATION ANGLE = 0 function
angle.
Move the probe head to the starting position 0. x+ xY+ YSelect the probing drrection, e.g. Y+
The probe head travels in the selected direction, e.g. Y+. The probe head returns to the starting position after touching the side surface
Move the probe head to the starting position 0. The probe head travels in the selected direction, e.g. Y+. The probe head returns to the second starting positron after making contact. The control automatically switches to the Manual operation or Handwheel operating mode.
Machine
Operating
Modes
Page M7
measurement
BRSIC p3
x-
ROTRTION Y+
Y-
The basic rotation is the probing function entering a O rotation The ROT display is
I ----------------____-----------ACTL* ;r q
49.258 15.321 Y + + Es , fl: OS MS/9
!&
Measuring angles
l l l
Once basic rotation is activated, all subsequent programs are executed with rotation and shown rotated in the graphic simulation.
In addition
on aligned
workpieces.
Execute a basic rotation. Display the rotation angle. Cancel the basic rotation.
Compensating misalignment
for
On machine axis.
misalignment
of a workpiece
by rotating
the
procedure: angle.
4
Execute a basic rotation. Display and note the rotation Cancel the basic rotation.
Enter the noted value for the rotary axis incrementally in the Positioning with MDI operating (see Positioning to entered position) and start the rotation with the machine START button.
mode
Page M8
Machine
Operating
Modes
Process
The probe head touches two side surfaces figure) from two different starting positions side.
(see per \I
The corner point P is computed by the control as the intersection of straight line A (contact points 0 and 0) with straight line B (contact points 0 and @).
0 c
If the probing function Corner = datum is called after performing a basic rotation (straight line A), the first side need not be contacted.
Machine
Operating
Modes
Page M9
P!?
First side face
function
CORNER
DATUM
is performed,
a basic
Initiate the dialog CORNER = DATUM Select probing and enter. function
Move the probe head to the first starting posrtion. x+ xY+ YSelect the probing direction, e.g. Y+.
The probe head travels in the selected direction. After touching the side face, the probe head IS retracted to the starting position Traverse to the second starting position and probe in the same probing direction as described above.
Second side face Move the probe head to the third starting position. x+ xY+ YSelect the probing direction, e.g. X+.
The probe head travels In the selected direction. After touching the side face, the probe head is retracted to the starting position Traverse to the fourth starting in the same probing direction Display corner coordinates/ Setting the datum DATUM DATUM X+0 Y+O position and probe as described above.
Enter the corner coordinates for X and Y if required, e.g. X+0, Y+O.
q
Confirm entries.
Page M 10
Machine
Operating
Modes
Bore, Circular
Position the probe head in the bore with the remote axis direction keys. 4 different positions are then touched by pressing the machine START button.
VA xy+
y- x+ 63 8
qQe X
Outer
cylinder
On workpieces with cylindrical outer surfaces, the probing directions must be specified for each of the four points.
VA
0 Ox+
Yx-O
0
Y+ 0
.;1
Machine
Operating
Modes
Page M 11
x+
x-
Y+
Y-
Move the probe head to the first starting position. ct the probing direction if required, X-. Probe head travels in the selected direction. After touching face, the probe head is retracted to the starting position. Traverse to the second and third starting positions and probe in different directions as described above. Move the probe head to the fourth
x+
x-
Y+
Y-
direction
if required,
The probe head travels in the selected direction. The probe head is retracted to the starting posrtion after touching the side face.
Display
Datum
setting
Cl
Confirm entries.
Page M 12
Machine
Operating
Modes
Datum
setting
without
probe system
First alrgn the workpiece parallel to the machine axes In the conventional way. For datum setting the machine is then moved to a known posttron relative to the workpiece and the relevant position values are entered with the axis keys.
Touching working
in the plane
Touch both sides of the workprece with a tool or edge finder and, at contact, set the actual position display of the associated axis to the tool radius or the ball tip radius of the edge finder with a negative sign (here e.g. X = -5 mm, Y = -5 mm).
The actual position display is set to zero when the zero tool touches the work surface. If the workpiece surface must not be scratched, you can lay a metal shim of known thickness (e.g. 0.1 mm) on it. Then enter the thickness of the shim when contact is made (e.g. Z = +O.l mm).
Preset
tools
When using preset tools (i.e. when the tool lengths are already known) touch the work surface with any tool. To assign the value 0 to the surface, enter the length L of the inserted tool with a positive sign as the actual value for the infeed axis. If the work surface has a value other than 0, enter the following actual value: (actual value Z) = (tool length L) + (surface position) Example: tool length L: 100 mm position of the work surface:
+50
mm
Machine
Operating
Modes
Page M 13
probe system
Touching Z axis
with
z u
n
, after surface 0 IS touched. Enter the value for the Z axis, e.g. 0 mm. Confirm entry. The Z display reads: 0.000
DATUM SET Z =
Y axis
clY , after surface 0 is touched. Enter the value for the Y axis, e.g. 5 mm. Here with a negative sign.
DATUM SET Y =
X axis
u X , after surface 0 is touched Enter the value for the X axis, e.g. 5 mm. Here with a negative sign
DATUM SET X =
The datum for the fourth axis can be set in a similar way. If the dialog DATUM SET was opened END Cl. by mistake, the dialog can be terminated with NO ENT or
Active datum points are only shown in the ACTUAL position display. This display may have to be selected with MOD (see index A General Position displays).
Information/MOD
Functions
Page M 14
Machine
Operating
Modes
Electronic
Handwheel/lncrementaI
Jog
Versions
The control is usually equipped with an electronic handwheel. It can be used, for example, to set up the machine. There are two versions wheel : of the electronic hand-
into machine
HR 330: portable version with axis selection keys (A), axis direction keys (B), rapid traverse key (C), EMERGENCY STOP button (D), magnetic holding pads (E). enabling switch (F). HR 130 Interpolation factor The displacement per handwheel turn is determined by the interpolation factor (see table to the right). HR 330
Interpolation factor 0 1 2 3 4 5 6 i 9 10
Displacement in mm per turn 20.0 10.0 5.0 2.5 1.25 0.625 0.313 0,078 0.156 0.039 0.020
The handwheel is switched to the required machine axis with the axis keys of the control The axis IS selected on the handwheel. The axis to be driven by the electronic is highlighted in the screen display. - I
INTERPOLRTION FRCTOR: 5 m
handwheel
RCTL.
+ +
In the Electronic handwheel operating mode, the machine axes can also be driven with the external axis direction buttons.
Y 0
Machine
Operating
Modes
Page M 15
Electronic
Handwheel/lncrementaI
Jog
Set operating
mode and initiate the dialog Enter the desired e.g. 4. Confirm entry. interpolatron factor,
INTERPOLATION FACTOR: 3
c1
1 INTERPOLATION FACTOR: 4
cl
y hand-
Select the axis: on the control (HR 130) or on the handwheel (HR 330)
The tool can now be moved in a positive or negative Y direction with the electronic wheel.
incremental positioning
jog
The machine manufacturer can activate incremental jog positioning via the integral PLC. In this case, a traversing increment can be entered in this operating mode. The axis IS moved by the entered increment when you press a machine axis button. This can be repeated as often as desired. Only single-axis movements are possible. @ Jog increment: 0 Machine 0 Machine e.g. 2 mm. (e.g. X) pressed pressed twice. once.
-4
Set operating
mode and initiate the dialog Enter the jog increment, Confirm the entry. e.g. 2 mm.
JOG-INCREMENT: 1.000
cl
JOG-INCREMENT: 2.000
or another
remote
Page M 16
Machine
Operating
Modes
Positioning with Manual Data Input (MDI) Tool call/Spindle axis/Spindle speed
A tool must first be defined before tool radius compensation tioning with MDI mode of operation. A tool can be defined program. can be called with G41/G42 in the Posieither in the central tool file or within a part
If no central tool file is used, you must define the tool with G99 in the Program Program run, full sequence mode. The significance of G99 and T are explarned in index P Programming Modes,
Tool Definition.
Input
n
cl
Tool number
axis, e.g. Z
Tool call
Machine
Operating
Modes
Page M 17
Input
Paraxral posrtionrng
No radius compensation Paraxial compensatron for increased length (R+) or Reduced length (R-j
or
Incremental
dimensions value,
n n
Start positioning
block.
of spindle
For paraxial positioning blocks you need only enter whether the tool path is shortened or lengthened by the tool radius. G43 lengthens the tool path G44 shortens the tool path. If a G43/G44 radius compensation entered for the angular positioning spindle axis it will be ignored. is also of the
-lv+-
I I
Nor is a tool radius compensation effective for a fourth axis when used for a rotary table.
0 Nominal
position
Machine
Operating
Modes
The workpiece datum must be set before machining See Datum setting with/without probe system.
the work!
In this operating mode, the control restarted after every block. Program
executes
must be
run.
mode
Single block Select the program or, if the program was already selected: select block 0.
in the current
Starting run
executes
the machining
program
until a programmed
stop or end of
Stop functions: M02, M30, MOO (MO6 STOP, The program run is also stopped
If assigned
a stop function
via machine
parameter)
if an error message
appears. stop.
to continue
after a programmed
Operating
mode
as de
Feed rate
The programmed
Spindle
speed
The programmed
spindle
override
(if output
IS
analog).
Machine
Operating
Modes
Page M 19
run
Stop program run: Stop axis movements wrth the machine STOP button. The block currently being processed IS not completed. The control in operation ( Ile ) display blinks.
Abort
(*
) display
is
The control
l l l l l
the last tool called coordinate the current the last valid circle center/p01 the return jump
operating
the program
run by switching
to
being executed
is completed. I after execuTo continue, either start each block separately or reactivate Program run, full sequence.
EMERGENCY STOP
off in an emergency
STOP buttons.
EMERGENCY STOP
To continue working, release the emergency 1. Remove the cause of error 2. Switch on the control power run. again STOP with the CE key 3. Clear the message 4. Restart the program EMERGENCY stop key (usually by turning it clockwise), then J 4
Page M 20
Machine
Operating
Modes
Q parameters
Q parameters after interrupting the program run.
Interrupt
program
run
Check parameter
Change parameter
Terminate change
Machine
Operating
Modes
Page M 21
Operating
mode
Operating
mode Select and edit the program or transfer a program data interface. via the FE-232.C/V.24
Screen display
The screen IS divided into two halves during parallel operation: The program to be edited is shown in the upper half. The program currently in process appears in the lower half: program number, current block number and current status are displayed.
Operating
mode Parallel operating IS terminated by pressing Program run, full sequence key. the
Page M 22
Machine
Operating
Modes
or
Computer
Data interface
I, TNC I Machine
The RS-232-C interface of the TNC must be set for external transfer or FE operation!
Program structure
Only programs
without
jumps
with Blockwise
section
operates
can be called.
The program
to be transferred
(sequence however,
numbers)
exceeding
999. the
The blocks do not have to be numbered number 65 534. High sequence numbers are displayed
no block number
may exceed
Data transfer from an external storage device can be started sequence/single block with the EXT key. The control the storage stores the transferred capacity is full. program blocks in available
modes
Program
and interrupts
data transfer
No program blocks are displayed until the available memory IS full or the program is completely transferred. The program run can be started with the machine START button even when no program block is displayed. To avoid unnecessary interruptions of the program gram blocks as a buffer before starting. Therefore, is full. After starting, the executed external storage device. blocks are discarded run, you should already have a number of stored proit is advantageous to wait until the available memory and further blocks are continuously called from the
Skipping program
over blocks
If. in Blockwise transfer operation, you press the GOT0 number, all blocks preceding this number will be ignored.
Machine
Operating
Modes
Page M 23
Notes
Page M 24
Machine
Operating
Modes
Programming
Modes
(P)
Programming
Program
Selection Opening a program Erase/edit protectron Defining the workpiece G50 G30/G3 1 6 7 8
blank
Tool Definition Tool definition wtthrn the part program Tool definition in program Transferring tool length Tool radius G99 0 10 11 13 14
Cutter
Path Compensation Entering the radius compensatron Working with radius compensation Radius compensation G41 jG42 G43/G44 15 16 17
S/ Function STOP/
M G38
20 21
Path Movements Input Overview lD/2D/3D Linear Movement, Cartesian Positioning in rapid traverse Drilling Chamfer Example Additional axes GO0 GO1 G24 25 26 27 28 29 of path functions movements 22 23 24
Circular Movement, Cartesian Interpolation planes Selection guide: Arbitrary transitions Tangential transitions 30 31 32
Programming
Modes
Programming
Modes
(P)
Circular
Movement,
Cartesian Arc with circle center Arc with radius Corner rounding Tangenttal with radius R I, J. K G02/G03 G02/G03 G25 GO6 33 35 37 39
Polar Coordinaten Fundamentals Pole Straight lines I, J. K GlO/Gll G12/G13/G15 G16 RND G25 41 42 43 44 45 45 46
Contour
Approach
and Departure Starting and end positron On a circle with radius R G26/G27 48 50
Predetermined
M Functions Constant contour speed: Small contour steps: Terminating compensation: Machine-referenced coordinates: M90 M97 M98 M91/M92 51 52 53 54
Program
Jumps Overview 55
Jumps
Within
a Program
G98 Program labels Program section repeats Subprograms Nesting subprograms Example: Hole pattern with several tools Example: Horizontal geometric form
56 57 59 61 62 63
Program
Calls
64
Programming
Modes
Programming
Modes
(P)
Standard
Fixed cycles Preparatory measures Pecking Tapping with floatrng tap holder Slot milling Rectangular pocket milling Circular pocket milling SL cycles Fundamentals Contour geometry Rough-out Roughing-out a rectangular pocket Roughing-out a rectangular island Overlaps Overlapping pockets Overlapping islands Overlapprng pockets and islands Pilot drilling Contour milling (finishing) Machining with several tools Coordinate Transformations Overview Datum shift Mirror image Coordinate system rotation Scaling
66 67 70 71 73 75
G37 G57
G56 G58JG59
77 78 78 80 81 82 83 86 87 89 90 91
93 94 96 98 100
Other
Cycles Dwell time Program call Orrented spindle GO4 G39 G36 102 103 104
stop
Parametric
Programming Overview Selection Algebraic functions Trigonometric functions Conditional/unconditional jumps Special functions Example: Bolt hole circle Drilling with chip breaking Ellipse as an SL cycle Sphere 105 106 107 108 110 111 113 114 115 117
Programming
Modes
Programming
Modes
(P)
Programmed
Probing Overview Example: G55 Measuring length and angle 120 121
Teach-In
123
Test Run
125
Graphic GRAPHICS
Simulation
126
External
Data Transfer General information Transfer menu Connecting cable/Pin assignment Peripheral devices FE floppy disk unit Non-HEIDENHAIN devices Machine parameters 129 130 131 132 133 134 135
for RS-232-C
Address
letters
in IS0
137
Programming
Modes
Programming Fundamentals
Introduction
in IS0
The individual work steps on a conventional machine tool must be InItrated by the operator. On an NC machine, the numerical control assumes computation of the tool path, coordination of the feed movements on the machine slides and generally also monitors the spindle speed. The control receives the information for this in form of a program in which the machining of the workpiece is described. This program can be considered a work plan
posttion.
Programmrng means creating and entering a work plan in a form which is understood by the control.
position.
End of program Program Programs The control can store up to 32 programs (HEIDENHAIN or ISO) with a total of 4000 (HEIDENHAIN dialog). One part program Individual numbers. Switching between conversational and IS0 programming programs can contain are identified blocks scheme
The control is switched to conversational or IS0 programming via the MOD functions (see index A General Information, MOD functions, Programming and editing).
Program
input
Once the control has been switched from conversational to IS0 programming, the functions of the keys correspond to the snap-on keyboard. The control STOP key is covered by the D key. In IS0 programming, the DEL key assumes the function of the STOP key. IS0 programming is partly dialog guided. The individual commands (words), except for the dimensional data (G90, G91). can be entered in any sequence within a block. The commands are then sorted after the block has been concluded.
Program
At the beginning of an IS0 program, the control requires information on: 0 The working plane (G17/G18/G19) 0 Programming of absolute/incremental dimensions (G90/G91) 0 Radius compensation (G40/G41/G42) The first positioning block should look like this: GO0 G90 G40 G17 Z+200 Page PI
Programming
Modes
format
Each block in a program corresponds to one work step, for example: N20 GO1 G40 X+20 Y+30 Z+50 FlOOO MO3 * Each block is composed of words (e.g. X+20)
A word is composed of an address letter, e.g. X, and a value, e.g. +20. The abbreviations in the above block have the following meantngs: N = line number X, Y, Z = coordinates GO1 = linear interpolation, Cartesian F = feed rate M = miscellaneous G40 = no tool radius compensation format
functions
Block
Positioning blocks can contain: 8 G functions from various groups and also G90. G91 in front of each coordinate l 3 coordinates and also 2 circle centers or pole coordinates l 1 feed rate F l 1 M function l 1 spindle speed S l 1 tool number
l
Fixed cycles can contarn: Cycle parameter P (all files for the cycle definition) l 1 M function l 1 spindle speed S l 1 tool number l 1 positioning block (see above) l 1 feed rate F 0 Cycle call
l
Note
It is possible to combine fixed cycles with a positioning block, M-functions, spindle speed etc. (see example at right: long block format).
Example: NllO
long format
(not recommended)
G75 PO1+2 PO2-20 PO3-30 PO4 100 PO5 X+50 PO6 Y+20 PO7 200 Tl G17 SlOOO GO1 X+40 Y+30 F250 MO3 G79 *
The short format, however, makes the program easier to read. This is especially important for fixed cycles.
short format
(recommended)
N40
Tl G17 SlOOO * GO1 X+40 Y-t30 F250 MO3 * G75 PO1+2 PO2-20 PO3-30 PO4 100 PO5 X+50 PO6 Y+20 PO7 200 * G79 *
Page P2
Programming
Modes
Editing
The edrtrng functions are helpful in selecting effective at the touch of a key.
Selecting a block
two horizontal 0.
lines
with GOT0
GOTO: NUMBER =
El
block number. run through
Vertical cursor keys. Select the next lower or next higher Hold down a vertical cursor key to continuously the program lines the
Inserting a block
You can insert new blocks anywhere in existing programs. Just call the block which IS to precede new block. The block numbers of the subsequent blocks are automatically increased. If the program storage capacity is exceeded, if program this is reported at dialog initiation
Editing
words
Horizontal
cursor keys: field IS moved within the current block and can be placed on the program word to be
program
block is to
COORDINATES ?
X El
Change the value Move the highlighted word to be changed. Conclude the block (or move the highlighted or left off the screen). field to the
To change
another
word:
If all corrections
Programming
Modes
Page P3
Use the horizontal cursor keys to place the highlighted field on a word then page in the program with the vertical cursor keys: only those blocks having the desired address are displayed.
Example All blocks with the address are to be displayed: M Select one block wrth the M. Place the highlighted with M. field on a word
MISCELLANEOUS FUNCTION M ?
M.
Page P4
Programming
Modes
Initiate the dialog ERASE Program = ENT/END = NOENT or select a program number.
is to be cleared:
Program
IS not to be cleared:
Delete
block
The current block (in a program) is deleted with DEL q . The block to be deleted is selected with GOT0 0 or a cursor key. Program blocks can only be deleted in the PROGRAMMING AND EDITING operating mode. After deletion, the block with the next lower sequence number appears in the current program The following sequence numbers are corrected automatrcally. line
To delete
program
sectrons,
Then continue
pressing
You can clear numerical pressing the CE key. Non-blinking error messages
inputs
with
the CE
in the highlighted
field after
key.
An entered
value
are completely
cleared
with
NO
ENT.
Programming
Modes
Page P5
r
PROGRAM 1 IIP 10002 111 11111 :3 2 __-----------------------------RCTL. iii : SELECT I ON 360 756 1440 iS48 44 450 900 49,258 15,321 Y C + + 23,254 84,000
IS0
q 0
MS/9
Opening program
Depending on the selected program type, HEIDENHAIN dialog programs opened (see index A General Information, MOD Functions). Initiate the dialog PROGRAM PROGRAM SELECTION NUMBER =
or IS0 programs
can be
Enter the program number (maximum 8 characters). Confirm entry. for drmenstons In mm, or in inches
MM=G71/INCH=G70 O/o231 G
for dimensions
Example
display
an
All existing programs executed, regardless Initiate the dialog PROGRAM PROGRAM
(HEIDENHAIN format and ISO) can be edited, tested, of the selected type of programming.
displayed
graphrcally
and
SELECTION NUMBER = or Place the highlighted the desired program field on number. number.
n
Modes
Example
display
0 To 231 G71 * 1 NlO G30 G17 X+0 Y+O Z-40 * 2 N20 G31 G90 X+100 Y+lOO Z+O *
Page P6
Programming
Protected programs can be executed and viewed, but not changed. A protected program can only be erased or changed If the erase/edit This is done by selecting the program and entering the code number
Activating protection
edit
PROGRAM NUMBER =
rl
to be
O/o 7210G71 G
query
PGM PROTECTION ?
Removing protection
edit
PROGRAM NUMBER =
mode.
CODE NUMBER =
II!
86357.
O/o 7210G71 *
is removed.
Programming
Modes
Page P7
blank: G30/G31
Blank
Minimum Maximum
point point
The cuboid is defined with the minimum point (MIN) and maxrmum point (MAX) (points with minimum and maximum coordinates). MIN can only be entered in absolute MAX may also be incremental. drmensrons;
The blank data are stored In the associated machining program and are available after program call.
Graphic display
Machining can be simulated in the three main axes - with a fixed tool axis.
Tool form
The graphic simulation depicts the results of machining with a cylindrical tool. The graphic must be interpreted when using form tools. accordingly
Page P8
Programming
Modes
blank: G30/G31
The MIN point has the coordinates X0, YO and Z-40. The MAX point has the coordinates Xl 00, YIOO and ZO.
Note
To define a blank, a program must be selected in the Programming and editing operating mode.
Blank form definition Tool axis Z. X coordinate. Y coordinate. Z coordinate. Conclude block.
Example
display
NlO G30 G17 X+0 Y+O Z-15 * N20 G31 G90 X+100 Y-t100 Z+O * BLK FORM DEFINITION INCORRECT The MIN and MAX points are incorrectly defined, or the machining blank definition, or the side proportions differ too greatly. PGM SECTION CANNOT BE SHOWN Wrong spindle axis IS programmed.
Error messages
program
contains
Programming
Modes
Page P9
Whether the tools are defined decentralized in the appropriate part program or in a central tool file (program 0) is determined by a machine parameter.
&0 G7: s NIB G99 U L+0 R+2 N20 Tl El7 Sl000 #t N2S G00 G40 G90 X+10 N30 ES4 X+100 Y+20 #t N40 G28 X S NS0 I+100 J+0 #t N60 G73 G90 H+31S e# _____----------_________________ RCTL. El 2 + + 9,375 8,985 Y R
Y+10
M03
Tool number
Compensation values always refer to a certain tool which is desrgnated by a number. Valid tool numbers. with automatic tool change or in program 0: 1 to 99 without automatic tool change or in the machining program: 1 to 254.
+ +
8,200 0,180
MS/9
are defined
in that program,
a program
printout
will include
the specifica-
Input
Initiate the dialog TOOL NUMBER ? Enter the tool number. The tool number under G99. 0 cannot be programmed
TOOL TOOL
LENGTH RADIUS
L ? R ?
Tool 0 is internally defined with 0. Enter the tool length or the difference to the zero tool. Enter the tool radius. Conclude the block.
Page P 10
Programming
Modes
RN0 L+s, 3 L+12,45 L+2.5,21 L+52,52 L+85 L+32,71 L+l47,1 L+0 49,258 15,321
Every tool is entered with the tool number, length, radius and pocket number. Tool 0 must be defined with L = 0 and R = 0.
5 23,254 84,000
Example
with L = 5, R = 7:
BEGIN
TOOL
MM
+3
LO
RO
On machines with a tool magazine and flexible magazine pocket than they were taken from. The control memorizes which tool number
pocket coding,
to a different
is stored in which
G99 functions like a tool pre-selection here, i.e. the tool search is programmed only the query for the tool number appears.
Oversize tools
Oversize tools occupying three pockets are to be designated returned to the same pocket. Program SPECIAL by placing TOOL ? key. the highlighted field on the dialog query
as special
and respond
The preceeding and succeeding pocket numbers and pressing the NO ENT key. A lk is displayed S for special tool and P for pocket number parameters. PO (spindle) or another
should be deleted by positioning the highlighted In place of the erased pocket number. if this function was selected via machine
field
only appear
Programming
Modes
Page P 11
Tool Definition
Tool
length
The tool length is compensated with a single adjustment of the spindle axis by the length comoensation. Compensation becomes effective after tool call and subsequent movement of the tool axis.
r
zl Zn -z +z
Zero tool
Compensation ends after a tool is called or with To (T, is called the zero tool and has a length of 0). The correct compensation value for the tool length can be determined on a tool pre-setter or on the machine. If the compensation value is to be determined on the machine, then you must first enter the workpiece datum.
Length differences
on the machine,
If a tool is shorter than the zero tool, the difference is entered as a negative tool length compensation If a tool is longer than the zero tool, the difference IS entered as a positive tool length compensation. Preset tools values
If a tool pre-setter is used, all tool lengths are already known. The effective compensation correspond to the tool length and are entered with the correct signs according to a list.
Page P 12
Programming
Modes
3. Transfer each display value in this position to the tool length definition. This gives you the length compensation to the zero tool.
Input
Operating
nz
Spindle
axis, e.g. Z.
Reset to zero Also touch the surface with the new tools T, or T2
Operating
mode Either 1. call a tool definition in a program the dialog TOOL LENGTH L ?,
01
and initiate
2. select a tool in the central tool file and initiate the dialog TOOL LENGTH L ?.
TOOL
LENGTH
L ?
clZ
Select the spindle axis to transfer the tool length. Transfer the length compensation memory.
to
Programming
Modes
Page P 13
A tool radius must always be programmed before a machrnrng program can be checked with test graphics.
Drilling work is programmed without radius compensation (G40). while milling jobs are usually programmed with radius compensation (G41/G42). Compensation is effective after a tool call, programming with G41 or G42 in a positioning block (GOI. GO2 etc.), or a movement in the active interpolation plane. Compensation ends with a positioning block which contains G40. If the tool tool center radius, the tour at the grammed travels with path compensation, i.e. the path is offset by the programmed tool tool follows a path parallel to the condistance of the tool radius. The profeed rate applies to the center path.
Outside
corners
the outside
If the programmed feed rate is too high for the transition curve, the path speed is reduced (which produces a more precise corner) The ltmit value is permanently programmed in the control (machine parameter).
Inside
corners
the Intersection
S of the two cutter paths parallel to the contour The control thus shortens element - even when traversing -
This prevents back-cutting in the contour; the work is not damaged. distances according to the tool radius in use. The radius of the tool must always be chosen can be machined. so that every contour
shortened
Page P 14
Programming
Modes
G40 (RO)
If the tool is to travel on the programmed con tour, no radius compensation should be orogrammed in the posrtronrng block. The modal function G40 (RO) must therefore be programmed In the same or in a previous block.
The radius compensation is entered in posrtioning blocks (GOI, GO2 etc.) via the functions G41 (RL) and G42 (RR). Left or right In the direction should be understood of movement. as looking
If the tool is to travel at the distance of the radius to the left of the programmed contour, enter the function G41 (RL).
If the tool is to travel at the distance of the radius to the right of the programmed contour, enter the function G42 (RR).
The functions G40, G41 and G42 are modal, which means that they remain effective for all following blocks until changed. If you wish to keep the radius compensatron of the previous block, no entry is necessary.
Programming
Modes
Page P 15
At the same time lower Z to the working depth (if danger of collision, first traverse in X/Y, then separately in Z!). This compensates for the tool length. The radius compensation off with G40. still remains switched
IS contour point G41 (RL) G42 (RR) Machining around the contour
Traverse to contour point 0 with radius compensation G41 (RL) or G42 (RR) at reduced feed rate.
contour
points to 0 at
Since the radius compensatron unchanged, there is no further or G42 until point 0.
After a complete circulation, the last contour point 0 is identical to the first contour point 0 and IS still radius comoensated. The end point (outside the contour) must be programmed without compensation with G40 to complete machining. To prevent collisions, retract only in the machining plane to cancel the radius compensation. Then back-off the tool axis separately
Page P 16
Programming
Modes
Effect G43/G44
effect:
w
+-+fQ
GLC (R-1
GLO (RO)
l
nominal
ti
@ GL3(R+)
G43/G44
Example
The tool is to traverse from initial position Applrcatron example: Pre-positioning for the Slot cycle Input
Paraxial positioning Paraxial compensation, e.g. lengthening (Pi+). Nominal position value, e.g. X+46. Conclude block.
Display
Uncompensated blocks (e.g. GO1 G40 X+20) mixed in a part program. Paraxial compensated positioning (G4VG42) are not to be entered Correct: GO1 G40 G40 G43 G40 X+15 Y+20 * Y+50 * X+40 * Y+70 *
can be
positioning
Incorrect: GO1 G42 X+15 Y-t20 * G43 Y+50 * G42 X+50 Y-t57 *
Programming
Modes
Page P 17
Tools
Tool call
Tool call With the T key a new tool and the associated compensation values for length and radius are called up.
Spindle axis
In addition to the tool number, the control also needs to know the spindle axis to carry out length compensation in the correct axis or radius compensation in the correct plane. The spindle axis also defines the plane (e.g. XV) for circular movements: compensation plane. This is also the plane for coordinate rotatron and mirror image. Spindle axis Length compensation Radius compensation Z (G17) Y (G18) X (G19) Z Y X XY zx YZ It is identical to the radius
Compensation effect
Spindle speed
The spindle speed is entered directly after the spindle axis. Input range of the control: 0 to 99999 rpm. If the speed exceeds the valid range for the machine, the following run WRONG RPM
error message
appears
at program
Activating compensation
A tool call activates length compensatron. It first becomes effective when the next tool axis movement is programmed. It can be seen as a single movement in the tool axis. Radius compensation first becomes effective when the compensation direction grammed in a posrtioning block. A tool call block (T-block) ends the old tool length and tool radius compensation compensation values. Example: T12 G17 S300 * Tool radius compensation is also ended by programming G40 in the posrtioning If only the spindle speed is entered Example: T12 SSOO * with a tool call block, the compensations
Ending compensation
Tool call
TOOL
NUMBER
Enter the tool number. Enter the spindle e.g. G17. Enter the spindle Conclude axis, speed in rpm
the block.
Page P 18
Programming
Modes
Tools
Tool change
Tool change position To change the tool, the main sptndle must be stopped and the tool retracted In the spindle axrs. We recommend programming an additional block In which the axes of the machining plane are likewise backed-off.
position
if no additional
measures
IS
are taken.
Example: GOOZ+lOO MO6 * The tool IS driven 100 mm over the work surface if the tool length TO reduces the distance to the workpiece was effective prior to TOOL CALL 0. (danger of collision!)
if a positive
or a PLC positioning
to traverse
tool change
position.
Machine-referenced
The program must be stopped for a manual tool change. Therefore, enter a program STOP before the tool call (T-block). M6 has this stop effect when the control is set accordingly via machine parameters. The program IS then stopped until the machine START button is pressed. The program STOP can only be omitted when tool call is programmed solely to change the spindle speed. a
NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z-t0 * N30 G99 Tl L+O R+5 * N40 G99 T2 L-2.4 NSO TO G17 * N60 GO0 G40 G90 Z-t200 MO6 * N70 Tl SlOOO * NSO X+25 Y+30 * N90 Z+2 MO3 * R+3 *
The tool IS changed at a defined change positron The control must therefore move the tool to a machine-referenced change positron. The program run is not interrupted.
Programming
Modes
Page P 19
The feed rate can be varied within a range of 0% to 150% with the feed rate override on the control operating panel. The effective range of the potentiometer for tapping is limited by machine parameters!
Rapid
traverse
The maximum input value (rapid traverse) l 29998 mm/min or l 11 800/10 inch/min.
on the control
for positioning
IS:
The maximum operating speeds are set for each axis. GO0 or the max. input is programmed for rapid traverse. The control automatically limits rapid traverse to the permissible
values
If the F display is highlighted and the axes do not move, this means the feed rate was not enabled at the control interface. In this case, you must contact your machine manufacturer.
Spindle speed
The spindle
speeds
Spindle override
spindle
using the
during
tapping.
Miscellaneous functions
Miscellaneous functions can be programed to regulate certain machine functions (e.g. spindle on), to control program run and to influence tool movements. The miscellaneous functions are comprised of the address M and a code number according to IS0 6983. All of the M functions from MOO to M99 can be used. Certain M functions become effective at the start of block (e.g. M03: spindle on clockwise), movement, and others become effective at the end of block (e.g. M05: spindle stop). Only a certain number of these M functions are effective on any given machine. Some machines may employ additional, non-standard M functions not defined by the control M functions are normally programmed in positioning blocks (GOI, GO2 etc.). However, M functions can also be programmed without positioning. i.e. before
Page P 20
Programming
Modes
run
G38 Display
Input
N1.5G38 *
A block with program tioning block. run halt (G38) can also contain
Program
run is stopped
in block 15.
an M function
M02/M30
Program stop and (according to ISO) also spindle Return to block 1 of the program. stop and (according stop and (according stops only when to ISO) also spindle to ISO) also spindle
off.
MOO MO6
0 Program
l
off.
Program Program
set accordingly
by machine
Dwell
time
The function GO4 Dwell time can be used during the programmed time period (see Other cycles). Note: The program
program
resumes
running
Programming
Modes
Page P 21
To be able to compute the workpiece contour, the control must be given the individual contour ments. Since each program block specifies the next step, the following information is required.
l l l
ele-
straight line or circle the coordinates of each end point additional information such as circle center, contour
radius etc.
The following
is an example
of positioning
line.
Input
Selection of type of movement, e.g. linear Cartesian. No radius compensation radius compensation radius compensation (RO) or left (RL) or right (RR).
Ftrst coordinate
Absolute
or
incremental. Coordinate Next coordinate Feed rate. n M function. Conclude block. and value.
Example
N20 GO1 640 G90 X+20 Z-10 G91 Y+30 FlOO MO3 * Linear, Cartesian, no radius compensation (G40). absolute rate 100 and spindle on clockwise.
to X+20,
Z-IO,
Incremental
to Y+30
with feed
G functions, for example GOI, G40, G90, feed rates and some M functions are modal, that is they remarn active until they are cancelled or replaced with another function of the same type. N20 GO1 G40 G90 X+20 N30 Y+30 * FlOO MO3 *
Page P 22
Programming
Modes
I
Straight lines
Function Straight Straight line movement line movement in rapid traverse at programmed feed rate lines
two straight
t
Circles Circle center; also pole for programming I, J, K do not generate movement Circular Circular movement movement in clockwise directron polar coordinates (CW) direction (CCW) I, J, K GO2 GO3 G12 G13
in counterclockwise
The circular path can be programmed: l circle center I, J, K and end point, or l circle radius and end point Circular movement without indication Only the radius and end point of the programmed. The direction of rotation results from G02/G12 or G03/G13 which was last of direction of rotation. circular path need to be the circular movement programmed GO6 G16 GO5 G15
Circular movement with tangential transition. An arc IS attached to the preceding contour element with a tangential transrtron. Only the end point of the arc needs to be programmed.
c
Rounding corners with radius R. An arc with tangential transitions is inserted elements.
Multi-axis movements
A maximum
for straight
Programming
Modes
Page P 23
If the tool is moved relative to the work on a straight line parallel to a machine axis, this is called paraxial positioning or machining.
2D movements
Movement in a main plane (XV, YZ, ZX) is called 2D movement. Strarght lines and circles can be generated main planes with 2D movements. in the
3D movements
If the tool IS moved relative to the workpiece on a straight line with simultaneous movement of all three machine axes, It is called a 3D straight line. 3D movements are required planes and bodies. to generate oblique
Page P 24
Programming
Modes
Positioning
The first posrtion in a program must always be entered as an absolute value. The following positions can also be incremental values.
G99 Tl L+lO
R5 *
Tool 1 has length 10 mm and radius 5 mm Tool 1 is called in the spindle Spindle speed is 200 rpm. axis Z.
Tl G17 S200 *
compensation
3 GO0 G40 G90 X+.50 Y+30 z-1-0 M3 * Re-entry at tool calls is especially tool call. The G function downfeed. for positioning
positioning
block) after a
in rapid traverse
of collision
during
tool
Programming
Modes
Page P 25
Cartesian
+Y
70 .+
IO
30 v.+
20
I 50
c 75 +x
91 B *
20
Only incremental
entry.
Mixed entries
91 [xl20
90 [vl30
G90 Y+30 *
Example drilling
The following
is an example
of a program
for drilling
without
cycles
Program
%lO G71 * NlO N20 N30 N40 N50 G30 G17 X+0 Y+O Z-40 * G31 G90 X+100 Y+lOO Z-t0 * G99 Tl L+O R+5 * Tl G17 S2400 * GO0 G90 Z+200 M6 * Y+30 M3 * Blank form definition (only if graphic simulation desired) Tool definition Tool call Retract in Z, tool change Positronrng to 1 hole in X/Y, rapid traverse, switch on spindle Pilot positioning in Z Drilling at programmed feed rate Retract in Z Positioning to 2d hole in X/Y Drilling at programmed feed rate Retract in Z Positroning to 3d hole in X/Y Drilling at programmed feed rate Retract in Z End of program workpiece
N70 Z+2 * NSO GO1 Z-10 F80 * N90 Z-t2 FlOOO * NlOO GO0 X+50 Y+70 NllO GO1 Z-10 F80 * N120 Z-t2 FlOOO * N130 GO0 X+75 Y+30 * N140 GO1 Z-10 F80 * N150 GO0 Z-t200 M2 * N9999 %lO G71 *
Page P 26
Programming
Modes
Cartesian
A chamfer can be programmed for contour corners formed by the intersection of two straight lines. The angle between the two straight lines can be arbitrary. A chamfer is completely defined by the points 0 0 0 and the chamfer block. A positioning block containing both coordinates of the machining plane should be programmed before and after a chamfer block. The compensation G40/G41/G42 must be identrcal before and after the chamfer block. A contour cannot be started with a chamfer. A chamfer can only be executed in the machining plane. The machining plane in the positioning block before and after the chamfer block must therefore be the same. The chamfer length must not be too long or too short at inside corners: the chamfer must fit between the contour elements and also be machineable with the chosen tool. The prevrously programmed effective for the chamfer. feed rate remains
Prerequisites
GO1 G24
GO1
Programming
Program a chamfer as a separate block. Only enter the chamfer length - no coordinates. The corner pornt itself is not traversed!
Entering the chamfer Program Example block G24 R4 * O/o11 G71 * N10 G99 Tl L+O R+lO * N20 Tl G17 S200 * N30 GO1 G41 X+0 Y+50 F300 MO3 * N40 X+50 Y+50 * N50 G24 R4 * N60 x+50 Y-t0 * N9999 O/o11 G71 *
R = chamfer
length
Programming
Modes
Page P 27
Program
O/o12 G71 * N3 G30 G17 X+0 Y+O Z-40 * N5 G31 G90 X+100 Y+lOO Z+O * NlO G99 Tl L+O R+.5 * N20 Tl G17 S.500 * N30 GO0 G90 Z-t200 MO6 * N40 G40 X-10 Y-20 MO3 * N50 GO1 Z-20 F80 * N60 G41 X+0 Y+O F200 * N70 Y+30 F400 * N80 X+30 Y+50 * N90 X+60 * NlOO G24 R5 NllO Y+O * N120 X+0 * N130 G40 X-20 Y-10 * N140 GO0 Z+200 MO2 * N9999 %12 G71 *
Blank form definition (MIN point) Blank form definition (MAX point) Tool definition Tool call Tool change Pilot position (tool is up) Plunge at downfeed rate Approach the contour, call radius compensation Machine the contour 0 .@ .c3 Chamfer block 00 0 0 Last block with radius compensation Cancel radius compensation Back-off Z
@I
4 d
Page P 28
Programming
Modes
Cartesian
Linear interpolation can be performed simultaneously with a maximum of 3 axes - even when using additional axes. For linear interpolation with an additional linear axis, thus axis must be programmed with the corresponding coordinate in every NC block. This requirement holds even when the coordinate remains unchanged from one block to the next. If the additional axis is not specified, the control traverses the main axes of the machining plane agarn. Example: linear interpolation tool axis Z. with X and IV,
V-t0 FlOO *
Rotary axes A, B. C
If the additional axis is a rotary axis (A, B or C axis), the control registers the entered value in angular degrees. During linear interpolation with one linear and one rotary axis, the TNC interprets the programmed feed rate as the path feed rate. That is, the feed rate is based on the relative speed between the workpiece and the tool. Thus, for every point on the path, the control computes a feed rate for the linear axrs FL and a feed rate for the angular axis F,,,,: F =FAL d (A L)2 + (A W)2 F =FAw w -J (A L)2 + (A W) where: F = = FL = Fw AL = A W =
programmed feed rate linear component of the feed rate (axis slides) angular component of the feed rate (rotary table) lrnear axis displacement angular axis displacement
The position display for rotary axes can be set via machine parameters for either: l f 360 or 0 + 00 (i.e. f max. display value). If + 00 is chosen as the measuring range, the position display for rotary axes can be limited to values below 360 with M94.
Programming
Modes
Page P 29
Cartesian
in the main planes XY, YZ, ZX. by defining the spindle axis with T. This also assigns the i
plane IS selected
The axis printed bold below (e.g. X) IS identical in its positive The axis In normal print points In the 90 direction.
direction
axis).
Interpolation planes
Circular interpolation XY
plane
z 0 k
Y ccw
YZ
z ccw
0
Y
:I-::.:
X
Circular arcs which are not parallel to a main plane can be programmed as a sequence of multiple short straight lines (GO1 blocks).
via 0 parameters
and executed
Page P 30
Programming
Modes
Circular Movement, Cartesian Selection guide: Arbitrary transitions G02/G03 and GO5
Circular movement The control moves two axes simultaneously, so the tool describes a circular arc relative to the workoiece.
Arbitrary transitions
The functions GO2 and GO3 define - together with the preceding block - arbitrary transitions the beginning and end of the arc. If a program section contains a contour which has to be programmed as alternating linear and circular movements, the GO5 function can be used while still retaining the direction of rotation programmed via GO2 or G03. GO5 corresponds in function and input to the functions,G02/G03. The only difference is that with GO5 you do not need to enter the direction of rotation. That is, GO5 generates both clockwise (CW) and counterclockwise (CCW) circular movements. The prerequisite for employing GO5 is that the direction of rotation has previously been programmed via G02/G03. The starting pornt 0 of the circular movement must be approached in the immediately preceding block. The circle endpoint GO3 block. 0 is programmed
at
and
Prerequisite
GO2 (CWI
Circle
endpoint
in a GO2 or
Direction rotation
of G02/G03
In mathematical terms, the negative rotation G02 is clockwise (CW). The positive terclockwise. direction or rotation
direction
of
G03
IS
coun-
Radius
For G02/G03. the radius results from the distance of the position immediately before the block which was programmed with G02/G03 (beginning of circle) to the circle center I, J, K. A full circle can be oroqrammed In one block only with G02/G03. You can enter the radius drr-ectly with R (without I, J, K). : Given Arc starting Circle center Arc end point 0 Arc starting point 0 point 0 Required path function
Full circles
Selection
I, J, K
G02/G03 e.g. GO1 traverse to the starting point G02/G03 mit Radius R Page P 31
Programming
Modes
Direction of rotation
of rotation
need therefore
not be
Corner G25
rounding:
Corner rounding with G25 is inserted between two contour elements which can be straight lines or arcs. The data to be programmed are: the corner point 0 (which IS not traversed), and directly following it a separate rounding block G25 with the rounding radius R. Entry into and exit from the rounding radius is tangential and is automatically computed by the control.
With GO6 only the arc end point grammed. GO6 Given Point 0 Corner Rounding Point 0 Tangent generating point 0 Tangential arc 0 Arc end point 0 0 radius Required
IS
pro-
path function
Traverse e.g. with GO1 Traverse e.g. with GO1 G25 Traverse e.g. with GO1 Traverse e.g. with GO1 Traverse e.g. with GO1 GO6
Page P 32
Programming
Modes
I, J, K
for programming: by
The circle center I, J, K is directly defined Cartesian coordinates. The coordinates last programmed block define the circle center.
in a I, J, K
The current position is taken as circle center with G29 (without numerical Input). This is also possible in polar coordinates. for positions programmed Working plane (Circular interpolation plane) in Circle center coordinates
by two coordinates
x Y
z
Y
I, J
K. I Jr K
x
z
the circle center is based on the work datum. the circle center is based on the tool position no movement! last programmed. in the circle center produces
Approach
the starting
block.
The distance
the radius.
The tool is to travel from position 0 to target point 0 in a circular path. Only program 0 in the G02/G03 block. Position 0 can be entered in Cartesian or polar coordinates.
YI
Direction of rotation
The direction of rotation must be defined for circular movement: rotation in negative direction GO2 (clockwise). rotation in positive direction GO3 (counterclockwise) Any tool radius compensation before a circular arc. must begin
Programming
Modes
Page P 33
Input circle
center
Input G02/G03
Program
blocks
I+50 J+50 * GO2 X+15 Y+50 * G41/G42, F and M are entered ous rnDut as for straight lines. They are only necessary when different from previ-
Full circle in the XY plane (outer circle) around center X+50, Y+50 with 35 mm radius. G99 Tl L+O R5 * Tl G17 S200 * GO1 G41 X+15 I+50 J+50 * GO2 X+15 Full one The are Y+50 * Y-t50 F300 MO3 *
Program
circles can be programmed with G02/G03 in block. ctrcle starting point and the circle endpoint identical.
Example
arc
Semicircle in the XY plane (inside circle) around center X+50 Y+50 with 35 mm radius. GO1 G41 X+85 I+50 J+O * GO3 X+15 Y+50 * Y+50 F300 M3 *
Program
Page P 34
Programming
Modes
Starting
point
Endpoint
Contour radius
Rotating direction
Depending on the allocation of radius compensation G41/G42, the rotating direction determines whether the circle curves inward (= concave) or outward (= convex). In the adjacent figure, GO2 produces a convex contour element, GO3 a concave contour element.
Programming
Modes
Page P 35
Program
block
GO2 X+80
Y+40, R+lOO *
Examples:
G99 Tl L+O R+5 * Tl G17 S200 * GO1 G41 X+20 GO2 X+80 Y+60 F300 MO3 *
Arc A
Y+60 R+50 *
Arc B
R-50
Arc C
Arc D
60
Y+60 R-50
The position X+20 Y-t60 is the start of arc in the examples; the position X+80 Y+60 is the end of arc.
Page P 36
Programming
Modes
-. 0 -2 tu,
GO1 G25
line,
Prerequisites
Rounding is completely defined by the G25 block and the points 0 0 0. A posrtioning block containing both coordinates of the machining plane should be programmed before and after the G25 block. The G40/G41/G42 compensation must be identical before and after the G25 block. A contour therefore cannot which is to be rounded. be started in a corner
Note
The rounding arc can only be executed in the machrnrng plane. The machintng plane must be the same in the positioning block before and after the rounding block. The rounding radius cannot be too large or too small for inside corners - it must fit between the contour elements and be machinable with the current tool. The feed rate for corner rounding is effective blockwise. The previously programmed feed rate is reactivated after the G25 block.
Programming
The rounding arc is programmed as a separate block following the corner to be rounded. Enter the rounding radius and a reduced feed rate F, if needed. The corner point itself is not traversed!
The tool radius can be larger than the roundrng radius on outside corners. The tool radius must be smaller than or equal to the rounding radius on inside corners.
Error
messages
Programming
Modes
Program
block
G25 R8 FlOO *
Examples:
G99 Tl L+O R+5 * Tl G17 S200 * A GO1 G41 X+10 F300 MO3 * X+50 Y+60 * Y+60 PosItIon 0 Corner Rounding Position 0 point 0
Sequence
Sequence
Page P 38
Programming
Modes
Geometry
to the contour
Thus arc has a specific radius, a specific direction of rotation and a specific center. This data need not therefore be programmed. Machining sequence
Prerequisites
The contour element which connects tangentially to the circle IS programmed immediately before the tangential arc. Both coordinates of the same machrnrng plane must be programmed in the block for the tangential arc and in the preceding block.
Tangent
The tangent IS specified by both positions 0 and 0 directly preceding the GO6 block. Therefore, the first GO6 block can appear no earlier than the third block in a program.
The tool is to travel a circle connecting tangentially to 0 and 0 to target point 0. Only 0 IS programmed in the GO6 block.
Geometrv
Coordinates
The endpoint of the circular path can be programmed in either Cartesian or polar coordinates.
Error messages
Programming
Modes
Program
block
GO6 x+90
Y+40
Enter R, F and M as for straight lines. Input is only necessary to change earlier deflnltions
G30 G17 X+0 Y+O Z-40 * G31 G90 X+130 Y+lOO Z+O * Tl G17 S200 * GO1 F300 x+50 GO6 G41 X+10 Y+80 MO3 * * x+130 Y+30 *
Arc B semicircle
GO1 G41 X+10 Y-t80 F300 MO3 * x+50 * GO6 x+50 Y-t0 *
lSt tangent point Start of arc End of arc. A semicircle with R = 40 is formed.
Arc C quarter
circle
GO1 G41 X+10 Y+80 F300 MO3 * x-t.50 * GO6 X+80 Y+50 *
IS tangent point Start of arc End of arc. A quarter circle with R = 30 is formed.
GO1 G41 X+10 Y+80 F300 MO3 * x+50 * GO6 x+90 Y-t40 * GO1 G41 X+10 Y+60 F300 MO3 * X+50 Y-t80 * GO6 x+90 Y+40 * GO1 G41 X+50 Y+llO Y+80 * GO6 x+90 Y+40 * F300 MO3 *
Arc B
Arc C
Page P 40
Programming
Modes
The +X +Y +Z
reference axis (0 axis) is the the XY plane, the YZ plane, the ZX plane.
The machining plane (e.g. XY plane) is determined by a tool call. The sign of the angle H can be seen in the adjac~ ent figure.
Absolute dimensions are based on the current pole. Example: Gil G90 R+50 H+40 *
Incremental coordinates
polar
A polar coordinate radius entered changes the last radius. Example: Gil G91 R+lO * An Incremental polar coordinate to the last direction angle. Example: Gil G91 H+15 *
incrementally
Mixing
Absolute and incremental coordinates may be mixed within one block. Example: Gil G90 R+50 G91 H+15 *
Programming
Modes
Page P 41
The coordinates of the Dole are determined the working plane: Working XY YZ zx Example Transferring the pole G29 I+60 J-t30 * plane 1 Polar coordinates
by
I, J
Jr K K. I
position
IS transferred
as
Directly transferring the pole in this manner is especially well suited for polygon shapes (see rllustration at right).
Example
GO1 X+26 Y+30 G29 Cl1 R+17 H-45 G29 Gil R+18 G91 H-35
POLE POLE
1 2
Modal effect
A pole defrnrtron remains valid in a program until it IS overwritten with another definition. The same pole therefore need not be programmed repeatedly.
Page P 42
Programming
Modes
Input range for linear interpolation: H H positrve. counterclockwrse angle. H negative: clockwise angle.
absolute
or incremental
-360
to +360.
Example Program
Milling
an inside contour. *
G30 G17 X+0 Y+O Z-40 G31 G90 X+100 Z+O * G99 T2 L+O R-t2 * T2 G17 S200 * I+50 J+60 * GO1 G40 G90 X+15
Set POLE Approach starting point externally (Cartesian coordrnates) Plunge Approach lSt contour point with compensation (polar coordinates) 2d contour point Last contour point Depart from contour, cancel compensation Retract, return Jump to begtnnrng of program
Z-5
FlOO *
Gil G42 R+40 H-t180 F200 * G91 H-60 * H-60 * H-60 * G40 G90 X+85
Y+50 *
Programming
Modes
Page P 43
When programming a circle in polar coordinates, the angle H can be entered positively or negatively The angle H determines the endpoint of the arc. If the angle H the angle and should be the means that H rotation is also Range for polar angle Example is entered Incrementally, the sign of the sign of the rotating direction same. In the figure to the right, this IS negative and the direction of negative (G12).
Input range for circle interpolation: absolute or incremental -5400 to +5400. An arc with radius 35 and circle center X+50 Y+60 is to be milled. Rotating drrection is clockwise.
Program
Z-5 Gil
In the example, a contour radius of 35 mm IS obtained from the distance between the POLE and the approach point on the circle.
Page P 44
Programming
Modes
If the transition points are not calculated exactly, the arc elements could become jagged. Specify the pole CC before programming coordinates. in polar
Example
A straight line through 0 and 0 is to tangentially meet the arc to 0. The radius and direction angle of 0 with respect to I, J, K, are known. G99 Tl L+O R4 * Tl G17 S200 * I+65 J+20 * GO1 G41 X+10 X+20 Y-t60 * *
20 0
Program
10
20
65
G25
Polar corners can also be rounded with the corner rounding function (see Circular Move ment, Cartesian, Corner rounding).
Programming
Modes
Page P 45
I, J, K + Gl2/Gl3
If 2 axes are moved simultaneously to descrtbe a circle in a main plane (XV, YZ, ZX). and a uniform linear motion of the tool axis is superimposed, then the tool moves along a helix (helical rnterpolation)
Applications
Helical interpolation can be used to advantage with form cutters for producing internal and external threads with large diameters, or for lubricating grooves. This can save you substantial tool costs.
Input
data
in polar coordinates
Angle
range
Enter the total angle of tool rotation for the polar angle H in degrees: H = number of rotations x 360 Maximum angle of rotation: + 5400 (15 cornplete rotatrons).
Height
L (= Z) is entered
Calculate the value from the thread pitch and the required number of tool rotations. Z=P.n, Z = total height/depth to be entered P = pitch n = number of threads The total height/depth can be entered in absolute or incremental dimensions
Thread
A complete thread can be programmed quite easily with Z and H; the number of threads IS then specified with a program section repeat REP.
Internal thread
Working direction
Rotating direction
Radius compensarron
Radius compensation
depends
upon the
rotating direction (right/left), 0 type of thread (internal/external), l milling direction (positive/negative direction) (see table to the right).
t::-:;
left-hand External thread right-hand left-hand right-hand left-hand 1 ZWorking direction Z+ Z+ ZZ1 G13 Rotating direction G13 G12 G12 G13 1 G41 Radius compensation G42 G41 G41 G42
axis
Page P 46
Programming
Modes
I, J, K + G12/Gl3
A right-hand Internal thread M64 x 1.5 IS to be produced in one cut with a multr-cutter tool. Thread pitch start end Number Overrun at start at end data : P = 1.5 mm a, = O a, = 0 = 360 of threads of threads: n, = 5 nl = l/2 n2 = l/2
Thread
Calculations
[5 + (2
l/2)] = 9 mm
Due to overrun of l/2 thread, the start of thread is advanced starting angle a, = a, + (-1807 = 0 + (-180) = -180
The overrun of l/2 thread at the start of thread gives the following Z = -P n = -1.5 mm [5 + l/2] = -8.25 mm
Program
O/o20 G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R+5 * N40 Tl G17 SSOO * N.50 GO0 G90 Z+200 MO6 * N60 GO0 G40 X+50 Y-t30 * N65 G29 * N70 Z-8.25 MO3 * N75 Gil G41 R+32 H-180 FlOO * N80 G13 G91 H+2160 Z-t9 F200 * N90 GO1 G40 X+50 Y+30 * N95 GO0 Z+200 MO2 * N9999 O/o20 G71 *
Workpiece
blank definition
Tool defrnrtion Tool call Move to the tool change Move to hole center Define position as pole Downfeed in center Move to wall Helical movement Retract in XY Retract in Z
positron
Note
Helical interpolation
cannot be graphrcally
displayed
Programming
Modes
Page P 47
In the vicinity of the first contour point, define an uncompensated starting point that can be approached in rapid traverse, and be sure to consider the tool In use. The starting point must fulfill the following criteria:
l l l l
approachable wrthout collision near the ftrst contour point outsrde the material the contour WIII not be damaged
when
approaching
Direct
approach
When working on a circle (G26/G27) without the TNC approach/departure tool does not blemish the contour due to a direction change. 0 Not recommended Surface blemish due to change of Y-axis direction
Starting
points
0 Not recommended 0 Suitable 8 Optimal 0 Not recommended @ Not permitted! Radius compensation must remain switched for the starting position (G40). off Also for end point Lies on the extension of the compensated path Contour damage
End points
The same prerequisites apply for selecting the uncompensated end point as for the starting point. The ideal end point 0 lies on the extension last contour element G41. 0, 0 Not recommended of the
Surface blemish due to change of the X-axis direction Also for the starting point Lies on the extension of the compensated path Contour damage
Radius compensation must be switched departure from the contour (G40). Common starting and end point
off after
L
For a common starting and end point, select point 0 on the bisecting line of the angle between the first and last contour element.
Page P 48
Programming
Modes
Departure
At a transition from G41/G42 to G40. the control positrons the tool center in the last radius compensated block (G41) perpendicular to the end of the last contour section. Then the next uncompensated approached with G40. positron
IS
If radius compensation is begun from Sl, the tool will damage the contour at the first contour point if no extra measures are taken!
departing
from the
Programming
Modes
Page P 49
The tool moves from the startrng position 0 rnrtrally on a straight line and then on a tangentially connected arc to the programmed contour. The starting potnt can be selected as desired, is approached without radius compensation (with G40). The straight line positioning block to contour point 0 must contain radius compensation (G41 or G42). Then program a G26 block. and
Departure
The tool moves from the last contour point 0 on a tangentially connecting arc and then on a tangentially connecting straight line to the end positron 0 if a block with G27 IS programmed between 0 and Or The positioning block for 0 should radius compensatron (i.e. G40). not contain
Approach departure
arc/ arc
The radius R can be substantially less than the tool radius. It must be small enough to frt between 0 and 0 or 0 and 0. A feed rate exclusively for the approach and departure arc can be programmed separately the G26/G27 block GO0 G40 Xj Yj 25 GO1 G41 X,Y, G26 R2.5 FlOO X2 Y2 F500 F500 &41 Xj Y5 F200 G27 R2.5 FlOO G40 XE YE F500 GO0 Z+200
Feed rate
In
Program scheme
Notes A positroning block containing both coordinates of the machining plane must be programmed before and after the G26/G27 block Approach on an arc:
Program a G26 block after the first radius compensated position (G41/G42). Departure on an arc:
Program a G27 block after the last radius compensated position (G41/G42), or before the first uncompensated position following machining.
Page P 50
Programming
Modes
Example: The contour of a free-form surface produced with a large number of short linear movements. Here it is desirable to smooth the corners.
M90
The corners are smoothed if M90 is programmed In every block. The workpiece is smoother and can be machined faster. M90 prevents stoppage of the axes blockwise for G40 or rnternal corners.
Without
M90
Drawbacks
Greater strain on the machine at sharper changes of direction, until safety limit is reached (specified by the machine manufacturer).
Note
The exact execution depends on the machine parameters. Contact the machine manufacturer for more information.
With M90
Programming
Modes
Page P 51
M97
M97 prevents insertion of the transrtion arc The control then determines a contour intersection 0 as at inside corners and guides the tool over this point. The contour is not damaged. However, machining is then incomplete and the corner may have to be reworked. A smaller tool may help. M97 is effective blockwise and must be programmed in the block containing the outside corner point.
Without
M97
Example
G99 Tl LO RlO * Tl G17 SlOO * GO1 G41 X+10 Y+30 F200 M3 * X+40 Y+30 M97 * x+40 Y+28 * X+80 Y+28 * X+80 Y+30 M97 * x+100 Y+30 * a a 0 8 0
With M97
M97
With M97
Page P 52
Programming
Modes
M98
The middle figure shows two independent workpieces. Positions 0 and 6%are not connected. The tool must therefore be guided to positions @ and @. If you program a posrtion with M98, the path offset remains valrd until the end of this element and is ended there for this block. No intersection is computed and no transition arc is generated for the end position, so the tool is always moved to a point perpendicular to the contour at its end point. The previous compensation IS reactivated matically in the following block @I. Position CDIS approached The contour and 0.
IS
autoto @I. at 0
perpendicularly machined
thus completely
Example
GO1 G41 X0 Y26 FlOO * X+20 Y+26 * X+20 Y+O M98 * x+50 Y+O * X+50 Y+26 * X+60 Y+26 *
0 0 0 6 0 @
milling
Multipass
in Z
Example
G30 G17 X+0 Y+O Z-40 * G31 G90 X+100 Y-t100 Z+O * G99 Tl L+O R+5 * Tl G17 S200 * GO0 G90 Z+50 * G42 X+70 Y-10 MO3 * z-10 * Pre-positioning Tool-axis infeed
GO1 Y+llO F200 M98 * GO0 Z-20 * GO1 G41 Y+llO F200 * Y-10 M98 * GO0 Z+50 *
Mill one pass Second tool-axis infeed Pre-positioning Mill second pass Retract
Programming
Modes
M Functions machine-based
blocks are based on the workpiece
coordinates:
datum
Scale
datum
The position of the scale datum is determined by the reference marks. If the scale has only one reference mark, then the reference mark is the scale datum. If the scale has several - distance-coded reference marks, then the leftmost reference mark is scale datum (beginning of the measuring length) With the TNC 360 the scale datum point is the same as the machine datum point.
Machine M91
datum
The machine datum is required for the followrng: l Setting the traverse range limits (software limit switch)
l l
Traversing
to machine-based datum
positions
positions)
in positioning
datum,
Coordinates
are displayed
referenced
builder builder
machrne-based
reference
tn positioning
machine
reference
Page P 54
Programming
Modes
a pro-
Examples:
jump
Nesting : A further program section repeat or subprogram can be called up from within a program section repeat or subprogram. Maximum nesting depth: 8 levels
to
You can jump from one part program into any other program which is in the controls memory or on an external data storage medium. The jump into another program is programmed with a
l
Examples:
Program
I o/o3 *
l
Cycle G79, if another cycle was previously defined with G39 as a callable cycle.
programs
depth:
4 levels
GO1X+50 M99 *
Programming
Modes
Page P 55
A label is set with the G98. The label numbers 1 to 254 can be set only once in a program.
Label
Label number 0 always marks the end of a subprogram (see Subprogram) and is therefore the return jump marker. It can thus occur more than once in a program. Do not call label O!
M99 *
With the L key you can: 0 call subprograms 0 create program section repeats.
Label numbers (1 to 254) can be called as often as desired. Do not call label O!
Program repeats
section
For program
section
repeats,
number
of repetitions
(e.g. L2.5)
Subprograms
For subprogram
of repetitions
with End 0
Error
messages
JUMP TO LABEL 0 NOT PERMITTED This jump (LO) is not allowed. LABEL NUMBER Each label number ALLOCATED - except L 0 - can be allocated
in a given program
Page P 56
Programming
Modes
with
number
A called program section repeat is always executed completely, i.e. up to L. A program jump is therefore only meaningful if it is a return jump. The control executes the main program (along with the associated program section) until the label number is called. Then the return jump is carried out to the called program label and the program section is repeated. The number of remaining repetitions play is reduced by 1: L 215. After another return jump, the program repeated a second time. on the dis-
Program
run
section
is
N22 G98 L2 *
When all programmed repetitions have been performed (display: L 2/O), the main program is resumed. The total number of times a program section is executed is always one more than the programmed number of repeats.
M99 *
N24 L2,5 * .
Error
message
EXCESSIVE
You programmed
You failed to enter the repetition value. The program section is treated as a subprogram without a correct ending (G98 LO): the label number is called eight times. During program run or a test run the error message appears on the screen after the eighth repetition.
Programming
Modes
Page P 57
6 repetitions from G98 Ll. The program section between is executed a total of 7 times.
Example bolt-hole
row
The illustrated bolt-hole row with 7 identical bores is to be drilled with a program section repeat. The tool IS pre-positioned (offset to the left by the bore center distance) before starting the repeat to simplrfy programming.
Program
G99 Tl L+O R2.5 * Tl G17 S200 * GO0 G40 G90 X-7 Y-t10 Z+2 MO3 *
* FlOO *
Start of the program section repeat Incremental distance between the bores, rapid traverse Absolute drilling depth, drilling feed rate Absolut retraction height, rapid traverse Call for repeats
The main program is executed until the jump to G98 L17 (L17.2). The program sectton between G98 L17 and L17.2 is repeated twice. The control then resumes the main program until the Jump to G98 L15 (L15.1). run
OG -
G98 L15
z &-
0 Oz 0 Oz 0
l-17.2
G98 L17
The program section up to L15.1 is repeated once and the nested program section also two more times Then the program run is continued
Of=
0
=O - I
0 I
Page P 58
Programming
Modes
a Program
If a program section occurs several times in the same program, it can be designated as a subprogram and called whenever requrred. This speeds up programming. The start of the subprogram IS marked label number (can be any number). The end of the subprogram label 0. with a N14 N15 N16 N17 N18 N19 N20 N21 N22 N23 N24 N25 Ll,O GO1 Ll,O X+10 Ll,O GO0 G98 G79 G98 GO0 L2,5 G98 * X+20 Y+50 * * Y-t80 * * G40 Z+50 MO2 * Ll * * L2 * G91 X+10 * LO *
is always marked
by
The different subprograms are then called in the main program as often as wanted and in any sequence.
M99 *
No repetitions
For a subprogram call with the L key, the block IS concluded after the label number with END 0. A subprogram can be called at any point in the main program (but not from wrthin the same subprogram).
Program
run
executes call 0.
until the
Then the return jump to the main program follows The main program is resumed with the block @ following the subprogram call. MO2 * D G98 Ll *
G98 LO *
Subprograms should be placed after the main program (behind M2 or M30) for the sake of clarity If a subprogram is placed within the main program, it is also executed once during program run without being called. Error messages If a subprogram message EXCESSIVE appears. call programmed incorrectly (e.g. an end of subprogram lacks G98 LO), the error
IS
SUBPROGRAMMING
Programming
Modes
Page P 59
a Program
%l G71 *
2 :
L2,O *
Subprogram program.
the main
Example
A group of four bores is to be programmed as subprogram 2 and executed at three different positions.
Program
G99 Tl L+O R+2.5 * Tl G17 S200* G83 PO1-2 PO2-20 PO3-10 PO40 PO5100 * GO0 G40 G90 X+15 Y+lO MO3 * z+2 * L2,O * X+4.5 Y+60 * L2,O * x+75 Y+lO * L2,O * Z+50 MO2 * G98 L2 * G79 * G91 X+20 M99 * Y-i-20 M99 * X-20 M99 * G90 * G98 LO *
Define pecking cycle
Approach
bore group 0
Subprogram
call
Approach bore group 0 Subprogram call Approach bore group 0 Subprogram call Retract tool axis Start of subprogram Call peck dnllrng cycle Incremental traverse, drill Incremental traverse, drill Incremental traverse, drill Switch to absolute dimensions End of subprogram M99 = blockwise cycle call
Cross-reference
Page P 60
Programming
Modes
O/o12 * G71 L17,O* MO2 * G98 L17 * id,,,0 * &98 LO * G98 L20 * L53,o * &98 LO * G98 L53 * b98 LO * N9999 %12 G71 *
The subprogram beginning with G98 L17 is subsequently executed until the next call L20. which is then run until L53.0. The lowest nested subprogram until its end (G98, LO). At the return grams finally 53 is run through
end (G98 LO) of the last subprogram (53). jumps are made to the preceding subpro(20 and 17). until the main program is reached.
The main program is then taken up again at the point immediately following the call L17.0. A subprogram call is considered executed when the first G98 LO is reached!
Repeating subprograms
repeatedly
with
Subprogram 50 is called in a program section repeat. This subprogram call is the only block in the program section repeat. Remember: the subprogram will be executed more time than the programmed number of repeats. one
M2 *
the
Error message
If too many nesting levels were programmed, error message EXCESSIVE SUBPROGRAMMING appears.
G98 L50 *
G98 LO *
Programming
Modes
Page P 61
Note
X+0 Y+O Z-20 * X+110 Y+lOO Z+O * L-t0 R+2.5 * L-t0 R+3 * L+O R+3.5 *
N60 G83 PO1 -2 PO2 -3 PO3 -3 PO4 0 PO5 100 * N70 T35 G17 SlOOO *
N80 GO0 G90 Z+50 MO6 * N90 L1.0 * Pecking NlOO G83 PO1 -2 PO2 -25 PO4 0 PO5 50 * NllO T25 G17 S2000 * N120 GO0 Z+50 MO6 * N130 Ll,O * N140 G84 PO1 -2 PO2 -15 PO3 0 PO4 100 * N150 T30 G17 S250 * N160 GO0 z+50 MO6 * N170 Ll,O * N180 GO0 G40 Z+50 MO2 * 1 N190 N200 N210 N220 N230 N240 N250 N260 N270 Subprogram 2 N280 N290 N300 N310 N320 N330 N340 G98 G79 G91 Y+20 X-20 GO0 G98 L2 * * X+20 M99 * M99 * M99 * G90 * LO * G98 G40 Z+2 L2,O X+45 L2,O X+75 L2,O G98 Ll * X+15 Y+lO * * Y+60 * * Y+lO * * LO * MO3 * PO3 -6
Tool change
Tapping
Subprogram
Approach hole pattern 0 Move to setup clearance Call: subprogram 2 Approach hole pattern 0 Approach hole pattern 0
Cycle call (countersrnk, peck drill, tap) M99 = blockwise cycle call
Page P 62
Programming
Modes
Jumping Example:
Task
form
The adjacent geometric contour is to be machined from a cuboid with an end mill which IS to be advanced stepwise in the Y direction by a program section repeat. The contour is divided into two halves along the line of symmetry to simplify the working procedure. The contour IS to be machined upwards. In addition to the adjacent length is specified with: Y = 100 mm. dimensions, the cuboid
Program procedure
The adjacent figure schematically shows the cutter center path and the associated program blocks. The entire contour is divided into a left and right half and is machined in the two program section repeats. The program runs without radius compensation, i.e. the cutter center path is programmed. To obtain the desired contour, the tool radius must be subtracted on the left side and added on the right side (at1 X coordinates).
%90007685 G71 * N10 G30 G17 X+0 Y+O Z-70 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R+lO * N40 Tl G17 SlOOO * N50 GO0G90 Z+20 MO6 * N60 G40 X-20 Y-l MO3 *
Program section repeat 1
N70 G98 Ll * N80 Z-51 * N90 GO1X+1 FlOO * NlOO X+11.646 Z-20.2 * NllO GO6X+40 Z+O * N120 GO1X+41 * N130 GO0Z+lO * N140 X-20 G91 Y+2.5 * Nl50 GO0 G90 * N160 L1,40 * N170 GO0Z+20 * N180 x+120 Y-l *
@ @ 0 63
Approach
starting
N190 G98 L2 * N200 Z-5i * N210 GO1X+99 FlOO * N220 X+88.354 Z-20.2 * N230 GO6X-t-60 Z+O * N240 GO1X+.59 * N2.50GO0Z+lO * N260 X+120 G91 Y+2.5 * N270 GO0 G90 * N280 L2,40 * N290 Z+20 MO2 * N9999 %90007685 G71 *
8 0 0 0
lnfeed It- Y axis Program section is executed 41 times
Program
Calls
to main
You can call another program which is stored in the control from any machining This allows you to create your own fixed cycles with parametric programming. Program the call with a % key.
program.
Calling criteria
The program to be called cannot contain MO2 or M30. In the called program, do not program a jump back to the original program (creates an endless loop). Only one BLK FORM can exist. Tool numbers may be assigned only once. The control executes main program 1 up to the program call %28. Then a jump IS made to main program 28. Main program end. 28 is executed from beginning to
%l G71 *
Process
Then a return jump is made to main program 1. Main program 1 is resumed with the block following the program call.
%28 o--
G71 *
/ ~ 0 G71 0
-0 G71 -
mple
Example
The program to be called can also be specified with a cycle definition. The call then functions like a fixed cvcle.
G39 PO112 *
Conditional jumps
on a mathematical
condition
(see Parametric
Programming,
Page P 64
Programming
Modes
Selecting a cycle
After selecting the appropriate G-function and pressing the ENT key, data for the cycles shown to the right can be entered and also any programmed user cycles can be selected.
Cycle
Pecking Tapping Slot milling Rectangular pocket Circular pocket Program call Contour geometry Pilot drilling Rough-out Contour milling
Effective immediately
0 0 0 0
Cycles must be called after moving the tool to the appropriate position - only then will the last defined cycle be executed.
Cycle
Effective immediately : 0 0 0 0
G79
Via the miscellaneous function M99. G79 and M99 are only effective blockwrse and must therefore be reprogrammed for every execution. Via the miscellaneous function M89 (depending
ii $ .P $-ii eij, E 82 s z e
54 28 73 72 04 ::
Datum shift Mirror image Rotating the coordinate system Scaling Dwell time Spindle Program call orientation parameters) posrtionrng
on machine
M89 M89
is effective modally, i.e. the last programmed cycle is called at every subsequent is cancelled or cleared by M99, G79 or by newly defining a fixed cycle. transformations and the dwell time are effective immediately and remain
block.
Coordinate ged.
Programming
Modes
Page P 65
before a
Tool call: to specify the spindle spindle speed Positioning block to the startrng
Tl . . . . . .
Dimensions
In the cycle definition, dimensions for the tool axes are to be entered incrementally, referenced to the tool positron at cycle call. All infeeds negative). must have the same sign (usually
Entering values
Enter all values as requested and confirm entry with ENT You must respond to every dialog query by entering a value! Conclude entry with END 0.
Page P 66
Programming
Modes
input
data
All infeeds
must have the same sign A: distance between tool trp and workprece surface. between the workof the hole (tip of
Total hole depth B: distance piece surface and the bottom the drill taper). Pecking depth
Dwell time: the time the tool remains tom of the bore hole for chip breaking. Feed rate F: traversing infeed. speed
Process
0 The tool must be positioned to the setup clearance with a separate block, before the cycle call. l The tool drills from the starting position to the first pecking depth at the programmed feed rate. l After reaching the first pecking depth the tool is retracted in rapid traverse to the starting position and advanced agarn to the first pecking depth, minus the advanced stop distance t. 0 The tool then advances by another infeed at the programmed feed rate, returns again to the starting position etc. 0 Drilling and retraction are performed alternately until the programed total hole depth is reached. l After the dwell time at the hole bottom, the tool is retracted to the starting position in rapid traverse.
IS
automatically
For a total hole depth up to 30 mm: t = 0.6 mm; For a total hole depth over 30 mm: t = total hole depth/50, whereby the maximum advanced stop distance is limited to t,,, = 7 mm.
Operating
mode Specify setup clearance Enter the sign correctly (normally positrve) Confirm entry
SET UP CLEARANCE ?
Specify hole depth Enter the sign correctly (normally negative) Confirm entry
PECKING DEPTH ?
Specify pecking
depth
Enter the dwell time at the bottom hole (zero for no dwell time) Confirm entry
FEED RATE ? F =
Page P 68
Programming
Modes
not be a multrple of the last work step, the tool the remaining distance to depth.
If the specified pecking depth is greater than the total hole depth, drrllrng IS only performed to the programmed total hole depth. The above also applies to other fixed cycles.
Example
Drill 2 holes (depth pecking cycle. G99 Tl L+O R3 * Tl G17 S200 * G83 PO1 PO2 PO3 PO4 PO5 -2 -20 -10 2 80 *
20 mm) with the standard Tool definition and call Setup clearance Total depth Pecking depth Dwell time Feed rate
Y+30 MO3 *
spindle
on
Y+50 M99 *
Programming
Modes
Page P 69
A floating tap holder is required for tapping. It must compensate for the tolerances between the feed rate, speed and the tool geometry as well as spindle run out after the positron is reached. Spindle speed override IS inactive after a cycle call; the feed rate override is only active over a limited range (set by the machine manufacturer via machine parameters). Input data Setup clearance (startrng positron) ard value: approx. sign depends on A: distance between tool tip and workpiece surface (stand4 x thread pitch). The preceding the working direction.
Total hole depth B (= thread length): distance between workpiece surface and end of thread. The signs for setup clearance and total hole depth are the same (usually negative). Dwell time: enter either the time between tool, or 0. This time IS machine-dependent. Feed rate/ thread pitch Feed rate F: traversing Determining the required F=SxP F: feed rate S: spindle speed P: thread pitch reversing the direction of spindle rotation and retracting the
tapping
The thread pitch is determined indirectly by the spindle speed specified of the cycle (see index A, General Information, Cutting Data). Process Once the tool has reached the total hole depth, the direction of spindle rotation is reversed within a time period set by machine parameters. At the end of the programmed dwell time, the tool is retracted to the starting position. The spindle direction is reversed again in the retracted position Input Example Same as for Pecking Tap an M6 hole wtth 0.75 mm pitch at 100 rpm
G99 Tl L+O R3 * Tl G17 SlOO* G84 PO1-3 PO2-20 PO30.4 PO475 * GO0G40 X+50 Y+20 MO3 * Z+3 M99 *
Tool definition and call Setup clearance Thread depth Dwell time Feed rate Pilot positronrng, Cycle call spindle right
Page P 70
Programming
Modes
The slot IS parallel to one axis of the current coordinate system (rotation with cycle G73, if desired). Tool required The cycle requires a center-cut (IS0 1641). The cutter diameter smaller than the slot width. Setup clearance (starting positron) end mill must be slightly
Input
data
Milling depth B: (= slot depth): distance between work surface and bottom of slot. Pecking depth C: penetrating tool Into the workpiece. distance of the
The signs for setup clearance, milling depth and pecking depth are all the same (usually negative) Feed rate for pecking: tool during penetration. traversing speed of the
lSf side length D: slot length (finished size). Sign depends on the first direction of cut parallel to the longrtudrnal axis of the slot. 2d side length E: slot width, the tool radius (finished size). Feed rate: traversing machrnrng plane. maximum 4 times
Roughing process
The tool penetrates the work from the starting position. The slot is then milled In the longitudrnal direc tron. After downfeed at the end of the slot, mrlling is in the opposite direction. The procedure is repeated until the programmed milling depth is reached.
Finishing process
The control advances the tool in a semicircle at the bottom of the slot by the remaining finishing cut and down-cut mrlls the contour (with M3). The tool is subsequently retracted in rapid traverse to the setup clearance. If the number of infeeds was odd, the cutter returns along the slot at the setup clearance to the starting positron in the main plane.
Programming
Modes
Page P 71
Cycle definition
Definition of the horizontal slot Setup clearance Milling depth Pecking depth Feed rate for pecking Length of slot and frrst milling direction Slot width Feed rate
(-1
Starting
position
Y+15 M3 *
Approach starting position without compensation, taking the tool radius into account in the longitudinal direction of the slot; spindle on Pre-positioning in Z, cycle call Definition of the vertical slot Setup clearance Milling depth Pecking depth Feed rate for pecking Slot length and first milling direction Slot width Feed rate Approach starting position, cycle call Retract In tool axis, end of program
(+)
Page P 72
I
I
Programming
Modes
G75/G76
Tool required
The cycle requires a center-cut end mill (IS0 1641). or pilot drilling at the pocket center The tool determines the radius at the pocket corners. There is no circular movement in the pocket corners.
Position
The pocket sides are parallel to the coordinate system axes; the coordinate system may have to be rotated (see G73: Rotating the coordinate system).
Input
data
Setup clearance A: distance between tool tip (starting position) and workprece surface. Milling depth B (= pocket depth): distance between workpiece surface and bottom of pocket. Pecking depth C: distance by which the tool penetrates the workpiece. The signs for setup clearance, milling depth and pecking depth are all the same (usually negative). Feed rate for pecking F,: traversing speed of the tool at penetration. IS side length D: pocket length parallel to the first main axis of the machining plane. The sign is always positive. 2d side length E: pocket width; the sign is always positive. Feed rate F,: traversing speed of the tool in the machining plane. Direction Climb G75: of the milling path: milling FMAX la
The starting position S (pocket center) must be approached without radius compensation in a preceding positioning block.
l
The tool penetrates the work from the starting position (pocket center). 0 The cutter then follows the programmed path at feed rate F2. The axis side the starting direction of the cutter is the positive direction of the longer side, i.e. if this longer is parallel to the X axis, the cutter starts in posrtrve X direction. Y direction
The cutter always starts It- the positive on square pockets. HEIDENHAIN TNC 2500B
Programming
Modes
Page P 73
G75/G76
Stepover
according
k: stepover F: the overlap factor specified by the machine manufacturer (depends upon a machine parameter, see index A General Information, MOD Functions, User parameters) Fi: cutter radius
Example
G99 Tl L+O R5 * Tl G17 S200 * G76 PO1 -2 PO2 -30 PO3 -10 PO4 80 PO5 X+80 PO6 X+40 PO7 100 * Setup clearance Milling depth Pecking depth Feed rate for pecking 1 side length of the pocket 2d side length of the pocket Feed rate Y+3.5 M3 * Pre-positioning spindle on Pilot positioning cvcle call in X, Y,
Z-i-2 M99 *
in Z,
Page P 74
Programming
Modes
G77/G78
Tool required
The cycle requires a center-cut end mill (IS0 1641) or pilot drilling at the pocket center S. Setup clearance A: distance between tool trp (starting position) and workpiece surface. Milling depth B (= pocket depth): distance between workprece surface and bottom of pocket. Pecking depth C: amount by which the tool penetrates the workpiece. The signs for setup clearance, milling depth and pecking depth are all the same (usually negative) Feed rate for pecking F,: traversing speed of the tool at penetration. Circle radius R: radius of the circular pocket. Feed rate Fp: traversing speed of the tool in the machining plane. Direction of the milling path: Conventional milling (up cut) G77: clockwise, up-cut milling with M3 Climb G78: milling (down cut) counterclockwise, with M3
Input
data
down-cut
milling
Starting position
The starting positron S (pocket center) must be approached wrthout radius compensation in a preceding positioning block.
l
Process
The tool penetrates the work from the starting position (pocket center) at the feed rate for peckrng. The cutter then follows the programmed spiral path at feed rate F2. The dtrectron of the path depends upon the programming (here, G78). direction of the cutter is for the
The starting
l l l
IF2
The maximum stepover is the value k (see Rectangular Pocket Milling). The process milling depth
IS
Programming
Modes
Page P 75
G77/G78
G77 PO1-2 PO2-20 PO3-6 PO480 PO5+35 PO6100 * GO0 G40 X+60 Y-c.50MO3 * Z+2 M99 *
Setup clearance Milling depth Pecking depth Feed rate for pecking Circle radius Milling feed rate Pre-positioning in X and Y
..
Starting
position
in Z, cycle call
Page P 76
Programming
Modes
SL Cycles Fundamentals
The group of cycles that we categorize as SL cycles is designed for efficient programming and milling of contours with one or more tools. The contour can be composed of several overlapping subcontours which are defined in separate subprograms. PILOT DRILLING: The term SL cycles is derived from the characteristic Subcontour List of cycle G37 CONTOUR GEOMETRY, in which the list of subprograms is filed. The control superimposes the separate contours to form a single whole. The programmer need not calculate the points of intersection! To be able to work with several tools, the machining task is defined in cycle G37 without toolspecific data or feed values; those are entered in the individual cycles: G56 Pilot drilling (If required) G57 Rough-out G58/G59 Contour mrllrng (finishing) Each subprogram must specify whether G41 or G42 radius compensation applies and in which direction the contour is to be machined. The control deduces from these data whether the specific subprogram describes a pocket or an island. The control The control Scheme of a program with SL cycles recognizes recognizes a pocket if the tool path lies inside the contour. an island if the tool path lies outside the contour.
Be sure to run a graphic simulation before executing computed by the control as desired. All coordinate transformations formations, Overview). are allowed
a program
to see whether
the contour
was Trans-
In programming
the contours
(see Coordinate
Not all of the SL cycles are always required For easier famtltanzation. the followrng examples progressively to the full range of functions. begin with only the rough-out cycle and then proceed
Programming
Modes
Page P 77
G37
r
G37
The label numbers (subprograms) of the subcontours are specified in cycle G37 contour geometry. Up to 12 label numbers can be entered. The TNC computes the intersections of the resulting contour from the subcontours. Cycle G37 is immediately effective after definition (this cycle cannot be called). The list of subcontours in cycle G37 should begin with a pocket.
FA cl
D A B
11. 12 and 13 define the in the example. is desired and if the tool must
A, B = Pockets C, D = Islands
Example
Rough-out:
G57
Cycle G57 specifies the cutting path and partitronrng. It must be called, and can be executed separately.
Tool required
Cycle G57 requires a center-cut end mill (IS0 1641) if no pilot drilling repeatedly jump over contours and plunge to the milling depth.
Input
data
Setup clearance (A), milling depth (B), pecking depth (C) are incremental with the same signs (usually negative). Feed rate for pecking: tool at penetration (Fl). traversing speed of the
Finishing allowance: allowance in the machining plane, positive value (D). If a negative allowance is entered, pockets will be milled too large by twice the allowance, while islands will be milled too small by the same amount. Rough-out angle: roughing out direction relative to the reference axis of the machining plane. Feed rate: traversing speed of the tool in the machining plane (F2). The tool must be positioned at the setup clea rance (A) before the cycle call.
Example
Setup clearance Milling depth Pecking depth Feed rate for penetration Finishing allowance Rough-out angle Feed rate in the working
plane
Page P 78
Programming
Modes
SL Cycles Rough-out:
Process
G57
The tool is automatically positioned over the first penetration point (with finishing allowance). It may be necessary to pre-position the tool before the call to prevent collision. The tool penetrates at the feed rate for pecking.
After reaching the first pecking depth, the tool mills the first subcontour at the programmed milling feed rate with the frnrshing allowance. At the penetration point, the tool is advanced to the next pecking depth. This process is repeated unttl the programmed milling depth is attained. Further subcontours are milled in the same manner.
The area is then roughed out, the tool skipping over islands as follows: the tool retracts in rapid traverse to the setup clearance and moves to the next calculated penetration point. The tool then penetrates behind the island in the pre-milled channel at the feed rate for pecking. The feed direction corresponds to the programmed roughout angle and can be set, so the resulting cuts are as long as possible with few cutting movements. The stepover equals the tool radius. Clearing out can be performed with multiple downfeeds. The tool is retracted end of the cycle. to the setup clearance at the
A machine parameter determines whether the contour is milled first and then the area cleared or vice versa. In the same way is specified whether contour milling or roughing out is performed continuously over all infeeds, or for each infeed in the specified sequence.
Climb/ conventional
A machine parameter also determines whether the contour is milled conventionally or by climb cutting (see index A General Information, MOD Functions, User parameter MP 7420). Begin with contour milling
Programming
Modes
SL Cycles Roughing-out
Task Rectangular
a rectangular
radius pocket with rounded
corners,
with a center-cut
60
bO@
a w
LBLl-.
L
PGM %7206 O/o7206 G71 * NlO G30 G17 X-20 Y-20 Z-40 * N20 G31 G90 X+120 Y+120 Z+O * N30 G99 Tl L-t0 R+5 * N42 Tl G17 SlOOO * N50 GO0 G90 Z+lOO MO3 * N60 G37 PO2 N70 G57 PO1 PO4 PO7 N80 G40 X+40 1* -2 PO2 -20 PO3 -8 100 PO5 +0 PO6 +0 500 * Y+50 Z-t2 M99 * Blank min. point Blank max. point Tool definition Tool call
Pre~positionrng,
cycle call
N90 GO0 G40 Z-t20 MO2 * NlOO NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 N210 N9999 G98 Ll * G41 X+40 Y+60 * X+15 * G25 R12 * Y+20 * G25 R12 * x+70 * G25 R12 * Y+60 * G25 R12 * X+40 * G98 LO * O/o7206 G71 *
Retract, return jump to start of program Contour subprogram Radius compensatron IS G41 (RL) and tool path is counterclockwise, the control therefore deduces: pocket.
0 0 0 @ 0 @
PGM %7207
creates a contour
dimensions
Page P 80
Programming
Modes
SL Cycles Roughing-out
Task Rectangular
a rectangular
radius. Island with rounded
island
corners,
with a center-cut
YA 6o o/
-- LBL 1
15
I 70
PGM %7207
O/o7207 G71 * N10 G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R-t5 * N40 Tl G17 Slll * N50 GO0 G90 Z+lOO MO3 * N60 G37 PO1 N70 G57 PO1 PO4 PO7 N80 G40 X+40 2 PO2 1 * -2 PO2 -20 PO3 -8 100 PO5 +0 PO6 +0 500 * Y-t50 Z+2 M99 *
Blank
Pre-positioning,
cycle call
N90 GO0 G40 Z+20 MO2 * NlOO NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 N210 N220 N230 N240 N250 N260 N270 N280 N9999 G98 G42 X+15 G25 Y+20 G25 x+70 G25 Y+60 G25 X+40 G98 Ll * X+40 Y+60 * * R12 * * R12 * * R12 * * R12 * * LO * 0 0 0 6 0 63
Retract, return jump to start of program Radius compensation is G42 (RR) and tool path is counterclockwise, the control therefore deduces: island.
G98 L2 * G41 X-5 Y-5 * X+105 * Y+105 * X-5 * Y-5 * G98 LO * O/o7207 G71 * creates a contour pocket with identical
limit
dimensions.
Programming
Modes
Page P 81
SL Cycles Overlaps
Overlapping pockets and islands Pockets and islands can be overlapped (superimposed). The resulting contour is computed by the TNC. The area of a pocket can, for example, be enlarged by an another pocket or reduced by an Island. Starting position Machining begins at the starting positron of the first contour label of cycle G37. The starting POSItions should be located as far as possible from the superimposed contours. If the subcontours are always defined in the same working direction, then for example with a positive working direction pockets can be easily recognized by the G41 (RL) compensation, and islands by the G42 (RR).
Page P 82
Programming
Modes
SL Cycles Overlapping
Task Overlapped pockets.
pockets
Interior machining
of overlapping
35
65
* X
PGM
%7208
O/o7208 * G71 NlO G30 G17 X+0 Y-t0 Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 T2 L+O R+3 * N40 T2 G17 SlOO* N50 GO0 G90 Z+200 * N60 G40 X+50 Y-t50 MO3 * N70 G37 PO11 PO22 * N80 G57 PO1-2 PO2-10 PO3-10 PO4500 PO5+0 PO6+0 PO7500 * N90 Z+2 M99 * NlOO GO0 G40 Z+200 MO2 *
Pre-position
on
for rough-out
Z. cycle call
Note
Machining begins with the first contour label defined in block N70! The first pocket must begin outside the second pocket.
Programming
Modes
SL Cycles Overlapping
pockets
cl
Sl
52
Points of intersection
The pocket elements A and B overlap each other Since the control automatically computes the points of intersection programmed. They are programmed NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 as full circles
Ll * X+10 Y+50 * J+50 * X+10 Y+50 * LO * L2 * G41 X+90 Y+50 J+50 * X+90 Y+50 * LO *
J *
IA
B
Left pocket
Right pocket
N9999 O/o7208 G71 * Execution Depending on the control or the area. Contour edge is machined setup (machine parameters), machining begins either with the contour edge
first
Area is machined
first
Page P 84
Programming
Modes
SL Cycles Overlapping
Sum area
pockets
Both areas (element A and element B) along with the common overlapping area are to be machined. l A and B must be pockets. l the first pocket (in cycle G37) must begin outside the second. NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+10 Y+50 * J+50 * X+10 Y+50 * LO * L2 * G41 X+90 Y-t50 * J+50 * X+90 Y+50 * LO *
I
the portion
--.---A
points of the
0 A and 0 B are the starting contour labels. Difference area Area A is to be machined overlapped by B:
l l
without
A must be a pocket and B an island. A must begin outside of B. G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+10 Y+50 * J+50 * X+10 Y+50 * LO * L2 * G42 X+90 Y+50 * J+50 * X+90 Y+50 * LO *
NllO N120 N130 N140 N150 N160 N170 N180 N190 N200
An island can also reduce several pocket areas. The starting points of the pocket contours must all be outside the island.
Intersecting area
commonly
by A and B is
A and B must be pockets. A must begin inside of B. G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+60 Y+50 * J+50 * X+60 Y+50 * LO * L2 * G41 X+90 Y+50 * J+50 * X+90 Y+50 * LO *
NllO N120 N130 N140 N150 N160 N170 N180 N190 N200
Programming
Modes
Page P 85
SL Cycles Overlapping
Expanding program Oh7208
islands
An island always requrres an addrtronal = pocket (here, G98 L5). outer limit
L5 * G41 X+5 * * * * LO *
Y+5 *
A pocket can also reduce several island areas. This pocket must begin inside the first island. The starting points of the remaining Intersected Island contours must be outside the pocket.
Both areas (element A and element B) along with the common overlapping area are to remain unmachined. 0 A and B must be islands. l The first island must begin outsrde the second. NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 G98 G42 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+10 Y+50 * J+50 * X+10 Y+50 * LO * L2 * G42 X+90 Y+50 * J+50 * X+90 Y+50 * LO * 0 A, 0 B are the starting points of the subcontours.
Difference area
Area tion l A l A NllO N120 N130 N140 N150 N160 N170 N180 N190 N200
A is to remain unmachined except that poroverlapped by B. must be an island and B a pocket. must begin outside of B. G98 G42 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+10 Y+50 * J+50 * X+10 Y+50 * LO * L2 * G41 X+40 Y+50 * J+50 * X+40 Y+50 * LO *
Intersecting area
Only the area covered commonly remains unmachined. 0 A and B must be islands. 0 A must begin inside of B. NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 G98 G42 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 Ll * X+60 Y+50 * J-t50 * X+60 Y+50 * LO * L2 * G42 X+90 Y+50 * J+50 * X+90 Y+50 * LO *
by A and B
Page P86
Programming
Modes
SL Cycles Overlapping
Task
Overlapping pockets with islands. Island within a pocket. Interior machining of overlapping 3 mm. Islands are located within pockets and Islands with a center-cut a pocket area. end mill (IS0 1641). tool radius
35
65
m X
O/o7209 G71 * N10 G30 Cl7 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 T2 L-t0 R+2.5 * N40 G37 PO1 1 PO2 2 PO3 3 PO4 4 * N50 G98 LlO * N60 TO G17 * N70 GO0 G40 G90 Z+20 * N80 x-20 Y-20 * N90 G98 LO * NlOO MO6 * NllO T2 SlOO * N120 G57 PO1 -2 PO2 -10 PO3 -5 PO4 500 PO5 +0 PO6 +0 PO7 500 * N130 N140 N150 N160 Z+2 * G79 MO3 * LlO,O * GO0 Z+20 MO2 * %7209
IS
List of contour
elements
Program
an expansion
of program
%7208:
(subprograms
3 and 4).
Programming
Modes
Page P 87
SL Cycles Overlapping
The entire contour is composed of the elements A and B, i.e. two overlapping pockets and C and D, I.e. two islands within these pockets
N170 N180 N190 N200 N210 N220 N230 N240 N250 N260 N270 N280 N290 N300 N310 N320 N330 N340 N350 N360 N370 N380 N390 N400 N410 N9999
G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 G98 GO1 X+43 Y+58 X+27 Y+42 X+35 G98
Ll * X+35 Y+2.5 * J+50 * X+35 Y+25 * LO * L2 * G41 X+65 Y+25 * J+50 * X+65 Y+25 * LO * L3 * G42 X+35 * * * * * LO * Y+42 *
Left pocket
Right pocket
Square
island
G98 L4 * GO1 G42 X+65 X+73 * X+65 Y+58 * X+57 Y+42 * X+65 * G98 LO * O/o7209 G71 *
Execution
Machining
of the contour
edges
Area clearance
(unfjnlshed)
Page P 88
Programming
Modes
y,
-4
0 Cutter infeed point Input data The input values are identical to pecking; finishing allowance in addition. enter a
Finishing allowance: allowance for drilling (POSI tive value), effective in the working plane. The sum of the tool radius and the finishing allowance should be the same for pilot drilling and roughing-out. The tool must be at the setup clearance calling the cycle! before
D = Finishing allowance R = Tool radius Process The tool IS automatically positioned over the first infeed point, offset by the allowance. The tool may have to be pre-positioned to prevent collision! The drilling process is identical pecking (cycle 1). to the fixed cycle
Subsequently, the tool is positioned over the second rnfeed point at the programmed setup clearance, and the drilling procedure is repeated.
Example
Setup clearance Dnlltng depth Pecking depth Feed rate for infeed Finishing allowance Page P 89
Programming
Modes
(finishing):
is used for
G58/G59
The cycle can also be generally used to mill contours made up of subcontours. Thrs offers the following benefits: l contour intersections are computed, l collrsrons are avoided. Tool required The cycle requires a center cutting tool.
The cycle must be called! The setup clearance A, milling depth B and pecking depth C are identical to pecking. The signs must be the same (normally negative).
Input
data
Feed rate for pecking: tool traversing speed at infeed (F,). Rotating direction for contour milling: mulling direction along the pocket contour (island contours: opposite milling direction). For the following directions, M3 means G58: down-cut milling for pocket and Island, G59: up-cut milling for pocket and Island. Feed rate Fs: tool traversing speed in the machining plane. The tool must be at the setup clearance to the cvcle call. (A) prior
Process
positioned
with
clamping
devices!
The tool then penetrates the workpiece at the programmed feed rate to the first pecking depth. After reaching the first pecking depth, the tool mills the first contour at the programmed feed rate in the specified rotating direction. At the infeed point, the tool IS advanced to the next pecking depth. The procedure is repeated until the programmed milling depth is attained. The next subcontours manner. Example are milled in the same P = Programmed contour (pocket) D = Finishing allowance from cycle G57 rough-out Setup clearance Milling depth Pecking depth Feed rate for rnfeed Feed rate in the working
plane
Page P 90
Programming
Modes
Cycle definition:
with G37
No call!
Drilling
with G56
Pre-positioning, Cycle call!
Rough-out
cutter
with G57
Pre-posrtionrng. Cycle call!
Finishing
Contour subprograms
Subprograms
Programming
Modes
Page P 91
O/o7210 G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z-t0 * N30 G99 Tl L+O R+2.2 * N40 G99 T2 L+O R+3 * N50 G99 T3 L-t0 R+2.5 * N60 G37 PO1 1 PO2 2 PO3 3 PO4 4 * N70 G98 LlO * N80 TO G17 * N90 GO0 G90 Z+20 * NlOO G40 X-20 Y-20 * NllO G98 LO * N120 MO6 * N130 Tl G17 SlOO * N140 G56 PO1 -2 PO2 -20 PO3 -5 PO4 500 PO5 +2 * N150 Z+2 * N160 G79 MO3 * N170 LlO,O * N180 MO6 * N190 T2 G17 SlOO * N200 G57 PO1 -2 PO2 -20 PO3 -5 PO4 500 PO5 +2 PO6 +0 PO7 500 * N210 Z+2 * N220 G79 MO3 * N230 LlO,O * N240 MO6 * N250 T3 G17 S500 * N260 G59 PO1 -2 PO2 -20 PO3 -5 PO4 100 PO5 500 * N270 Z+2 * N280 c;79 MO3 * N290 LlO,O * N300 GO0 G40 Z-t20 MO2 *
Pilot drilling
Roughing-out
Finishing
of program.
Subprogram
N305 N310 N320 N340 N350 N360 N370 N380 N390 N400 N410 N420 N430 N440 N450 N460 N470 N480 N490 N500 N510 N520 N530 N540 N550 N9999
G98 G41 I+35 GO3 G98 G98 GO1 I+65 GO3 G98 G98 GO1 X+43 Y+58 X+27 Y+42 X+35 G98
Y+25 * * Y+25 * Right pocket X+65 Y+25 * * Y+25 * Square Y+42 * island
L3 * G42 X+35 * * * * * LO *
G98 L4 * GO1 G42 X+65 X+73 * X+65 Y+58 * X+57 Y+42 * X+65 * G98 LO * O/o7210 G71 *
Triangular Y+42 *
island
subprograms
Coordinate Overview
The following mations: G54 G28 G73 G72
Transformations
transfor-
Datum shift Mirror image Rotation Scaling Datum shift Mirror image
Original
With the help of coordinate transformatrons, a program sectton can be executed as a variant of the original. In the following descriptions, subprogram 1 is always the orrgrnal subprogram (Identified by the gray background).
I
Immediate activation Every transformatron is immediately active - without
Rotation
Scaling
being called
Duration activation
of
A coordinate transformation remains active until it IS changed or cancelled Its effect IS not Impaired by interrupting and aborting program run. This is also true when the same program is restarted from another location with GOT0 0.
End of activation
Error message
CYCL INCOMPLETE
This error message is displayed if a fixed cycle is called after defining a transformation but no fixed cycle was defined. Otherwise the control executes the fixed cycle which was last defined.
Programming
Modes
Page P 93
If a datum shift is to be combined with other transformations, the shift usually has to be made before the other transformations. In this way you can execute a program section at several locations and in modified form, such as rotated, reduced or mirrored.
Effect
For a datum shift defrnitron, only the coordinates of the new datum are to be entered. An active datum shift is displayed in the status field. All coordinate inputs then refer to the new datum.
Incremental/ absolute
In the cycle definition the coordinates can be entered as absolute or incremental dimensions:
l
Absolute: The coordinates of the new datum refer to the manually set workpiece datum. Refer to the center figure. Incremental: The coordinates of the new datum refer to the last valid datum, which can itself be shifted. Refer to the lower figure.
i90 Y
ii
Cancelling the shift A datum shift is cancelled by entering the datum shift XO/YO/ZO Only the shifted axes have to be entered. G54 X+0 Y+O Z+O *
Absolute
datum shift
-77
G91Y
Incremental datum shift Page P 94 HEIDENHAIN TNC 2500B
Programming
Modes
Eln
IN El
Select the axis and coordinate of the new datum. The datum shift IS possible In all four axes.
Conclude
block
Example
O/o54 G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R+5 * N40 Tl G17 S200 * N50 Ll,O * Without datum N60 G54 X+40 N70 L1,O * N80 G54 X+0 Y+O * Y+60 * With datum
shift 0
shift 0
Subprogram NIOO NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 N210 N220 G98 COO Z+2 GO1 G41 Y+20 X+25 X+30 Y+O X+0 G40 GO0 G98 Ll * G40 X-10 Y-10 MO3 * * Z-5 FlOO * X+0 Y+O F500 * * * Y+15 * * * X-10 Y-10 * Z+2 * LO *
Programming
Modes
Page P 95
The tool
Mirroring one axis: The rotating direction is changed with the coordinate signs, so climb milling becomes conventional and vice versa. The milling directron remains unchanged for fixed cycles. Mirroring two axes: The contour which was mirrored in one axis is mirrored a second time - in the other axes. The direction of rotation and milling (climb or conventional) remains the same. ( \ wt--
\ \
/ \ \-------I /
/-----
n c)
R\ -------
n u \ \ / \ i
(GIL?
0 --l Y
X, Y = Axes to be mirrored Datum position The position of the datum is very important obtaining the desired change. 1. If the datum IS on the part contour, flips over its own axis. fat
the part
2. If the datum IS outside the contour, the part flips and jumps to another position! Cancelling the mirror image The mirror image cycle is cancelled by entering the mirror image cycle and responding to the dialog query with END 0: G28 *
Page P 96
Programming
Modes
Example
A program section (subprogram 1) is to be executed - as originally programmed - at posrtion X+O/Y+O. It IS then mirrored in X and executed at the position X+7O/Y+60. %34 G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z-t0 * N30 G99 Tl L+O R+5 * N40 Tl G17 S200 * N50 Ll,O * N60 G54 X+70 N65 G28 X * N70 Ll,O * N80 G54 X+0 N85 G28 * Y+O * Y+60 * Not mirrored 0
N90 GO0 G40 Z+.50 MO2 * Subprogram: NlOO NllO N120 N130 N140 N150 N160 N170 N180 N190 N200 N210 N220 G98 GO0 Z-t2 GO1 G41 Y+20 X+25 X+30 Y+O X+0 G40 GO0 G98
Ll * G40 X-10 Y-10 MO3 * * Z-5 FlOO * X+0 Y+O F500 * * * Y+15 * * * X-10 Y-10 * Z+2 * LO *
Note
For corre.ct machining according to the drawing, shown in the above execution be retained!
it is absolutely
necessary
of cycles
Programming
Modes
Page P 97
Coordinate Coordinate
The cycle
The coordinate system can be rotated in the machrnrng plane around the current datum in a program. Rotation is effective without being called and IS also active rn the operating mode Positioning with MDI. To rotate the coordinate system, you only have to enter the rotation angle H.
Activation
Rotation
Planes
All coordinate inputs following the rotation are then referenced to the rotated coordinate system The rotation angle is entered Input range: -360 to +360 mental). in degrees () (absolute or rncre-
indicated
by ROT in
A rotation angle O.
IS
cancelled
by entering
the rotation
G73 H+O *
Page P 98
Programming
Modes
Coordinate Coordinate
Selecting the cycle Initiate the dialog
Absolute
dimensions
or
block.
Example
A program section (subprogram 1) IS to be executed - as orrgrnally programmed - at position X+O/Y+O. It IS then rotated in X and executed at the position X+7O/Y+60.
O/o35 G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R+5 * N40 Tl G17 S200 * N50 Ll,O * Non-rotated execution 0
Rotated execution. 1. Datum shift 0 2. Rotation 0 3. Subprogram Cancel datum Reset rotation call shift
Sequence:
N70 L1,O * N80 G54 X+0 Y+O * N90 G73 H-t0 * NlOO GO0 G40 Z+50 MO2 *
w
w
Subprogram
The associated
subprogram
(see Datum
shift) IS programmed
after MO2
Programming
Modes
Page P 99
Scaling is effective immediately, without being called. Scaling factors greater than 1 result In enlargement, factors between 0 and 1 result in reduction.
F factor
to enlarge
The control applies thus factor to all coordrnates and radii either in the machrning plane or (depending on MP 7410; see index A General Information, MOD Functions, User parameters) in all three axes X. Y and Z. The factor also affects dimensions in cycles. Input range: 0.000001 Datum position to 99.999999.
It is helpful to locate the datum on an edge of the subcontour. This way, the datum of the coordinate system is retained during a reduction or magnifrcation as long as It IS not subsequently moved or If the move is programmed before the scaling factor.
Activating scaling
G72 F0.8 *
Cancelling scaling
IS
cancelled
by entering
G72 Fl *
Page P 100
Programming
Modes
Example
A program section (subprogram 1) is to be executed - as origtnally programmed - referenced to the manually set datum X+O/Y+O. It is then scaled with 0.8 and executed at the datum X+6O/Y+70.
O/o36G71 * NlO G30 G17 X+0 Y+O Z-40 * N20 G31 G90 X+100 Y+lOO Z+O * N30 G99 Tl L+O R+5 * N40 Tl G17 S200 * NSO Ll,O * Execution in original size 0
Execution with scaling factor. Sequence: 1. Shift datum 0 2. Define scaling factor 0 3. Call subprogram (scaling factor effective) Cancel transformations
N90 G.54 X+0 Y+O * NlOO G72 Fl * NllO GO0 G40 Z-t50 MO2 * Retract, return jump
Subprogram
The corresponding
subprogram
after M02.
Programming
Modes
Page P 101
Activation
Possible applications
For example, chip breaking can easily be programmed with a dwell cycle after every drilling step. The dwell time IS specified in seconds. Input range: 0 to 30000 s (A 8.3 hours)
Input
range
Cycle definition
block.
Example
GO4 F0.5 *
Page P 102
Programming
Modes
G39
A callable
program
defined
a fixed cycle
It can be called with G79 M99 M89 (separate (blockwise) (modally) block) or or
Initiate the dialog Entering the cycle selection PROGRAM NUMBER ? Enter program Conclude block. number.
Example
program
N9999 O/o5G71 *
(Parameter
pro-
separately
as %7444
(without
2. %7444 now exists as a callable, additional drilling procedure. This program can remain stored in the control and be called by any other program, 3. Subprogram 1 IS deleted in the main program 7445
e.g. 7445
4. Instead of L 1.0, write in %7445: G39 PO1 7444, and M99 in a subsequent
positioning
block
Programming
Modes
Page P 103
for tool changing systems with defined change positron for tool. Orientation of the transmitter/receiver window of the TS 511 3D touch probe system from HEIDENHAIN.
Activation Ml9
The cycle - if provrded on the machine - IS executed through M19. The spindle orientation IS activated either through
l l
or G36
If the cycle is called without prior definition, the spindle will be oriented to the angle set in the machine parameters. Further information is available from the machine tool builder.
Input
range
is entered
according
to the reference
plane.
Cycle definition
Example
G36 S45 *
Page P 104
Programming
Modes
Parametric Overview
Parametric programming
Programmina
Many problems which would otherwise be impossrble or very difficult can be easily solved with parametric programming. Parametric programming expands the capabilities of the control enormously and offers features such as:
l l
l l
Variable drilling programs Processrng of mathematical curves (e.g.: sine wave, ellipse, parabola, hyperbola) Programs for machining families of parts 3D programming for mold making
Basic functions
The mathematical and logical functions the right are available for programming.
listed at
Computation time
The time required for one computing step depending on the workload on the processor can reach the millisecond range.
DOO: DO1: D02: D03: D04: D05: D06: D07: D08: D09: DlO: Dll: D12:
ASSIGN ADDITION SUBTRACTION MULTIPLICATION DIVISION SQUARE ROOT SINE COSINE ROOT-SUM OF SQUARES IF IF IF IF EQUAL, JUMP UNEQUAL, JUMP GREATER, JUMP LESS, JUMP
For this reason, very many computations and very small displacements may cause the machine axes to be halted. In this case you have to make a compromise between high surface definition (many computations, small displacements) and efficient machining.
The program data shown at the right can be kept variable by using the Q parameters: Enter a Q parameter instead of a specific number. Example for variable positioning: instead of X+20.25 you write X+Q21 The parameter In the program value for 021 must be computed or be defined before it is called.
Nominal
positions
GO1 X+Q21
Y+Q22
Circle data
I+Ql J+Q2 * GO2X+QlO Y+Q20 * GO6X+Qll Y+Q21 * G25 Ql * GO5X+Q21 Y+Q22 R Q62 * F QlO * G99 Tl L+Ql R Q2 * TQ5 G17 SQ6 * Dll POl+QlO PO2+0PO3Q30 * G83 POl-Ql P02-Q2 P03-Q3 PO4Q4 PO5Q5 *
Inch dimensions
Programs using parameters as jump address are not to be switched from mm to inches or vice versa, because the contents of the 0 parameters are also converted during switchover, which would result in false jump addresses.
jump
Programming
Modes
Page P 105
Parametric Selection
Selecting basic functions Basic parameter functions
Programming
are selected
by pressing
the corresponding
number. i
Defining parameters
A parameter is destgnated by the letter Q and any number to parameters 0100 to Q113. Specific numerical values (contents) cal and logical functions. Parameter programmed.
between
can be allocated to the parameter either directly or with mathematicontents can also have a negative sign. Positive signs need not be
Starting values
Parameters must be defined before they can be used. When program run is started, all parameters are automatically assigned the value 0 if machine parameter MP 7300 = 0. If the Q parameters are to be assigned values before program start, set MP 7300 = 1. The Q parameter values are then not deleted at program start. Examples of defined parameters:
e.g. multiplication
block.
Example
Page P 106
Programming
Modes
DOI: Addition
This function defines a specific parameter the sum of two parameters, two numbers parameter and one number.
to be or one
DO1 Q17 PO1+Q2 PO2+5 * DO1 417 PO1+5 PO2+7 * DO1 Q17 PO1+5 PO2-Q12 * DO1 Q17 PO1-Q4 PO2+QS * DO1 Q17 PO1+Q17 PO2+Q17 *
D02: Subtraction
This function defines a specific parameter to be the difference between two parameters, two numbers or one parameter and one number.
DO2 Qll PO1+5 PO2+34 * DO2 Qll DO2 Qll DO2 Qll DO2 Qll PO1+5 PO2+7 * PO1+5 PO2-412 * PO1+Q4 PO2+QS * PO1+Qll PO2-Qll *
D03: Multiplication
This function defines a specific parameter to be the product of two parameters, two numbers or one parameter and one number.
DO3 Q21 PO1+Ql PO2+60 * DO3 421 PO1+5 PO2+7 * DO3 421 PO1+5 PO2-Q12 * DO3 Q21 PO1+Q4 PO2-QS * DO3 Q21 PO1+Q21 PO2+Q21 *
D04: Division
This function defines a specific parameter to be the quotient of two parameters, two numbers or one parameter and one number. Division by 0 is not permitted!
DO4 Q17 PO1+Q2 PO2+62 * DO4 Q17 PO1+5 PO2+7 * DO4 Q17 PO1+5 PO2-Q12 * DO4 417 PO1+Q4 PO2+QS *
D05: Square
root
This function defines a specific parameter to be the square root of one parameter or one number. The operand must be posltlve.
Parameters A subtraction
with negative signs can also be used. can be obtained from an addition and vice versa. This also applies for other operations
Qll = +5 - -Q34
Programming
Modes
Page P 107
sin a =
or a = c
sin a
or b = c
cos a
According
to the Pythagorean
theorem:
Angle
0 I
90 I
180 I
270 I
360 I
D06: Sine
A parameter is defined as the sine of an angle, whereby the angle can be a number or a parameter (unit of measurement of the angle: degrees). 044 = sin Qll
Page P 108
Programming
Modes
Unambiguous angle
If the value of sin a or the side a is known, possible angles always result: Example: sin a = 0.5 a, = +30 and a2 = +150
two
To determrne angle a unambiguously, the value for cos a or side b is required. If this value is known, an unambiguous angle a is the result: Example: sin a = 0.5 and cos a = 0.866 a = +30 , sin a = 0.5 and cos a = -0.866 a = +150
C
a= csrna
-;
a b b=c.(-cosa)
D13: Angle
This function assigns to a parameter the angle from a sine and cosine function, or from the two legs of the right-angled triangle. tana=-=-=p srn a cos a a b -5 8.66 -5 8.66
L-1
Programming
Modes
Page P 109
jumps
N23 DO0 Q2 PO1+50 * $ I N24 G98 L30 * N25 DO1 Ql POl+Ql PO2+1 *
01-C 02
N27 GO0 2200 MO5 * N28 X-20 Y-20 MO2 * Examples: Equation D09: = DO9 POl+Ql PO2+360 PO3 30 * Decision criteria :
A parameter is equal to a value or a second meter, e.g. Ql = 42 or in the example: 01 has the value 360.000.
para-
DlO POl+Ql
P02+Q2
PO3 2 *
A parameter IS not equal to a value or a second parameter, e.g. Ql + Q2 A parameter is greater than a value or a second parameter, e.g. Ql > Q2. Also possible: greater than zero, i.e. positive. A parameter is less than a value or a second parameter, e.g. Ql < 42. Also possible: less than zero, i.e. negative.
Dll
POl+Ql
PO2+360 PO3 17 *
D12:
<
D12 POl+Ql
PO2+Q2 PO3 3 *
Unconditional jumps
unconditional
jumps
functions
DO9 to D12
Page P 110
Programming
Modes
The error message terminates program run. The program must be restarted after the error has been corrected. The messages Error number 0 300 400 484 299 399 483 499 are allocated Screen ERROR as follows: display 0 . . . ERROR 299 tool builder). tool builder). tool builder).
PLC ERROR 01. . . PLC ERROR 99 (or dialog determined by the machine DIALOG 1 . . . 83 (or dialoq determined USER PARAMETER (or dialog determined bv the machine 15 . . . 0 by the machine
= 100
D15: Print
This function outputs current Q-parameter values through the RS-232-C serial interface. You can also enter numerical values between 0 and 499 Instead of Q-parameters. These values call error messages and dialog texts which are stored in the PLC EPROM and are allocated as with D14. You can enter combinations of up to six 0 parameters and numerical values. Example: D15: PRINT Q1/20/Q9/O/Q17/Q33
0100
- 0107
The control can transfer Q parameter 0100 to 0107 are used for this.
PLC to a NC program.
The parameters
The control always stores the tool radius of the last called tool In parameter 0108. The active tool radius can then be used for the radius compensation in parameter computations and comparisons.
The control stores the current Drfferent machines alternately when the current tool axis can this makes program branching Current tool axis no tool axis called X axis is called Y axis is called Z axis is called
tool axis in parameter 0109: use the X.Y or Z axis as the tool axis. On these machines be requested in the machining program; in user cycles possible. Parameter I 0109 = -1 0109 = 0109 = 0109 = 0 1 2
it is helpful
Programming
Modes
Page P 111
on clockwise
MO4 sprndle on counterclockwise M05, if MO3 was previously M05, if MO4 was previously issued issued
0110 = QIIO =
Parameter Meaning:
0111 indicates
whether
on or off.
Parameter Functions,
0112 contains the overlap factor for pocket milling User parameters, MP 7430). can be useful in milling
Information,
MOD
programs.
Parameter 0113 specifies whether the NC program with PGM CALL) contains mm or inch dimensions. The mainprogram mm dimensions inch dimensions contains:
program
Page P 112
Programming
Modes
circle:
O/o37 G71 * NlO G30 G17 X+0 Y-t0 Z-40 * N20 G31 G90 X+100 Y-t100 Z-t0 * N30 G99 Tl L+O R+5 * N40 Tl G17 S200 * Assigning values N50 N60 N70 N80 DO0 DO0 DO0 DO0 QOl 402 Q03 Q04 PO1 PO1 PO1 PO1 +50 +50 +35 +12 * * * *
Center in X Center in Y Bolt circle radius Number of bore holes Select and load drilling cycle
N90 G83 PO1 -2 PO2 -20 * PO3 -5 PO4 0 PO5 100 * NlOO DO0 QlO PO1 +0 * Computation NllO DO4 Q14 PO1 +360 PO2 +Q4 * N120 GO0 G90 Z+2 MO3 *
angle
angle Increment
Approach setup clearance and switch on spindle N130 I+Ql J+Q2 * N140 GlO R+Q3 H+QlO N150 N160 N170 N180 G98 DO1 DO9 GlO
Execution
M99 *
1 bore Start of loop Angle increment Further bores If not all holes are drilled, jump to the start of the loop.
Ll * QlO PO1 +QlO PO2 +Q14 * PO1 +QlO PO2 +360 PO3 2 * H+QlO M99 * PO2 +360 PO3 1 *
Programming
Modes
Page P 113
Main
program
O/o7445 * G71 G30 G17 X+0 Y+O Z-40 * G31 G90 X+100 Y+lOO Z+O * DO0 QOl PO1-1 * DO0 402 PO1-40 * DO0 Q03 PO1-5 * DO0 Q04 PO1+0,5 * DO0 QO5 PO1+200 * DO0 Q06 PO1+0 *
G99 Tl L+O R+2,5 * Setup clearance (incremental) Depth (incremental) lnfeed (incremental) Dwell time Drilling feed rate Work surface (absolute) Define tool Call tool, spindle speed Approach drilling position Drilling End of main program
Tl G17 S200*
G98 Ll * DO1 Q21 PO1+Q6 PO2-Ql * DO0 Q23 PO1+Q6 * DO1 Q24 PO1+Q6 PO2+Q2 * GO0Z+Q21 * G98 LlO * DO1 423 PO1+Q23 PO2+Q3 * DO1 Q22 PO1+Q23 PO2-Ql * D12 PO1+Q23 PO2+Q24 PO399 * GO1Z+Q23 FQ5 * Z+Q22 * Dll PO1+Q23 PO2+Q24 PO310 * G98 L99 * GO1Z+Q24 FQ5 * GO4 FQ4 * GO0 Z+Q21 * G98 LO * O/o7445 * G71
Drill directly to final depth Clear base of bore Return to setup clearance
Setup clearance (absolute) Current work surface (absolute) Final drilling depth (absolute) Approach setup clearance in rapid traverse Compute (new) drilling depth Compute (new) chip breaking height Drilling depth would not be attained Drilling Chip breaking Another drilling
step required?
a1
F 6
FMAX
Page P 114
Programming
Modes
An ellrpse is defined according to the followrng formula (parameter form of the ellipse): X = a cos a Y = b sin a a and b are referred to as the semiaxes of the ellipse. Starting at 0 (02 = starting angle a,) and increasrng a In small increments (Ql = incremental angles Au) to 360 (03 = end angle a,), a multitude of points on an ellipse results. If these points are connected by short straight lines (see part program below, block N320). a closed contour is produced. The sine and cosine functions are described in detail under Parametric Programming, Trrgonometric functions. The machining direction of the ellipse (counterclockwise) and the selected radtus compensatron G41 produce an inside contour (pocket). The contour IS contained In the subprogram with program section repeat. out With the SL cycle contour geometry (G37). you can write a parameter program as an SL subprogram and execute this with the SL cycle roughout (G57) by selecting an appropriate rncremental angle. TOO MANY SUBCONTOURS
b=Q5
Note
Process
Roughing
Error message
If the incremental angle (Au = QO) selected for roughing out is too small, the control calculates too many short straight lines, which are interpreted as excessive subcontours. Remedy A relatively large incremental angle (e.g. 00 = IO) suffices for roughing out. For subsequent frntshing, the subprogram IS executed in the conventional manner with a finer incremental angle (e.g. 01 = 1). This program works with only one tool. It can be expanded to use a roughing cutter for roughing out (G57) and a finishing cutter for finishing (G58/G59). Also, a center-cut end mill (IS0 1641) is required or cycle G56 is to be applied for pilot drilling.
Finishing
Note
Programming
Modes
NlO DO0 QOO PO1 +lO * N20 DO0 QOl PO1 +l * N30 DO0 402 PO1 +0 * N40 DO0 403 PO1 +370 * N50 DO0 Q04 PO1 +45 * N60 DO0 QO5 PO1 +25 * N70 DO0 Q06 PO1 +50 * N80 DO0 Q07 PO1 +50* N90 DO0 QOS PO1 +2 * NlOO DO0 QO9 PO1 -5 * NllO N120 N130 N140 N150 N160 N170 N180 G30 G17 X+0 Y+O Z-10 * G31 G90 X+100 Y+lOO Z-t0 * G99 T25 L+O R+2.5 * T25 G17 SlOOO * GO0 G40 G90 Z+50 MO6 * Z+QS MO3 * DO0 Q14 PO1 +Q2 * G54 X+Q6 Y+Q7 * 2 * -QS PO2 +Q9 PO3 -5 100 PO5 +2 PO6 +45 100 *
roughing frnrshing
Roughing
out
N190 G37 PO1 N200 G57 PO1 PO4 PO7 N210 G79 * N220 N230 N240 N250 DO0 DO0 GO1 L2,O
Define subprogram 2 - as contour label SL cycle rough-out (for more information, see SL Cycles) Cycle call Copy Incremental angle for finishing Copy starting angle for counter Drive tool to milling depth Z Call subprogram 2 Retract spindle axis, jump to start of program Label 2 Computation of the X and Y positions elliptical path
Finishing
.-2
L2 * QlO PO1 +Q2 * Qll PO1 +Q2 * 412 PO1 +QlO PO2 +Q4 * 413 PO1 +Qll PO2 +Q5 * G41 X+Q12 Y+Q13 F200 * 402 PO1 +Q2 PO2 +QO * PO1 +Q2 PO2 +Q3 PO3 2 * LO * G71 * than 360, so the contour
IS
on the
Feed rate for finishing Increase angle If angle not attained, jump to label 2
N9999 %94152500
safely completed
Modified program
If only the curve of the ellipse is to be milled, lines NIO and N190 to N210 are not needed. Line N240 (drive tool to milling depth Z) is inserted behind line N320.
Page P 116
Programming
Modes
-i
Geometry
You obtain a hemisphere Starting 3D angle End 3D angle Starting plane angle End plane angle Cutting conditions 01 02 Q6 07
you select:
Cutting is performed during both the advance return movements. The following can be selected: 3D angle increment 03 Downfeed rate 011 Milling feed rate 012
and
When selecting the 3D incremental angle, you have to make a compromise between the desired surface quality and the machining time. Small 3D incremental angles must be selected for high surface quality, but they require correspondrngly long machining times.
Tool required
A spherical
Assigning values
O/o7816 G71 * NlO DO0 QOl PO1 +lO * N20 DO0 Q02 PO1 +5.5 * N30 DO0 403 PO1 +l * N40 DO0 404 PO1 +40 * N50 DO0 QOS PO1 +45 * N60 DO0 406 PO1 -90 * N70 DO0 Q07 PO1 +90 * N80 DO0 QOS PO1 +50 * N90 DO0 QO9 PO1 +50 * NlOO DO0 QlO PO1 -40 * NllO DO0 Qll PO1 +lOO * N120 DO0 Q12 PO1 +500 *
Starting 3D angle End 3D angle 3D incremental angle Sphere radius Setup clearance in Z Starting plane angle End plane angle X sphere center Y sphere center Z sphere center Downfeed rate Mrllrng feed rate
c=,
F 012
Blank
N130 G30 G17 X+0 Y+O Z-50 * N140 G31 G90 X+100 Y+lOO Z-t0 * N150 G99 Tl L+O R-t.5 * N160 TO G17 * N170 GO0 G90 Z+lOO MO6 * N180 Tl G17 S800 * call N190 L2,O * N200 GO0 Z+lOO MO2 *
Tool
Roughing
If roughing
is required,
larger sphere
radius (04)
Programming
Modes
Page P 117
Setting starting
the values
Starting position
N210 N220 N230 N240 N2.50 N260 N270 N280 N290 N300 N310 N320 N330 N340 N350 N360 N370 N380 N390 N400 N410 N420 N430 N440
G98 L2 * G54 X+QS Y+Q9 Z+QlO * I+0 J+O * DO0 Q20 PO1 +Ql * DO1 431 PO1 +Q4 PO2 +Q108 * L3,O * GlO G40 R+Q17 H+Q6 MO3 * GO0 Z+QS * GO1 Z+Q15 FQll * G13 H+Q7 FQ12 * G98 DO1 Dll L3,O GO1 Gil G12 DO1 Dll L3,O GO1 Gil G13 D12 Ll * 420 PO1 +Q20 PO2 PO1 +Q20 PO2 t-Q2 * Z+Q15 FQll * R+Q17 FQ12 * H+Q6 * 420 PO1 +Q20 PO2 PO1 +Q20 PO2 +Q2 * Z+Q15 FQll * R+Q17 FQ12 * H+Q7 FQ12 * PO1 +Q20 PO2 +Q2
Move datum to the sphere center Set circle center Starting and current 3D angle Compensate sphere radius (with tool radius) Compute starting posrtron Approach starting position Approach setup clearance Plunge cut at downfeed rate Crrcle segment to plane end angle
-/
Program
loop
+Q3 * PO3 99 *
3D angle increment If condition* is fulfilled, then jump to end Position computation Pre-positioning for withdrawal Return to plane starting angle 3D angle increment If condition* is fulfilled, then jump to end Position computation Pre-positioning Arc to plane end angle If condition* is fulfilled, then jump to start of loop
+Q3 * PO3 99 *
PO3 1 *
.-
End
N450 G98 L99 * N460 GO0 Z+Q5 * N470 G54 X+0 Y-t0 Z+O * N480 G98 LO *
Position computations
Computations +Q20 +Q14 +Q20 +Q16 * PO2 +Q31 * * PO2 +Q31 * I Z components Radius components * Condition: if current 3D angle 020 is greater than or less than end 3D angle 02, then jump to 4 4 __
N9999 %7816 G71 * Computation values Q15: Current Z height 017: Current radius (polar radius) 020: Current 3D angle 031: Compensated contour radius Q108: Current tool radius
Cycle sphere
The program
1. Subprogram 2 (blocks N210 to N480) is written as a separate program. 2. Lines N210 and N480 are not required. Subprogram 3 (blocks N490 to N540 is written in place of block N260. 3. The user need only write the surrounding program (blocks NIO to N200) and then call the cycle in block N190 (PGM CALL).
Page P 118
Programming
Modes
Programming
Modes
Page P 119
Programmed Overview
Probing
The programmable probrng functron enables you to take dimension measurements before or dur-ing a program run. You can probe the upper surfaces of castings with varying heights, for example, to ensure that each is machined to the proper depth. In addition, thermally-induced position deviations of the machine can be determined at selected time intervals and compensated.
Proc
The probe moves to the starting position while maintaining the setup clearance (machine parameter). It then approaches the workprece at the measuring feed rate. Upon contact, the probed positron is stored and the probe retracts at rapid traverse to the setup clearance. If the stylus does not make contact before reachrng the maximum probing depth (machine parameter), the operating is aborted.
Conclude
block
Example
to X-IO, Y+20 and Z-20, and then probing result (X position) IS to be stored in 010.
begun
with the X
Program
Page P 120
Programming
Modes
Note
program
The theory behind the measurement of angles explained briefly In Parameter Programming, Trigonometry functions.
is
O/o129 G71 * NlO DO0 Qll PO1 +20 * N20 DO0 Q12 PO1 +50 * N30 DO0 Q13 PO1 +lO * N40 DO0 421 PO1 +20 * N50 DO0 422 PO1 +15 * N60 DO0 423 PO1 +0 * N70 DO0 Q31 PO1 +20 * N80 DO0 432 PO1 +15 * N90 DO0 Q33 PO1 -10 * NlOO DO0 441 PO1 +50 * NllO DO0 442 PO1 +lO * Probing point 0 X, Y, Z coordinates pre-positionrng Probing point 0
for
Probing point 0 Z coordinate 033 valid for probing point 0 Probing point @I
Measure
length
N140 G55 PO1 10 PO2 ZX+Qll Y+Q12 Z+Q13 N150 G55 PO1 20 PO2 ZX+Q21 Y+Q22 Z+Q23 N160 Ll,O * N170 G55 PO1 30 PO2 Y+ X+Q31 Y+Q32 Z+Q33 N180 G55 PO1 40 PO2 YX+Q41 Y+Q42 Z+Q33 N190 L2,O * N200 G38 *
* * Approach auxiliary point 0 Probe Call subprogram 1 0 Probe * 0 Probe * Call subprogram 2
Measure
angle
Program STOP Check result parameter (see Index M Machine Operating Modes, Program run. Checking/Changing 0 Parameters) Retract, jump to start of program
Programming
Modes
Page P 121
N260 G98 Ll * N270 DO2 QOl PO1+Q20 PO2+QlO * N280 G98 LO * N285 * N290 G98 L2 N300 DO2 Q34 PO1+Q40 PO2+Q30 * N310 DO2 Q35 PO1+Q41 PO2+Q31 * N320 D13 402 PO1+Q34 PO2+Q35 * N330 DO1 Q02 PO1-360 PO2+Q2 * N340 G98 LO * N9999O/o129 * G71
or depth Z
Measured
angle
In parameter
Q2.
Page P 122
Programming
Modes
Teach-In
Tool compensation
Position values (coordinates) acquired via Capture actual position contain the length and radius of compensation for the tool in use.
1. Tool definition
Therefore it is advisable when programming with Capture actual position to enter the correct radius compensation (G41. G42 or G43. G44) and use L = 0 and R = 0 in the tool definition. If the tool breaks or another tool is selected instead of the original, then a different length and radius can be taken into account. The new compensation are differences: Radius compensation R = R2-Fi, or R = R3-R, R = RI = R2 = R3 = radius compensation for tool radius of the original tool radius of a new tool tool radius of a new tool the tool definition tool 0 0 0 values for the tool radius
R=O
R= +..,
R= -__
The compensation R can be positive or negative, depending Inserted tool IS larger (+) or smaller (-) than the origrnal tool.
on whether
Length compensation
The compensation for the new tool length IS also determined (see Tool definition, Transferring tool length). The new compensations are entered in the tool definition
as the difference
to the originally
used tool
of the original
tool (R = 0, L = 0)
Programming
Modes
Page P 123
Teach-In
The actual tool positron can be transferred to the part program with the Capture actual positron key.
Applications
In this way you can capture: positions l tool dimensions (see Tool Definition)
l
Process
positron.
PROGRRMMING N25 N30 N40 NSO N60 N70 N9999
EBB
Open a program block (e.g. for a strarght line) in the Programming and editing operating mode. Select the axis from which the actual value is to be transferred. This axis position IS transferred to memory by pressing the Capture actual position key.
RND
G40 X+100 G90 II
G54 G28
It100
X
G90
#f Jt0 4~ G71
1y
Ht31S *
G73 G72
F0,8 x7410
4~
_________-_----_________________
FICTL. X z t + 9,375 8,985
q t
R t
8,200 0,180
MS/3
Example
Input Enter radius compensation if required. . . . ($3;;; positions axis Enter feed rate If required. Enter miscellaneous function if required. Conclude block
cl
Page P 124
Programming
Modes
Test Run
In the Test run operating mode, a machining program IS checked for the following errors without machine movement:
l
l l l
Overrunning the traversing range of the machine Exceeding the spindle speed range Illogical entries, e.g. redundant Input of one axis Failure to comply with elementary programming rules e.g. cycle call without a cycle definition Certain geometrical incompatibilities
TEST
RUN
17410 G71 3f N10 G99 Tl L+0 R+2 c# N20 Tl El7 Sl000 #f N2S G00 G40 G90 X+10 N30 GS4 X+100 Y+20 #f N40 G28 X 3~ NS0 It100 J+0 * N60 673 G90 H+315 iK _____--------------------------RCTL. El 2 + t 9,375 8,965 Y R
Y+10 M03 *
t +
8,200 0,180
MS/9
to be tested.
TO BLOCK NUMBER =
or
Key in and confirm the block number up to which the test is to run.
program.
No apparent errors
If the program contains no apparent errors, the program reached, or a jump is made back to the start of program
test runs until the entered block number is if no G38 (STOP) or MO6 was programmed
G38/M06
by entering
or by
Error
If an error IS found, the program test is stopped. The error is usually located block. An error message is displayed on the screen. The program test can be halted with the DEL 0 key and aborted
at any time
Programming
Modes
Page P 125
Graphic
Simulation
GRAPHICS
Machining programs can be simulated graphically and checked In the Program run operating modes Full sequence and Single block, if a blank has been prevrously defined (G30/G31). More information on the defrnrtron of the blank can be found in the section Program Selection, Blank form definition. GRAPHICS After selecting a program, the menu shown at the right is displayed by pressing the GRAPHICS MOD key twice. One of the versrons of the graphic presentations can be selected with the vertical cursor keys and entered with the ENT key. The graphic simulation or internal started with the START key Fast data image processing computation is
GRAPHICS
END-NOENT PROCESSING
With Fast data image processing only the current block number is drsplayed on the screen and the internal computing also indicated by an asterisk (* = control is started) When the program has been processed, machined workpiece can be displayed view, view in three planes or 3D view. the in plan
The workprece center is shown in the plan view with up to 7 different shades: the lower the darker.
View three
in pianes
The workpiece IS shown - like In drafting plan view and two sections. The sectional keys.
- with a
The view in three planes can be switched from the German to the Amertcan projection via a machine parameter. A symbol (In conformance to IS0 6433) rndrcates the type of projection: Preferred Preferred German American * 4=
Page P 126
Programming
Modes
Graphic
Simulation
GRAPHICS
3D view
is simulated
in a three-dimensronal
displayed workptece can be rotated by 90 each activation of the horizontal cursor keys. orientation is indicated by an angle. o 1= 180 90 r = 270
If the height to side proportron is between 0.5 and 50, the type of display can be changed with the vertical cursor keys. You can switch between a scaled and non-scaled view. The short height or side is shown with a better resolution in the nonscaled view.
Magnifying
You can magnify a detail of the displayed work with the MAGN key. A wire model with a hatched surface appears next to the graphic. This marks the sectional plane. the plane You can select a different vertical cursor keys. sectional plane with the
Selecting sectional
Trimming
Once the desired detail is displayed, select the dialog TRANSFER DETAIL = ENT with the vertical cursor keys and confirm with the ENT key. The remaining workpiece screen with MAGN. is displayed on the
MAGN
Magnification
Another graphic simulation of machining of the magnified detail can be executed in the plan view, the view in three planes or the 3D view via the START key.
Programming
Modes
Page P 127
Graphic
Simulation
GRAPHICS
You can restore the complete blank with the BLK FORM key and restart simulation with START.
Tips
The 3D view and View in three planes are especially realistic, but they require extensive computing. For long programs, we therefore recommend displaying the workpiece with Fast data image processing or In the quicker Plan view with depth indication first, and then switching to the 3D view or the View in three planes.
Displaying
details
The following aids are available if fine details are to be examined: Trim the blank and magnify in an additional graphic program run
l
of interest.
Tool call
to designate
Specifying the spindle axis in the BLK FORM definition Both entries for the axis must be the same. If the tool axis is not given, an error message appears
Page P 128
Programming
Modes
in two dfferent
Blockwise transfer for the HEIDENHAIN FE 401 Floppy Disk Unit and compatble Standard data transfer for the HEIDENHAIN ME magnetic * (no longer in production).
Device adaptation
to various
peripheral
parameters,
which
peripheral
devices
FE 401 Floppy Disk Unit. ME magnetic tape unit. parameters to connect a non
EXT = external devices. Interface defined by the machine manufacturer or user via machine HEIDENHAIN device such as a printer, computer, etc.
External programming
Programs
l
After the end of program block, CR LF or LF or CR FF or FF) and also ETX (Control C) must be pro grammed. Any character can be substituted for ETX. Spaces between During read-in single words of NC programs, can be omitted. comments that are marked with * or ; are Ignored. Trailing zeros can be omitted.
l l l
I CR, LF at the start of program and CR, LF or LF or FF after every block are not requtred transfer. This function is assumed by the control characters.
for blockwise
Programming
Modes
Page P 129
Transfer
menu
The transfer mode is selected vra a menu, which offers different read-in and read-out alternatives.
PROGRAMMING AND EDITING ~uPnnmufi 0 PROGRAM DIRECTORY READ-IN ALL PROGRAMS READ-IN PROGRAM OFFERED READ-OUT SELECTED PROGRAM READ-OUT ALL PROGRAMS
Selections
Read-in
to the TNC
Read-out
PROGRAM DIRECTORY
The list of program numbers on the data medium is displayed. The programs are not transferred.
A started data transfer can be interrupted on the TNC by pressing After interruption of the data transfer, the following error message
PROGRAM INCOMPLETE
Data can also be transferred directly between two controls. The receiving control must be started first
Page P 130
Programming
Modes
for
LE
Id.-Nr. 239760
The RS-232-C
data interface
has a different
block
1 2 3 4 5 6 7
READY
DATA
TERMINAL
READY
with
Modes
Page P 131
especially
via MOD.
The suitable
standard
Connections
In burlt-in controls, peripheral devices can usually be connected panel or another accessible location on the machine.
on the operating
Non-HEIDENHAIN devices
Non-HEIDENHAIN
l
devices
must be indrvidually
adapted.
Adapting the control via machine parameters. These settings are stored after Input and are automatically Adapting Wiring the peripheral the data transfer device, e.g. via switches. cable.
Please remember:
Both sides must be set identically. You should always document the settings!
Page P 132
Programming
Modes
writing
0 Do not write-protect
Setting
the TNC
Select operating
Terminate
mode.
mode SELECTED PROGRAM = NOENT Select the program, Output the program after program e.g. program 14. Confirm the function.
= ENT/END
EXTERNAL
DATA
OUTPUT
OUTPUT
= ENT/END
= NOENT
is then highlighted. or
Select and output the next program terminate output. Very important!
SELECTED
PROGRAM EXTERNAL
NUMBER DATA
= INPUT
read-in.
functions
with blockwise
transfer
in the operating
manual
for the FE
Programming
Modes
Page P 133
BAUD RATE.
RS-232-CINTERFACE
pressing
data transfer
(e.g. to a printer), you only have to enter the followrng data transfer is selected). parameters).
IS
machine
parameters
at
MP 5030 = 0 (standard
MP 5020 = e g 168 (data format) (see External Data Transfer, Machine Blockwise transfer
For blockwise transfer from a computer, transfer software from HEIDENHAIN for personal computers. For this operating mode, you must set the following machine MP 5030 MP 5020 = 1 (blockwrse transfer
IS
required, parameters:
software
selected).
The following machine parameters determine the control character (for description see External Data Transfer, Machine parameters) and are valid for the data transfer software from HEIDENHAIN. If different transfer software is used, the machine parameters must be adapted correspondingly. MP MP MP MP MP MP 5010 5010.1 5010.2 5010.3 5010.4 5010.5 = = = = = = 515 17736 16712 279 5382 4 the data interface is normally set to FE Then the
When using the transfer software from HEIDENHAIN, above machine parameters need not be entered. Adapting to non-HEIDENHAIN devices Compare the interface descriptions Then proceed as follows: 0 Determine the common The peripheral device
l l l l l l IS
of both devices
settings (data format, baud rate). usually set vta internal switches. cable, and wire the cable.
Determine
Plug in the data transfer cable Plug in the power cord of the peripheral Switch on power. software Start the transfer Select the transfer
If required transfer.
menu on the TNC with the EXT key and start the desired
Page P 134
Programming
Modes
5010.1
character. It IS sent in the command prior to the program number. character. It is sent In the command after the program number.
5010.2
0 8
ASCII character. It is sent In the command output prior to the program number. ASCII character. It is sent in the command output after the program number.
5010.3
0 8
ETB or substitute character (decimal code l-47) is sent at the end of the command block. SOH or substitute character (decimal code l-47) is sent at the beginning of the command block. ACK or substitute character (decimal positive acknowledgement. It IS sent is correctly received. NAK or substitute character (decimal negative acknowledgement. It is sent is incorrectly transferred. code l-47): when the data block code l-47): when the data block
5010.4
15
5010.5
EOT or substitute character (decimal code l-47) is sent at the end of the data transfer. software from HEIDENHAIN
EOT: 4
MP 5010.0 This defines one character from the ASCII character code for the end of program of program for external programming ASCII characters l-47 are accepted. End of program is sent at standard data interface and blockwise transfer. Start of program is only sent at blockwise transfer.
0 15 I 32768
Programming
Modes
Page P 135
Input values
1 -
0 + any BCC character 2 --f BCC character no control 0 ---f inactive 4 + active 0 + inactive 8 + active
Transfer stop due to RTS Transfer stop due to DC3 Character or odd Character Number parity even parity required of stop bits
+ 0 -even +16-odd + 0 + not required + 32 + required 1 2 1 1 l/2 Stop bits Stop bits bit 6: + 64 Stop bit bit 7: + 128 Stop bit value to be entered for MP 5020
32
128 169
Notes on bit 1
Input value does not contain the significance 2: The BCC can accept an arbitrary character (also control
character)
in blockwise
transfer
Input value contains the significance 2: If the computation of the BCC during blockwise transfer results in a number less than 20 HEX) (control character), then a space character (20 HEX) is additionally sent prior to ETB. In this case, the BCC IS always greater than 20 HEX and therefore not a control character. I) HEX = Hexadecimal
Standard
7 data bits (ASCII code with 7 bits, even parity) Transfer stop due to DC3. 1 stop bit 5 32 1 4 16 0 31 8 1 parameter 21 4 0 5020. 1 1 2 0 0 1 0
Bits 0 - 7 Srgnificance
Operating mode data interface RS-232-C This parameter determines the function of the data interface. 0 A standard 1 blockwise data interface (normally for printer, reader, punch) transfer (normally for computer link)
Page P 136
Programming
Modes
character. It IS sent in the command prior to the program number. character. It is sent In the command after the program number.
ASCII character. It is sent In the command output prior to the program number. ASCII character. It IS sent in the command output after the program number.
ETB or substitute character (decimal code l-47) is sent at the end of the command block. SOH or substitute character (decimal code 1-47) is sent at the beginning of the command block. ACK or substitute character (decimal positive acknowledgement. It IS sent IS correctly received. NAK or substitute character (decimal negative acknowledgement. It is sent is incorrectly transferred. code 1-47): when the data block code I-47). when the data block
15
5010.5
EOT or substitute character (dectmal code l-47) is sent at the end of the data transfer. software from HEIDENHAIN
EOT: 4
MP 5010.0 This defines one character from the ASCII character code for the end of program of program for external programming. ASCII characters l-47 are accepted. End of program is sent at standard data interface and blockwise transfer. Start of program is only sent at blockwise transfer.
0 15 I 32768
0 3 8192
Programming
Modes
Page P 135
Input values
1 -
0 + any BCC character 2 + BCC character no control 0 + Inactive 4 + active 0 + inactive 8 + active
Transfer stop due to RTS Transfer stop due to DC3 Character or odd Character Number parity even parity required of stop bits
+ 0 + even +16-odd + 0 + not required + 32 + required 1 2 1 1 l/2 Stop brts Stop bits bit 6: + 64 Stop bit bit 7: + 128 Stop bit value to be entered for MP 5020
32
128 169
Notes on brt 1
Input value does not contain the significance 2: The BCC can accept an arbitrary character (also control
character)
in blockwise
transfer.
Input value contains the significance 2: If the computation of the BCC during blockwise transfer results in a number less than 20 HEX) (control character), then a space character (20 HEX) is addrtionally sent prior to ETB. In this case, the BCC IS always greater than 20 HEX and therefore not a control character. I) HEX = Hexadecimal
Standard
7 data bits (ASCII code with 7 bits, even parity) Transfer stop due to DC3, 1 stop bit 5 32 II 4 16 01 3 8 II parameter 2 4 01 5020. 1 2 01 0 1 0
Bits 0 - 7 Significance
Operating mode data interface RS-232-C This parameter determines the function of the data interface. 0 2 standard 1 blockwise data interface (normally for printer, reader, punch) transfer (normally for computer link)
Page P 136
Programming
Modes
Address
Letters in IS0
Adress code % A B C D F F F G H H I J K L L L M N P P Q R R R R R S T T U v w X Y z *
Function Program (rotation (rotation (rotation Parameter start or call about X-axis) about Y-axis) about Z-axis) definition (Program parameter Q)
Feed rate Dwell with GO4 Scaling factor with G72 Preparatory function (G code) dimensions
Polar coordinate angle In incremental/absolute Angle of rotation with G73 X-coordinate Y-coordinate Z-coordinate of circle center/pole of circle center/pole of circle center/pole
Set label number with G98 Jump to label number Tool length with G99 Miscellaneous Block number Cycle parameter in cycles Parameter in parameter definitions Program parameter 0 functions
Polar coordinate radius Circle radius with G02/G03/G05 Rounding-off radius with G25/G26/G27 Chamfer length with G24 Tool radius with G99 Spindle speed with G99 parallel to X-axis parallel to Y-axis parallel to Z-axis
Linear movement Linear movement Linear movement X-axis Y-axis Z-axis End of block
Programming
Modes
Page P 137
Parameter
Definitions
in IS0
D 00 01 02 03 04 05 06 07 08 09 10 11 12 13
Function Assign Addition Subtraction Multiplication Division Square Sine Cosine Root-sum If If If If of squares (c = IGG?) root
Page
equal, jump unequal, jump greater, jump less, jump sin a and c cos a)
Angle of c
P 108
Page P 138
Programming
Modes
G Codes
IG
1 Function Linear interpolation, Linear interpolation, Circular interpolation, Circular Interpolation, Circular interpolation, Circular interpolation, previous contour Paraxial positioning Linear interpolation, Linear interpolation, Circular interpolation, Circular interpolatron, Circular interpolatron, Circular interpolation, previous contour Cartesian, rapid traverse Cartesian Cartesian, clockwise Cartesian, counterclockwise Cartesian, no direction specified Cartesian, tangential transition from block polar, rapid traverse polar polar, clockwise polar, counterclockwise polar, no direction specified polar, tangential transition from
1 Non-modal
Reference Page P 25 P 26 P 33 P 39
E? E :z 07 10 1: 1: 16 zycles 04 z: z; 2: :i 7; 5: 5: 5: E 79 Selection of working plane 1; 2 Chamfer, corner rounding, approach and departure zz 26 27 29 Blank form definition Z? Tool path compensation 38 40 :: :i 50 :A Unit of measure ?f Dimensions ii? 98 ,.1 99 HEIDENHAIN TNC 2500B
M 18 P 43 P 44 P 45
Dwell Mirror image Oriented spindle stop Pocket contour definition Designates program, call via G79 Datum shift Pre-drilling (used with G37) Roughing out (used with G37) Contour milling clockwise (used with G37) Contour mlling counterclockwise (used with G37) Scaling factor Coordinate system rotation Slot milling Rectangular pocket milling clockwise Rectangular pocket milling counterclockwise Circular pocket milling clockwise Circular pocket milling counter-clockwise Peck drilling Tapping Cycle call Plane selection XY, tool axis Plane selection ZX, tool axis Plane selection YZ, tool axis Tool axis = 4h axis Chamfer with length R Corner rounding with R Tangential contour approach Tangential contour departure Designate last nominal value Z Y X
P P P P P P P P P
P 100 P 98 P 71 P 73 P 75 P 67 P 70
l
P 65 P 20
0 0 0 0 0
P 27 P 37 P 50 P 42 P8
Blank workpiece definition for graphics: min point Blank workpiece definition for graphics: max. point STOP program run No tool compensation (RO) Tool path compensation, left of contour (RL) Tool path compensation, right of contour (RR) Paraxial compensation extension (R-t) Paraxial compensation, reduction (R-) Program protection (at start of program) Next tool number (when using central tool memory) Touch probe function Dimensions specified in inches (at start of program) Dimensions specified in millimeters (at start of program) Absolute dimensions Incremental dimensions Set label number r. 1 tool uetrnrtion
P 20 P 15 P 17 P7
0 a
P 119 P6 A 17
P 56 n ,I? rI
Programming
Modes
M Functions
Miscellaneous functions with txedetermined function
YY
DIocKwise
Page P 140
Programming
Modes
functions
10
11 l
54 55
56
l l l I I l l I I
12 15 16 I 17 I 18
19
l l l I l l l l I l l l l l
I 57 I
I 59 I
60 1
61 I
0
l l
I
l
20 I 21
I I 22 I / 23 I
24 25 1 26 1 27 1 I I I
I I lel I I
I I I I
l l l l
1 28 I
29 31 32 I 33 I I 34 I I 35 I 36 j 37 I I 38 I I 39 I 41 42 43
I I
l
I I I
l l I I I l l l l l l
l l l
I I I
I 62 63 64 65 66 67 I 68 I 69 I 70 71 77 73 74
I 1 1
I
l l l l l
I
I
I
I
l l l
I
j I 1
I
l l l l
I I
I I I
l l l l l
I I
77 78
I I I
79
:
82 83 84 / 85 1 I 86 I 1 87 1 1 88 1
l l l
:
46 47 48
49 l l l l l l
I I I
l l l l
I I I
50 51
These miscellaneous functions are assigned by the machine tool builder and are described in the operating rnstructrons for your machine tool.
Programming
Modes
Page P 141
Length
gauges
and display
units
Incremental
linear encoders
Digital readouts
for retrofitting
machine
tools
TNC contouring
controls
+ - !!A!!!
HEIDENHAIN
25666420 C
10192
Printed r Germany
Subject
to
alteration
Working
Section
Repeat:
G98 L2 GO0 G91 X+10 L2.5 M99
plane
I Reference
x Y Z
axis
lOoI
.
Label number ldentlfles program section to be repeated Repeat five times = execute SIX times
Control
MO2 identlcates end of maIn program return to begInnIng of program Beginning of subprogram End of subprogram (Further subprograms)
Cycles: G
Cycle
effective immediately
Program
Call another
call:
program with
!B
$ Z = rxremental P = thread pitch advance I+50 J+30 G13 G41 G91 H-2520
Pecking kww Slot mllllng Pocket mllllng Circular pocket Program call Define contour PIlot drilling Rough-out contour mllllng Datum shift Mirror image Rotation Scaling factor Dwell time
Helical
Incremental
interpolation:
value H = 360 powon 2+12
Machine
control: Manual
The axes can be moved via the external axis dIrectIon buttons The position displays can be set to desired values The axes can be driven either by using the electronic handwheel or by entering a jog increment via the external axls dIrection keys The axes are moved to or by a manually-entered dlmenslon with the chosen radius compensation, rate and M function The block IS not stored1 After start of the program la the external the program WIII automatically be executed end of the program or STOP Any single block can external START key be started separately feed
. . . . . . . .
Right-hand inner
G41 G42 (RL) (RR)
thread outer
G42 G41 (RR) (RL)
Left-hand inner
G42 G41 (RR) (RL)
thread outer
G41 G42 (RL) (RR) clockwise (CW) counterclockwise ICCW
tool
posltlve
axis
negative
q q
Ia
Contour
Program
Cycles:
structure when subprograms machlnlng with several tools G37 G56 PO1 PO1
Select
program
number % 234 G71 G30 G17 X+0 Y+O Z-40 G31 G90 X+100 Y+lOO Z+O G99 Tl L+O Rf5 TO G17 GO0 G40 G90 Z+lOO Tl G17 SIOOO to the workplece compensation (RL) X-20 z-20 Y-20 MO3 Ia
L!st of contour
Program 234 ,n mm Blank form deflnltlon Tool Tool Tool Tool deflnltlon call change call
Drill defw/call Contour cycle pilot drllltng Pre-oositlon cvcle call Roughing cutter define/call Contour cycle rough-out Pre-positIon. cycle call Finishing cutter define/call Contour cycle contour milling Pwoosltlon. cvcle call
End of maltprogram, return Contour subprograms
l3l
posItIon next
G57
PO1
posItion, depth
1 contour
MO2
G98 G98 LO
Coordinate Coordinate
Datum shift Mirror Image Rotation Scaling factor
Transformations: transformation
Activate
G54 G28 G73 G72 X+20 X H+45 FO.8 Y+30 Z+lO
Cancel
G54X+OY+OZ+O G28 G73 H+O G72 Fl
Tanqentlal Strayght line Chamfer Straight line Rounding Straight line Circle center Circle. incremental Last contour point.
Y+O F200
absolute
G26 RI5 y+100 G24 R20 x+100 G25 R20 Y+25 I+100 J+O GO3 G91 X-25 Y-25 GO1 G90 X+0 Y+O G27 R15 GO0 G40 X-20 Z+lOO MO2 Y-20
Part programs are tested for loglcal errors such as machine traverse limit vlolatlons. double programnxng of axes etc
Tangential departure End posltlon. next to the workplece Retract. return to beginntng of program
. .
. .
. .
.
.
. .
.
.
.
. . .
. . . . .