9.
MISCELLANEOUS FUNCTIONS (M CODES)
9.1 Kind of Miscellaneous Functions
Miscellaneous functions are used to control auxiliary functions of machine and power supply unit,
and expressed with an M code followed by 1 or 2 digit integer. Table 9.1 lists miscellaneous
functions provided by this system.
Table 9.1 Miscellaneous functions
Before and after
Continuty of Command in radius
execution/allocation
M code Function function offset mode
of the function
Before After Modal One-shot Possible Impossible
M00 Program stop ○ ○ ○
M01 Optional stop ○ ○ ○
M02 End of program ○ ○ ○
M05 Discharge off ○ ○ ○
M06 Wire automatic threading ○ ○
(Cutoff) (thread) ○ ○
M07 Wire automatic cutoff ○ ○ ○
M08 Remain/cutoff ○ ○ ○ ○
(preprocessing) (postprocessing)
M16 Condition data transfer ○ ○ ○
M17 Machining on ○ ○ ○
M18 Machining off ○ ○ ○
M20 Initial hole machining ○ ○ ○
M28 Work tank filling ON ○ ○ ○
M29 Work tank filling OFF ○ ○ ○
M30 End of program and ○ ○ ○
rewind
M40 Water conductivity check ○ ○ ○
M58 Work tank down ○ ○ ○
M59 Work tank up ○ ○ ○
M60 Indexing Note 9. ○ ○ ○
M62 Rotation clamp Note 9. ○ ○ ○
M63 Rotation on Note 9. ○ ○ ○
M64 Rotation unclamp Note 9. ○ ○ ○
M65 Rotation off Note 9. ○ ○ ○
M66 Auto work change Note 7. ○ ○ ○
M67 Work loading Note 7. ○ ○ ○
M68 Work unloading Note 7. ○ ○ ○
M71 Approach ○ ○ ○
M72 Water flow rate control ○ ○ ○
9–1
Before and after
Continuty of Command in radius
M code Function execution/allocation
function offset mode
of the function
M73 Core removing Note 5. ○ ○
(preprocessing) (remove) ○ ○
M74 Process skip ○ ○ ○
M75 Reference hole retry ○ ○
Note 10.
M90 M08 control ○ ○ ○
M97 FD program loading ○ ○
M98 Subprogram call ○ ○ ○
M99 Subprogram end ○ ○ ○
M200 Noncontact point ○ ○ ○
searching Note 11.
Note 1: For the machining ON or OFF (M17 or M18), the machining OFF (M18) is
selected at the power ON, RESET , M02, and M30.
Note 2: Do not program M code listed in “Impossible” column in the wire radius offset
mode (G41, G42).
Example 1: Programming of M02 or M30 in the wire radius offset mode causes an alarm (1002:
M02, M30 PROGRAMMED BEFORE OFFSET CANCEL).
Example 2: Programming of M06, M16, M17, M18, M20, M28, M29, M40, M58, M59, M60,
M62, M63, M64, M65, M66, M67, M68, M72, M74 or M75 in the wire radius offset
mode generates internally two or more blocks that do no contain the move command,
thus causing overcut or shifted path, unlike normal radius compensation.
Note 3: Do not program more than two kinds of M codes in a block. If programmed,
machine operation varies depending on the M codes programmed.
Note 4: Programming of an M code not supported by this NC unit will, as a rule, cause
an alarm (1045: UNDEFINED G, M COMND). However, there are some M codes
not opened for system processing, and therefore, use of M codes not listed
herein should be avoided.
Note 5: The M73 (core removing) is a command of optional function for the UPH-1.
Note 6: Although M code is, in general, expressed with two digits, 3-digit M code may
be programmed in a special case.
Note 7: M66, M67, and M68 are commands of optional function for the UPH-1, UPH-2,
UH-2 and W-PG1.
Note 8: Before and after allocation means that if the allocation command (X_, Y_, etc.)
and M code are programmed in the same block, whether the M code is executed
before start of allocation or after completion of allocation is determined in,
advance depending on the contents of M code.
M06, M08, and M73 are special commands, and different processings are
executed before and after allocation.
Note 9: M60, M62, M63, M64, and M65 are commands of optional function for the UPH-1,
UPH-2 and UH-2.
Note 10: Though the M75 for the reference hole retry is provided for the compatibility
with conventional models, normally use it by making a setting on the SET AWT
screen.
Note 11: For the M200, see Basic Operation 2.6.2 “Noncontact point searching function”.
9–2