CF4withtext.png
A20-VIIwithtext.png
RX65withtext.png
GE480Hwithtext.png
BNE-65MYYwithtext.png
L32-VIIXXIIwithtext.png
BNX-51MSYwithtext.png

Macro Calls Using Custom G and M Codes

There is a function with Macro programming that allows the user to create custom macro programs that are called with either a G or M code that the user defines in specific parameters. Any action that is done on a regular basis – like jogging a horizontal mill spindle close to the door for tool exchange or load after tool change –can be accounted for in a macro program. In the case of a tool change on a mill – normally M06 – the user can define any M code to call a program that would change the tool, and rapid spindle to door for an easy-to-reach manual tool change or load. The M06 could be used – or some other M code not used by machine builder like M60 – so as not to alter the function of M06. Users are able to create custom G codes or M codes, with the possibilities limited only by the user’s ability to create math formulas and define needs for these programs.

Learn More:


Product Selection

Product Selection

Our flagship product lines are Citizen and Miyano, as well as Enshu and YCM. Let us help you choose the best fit for you.

Product Selection

Engineering Support

Engineering Support

Our engineers help you select the right equipment, get you started, and keep you running with the performance you rely on.

Engineering Support

Demo Videos

Demo Videos

See our equipment's unparalleled performance in action on parts and applications like yours. Many models and capabilities are available.

Machine Demo's

McClain Machine Tool Solutions
106 Weldon Parkway,
Maryland Heights, MO 63043
Phone: (314) 432-3220   ¦   
Email: sales@mcclaintool.com