CNC Setup Utility Manual
P/N 70000490C - Machine Constants
All rights reserved. Subject to change without notice.
10-December-04
2-91
used (T 104). If a three-digit code is programmed, then the offset number
being used and the tool being used will be the same:
"T 104" - calls offset number 104 and tool pot number 104
Guidelines for Setting Tool Change Macro Parameters
A tool change macro is a subprogram that prepares the machine axes
and initiates necessary auxiliary functions prior to automatic tool changer
operation.
The Setup Utility contains parameters to create, call and edit the tool
change macro filename and macro number. To enable the tool change
macro, set the MC_5008: Use tool change macro parameter to On Tn,
On M6, or Both.
To call a tool change macro in the Setup Utility, specify the filename and
macro number. Use the MC_5009: Tool change macro program
parameter to specify the tool changer macro filename. Use the
MC_5010: Tool change macro number to specify the appropriate
macro number within the program.
NOTE: The macro file is stored in the C:\P6M directory.
The tool change macro is created and edited from the Setup Utility.
Press Edit (F8) to activate the Edit Mode for the macro file and number
specified in the menu.
Tool Changer Macro Example
Refer Table 2-10. This macro will stop the spindle and send all axes to a
safe absolute position. It is a generalized version of an actual macro.
Table 2-10, Tool Change Macro Example
M2 * THIS COMMAND IS NOT OUTPUT TO THE
* PROGRAMMABLE CONTROLLER
O 40000 * CREATES G8000
M5 * STOP SPINDLE
G28 Z * HOME Z AXIS
G00 Z&P-0.6 * SAFE ABSOLUTE METRIC POSITION
G0 X&P0 Y&P0 * MOVE TO SAFE X AND Y POSITION
M99 * END OF MACRO
M2 is required in the first block of the tool change macro file.
Use the relevant G-code to call macros at any time during CNC operation.
The macros, created by the macro file, are numbered in the range of
G8000 through G8999. Use the O(n) Address Word, followed by the
appropriate value, to program a macro G-code. Add 32,000 to the
desired G-code number (n). For example, the O40000 program
command would create a G8000 Code; O40002 would create G8002, and
so forth.