·850·
Installation manual
CNC 8060
CNC 8065
10.
CNC VARIABLES.
(REF: 1402)
Variables related to the programmed functions.
(V.)[ch].G.HGS8
(V.)[ch].G.HGS9
(V.)[ch].G.HGS10
Variable that can only be read from the program, PLC and interface.
The variable returns the value of block preparation.
Status of the requested "G" (32 bit) functions.
Syntax.
·ch· Channel number.
Remarks.
Every variable corresponds to a range of 32 G functions and returns a 32-bit value; 1 bit per
function. Each bit indicates whether the function is active (bit = 1) or not (bit = 0). The least
significant bit corresponds to the lowest function of the range.
(V.)[ch].G.HGS
Variable to be read via interface.
Report variable (to be used from the scripts).
"G" functions to be displayed in the history.
Remarks.
This variable returns a binary value. Each function has a bit that indicates whether the
relevant variable will be displayed (=1) or not (=0). Bit 0, the least significant bit, corresponds
to G0, bit 1 to G1 and so on.
V.[2].G.HGS1 Channel ·2·.
Variable. G function range.
(V.)[ch].G.HGS1 G0 - G31. Bit 0 corresponds to G0.
(V.)[ch].G.HGS2 G32-G63 Bit 0 corresponds to G32.
(V.)[ch].G.HGS3 G64-G95 Bit 0 corresponds to G64.
(V.)[ch].G.HGS4 G96-G127 Bit 0 corresponds to G96.
(V.)[ch].G.HGS5 G128-G159 Bit 0 corresponds to G128.
(V.)[ch].G.HGS6 G160-G191 Bit 0 corresponds to G160.
(V.)[ch].G.HGS7 G192-G223 Bit 0 corresponds to G192.
(V.)[ch].G.HGS8 G224-G255 Bit 0 corresponds to G224.
(V.)[ch].G.HGS9 G256-G287 Bit 0 corresponds to G256.
(V.)[ch].G.HGS10 G288-G319 Bit 0 corresponds to G288.
To check the status of function G08 from the part-program.
$IF [V.[1].G.HGS1 & [2**8]] == 2**8
To check the status of function G101 from the part-program.
$IF [V.[1].G.HGS4 & [2**5]] == 2**5
To check the status of function G08 from the PLC.
DFU B0KEYBD1 = CNCRD(G.HGS1, R100, M100)
B8R100 = ···
To check the status of function G101 from the PLC.
DFU B0KEYBD1 = CNCRD(G.HGS4, R101, M100)
B5R101 = ···
[2].G.HGS Channel ·2·.