Programming manual
CNC 8070
CNC VARIABLES
Related to the programmed functions
14.
(SOFT V02.0X)
391
14.16 Related to the programmed functions
They have generic names.
• Replace the "n" character with the channel number, maintaining the brackets. The first
channel is identified with the number 1, "0" is not a valid number.
• Replace the "Xn" character by the name, logic number or index in the channel of the axis.
• Replace the letters "i" and "x" with a number keeping the brackets.
These variables are for synchronous reading (R).
Variables GS and MS returned a coded value. Each function has a bit that indicates whether the
relevant function is active (=1) or not (=0). Examples for status consultation:
(V.)G.GS[1] indicates whether G1 is active (=1) or not (=0)
(V.)G.MS[6] indicates whether M6 is active (=1) or not (=0)
The HGS1..10 variable returns the 32-bit coded status; 1 bit per function. The HGS1 variable
corresponds to functions G0 through G31, HGS2 corresponds to G32 through G63 and so on.
The variables HGS and HMS return a coded 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 the
G0 or M0 function, bit 1 to G1 or M1 and so on.
These variables are read/write (R/W) and are evaluated during block preparation.
The "(V.)P.name" variables maintain their value in local and global subroutines called upon from the
program.
The "(V.)S.name" variables maintain their value between programs and after a reset. To initialize these
variables, use the instruction #DELETE.
"G" AND "M" FUNCTIONS
PRG PLC INT Exec
(V.)[n].G.GS[i]
Status of the requested "G" function R R R No
(V.)[n].G.MS[i]
Status of the requested "M" function R R R No
(V.)[n].G.HGS1..10
Status of the requested "G" (32 bit) functions R R R No
(V.)[n].G.HGS
History of "G" functions to be displayed — — R Yes
(V.)[n].G.HMS
History of "M" functions of the master spindle to be
displayed
—— RYes
(V.)[n].G.HMSi
History of "M" functions of the "i" spindle to be displayed — — R Yes
PARAMETERS AND VARIABLES PRG PLC INT
(V.)P.name
Local user variables of the program R/W — —
(V.)S.name
Global user variables of the program R/W — —
(V.)C.(A-Z)
Value of the canned cycle calling parameter R/W — —
(V.)C.CALLP_(A-Z)
Parameter programmed in the call to a canned cycle
"0" = It has not been programmed "1" = It has been programmed
R——
(V.)C.P_(A-Z)
Value of the positioning cycle calling parameter R/W — —
(V.)C.P_CALLP_(A-Z)
Parameter programmed in the call to a positioning cycle
"0" = It has not been programmed "1" = It has been programmed
R——
(V.)C.PCALLP_(A-Z)
Parameter programmed in a call to a subroutine G18x, #PCALL
or #MCALL
"0" = It has not been programmed "1" = It has been programmed
R——
G90 G81 Z0 I-15
V.C.CALLP_Z = 1
V.C.CALLP_I = 1
V.C.CALLP_K = 0
V.C.Z = 0
V.C.Z = -15
G160 A30 X100 K10 P6
V.C.P_CALLP_A = 1
V.C.P_CALLP_K = 1
V.C.P_CALLP_R = 0
V.C.P_A = 30
V.C.P_X = 100
#PCALL sub.nc A12.56 D3
V.C.PCALLP_A = 1
V.C.PCALLP_D = 1