EasyManuals Logo

HEIDENHAIN MANUALPLUS 620 User Manual

HEIDENHAIN MANUALPLUS 620
465 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #363 background imageLoading...
Page #363 background image
HEIDENHAIN MANUALplus 620 363
4.31 Programming with Variables
Definition of constants—CONST
Possibilities of defining constants:
Direct assignment of values
Internal interpreter information as constants
Assignment of names to the transfer variables of subprograms
Use the following internal information to define constants in the
CONST section.
Example: Main program
%ABC.NC
CONST
_square_root2 = 1.414213 [direct value
assignment]
_square_root_2 = SQRT(2) [direct value
assignment]
_posx = __n0_x [internal information]
VAR
. . .
BLANK
N..
FINISHED
N..
MACHINING
N..
. . .
Example: Subprogram
%SP1.NCS
CONST
_start_x=__la [subprogram transfer value]
_posx = __n0_x [internal constant]
VAR
#_wo = #c1 [tool orientation]
MACHINING
N.. #_wo = #w0(WTL)
N.. G0 X(#_posx*2)
N.. G0 X#_start_x
. . .
Internal information for defining constants
__n0_x 768 Last programmed position X
__n0_y 769 Last programmed position Y
__n0_z 770 Last programmed position Z
__n0_c 771 Last programmed position C
__n40_g 774 Status of TRC
__n148_o 776 Active wear compensation
__n18_g 778 Active working plane
__n120_x 787 Reference diameter X for calculating CY
__n52_g 790 Oversize G52_Geo taken into account 0=no /
1=yes
__n57_x 791 Oversize in X
__n57_z 792 Oversize in Z
__n58_p 793 Equidistant oversize
__n150_x 794 Cutting width shifted in X by G150/G151
__n150_z 795 Cutting width shifted in Z by G150/G151
__n95_g 799 Programmed feed type _G93/G94/G95)
__n95_q 796 Spindle number of the programmed feed rate
__n95_f 800 Last programmed feed rate
__n97_g Programmed speed type _G96/G97)
__n97_q 797 Spindle number of the programmed speed type
__n97_s Last programmed speed
__i1 772 Active operating mode
__i2 778 Active unit of measure (inches/metric)
__i3 773 Last programmed path function
__i4 777 Last programmed M function
__i5 789 Last programmed T number
__la-__z Subprogram transfer values
The constant “_pi” is predefined to the value
3.1415926535989 and can be used directly in every NC
program.

Table of Contents

Other manuals for HEIDENHAIN MANUALPLUS 620

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HEIDENHAIN MANUALPLUS 620 and is the answer not in the manual?

HEIDENHAIN MANUALPLUS 620 Specifications

General IconGeneral
BrandHEIDENHAIN
ModelMANUALPLUS 620
CategoryControl Systems
LanguageEnglish

Related product manuals