CNC Programming Handbook: A Comprehensive Guide to Practical CNC Programming, Third Edition

Chapter 9: Miscellaneous Functions

The address M in a CNC program identifies a miscellaneous function, sometimes called a machine function. Not all miscellaneous functions are related to the operation of a CNC machine - quite a few are related to the processing of part program. The more suitable term miscellaneous functions is used throughout this handbook.

DESCRIPTION AND PURPOSE

Within the structure of a CNC program, programmers often need some means of activating certain aspects of machine operation or controlling the program flow. Without availability of such means, any part program would be incomplete and impossible to run. First, let's look at those miscellaneous functions that relate to the operation of a CNC machine - the true machine functions.

Machine Related Functions

Various physical operations of a CNC machine must be controlled by the program, to ensure fully automated machining. These functions generally use the M-address and include the following operations:

  • Spindle rotation

CW or CCW

  • Gear range change

Low / Medium / High

  • Automatic tool change

ATC

  • Automatic pallet change

APC

  • Coolant operation

ON or OFF

  • Tailstock or quill motion

IN or OUT

These operations vary between machines, due to the different designs by various machine manufacturers. A machine design, from the engineering point of view, is based on a certain primary machining application. A CNC milling machine will require different functions related to this type of machine than a CNC machining center or a CNC lathe. A numerically controlled EDM wire cutting machine will have many special...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: CNC Controllers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.