Variable Types - HEIDENHAIN CNC PILOT 640 User Manual

Smart.turn and din programming
Table of Contents

Advertisement

DIN/ISO programming | Programming variables

Variable types

The control distinguishes the following variable types:
General variables
Machine dimensions
Tool compensation
Event bits
General variables
#l1 .. #l99 Channel-independent, local variables are effective
within a main or a subprogram
#c1 .. #c30 Channel-independent, global variables can be
used for each slide (NC channel). Identical variable numbers
on different slides are no problem. The variable content is
provided globally by one channel. Globally means that a variable
described in a subprogram can be evaluated in the main
program, and vice versa
#g1 .. #g199 Channel-independent, global real variables are
provided once within the control. If the NC program changes a
variable, it applies to all slides. The variables are retained even
when the control is switched off, and can be evaluated again
after power-up.
#g200 .. #g299 Channel-independent, global integer variables
are provided once within the control. If the NC program changes
a variable, it applies to all slides. The variables are retained even
when the control is switched off, and can be evaluated again
after power-up.
#x1 .. #x20 Channel-dependent, local text variables are
effective within a main or subprogram. They can only be read on
the channel to which they were written
Example: General variables
. . .
N.. #l1=#l1+1
N.. G1 X#c1
N.. G1 X(SQRT(3*(SIN(30)))
N.. #g1=(ABS(#2+0.5))
. . .
N.. G1 Z#m(#l1)(Z)
N.. #x1="Text"
N.. #g2=#g1+#l1*(27/9*3.1415)
. . .
HEIDENHAIN | User's Manual smart.Turn and DIN Programming | 12/2017
4
461

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Manualplus 620

Table of Contents