Machining Section; End Code; Subroutine Section; Return Code - HEIDENHAIN CNC PILOT 640 User Manual

Smart.turn and din programming
Table of Contents

Advertisement

1

MACHINING section

In the MACHINING program section, you program the machining of
the workpiece. This code

END code

The END code concludes the NC program. This code
included.

SUBROUTINE section

If you define a subprogram within your NC program (within the
same file), it is identified by SUBROUTINE, followed by the name of
the subprogram (max. 40 characters).

Return code

The Return code concludes the subprogram.

CONST code

In the CONST section of the program you define constants. You use
constants for the definition of a value.
You enter the value directly or you calculate it. If you use constants
in the calculation you must first define them.
The length of the constant name must not exceed 20 characters.
Lower case letters and numbers are allowed. Constants always
begin with an underscore.
Further information:
Page 474
Example: CONST
CONST
_nvr = 0
_sd=PARA("","CfgGlobalTechPara", "safetyDistWorkpOut")
_nws = _sd-_nvr
. . .
BLANK
N 1 G20 X120 Z_nws K2
. . .
MACHINING
N 6 G0 X100+_sd
. . .
68
be included.
must
"Expanded variable syntax CONST – VAR",
NC programming | Program section code
be
must
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Manualplus 620

Table of Contents