beautypg.com

V variables, 26 pr ogr amming v a ri ables – HEIDENHAIN MANUALplus 4110 User Manual

Page 399

background image

HEIDENHAIN MANUALplus 4110

399

6.26 Pr

ogr

amming V

a

ri

ables

V variables

The MANUALplus uses value ranges to define the following scope of
variables:

„

Real: V1 .. V199

„

Integer: V200 .. V299

„

Reserved: V300 .. V900

Requests and assignments:

„

Read/write machine dimensions (machine parameter 7)

Syntax: V{Mx[y]}

„

Interrogate external events
Is the bit value 0 or 1? The significance of the external event is
determined by the machine manufacturer.

Syntax: V{Ex[y]}

„

Interrogate sequential events
The tool life monitoring function and the function for searching the
start block trigger sequential events.

Syntax:V{Ex[1]}

„

Read/write tool compensation

Syntax: V{Dx[y]}

Example: "V variable"

. . .

N.. V{M1[Z]=300} [ sets "machine
dimension 1 Z" to "300" ]

. . .

N.. G0 Z{M1[Z]} [ moves to "machine
dimension 1 Z" ]

. . .

N.. IF{E1[1]==0} [ Interrogates "external
event 1 – bit 1“ ]

. . .

N.. V{D5[X]=1.3} [ set "compensation X for
tool 5" ]

. . .

N.. V{V12=17.4}

N.. V{V12=V12+1}

N.. G1 X{V12}

. . .

x = dimension 1..9
y = coordinate: X, Y, Z, U, V, W, A, B or C

x = slide 1
y = bit: 1..16

x = event: 20, 90

„

20: Life of this tool has expired (global information)

„

90: Define start block (0=not active; 1=active)

x = T number
y = length compensation: X, Y, or Z