
PROGRAMMING
B–63534EN/02
20. AXIS CONTROL FUNCTIONS
557
G81 T_ L_ ; (EGB mode on)
G31.8 G91 a0 P_ Q_ R_ ; (EGB skip command)
a : EGB axis (Work axis)
P : The top number of the consecutive custom macro variables in
which the machine coordinate positions of the EGB axis (work
axis) at the skip signal inputs are stored.
Q : The maximum allowable number of the skip signal inputs.
(Range of command value: 1 – 200)
R : The number of the custom macro variable in which the total
number of the inputs is stored.
This data is usually the same as the value specified by Q.
Therefore this is not necessarily specified. Specify it when the
total number should be confirmed.
G31.8 is a one–shot G code.
During the execution of the G31.8 block, the machine coordinate
positions of the EGB axis (work axis) at the skip signal inputs are stored
in the consecutive custom macro variables where the top number of the
variables is specified by P and the maximum allowable number of the skip
signal inputs is specified by Q.
The total number of the skip signal inputs (i.e. the same value specified
by Q) is stored in the variable specified by R.
G81 T200 L2 ; (EGB mode on)
X_ ;
Z_ ;
G31.8 G91 C0 P500 Q200 R1 ; (EGB skip command)
After 200 times of skip signal inputs, 200 machine coordinate positions
of the C axis are stored respectively in the consecutive custom macro
variables #500 – #699.
The total number of skip signal inputs (i.e. 200) is stored in the custom
macro variable #1.
Format
Explanations
Examples