Sample Program
The tool is positioned to the specified location
(X, Z) on machine coordinate system, performs
the specified M feature,
and returns to the start
point.
Main Program
G65P9603X. ..z OM” #”:.:
#13
#26
L #24
Macro Program
09603 ;
#1
❑ #5001 ;
#2 = #5002 ;
G91 ;
GOO X [#24 -#5021] ;
GOO Z [#26- #5022] ;
M#13 ;
GOO Z#2 ;
GOO X#l ;
M99 ;
Variable
No.
#
1to #33
#loo to #l’@
$500 to #549
rllo~ to #lo15
zH032
irlloo to #1115
#1132
z2001 to #2050
#2101 to #2150
#2201 to t2250
#2051 to 12080
#2151 to ?i2180
#2081 to ti2099
:2181 to #2199
g3000
#3001
#3002
+3003
f13004
83100
Z4001 to *41X
$5001 to $5002
85021 to #502Z
#5041 to +5042
+508 1 to 85062
t!5081 to #5082
~5101 to $5102
List of Variables
Meaning
.mcal variables.
:ommon variables (reset to “blank at
power-off).
Common variables (retained at power-
Dff)
Interface input signals (each signal for
each bit).
(
Interface input signal ; #[lOCO +
i] * 2i
,=0
)
Interfaceoutput
signals (each signal for
each bit).
(
Interface output signal ~ #[1100+
i] * 2i
,=~
).
Tooloffset
amount
[X-axis, Z-axis, nose radius)
Tool coordinate data
[X-axis, Z-axis)
Tocl wear amount
[X-axis, Z-axis)
Alarm message display.
Clock 1 (In units of 1 ins).
Clwk 2 (in units of 1 s).
Single block stop, auxiliary function
complete wait control.
Feed-hold, feedrate-override, and
exact-stop control.
RS 232 C data output (print out feature).
Current value of modal information
command.
End position of the immediate
preceding block (for each axis).
Current position of machine ccerdinate
system (for each axis).
Current position of POS. UNIVERSAL
(for each axis).
Position at which G 31 skip signal is
turnad on (for each axis).
Effective tool position offset
amount (X-axis, Z-axis).
Servo position deflection amount
(for each axis).
77