Units of measurement, Elements of a din program, 1 din pr ogr a mming – HEIDENHAIN CNC Pilot 4290 V7.1 User Manual

Page 111

Advertising
background image

HEIDENHAIN CNC PILOT 4290

111

4.1 DIN Pr

ogr

a

mming

Units of measurement

You write NC programs in metric or inch values. The unit of measure
is defined in the “Unit” box (see “PROGRAM HEAD section” on
page 136
).

Elements of a DIN program

A DIN program consists of the following elements:

„

Program number

„

Program section codes

„

NC blocks

„

Commands for program structuring

„

Comment blocks

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

Program section codes: 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 begin with an 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 NC 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 several NC commands in one NC block, provided
they have different address letters and do not have opposing
functions.

Once the unit of measure has been defined, it cannot be
edited any longer.

Advertising