Chapter 9 NC Control Function
Caution
- In the polar coordinate interpolation, only the straight line (G01) and circular interpolation (G02 / G03) can be
used.
- The command unit of a virtual axis is the same as a linear axis. The coordinate of the virtual axis becomes 0
under the G112 command.
- The F command in the polar coordinate interpolation is the linear velocity (the relative velocity of the workpiece
and the tool).
- The circular interpolation imagines the X and Y planes so the distance from the starting point to the central point
is commanded by I and J only.
(2) M code
Operating the machine through the motion control requires the functions for various mechanical operations in
addition to the functions such as feed and interpolation using the G codes. In order to control the machine using the
functions other than those supported by the G codes, the motion controller supports the M codes.
The M codes of the motion controller support the Pause, the function indicating the end of the NC program and the
functions to interface with each motion control flag.
M codes can be commanded again only after all operations of the codes that have been already commanded are
completed.
Mxx: Auxiliary command
The machine sequence function corresponding to the "Mxx" code is activated.
G90
G01 X100. Y100.
G01 X150. Y200
M00 % Pause command
G01 X10. Y10.
G01 Y30. Z30.
M02
Actual operations may differ because the machine manufacturer determines which function of the machine is to be
given to the M code. However, the general code table that is commonly used is as follows.