Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK980TDi Turning CNC System User Manual
170
Ⅰ
Programming
#5301~#5305
G58 workpiece zero offset value of 1
st
~5
th
axis
#5321~#5325
G59 workpiece zero offset value of 1
st
~5
th
axis
Note: Message described in the above table separately corresponds to X, Y, Z, the 4
th
, 5
th
axis. For
example, #5201 means the offset message of X axis, #5202 means the one of Y axis
,
#5203 means
the one of Z axis,#5204 means the one of the 4th axis, #5205 means the one of the 5th axis.
(8) Application:
O0100; (#100 is the machined workpiece number, its
initial value=0)
G00 X100 Z100;
T0101;
IF[#100<100]GOTO10; (has continuously machined
100
?
)
G65 P9580 U-0.01 W-0.01; (call the macro program
compensation tool wear)
N10 G00 X50 Z50;
……;
……;
……;
Machine program;
……;
T0202;
IF[#100<100]GOTO20; (has continuously machined
100
?
)
G65 P9580 U-0.01 W-0.01; (call the macro program
compensation tool wear)
N20 ……;
……;
……;
#100=#100+1; (machined workpiece 1)
IF[#100==101]THEN #100=0;
M30;
O9580;
G65 H23 P#101 Q#4120 R100; (obtain the
tool offset No.)
IF[#101==0]GOTO10; (Do not modify the
wear value when the tool offset is
regarded as 0)
#102=2000+#101; (X wear macro
variable)
#103=2100+#101; (Z wear macro
variable)
#9102=#9102+#21; (modify X wear)
#9103=#9103+#23; (modify Z wear)
T#4120; (call a new tool offset value)
N10 M99;
3.27.2 Operation & Jump Command G65
Command format:
G65 Hm P# i Q# j R# k;
Command significance:
m: operation or jump command, range 01
~
99.
#i: macro variables name for storing values.
# j: macro variables name 1 for operation, can be constant.
# k: macro variables name 2 for operation, can be constant.
# i = #j O # k
Note: Macro variable name has no “#” when it is presented directly with constant.
Operation sign specified by Hm