2012-08-05 21:01:45 (CET)

Macro file and automatic tool change

Whenever a G-Code file is loaded, also the file “macro.cnc” is loaded. In this file you may put your frequently used subroutines, these can be invoked by the G-Code file through GOSUB subroutineName.

The file contains default one special subroutine called change_tool, this function is called automatically when a M6 Tx command (Tool change) is encountered in the G-Code file. With this it is possible to define your own tool change, especially useful when you have an automatic tool changer. You can put moves and I/O actions there as well as automatic tool length measurement using the probe with G38.2.

 

The tool change area can be guarded for collision, if it is defined the rendering process will detect eventual collisions and report it. So a normal workpiece program is not allowed to go through the Tool change Area.
The tool change itself is allowed to go to this area. Therefor the
change_tool subroutine contains the statement TCAGuard off at the beginning and TCAGuard on at the end.

[Albus]

Albus, James S; et al; NIST Support to the Next Generation Controller Program: 1991 Final Technical Report; NISTIR 4888; National Institute of Standards and Technology, Gaithersburg, MD; July 1992

[Allen-Bradley]

Allen-Bradley; RS274/NGC for the Low End Controller; First Draft; Allen-Bradley; August 1992

[EIA]

Electronic Industries Association; EIA Standard EIA-274-D Interchangeable Variable Block Data Format for Positioning, Contouring, and Contouring/Positioning Numerically Controlled Machines; Electronic Industries Association; Washington, DC; February 1979

[Fanuc]

Fanuc Ltd.; Fanuc System 9-Model A Operators Manual; Pub B-52364E/03; Fanuc Ltd; 1981

[Kramer1]

Kramer, Thomas R.; Proctor, Frederick M.; Michaloski, John L.; The NIST RS274/NGC Interpreter, Version 1; NISTIR 5416; National Institute of Standards and Technology, Gaithersburg, MD; April 1994

[Kramer2]

Kramer, Thomas R.; Proctor, Frederick M.; The NIST RS274KT Interpreter; NISTIR 5738; National Institute of Standards and Technology, Gaithersburg, MD; October 1995

[Kramer3]

Kramer, Thomas R.; Proctor, Frederick M.; The NIST RS274/NGC Interpreter -Version 2; NISTIR 5739; National Institute of Standards and Technology, Gaithersburg, MD; October 1995

[Kramer4]

Kramer, Thomas R.; Proctor, Frederick M.; The NIST RS274/VGER Interpreter; NISTIR 5754; National Institute of Standards and Technology, Gaithersburg, MD; November 1995

[K&T]

Kearney and Trecker Co.; Part Programming and Operating Manual, KT/CNC Control, Type C; Pub 687D; Kearney and Trecker Corp.; 1980

[NCMS]

National Center for Manufacturing Sciences; The Next Generation Controller Part Programming Functional Specification (RS-274/NGC); Draft; NCMS; August 1994

[Proctor]

Proctor, Frederick M.; Kramer, Thomas R.; Michaloski, John L.; Canonical Machining Commands; NISTIR 5970; National Institute of Standards and Technology, Gaithersburg, MD; January 1997