beautypg.com

1 din pr ogr amming – HEIDENHAIN CNC Pilot 4290 User Manual

Page 75

background image

HEIDENHAIN CNC PILOT 4290

63

4.1 DIN Pr

ogr

amming

Continued

4.1.4

Units of Measurement

You can use the metric or inch system for writing NC programs. The
unit of measure is defined in the ”Unit” box (see ”

4.4.1 Program

Head”). After the unit of measure has been defined, it cannot be
edited. Units of measure used: See ”

1.4 Fundamentals.”

4.1.5

Elements of the DIN Program

A DIN program consists of the following elements:

Program number

Program section codes

NC blocks

Commands for structuring the program

Comment blocks

The program number begins with ”%” followed by up to 8
characters (numbers, upper case letters or underscore; no mutated
vowels or ”ß”) and the extension ”nc” for main programs or ”ncs”
for subprograms. The first character must be a number or a letter.

Program section code: When you create a new DIN program,
certain program section codes are already entered. You can add new
codes or delete existing ones, depending on your program
requirements. A DIN program must contain at least the MACHINING
and END section codes.

NC blocks start with the letter ”N” followed by a block number (with
up to four digits). The block numbers do not affect the sequence in
which the program blocks are executed. They are only intended for
identifying the individual blocks.

The NC blocks of the PROGRAM HEAD, TURRET and CHUCKING
EQUIPMENT sections are not included in the ”block number
organization” of the DIN editor.

An NC block contains NC commands such as positioning, switching
or organizational commands. Traversing and switching commands
begin with ”G” or ”M” followed by a number (G1, G2, G81, M3, M30,
...) and the address parameters. Organizational commands consist of
”key words” (WHILE, RETURN, etc.), or of a combination of letters/
numbers.

You can also program NC blocks containing only variable calculations.

You can program various NC commands in an NC block provided that
they do not contain the same address letters and do not have
opposing functionalities.