·740·
Installation manual
CNC 8060
CNC 8065
10.
CNC VARIABLES.
(REF: 1402)
Variables related to the machine configuration.
Syntax.
·ch· Channel number.
Values of the variable.
The variable returns a 32-bit value where each bit represents one axis; the least significant
bit corresponds to the axis with the lowest logic number. Each bit indicates whether the axis
belongs to the channel (bit = 1) or not (bit = 0).
(V.)[ch].G.AXISNAMEn
Variable that can only be read from the program, PLC and interface.
The variable returns the value of block preparation.
Report variable (to be used from the scripts).
Name of the axis with n index in the channel.
Syntax.
·ch· Channel number.
Values of the variable.
The values returned by this variable are encoded as follows.
Remarks.
When some axes are parked, it is a good idea to know which axes are available. This variable
indicates which axes are available, if an axis is not available, this variable returns a "?".
(V.)[ch].G.SPDLNAMEn
Variable that can only be read from the program, PLC and interface.
The variable returns the value of block preparation.
Report variable (to be used from the scripts).
Name of the spindle with n index in the channel.
Syntax.
·ch· Channel number.
[2].G.NSPDL Channel ·2·.
AXISNAME. Channel ·1·. Channel ·2·. Reading the variables.
X (Logic axis ·1·.)
Y (Logic axis ·2·.)
Z (Logic axis ·3·.)
X2 (Logic axis ·4·.)
Y2 (Logic axis ·5·.)
Z2 (Logic axis ·6·.)
X
Y
Z
X2
Y2
Z2
[1].G.AXISCH = $7
[2].G.AXISCH = $38
V.[2].G.AXISNAME1 Channel ·2·.
X=10 X1=11 X2=12 X3=13 X4=14 ... X9=19
Y=20 Y1=21 Y2=22 Y3=23 Y4=24 ... Y9=29
Z=30 Z1=31 Z2=32 Z3=33 Z4=34 ... Z9=39
U=40 U1=41 U2=42 U3=43 U4=44 ... U9=49
V=50 V1=51 V2=52 V3=53 V4=54 ... V9=59
W=60 W1=61 W2=62 W3=63 W4=64 ... W9=69
A=70 A1=71 A2=72 A3=73 A4=74 ... A9=79
B=80 B1=81 B2=82 B3=83 B4=84 ... B9=89
C=90 C1=91 C2=92 C3=93 C4=94 ... C9=99
V.[2].G.SPDLNAME1 Channel ·2·.