Professional 5 M-Code List: Applicable Models All Models
Professional 5 M-Code List: Applicable Models All Models
M-CODE LIST
Applicable Models
All Models
Contents
Contents
No.0584J-1405EN 1
Contents
Contents
1. List of M Codes
1.1 Notes on this M Code List ....................................................... 1-2
1.2 List of M Codes ....................................................................... 1-3
2. Specification of M Codes
2.1 Specification ............................................................................ 2-2
3. Index
4. Appendix
4.1 History of M Code List............................................................. 4-2
2 No.0584J-1405EN
List of M Codes
1. List of M Codes
List of M Codes
No.0584J-1405EN 1-1
List of M Codes
Notes on this M Code List
G4 P__; cannot be used for read-ahead control with FS30i/FS31i. Use G53 instead of
G4 P__;.
Use M3000 – 3099 when registering user M codes to perform macro program call or
sub-program call with M codes.
These M codes cannot be used in the future with the Professional 5 system.
When using M codes other than M3000 – 3099, there is the possibility that functions
(M codes) that are added later cannot be used.
This manual contains standard M code numbers, but does not reflect customized ones
if changed by customer request.
1-2 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M5 Spindle Stop
M6 Automatic Tool Change
M7 Air Blow ON
M8 Nozzle Coolant ON
M9 Coolant OFF
M10 4th Axis Clamp
M11 4th Axis Unclamp
M12 5th Axis Clamp
M13 5th Axis Unclamp
M14 BTS Arm Advance, Tool Length Sensor Cover Open
M15 Index Table Reverse
M16 4th Axis Mirror Image ON
M18 BTS Arm Retract, Tool Length Sensor Cover Close
M19 Spindle Orientation Stop
M20 Broken Tool Sensor Check
M21 X Axis Mirror Image ON
M22 Y Axis Mirror Image ON
M23 Mirror Image OFF
M26 Through Spindle Coolant ON
M27 Tap Oil Mist/Jet Mode ON
M28 Through Tool Air ON
M29 Unconditional Power Out
M30 End of Machining Program and Repeat
M31 Auto Workpiece Measuring Mode
M32 Auto Tool Length Measuring Mode
M33 Tool Length Sensor Unit Circuit Check
M34 Auto Workpiece Measurement / Spare Tool Call
M35 Auto Workpiece Measurement / Pallet Unload
M36 Prior Tool Check
M37 Tool Data Register Mode OFF
M38 AC/SL Data Temporary Alteration Mode ON
M39 AC/SL Data Temporary Alteration Mode OFF
M41 SL Coefficient Setting 125%
M42 SL Coefficient Setting 150%
M43 SL Coefficient Setting 200%
M44 SL and AC Coefficient 0%
M45 Tool Length Sensor Unit Circuit Check
No.0584J-1405EN 1-3
List of M Codes
List of M Codes
1-4 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M79 Signal Lamp 2 ON with No Ready Pallet
M80 Pallet Change
M80 Pallet Change
M84 Pallet 1 Load Check
M85 Auto Measuring Approach Mode
M86 Auto Measuring Rapid Mode
M88 APC (AWC) Shutter/Operator Door Open
M88 Right Side Door Open
M89 APC (AWC) Shutter/Operator Door Close
M89 Right Side Door Close
M94 Tool Data Delete Mode ON
M95 Pallet 2 Load Check
M96 Through Tool Coolant ON
M96 Programmable Cooalnt Nozzle ON
M97 Overhead Shower Coolant ON
M98 Sub Program Call
M99 Return to Main Program
M100 Cleaning Air OFF
M101 Cleaning Air ON
M102 Direct Spare Tool Change Mode Check
M105 Direct Spare Tool Change
M106 Direct Spare Tool Change Mode OFF
M107 Direct Spare Tool Change Mode ON
M110 6th Axis Clamp
M111 6th Axis Unclamp
M118 FT Function OFF
M119 FT Function ON
M122 U Axis Mode OFF
M123 U Axis Mode ON
M124 U Axis Emergency Mode ON
M125 Program Search
M126 Metric Input Check
M127 Inch Input Check
M128 Inch / Metric Input Check End
M129 Quadrant Glitch Fine Tuning Mode Change
M130 Override for Tool OFF
M131 Override for Tool ON
No.0584J-1405EN 1-5
List of M Codes
List of M Codes
1-6 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M237 SL Upper Mode OFF
M238 SL Upper Mode ON
M240 ATCBTS Check Action
M241 ATCBTS Retracted
M243 ATCBTS Check
M246 Tool Measuring Sensor Y-Axis Direction
M247 Tool Measuring Sensor X-Axis Direction
M250 GI/Super-GI High Accuracy Mode
M251 GI/Super-GI High Performance Mode
M252 GI/Super-GI Ultra High Accuracy Mode
M253 GI/Super-GI High Accuracy Mode for Contouring with Rotary Axes
M253 GI/Super-GI High Accuracy Mode
M254 GI/Super-GI Special Mode
M254 GI/Super-GI Extra Super-High Accuracy Mode
M255 GI/Super-GI Radical Mode
M256 GI/Super-GI Ultra High Performance Mode
M256 GI/Super-GI Hybrid Mode
M257 GI/Super-GI High Performance Mode for Contouring with Rotary
Axes
M257 GI/Super-GI High Performance Mode
M258 GI/Super-GI Ultra High Performance Mode for Contouring with
Rotary Axes
M258 GI/Super-GI Ultra High Accuracy Mode
M259 GI Initial Mode
M266 GI/Super-GI Ultra High Performance for Contouring With Rotary
Axes Mode
M270 Non Contact Type Spindle Measurement
M276 Extend Stroke Change Signal OFF
M277 Extend Stroke Change Signal ON
M281 Signal light effective mode OFF
M282 Signal light effective mode ON
M283 SL Lower Limit Mode OFF
M284 SL Lower Limit Mode ON
M291 Floating M Code Change Prohibition Mode OFF
M292 Floating M Code Change Prohibition Mode ON
M294 Machining Finish Information
M295 Macro Variable Output Group Data Output
No.0584J-1405EN 1-7
List of M Codes
List of M Codes
1-8 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M388 Vacuum Suction OFF
M389 Tailstock Pressure Change
M390 Spindle Tool Clamp
M391 Spindle Tool Unclamp
M392 Spindle Tool Unclamp Preparation
M394 Attachment Change End
M398 Through Spindle Mist ON
M399 Mist Blow ON
M406 Work Data Register Mode
M407 Spindle Monitor Record Mode Off
M408 Spindle Monitor Record mode On
M409 Vacuum Pump Off
M410 Vacuum Pump On
M412 Vacuum Device OFF
M413 Vacuum Device ON
M417 Machine Table Pallet 1 Check
M418 Machine Table Pallet 2 Check
M419 Machine Table Pallet Check End
M430 Pallet Seating Check
M433 BTS LS300 OFF Check
M434 Tool Data BT Flag Check
M435 ATCBTS Operation Mode Specified
M436 Signal Lamp 1 Unconditional ON
M437 Signal Lamp 2 Unconditional ON
M441 Message Output Function
M448 Tool Data Register Mode (Type1)
M449 Tool Data Register Mode (Type2)
M450 Setting Tool Magazine No. used in Tool Data Registration Mode
M451 Tool Cutter No. Setting
M455 Machining Signal OFF
M456 Machining Signal ON
M457 Spindle Speed Output to Macro
M460 Tool Run Out Measurement
M461 Tool Run Out Measurement Base Data Registration
M462 Pallet No. Output to Macro
M463 Print-out Mode Output
M464 Spindle Tool No. Output to Macro
No.0584J-1405EN 1-9
List of M Codes
List of M Codes
1-10 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M584 M Code for Special User I/O Interface
M585 M Code for Special User I/O Interface
M586 M Code for Special User I/O Interface
M587 M Code for Special User I/O Interface
M588 M Code for Special User I/O Interface
M589 M Code for Special User I/O Interface
M590 M Code for Special User I/O Interface
M591 M Code for Special User I/O Interface
M592 M Code for Special User I/O Interface
M593 M Code for Special User I/O Interface
M594 M Code for Special User I/O Interface
M595 M Code for Special User I/O Interface
M600 Internal use M code
M601 Internal use M code
M602 Internal use M code
M603 Internal use M code
M604 Work Chuck Clamp
M605 Work Chuck Unclamp
M606 WSS Pallet (Workpiece) Loading
M606 WSS Pallet (Workpiece) Loading
M607 WSS Pallet (Workpiece) Unloading
M607 WSS Pallet (Workpiece) Unloading
M608 Individual Pallet Loading
M608 Individual Pallet Loading
M608 Individual Pallet Loading
M608 Individual Pallet Loading
M608 Individual Pallet Loading
M608 Individual Pallet Loading
M609 Individual Pallet Unloading
M609 Individual Pallet Unloading
M609 Individual Pallet Unloading
M609 Individual Pallet Unloading
M610 Step Retract
M610 AAC Step Retract
M611 Step Advance
M611 AAC Step Advance
M612 Workpiece Change
No.0584J-1405EN 1-11
List of M Codes
List of M Codes
1-12 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M725 Workpiece Rotation Stop
M726 Workpiece Forward Start
M728 Workpiece Reverse Start
M729 Workpiece Speed Set
M732 Coolant Pressure Setting 1
M733 Coolant Pressure Setting 2
M734 Coolant Pressure Setting 3
M735 Coolant Pressure Setting 4
M736 Lighting ON
M737 Lighting OFF
M740 Internal Conveyor OFF
M741 Internal Conveyor ON
M742 Oil Skimmer OFF
M743 Oil Skimmer ON
M745 Spindle Upper Nozzle Coolant ON
M747 Measuring Head Cleaning Air ON
M748 IMM Cleaning Air ON
M749 IMM Cleaning Air OFF
M750 IMM Cleaning Air ON Mode
M751 IMM Cleaning Air OFF Mode
M754 Base Coolant ON
M755 Cleaning Telescopic-Cover Coolant ON
M756 Air Blow ON
M757 Telescopic-Cover Coolant OFF
M757 Telescopic-Cover Coolant & Base Coolant OFF
M757 Base Coolant OFF
M775 Tool Cleaning Air OFF
M776 Tool Cleaning Air ON
M781 Coolant Amount Set to Standard
M782 Coolant Amount Set to Large
M783 Workpiece Rotation Mode
M786 Cutting Surface Cleaning Air OFF
M787 Cutting Surface Cleaning Air ON
M790 Oil Amount Set to Small (MQL)
M791 Oil Amount Set to Standard (MQL)
M792 Oil Amount Set to Large (MQL)
M793 Mist Pressure Set to High (MQL)
No.0584J-1405EN 1-13
List of M Codes
List of M Codes
1-14 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M908 Get Probe Displacement
M910 Workpiece Automatic Measuring Mode Cancel
M911 Measuring Head Alarm Check
M912 Tool Length Measuring Mode Setting
M919 Machined Piece Count
M920 Tool Length Measurement Data Read
M921 Tool Radius Measurement Data Read
M922 M920, M921 Data Incremental Mode
M925 Ring Sensor Monitor Mode OFF
M926 Ring Sensor Monitor Mode ON
M938 Rak rak checker Auto/Manual Select
M939 Rak rak checker End
M940 Auto End with NG Workpiece Measurement Result
M941 MP7 Measuring Head Check
M946 Spindle Tool Pot No. Output to Macro
M947 Next Tool Pot No. Output to Macro
M948 M Code for ATC
M950 Non Contact Type Measurement Device Zero Set
M951 Blum Bore Gauge Start
M956 Linear Gauge Type(Absolute Scale) Tool Measurement
M963 Measuring Probe Power OFF & Check
M964 Measuring Probe Power ON & Check
M965 Measuring Probe Power OFF
M966 Measuring Probe Power ON
M968 Cutting Condition Auto Select
M971 Second Measuring Unit Cover Close
M972 Second Measuring Unit Cover Open
M977 Image Tool Measure Tool Cleaning Air OFF
M978 Image Tool Measure Tool Cleaning Air ON
M984 High Speed Counter Type Tool Measurement
M992 Skip Signal Check for Tool Length Measuring
M994 Rotary Axis Coordinate Calculation Function
M1100 Internal use M code
M1101 Enable IAC
M1102 Ditch processing mode OFF
M1103 Ditch processing mode ON
M1104 Chopping Stop
No.0584J-1405EN 1-15
List of M Codes
List of M Codes
1-16 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
Data Output
M1318 Release Feed Axis Oil Controller Pause
M1319 Feed Axis Oil Controller Pause
M1323 Feed Axis Additional Oil Controller (By Temperature) Differential
Temperature Control Mode ON
M1324 Feed Axis Additional Oil Controller (By Temperature) Differential
Temperature Control Mode OFF
M1325 Feed Axis Additional Oil Controller (By Temperature) Differential
Temperature Control Data Output
M1328 Electric attachment spindle connector cover open
M1329 Electric attachment spindle connector cover close
M1330 Electric attachment spindle speed set
M1331 Electric attachment spindle positive start
M1332 Electric attachment spindle reverse start
M1333 Electric attachment spindle stop
M1334 Electric attachment spindle proofreading
M1335 Strong Clamp Mode OFF
M1336 Strong Clamp Mode ON
M1337 Clamp Ignore Mode OFF
M1338 Clamp Ignore Mode ON
M1339 High Accuracy A and C Axes Oil Controller Differential Temperature
Control Mode ON
M1340 High Accuracy A and C Axes Oil Controller Differential Temperature
Control Mode OFF
M1341 High Accuracy A and C Axes Oil Controller A Axis Control
Temperature Output
M1342 High Accuracy A and C Axes Oil Controller C Axis Control
Temperature Output
M1343 AST3 Study Function Off
M1344 AST3 Study Function On
M1345 Spindle Switch
M1348 AST Recording Function Continue
M1349 AST Recording Function Pause
M1350 Air Spindle Running Start
M1351 AST Playback Function OFF
M1352 AST Playback Function ON
M1353 Spindle Load/Vibration Record Disable
No.0584J-1405EN 1-17
List of M Codes
List of M Codes
1-18 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M1444 Tool contact detection mode OFF
M1445 Tool contact detection mode ON
M1446 Confirmation of Spindle Rotation While Cutting Disable Release
M1447 Confirmation of Spindle Rotation While Cutting Disable
M1600 Pallet (Workpiece) Load to Transport Device
M1601 Pallet (Workpiece) Unload from Transport Device
M1602 Stocker Pallet 1 Lock
M1603 Stocker Pallet 1 Unlock
M1604 Stocker Pallet 2 Lock
M1605 Stocker Pallet 2 Unlock
M1607 Set NC Parameter for Angle Head
M1608 M Code for ATC
M1609 M Code for ATC
M1700 Point Cleaning Water Off
M1701 Point Cleaning Water On
M1702 Point Cleaning Air Off
M1703 Point Cleaning Air On
M1710 Dresser Coolant OFF
M1711 Dresser Coolant ON
M1712 User Coolant OFF
M1713 User Coolant ON
M1714 M Code for Through Spindle Coolant Pressure Change
M1715 Release Base Coolant Pause
M1716 Base Coolant Pause
M1717 Overhead Shower Coolant Intermittent Operation
M1718 Air OFF on table
M1719 Air ON on table
M1720 JIG Coolant Off
M1721 JIG Coolant On
M1722 Stop Block Cleaning Air Off
M1723 Stop Block Cleaning Air On
M1724 Oil Pan Cleaning Coolant Off
M1725 Oil Pan Cleaning Coolant On
M1726 JIG Cleaning Air OFF
M1727 JIG Cleaning Air ON
M1728 Room Washing Air Off
M1729 Room Washing Air On
No.0584J-1405EN 1-19
List of M Codes
List of M Codes
1-20 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M2002 Internal use M code
M2003 Internal use M code
M2004 3D Crash Avoidance Mode Record & Off
M2005 3D Crash Avoidance Mode Resume
M2006 Internal use M code
M2007 Internal use M code
M2008 Internal use M code
M2009 Internal use M code
M2010 Internal use M code
M2011 Internal use M code
M2012 Internal use M code
M2013 Internal use M code
M2014 Internal use M code
M2015 Internal use M code
M2016 VP Control Enable
M2017 VP Control Disable
M2018 Internal use M code
M2020 Internal use M code
M2021 Internal use M code
M2022 Internal use M code
M2023 Internal use M code
M2024 Internal use M code
M2025 Internal use M code
M2026 VP Control Magnification Enable (Rotation Axis)
M2027 VP Control Magnification Disable (Rotation Axis)
M2035 Vibration Control(AST4) Enable
M2036 Vibration Control(AST4) Disable
M2037 Internal use M code
M2038 Internal use M code
M2039 Internal use M code
M2040 Internal use M code
M2041 Internal use M code
M2044 Internal use M code
M2046 Blum Macro Mode OFF
M2047 Blum Macro Mode ON
M2050 Internal use M code
M2051 Internal use M code
No.0584J-1405EN 1-21
List of M Codes
List of M Codes
1-22 No.0584J-1405EN
List of M Codes
List of M Codes
List of M Codes
M2346 Preparations for Millturn
M2347 Wait for preparation finish for Millturn
No.0584J-1405EN 1-23
Specification of M Codes
2. Specification of M Codes
Specification
No.0584J-1405EN 2-1
Specification of M Codes
Specification
2.1 Specification
The (D) means that this code is performed after the axis moves if an axis
movement command is given in that block together.
□ Program
G01 X___ Y___ F___ M0;
□ Explanation
Automatic operation stops after the block containing M0 is executed.
When automatic operation is stopped by M0, spindle rotation and coolant are
stopped, and the [Cycle Start] switch is blinked.
And then, the warning lamp is turned on if the machine with a signal tower.
If the [Cycle Start] switch is pushed, spindle rotation and coolant are resumed,
automatic operation is restarted, and the warning lamp is turned off.
□ Program
G01 X___ Y___ F___ M1;
□ Explanation
This M code functions as M0 only when the [Optional Stop] switch has been
turned on.
If the [Optional Stop] switch is turned off, M1 is ignored.
□ Explanation
Indicates the end of program, and resets NC after operating as follows:
Afterward, if the [Power Out] switch has been turned on, the power is turned Off,
and if the [Warning Lamp] mode has been turned on, M2 turns the warning lamp
on.
2-2 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
S800 M3 G00 X___ Y___ ;
G01 Z___ F___ ;
□ Explanation
Rotates spindle in clockwise direction at a speed specified with S code.
If it is not in the same block as M03 or there is no previous S (spindle speed), an
alarm occurs.
□ Program
S800 M4 G00 X___ Y___ ;
G01 Z___ F___ ;
Specification
□ Explanation
Rotates spindle in counterclockwise direction at a speed specified with S code.
If it is not in the same block as M04 or there is no previous S (spindle speed), an
alarm occurs.
□ Program
G01 X___ Y___ F___ M5;
□ Explanation
Stops the spindle after the block containing M5 is executed.
□ Program
M6;
□ Explanation
Exchanges the spindle tool with the tool in Tool magazine indexed at the
position of next tool, or the tool on ATC arm.
The typical content of M6 is as follows:
There is the one which does not return according to the version
of the model and software either about the coolant.
No.0584J-1405EN 2-3
Specification of M Codes
Specification
M7 Air Blow ON
□ Machine Type
All Machine Type
□ Explanation
Turns the air blow on.
M8 Nozzle Coolant ON
□ Machine Type
All Machine Type
□ Explanation
Turns the nozzle coolant on.
□ Program
G01 X___ Y___ F___ M9;
□ Explanation
Stops coolant after the block containing M9 is executed.
□ Program
M11;
G91 G01 B___ F___ M10;
□ Explanation
Clamps 4th axis after the block containing M10 is executed.
□ Program
M11;
G91 G01 B___ F___ M10;
□ Explanation
Unclamps 4th axis.
2-4 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M13;
G91 G01 A___ F___ M12;
□ Explanation
Clamps 5th axis after the block containing M12 is executed.
□ Program
M13;
G91 G01 A___ F___ M12;
Specification
□ Explanation
Unclamps 5th axis.
M14 BTS Arm Advance, Tool Length Sensor Cover Open (D)
□ Machine Type
All Machine Type
□ Explanation
Advances the movable BTS arm or open the tool length sensor cover.
□ Program
M15 B___ ;
□ Explanation
Positions the index table in reverse direction if the machine has an index table.
□ Program
G28 B___ M11;
M16;
G00 B___ M10;
□ Explanation
Turns the mirror image of the 4th axis on if the machine has a 4th axis.
Specify it in a by block itself.
No.0584J-1405EN 2-5
Specification of M Codes
Specification
M18 BTS Arm Retract, Tool Length Sensor Cover Close (D)
□ Machine Type
All Machine Type
□ Explanation
Retracts the movable BTS arm or close the tool length sensor cover.
□ Program
G00 X___ Y___ M19;
□ Explanation
Orients and stops the spindle after the block containing M19 is executed.
□ Explanation
Checks whether or not the tool has broken.
If there is a problem with the tool, a BTS alarm occurs.
□ Program
G28 X___ Y___;
M21;
G01 X___ Y___ F___;
□ Explanation
Turns the mirror image for the X axis on.
Specify this M code in an independent block.
□ Program
G28 X___ Y___;
M22;
G01 X___ Y___ F___;
□ Explanation
Turns the mirror image of the Y axis on.
Specify this M code in an independent block.
2-6 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
G28 X___ Y___ M23;
G01 X___ Y___ F___;
□ Explanation
Turns the mirror image (X, Y, 4th, 5th, 6th axis) off after the block containing
M23 is executed.
□ Explanation
Turns on through spindle coolant.
Specification
M27 Tap Oil Mist/Jet Mode ON
□ Machine Type
a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx /
a92 / A66E-5XD / A99E / A100E / MAG1
□ Program
M27;
M3;
G84 Z___ R___ F___;
G80;
□ Explanation
Turns on the tap oil mist or jet mode.
In this mode, first the direction of spindle rotation is stored, and the coolant is
turned on for the specified time (machine parameter No.7730).
Afterward, coolant is turned on every time if the direction stored is specified
again.
This mode is valid until M9 or M2/M30, M6, emergency stop is specified.
□ Explanation
Turns on through tool air.
□ Program
G00 Z___;
X___ Y___;
M29;
□ Explanation
Turns off the power supply if the [Power Out] switch has been turned on.
No.0584J-1405EN 2-7
Specification of M Codes
Specification
□ Explanation
Resets NC and rewinds program after indicating the end of program, and
performs the following operations:
Afterward, if the [Warning Lamp] switch has been turned on, M30 turns the
warning lamp on.
If the [Power Out] switch has been turned on, M30 turns the power supply off.
When the pallet changer is operated in the standard operation mode, automatic
operation is started after rewinding if the ready status is ON for any pallet.
□ Explanation
Used in the workpiece automatic measuring macro program.
Specify at the start of workpiece automatic measuring.
□ Explanation
Used in the tool length automatic measuring macro program.
Specify at the start of tool length automatic measuring.
□ Explanation
Used in the tool length automatic measuring macro program.
The tool length automatic measuring circuit is self-diagnosed.
□ Explanation
Used in the workpiece automatic measuring macro program.
Previously used tool is assigned a BTS alarm. Afterward, a spare tool is indexed
if the tool for which a BTS alarm was assigned is called with the T code.
2-8 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Used in the workpiece automatic measuring macro program.
Previously used tool is assigned to a BTS alarm, and tool change and pallet
change are performed to start the next machining process automatically.
Specification
No.0584J-1405EN 2-9
Specification of M Codes
Specification
□ Program
M36;
T Tool No. ;
T Tool No. ;
:
M37;
□ Explanation
Checks whether or not all tools to be used (including spare tools) are available
or not.
If a tool is assigned an alarm or not registered, a machine alarm occurs.
When the specification of permitting PTN input in multiple Tool magazines
(machine parameter No. 12021=1), Tool magazine number is set by M450
command.
□ Program Example
O1234;
M36;
T1;
T2;
T3;
M37;
:
Machining Program
:
M30;
O1234;
M36;
M450 S1;
T1;
T2;
M450 S2;
T1;
T2;
M37;
:
Machining Program
:
M30;
After the prior tool life check before starting machining, execute
M37 to terminate the prior tool life check mode.
This mode is canceled also by M2, M30, emergency stop and
tool life alarm.
2-10 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M___; <-- Tool register mode On such as
M448
S___ T___; <-- Tool Data Registration
M37;
□ Explanation
Turns off the tool data registration mode.
When a registration mode is ON, another registration mode cannot be turned on
without turning off the current mode.
While the tool data registration mode is ON, you can't use S code to command
spindle speed, and can't use T code to command next tool.
You can use them to command a spindle speed and a tool number, after M37 is
executed.
Specification
If multiple items of data are to be registered in an NC program, command M37 to
turn the register mode OFF before registering the next data item.
If tool data is to be registered in a machining program, register mode must be
turned OFF to distinguish the tool data from the T- or S-commands. In such a
case, use M37 to turn the register mode OFF.
□ Program Example
O1234;
M448 S4; <-- PTN register mode ON.
S1 T1000; <-- PTN 1000 is set to 1st pot magazine.
S2 T2000; <-- PTN 2000 is set to 2nd pot magazine.
M448 S119; <-- SL data register mode ON
S1 T123; <-- 12.3(%) is set to SL(Upper Limit) of 1st. Pot.
S1 T456; <-- 45.6(%) is set to SL(Lower Limit) of 1st. Pot.
M37; <-- Data registration mode OFF.
:
Machining Program
:
M30;
No.0584J-1405EN 2-11
Specification of M Codes
Specification
□ Program
M38;
S AC Data ;
S SL(Upper) Data ;
S SL(Under) Data ;
M39;
□ Explanation
Sets AC/SL data for spindle tool.
First S is for AC data, second S is for SL upper limit data, and third is for SL
lower limit data.
Specified monitor data is retained until an M6 or M2/M30 is specified.
If an S9999 is specified, the monitoring data is not altered but the data on tool
detail screen becomes valid.
□ Program Example
O1234;
M38;
S100; <-- 10.0 [%] is set to AC of simple tool.
S125; <-- 12.5 [%] is set to SL(Upper Limit) of tool.
S30; <-- 3.0 [%] is set to SL(Lower Limit) of tool.
M39;
:
Machining Program
:
M30;
□ Program
M38;
S AC Data ;
S SL(Upper) Data ;
S SL(Under) Data ;
M39;
□ Explanation
Turns off the AC/SL data temporary alteration mode.
□ Explanation
Sets SL coefficient data to 125% (Max. spindle actual load current * 1.25) when
study mode is ON.
2-12 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Sets SL coefficient data to 150% (Max. spindle actual load current * 1.50) when
study mode is ON.
□ Explanation
Sets SL coefficient data to 200% (Max. spindle actual load current * 2.00) when
study mode is ON.
Specification
□ Machine Type
Machines other than following.
V33hyper / H2J
□ Explanation
Sets SL coefficient data to 0%.
Use this M code when you don't use SL monitor and AC monitor.
□ Explanation
Used in the tool length automatic measuring macro program.
The tool length automatic measuring circuit is self-diagnosed.
This M code don't turn on measuring head cleaning air.
□ Explanation
Sets SL lower limit coefficient data to 125% (No load * 1.25) when study mode is
ON.
□ Explanation
Sets SL lower limit coefficient data to 0% (No load * 0) when study mode is ON.
Use this M code when you don't use SL lower limit monitor.
No.0584J-1405EN 2-13
Specification of M Codes
Specification
□ Program
G01 X___ Y___ F___ M48;
□ Explanation
Enables the feed rate override switch after the block containing M48 is
executed.
□ Program
M49;
G01 X___ Y___ F___;
□ Explanation
Disables the feed rate override switches and fixes the feed rate override at
100% until NC reset, M48 or M2/M30 is specified.
□ Explanation
Set the AC data to 100% and the SL data to 200% when study mode is ON.
□ Explanation
Turns on the automatic workpiece reject mode.
If a tool monitor alarm occurs during random operation, the automatic workpiece
rejection function interrupts machining and starts machining on next pallet or
next ready face.
□ Explanation
Turns off the automatic workpiece reject mode.
2-14 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M448 S____; <-- M Code for Tool Registration
T___ ;
M54; <-- Indicated that following data is negative
S___T___;
M448;
□ Explanation
Specifies that next data is minus.
Specify M54 in previous block or the same block of data.
M54 is effective only for the next data.
□ Program Example
M448 S103; <-- Tool length (Geometry) register mode ON.
Specification
M54; <-- Indicates that following data is negative.
S1 T1234; <-- Tool length offset (Geometry) for pot 1.
-0.1234(mm)
(-0.01234 inch)
S2 M54 T345; <-- Tool length offset (Geometry) for pot 2.
-0.0345(mm)
(-0.00345 inch)
S3 T345; <-- Tool length offset (Geometry) for pot 3.
0.0345(mm)
(0.00345 inch)
M30;
□ Program
H Offset No. D Offset No. ;
M56;
□ Explanation
Transfers tool length and radius offset data for spindle tool (registered on Tool
Detail screen) to the current offset numbers.
If the offset number is 0, the data is not sent to that offset.
E.g., H1 D0 causes the tool length data to be sent to H1 but the radius data is
not sent.
No.0584J-1405EN 2-15
Specification of M Codes
Specification
□ Program Example
O1234;
T1;
M6;
H1 D2;
M56; <-- Tool length data is sent to offset No.1, and
tool radius data is sent to offset No.2.
:
Machining Program
:
M451 S2;
M56; <-- Tool length data of cutter No.2 is sent to
offset No.1, and tool radius data of cutter
No.2 is sent to offset No.2.
:
Machining Program
:
T2;
M6;
H3 D0;
M56; <-- Tool length data of cutter No.1 is sent to
offset No.3, but tool radius data is not sent.
:
Machining Program
:
M30;
□ Program
[Sequential Method]
M57;
T Tool No. ;
:
T Tool No. ;
M37(M30);
[Random Method]
M57;
2-16 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns on the tool registration mode.
Two types of registration methods are provided; a sequential method and
random method.
In sequential method, order of data is considered as a pot number. And, in
random method, pot number is specified for each tool.
Tool magazine number is set according to M450 S__ Specify. If M450 has not
been specified ever, tool magazine number is set to 1.
[Sequential method]
After the M57, specify tool numbers with T, from pot 1 sequentially.
Max pot number to be able to register is up to the maximum pot number of the
tool magazine.
Specification
It is not necessary to specify all the pot, but pot number have to be specified
sequentially.
[Random method]
After an M57, specify the pot number with S and the tool number with T only for
necessary pots, in optional order.
Max number of pots is up to the maximum pot number of the tool magazine.
□ Program Example
[Sequential Type]
O1234;
M450 S0; <-- Magazine No. is set to 0.
M57;
T1; <-- Tool number of pot 1 of magazine 0 (external tool)
is set to 1.
T2; <-- Tool number of pot 2 of magazine 0 (external tool)
is set to 2.
M37; <-- Tool data registration mode OFF.
M450; <-- Magazine number is set to 1.
T12; <-- Tool number of pot 1 of magazine 1 is set to 12.
T345; <-- Tool number of pot 1 of magazine 1 is set to 345.
M30; <-- Tool data registration mode OFF.
[Random Type]
O1234;
M57;
S1 T1010; <-- Tool number of pot 1 of magazine 1 is set to 1010.
S10 T1100; <-- Tool number of pot 10 of magazine 1 is set to 1100.
S5 T1005; <-- Tool number of pot 5 of magazine 1 is set to 1005.
M30;
No.0584J-1405EN 2-17
Specification of M Codes
Specification
□ Program
G01 X___ Y___ F___;
M58;
G01 X___ Y___ F___;
□ Explanation
Enables [Spindle Speed Override] switch.
□ Program
S800 M3;
M58;
G01 X___ Y___ F___;
□ Explanation
Disables [Spindle Speed Override] switch and fixes the spindle speed override
at 100% until M58 is executed.
Specify it in a by block itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
□ Explanation
Loads the pallet ready to the machine table.
□ Explanation
The pallet in the machine table and the machine buffer is exchanged
2-18 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
For Turn type
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Can be used by itself.
□ Explanation
For Turn type
Specification
M60 raises APC arm, rotate it by 180 Deg, lowers it, and exchanges the pallet on
the pallet loading station with the pallet on the table at the machining chamber.
For WPM
This M code is used in the pallet change program (O9003).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet unloading programs (O9820).
Cannot be used by itself.
□ Explanation
Pallet on the machine table is returned to the buffer.
□ Explanation
This M code is used in the pallet unloading programs (O9820).
Cannot be used by itself.
No.0584J-1405EN 2-19
Specification of M Codes
Specification
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
□ Explanation
Not ready pallet on the buffer is loaded to the WSS.
□ Explanation
Prepare before load.
□ Explanation
For WPM
This M code is used in the pallet change program (O9003).
Cannot be used by itself.
For Other
This M code is used in special pallet change.
Cannot be used by itself.
□ Explanation
This M code is used in the pallet change/pallet loading program (O9003).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
2-20 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used in the pallet unloading programs (O9820).
Cannot be used by itself.
□ Explanation
Prepare before unload.
Specification
□ Explanation
For WPM
This M code is used in the pallet change program (O9003).
Cannot be used by itself.
For Other
This M code is used in special pallet change.
Cannot be used by itself.
□ Explanation
This M code is used in the pallet change/pallet loading program (O9003).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading programs (O9810).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
No.0584J-1405EN 2-21
Specification of M Codes
Specification
□ Explanation
The pallet change device is returned to the state of standby.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
□ Explanation
For WPM
This M code is used in the pallet change program (O9003).
Cannot be used by itself.
For Other
This M code is used in special pallet change.
Cannot be used by itself.
□ Explanation
This M code is used in the pallet unloading programs (O9004).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading programs (O9810).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
2-22 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The pallet change device is set to the state of pallet load standby.(enable to use
by itself)
□ Explanation
Do action after unload.
Specification
□ Explanation
For WPM
This M code is used in the pallet change program (O9003).
Cannot be used by itself.
For Other
This M code is used in special pallet change.
Cannot be used by itself.
□ Explanation
This M code is used in the pallet unloading programs (O9004).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading programs (O9810).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
No.0584J-1405EN 2-23
Specification of M Codes
Specification
□ Explanation
The pallet change device is set to the state of pallet load standby cancel.
□ Explanation
Cancel prepare before load.
From action by M62, restore pallet changer to standby condition.
□ Explanation
Cancel prepare before unload.
From action by M63, restore pallet changer to standby condition.
□ Explanation
The customer cannot use it.
□ Explanation
Used when a pallet change (M60) is required even if the ready status of the
pallet on stocker is OFF.
With this M code, ready uncheck mode is turned on.
Once an M60 is executed, this mode is turned off.
This M code cannot be used in the random operation.
□ Program Example
M69;
M60; <-- Exchanges pallet even if a next pallet is not ready.
:
Machining Program
:
M60; <-- Exchanges pallet only if a next pallet is ready.
2-24 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Disables custom macro interruption.
□ Explanation
Enables custom macro interruption.
Specification
□ Explanation
Turns on through spindle air.
□ Program
M98 P9810;
M78;
□ Explanation
Turns on signal light 1 (red) if the pallet on stocker is not ready.
Signal light turned on by this M code will be turned off by changing the pallet to
ready.
□ Program
M98 P9810;
M79;
□ Explanation
Turns on signal light 2 (yellow) if the pallet on stocker is not ready.
Signal light turned on by this M code will be turned off by changing the pallet to
ready.
No.0584J-1405EN 2-25
Specification of M Codes
Specification
□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.
□ Explanation
This M code is used in the pallet loading and unloading programs (O9003,
O9004).
Cannot be used by itself.
□ Explanation
Checks whether or not the pallet number on the table is 1 if a pallet has been
loaded.
If it is No. 2, a machine alarm occurs.
Checks whether or not the pallet on the stocker is ready if pallet has not been
loaded on the table.
When it is not ready, an alarm occurs.
□ Explanation
This M code is used in the automatic measuring macro program (workpiece/tool
length) when the sensor approaches the target-point.
□ Explanation
This M code is used in the automatic measuring macro program (workpiece/tool
length) when the sensor is fed at rapid traverse.
□ Explanation
Opens APC (AWC,WPM) shutter or operator door.
2-26 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Opens right side door
□ Explanation
Closes APC (AW C,WPM) shutter or operator door.
Specification
□ Explanation
Closes right side door.
No.0584J-1405EN 2-27
Specification of M Codes
Specification
□ Program
M94;
S Pot No. ;
:
S Pot No. ;
M37(M30);
□ Explanation
S after M94 specifies the pot number to be deleted. Deletes all tool data
including tool number of the pot specified with S.
Tool magazine number is set according to M450 S__ command.
If M450 has not ever been specified, the magazine number is set to 1.
However, tool data of tool No. 0 is not deleted.
□ Program Example
O1234;
M450 S2; <-- Magazine No. is set to 2.
M94; <-- Tool data delete mode ON.
S1; <-- All the data of the pot of tool No.1 of magazine No.2
are deleted.
S2; <-- All the data of the pot of tool No.2 of magazine No.2
are deleted.
M37; <-- Tool data delete mode OFF.
M450; <-- Magazine No. is set to 1.
S1; <-- All the data of the pot of tool No.1 of magazine No.1
are deleted.
S2; <-- All the data of the pot of tool No.2 of magazine No.1
are deleted.
M30; <-- Tool data delete mode OFF.
□ Explanation
Checks whether or not the pallet number on the table is 2 if a pallet has been
loaded. If it is No. 1, a machine alarm occurs.
If no pallet is loaded on the machine table, checks whether or not the pallet on
the pallet loading station is ready. If it is not ready, a machine alarm occurs.
2-28 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns on the through tool coolant.
□ Explanation
Turns on programmable coolant nozzle.
Specification
H2J
□ Explanation
Turns on the high power (ceiling) coolant.
□ Program
M98 P___L___ ;
□ Explanation
Calls the subprogram specified with P.
Specifies the number of recurrences of subprogram with L. If L is omitted,
automatically calls subprogram only once. In addition, a maximum of 9999 can
be specified as L.
□ Program
M99;
□ Explanation
Returns to the main program from subprogram called with M98P___.
□ Explanation
This M code is used in tool measurement macro program.
No.0584J-1405EN 2-29
Specification of M Codes
Specification
□ Explanation
This M code is used in tool measurement macro program.
□ Explanation
Used in the macro program type direct spare tool change macro program.
□ Explanation
Exchanges the spindle tool with a spare tool if a tool life alarm has occurred for
the spindle tool.
(Direct spare tool change)
□ Explanation
Turns on the direct spare tool change inhibit mode when M107 mode is ON.
□ Explanation
Turns on the direct spare tool change mode.
In this mode, whether or not an alarm has occurred for the spindle tool is
checked periodically, and the spindle tool is exchanged with a spare tool if an
alarm has occurred for the spindle tool.
□ Program
M111;
G91 G01 B___ F___ M110;
□ Explanation
Clamps 6th axis after the block containing M110 is executed.
2-30 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M111;
G91 G01 B___ F___ M110;
□ Explanation
Unclamps 6th axis.
□ Explanation
Turns off the FT function.
M119 FT Function ON
Specification
□ Machine Type
All Machine Type
□ Explanation
Turns on the FT function.
□ Program
M123;
:
U___;
:
M122;
□ Explanation
Turns off the U axis mode.
□ Program
M123;
:
U___;
:
M122;
□ Explanation
Turns on the U axis mode.
After M123, U axis is automatically performed reference return.
No.0584J-1405EN 2-31
Specification of M Codes
Specification
□ Program
M124;
:
U___;
:
M122;
□ Explanation
Turns on the U axis emergency mode.
After M124, U axis is not performed reference return..
□ Program
M125 S Program No. ; T N Number ;
□ Explanation
Program Search & N Search.
If T N Number is not commanded, N search is not executed.
□ Program Example
M125 S1000 N10;
Search O1000 and search N10.
M125 S1000;
Search O1000.
2-32 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M126;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M127;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M128;
Specification
□ Explanation
When the unit of input data to NC is metric input (G21), block skip 1 is turned off.
When the unit of input data to NC is inch input (G20), block skip 1 is turned on.
A dummy block for preventing pre-reading such as G53 is necessary after
M126/M127.
No.0584J-1405EN 2-33
Specification of M Codes
Specification
□ Program
M126;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M127;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M128;
□ Explanation
When the unit of input data to NC is inch input (G20), block skip 1 is turned off.
When the unit of input data to NC is metric input (G21), block skip 1 is turned on.
A dummy block for preventing pre-reading such as G53 is necessary after
M126/M127.
□ Program
M126;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M127;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M128;
□ Explanation
Returns the status of block skip 1 to the setting that has been made on the main
control panel.
This is used together with M126 or M127.
2-34 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M129 S Tuning Mode Number ;
□ Explanation
The quadrant glitch fine tuning mode is changed to the mode specified by S
code of the same block.
Specify S0 or omit S code to change it into the shipment setting.
□ Explanation
Disable override for each tool.
Specification
□ Machine Type
All Machine Type
□ Explanation
Enable override for each tool.
□ Explanation
Sets upper limit of cutting feed rate.
No.0584J-1405EN 2-35
Specification of M Codes
Specification
□ Program
S___;
M135 S___;
G84 Z___ R___ F___;
G80;
M30;
□ Explanation
Turns on the rigid tap mode.
Specify the same S code as that in the M135 block before the M135 block.
□ Explanation
Output Machine Condition to Macro Variable.
□ Program
G28 X___ Y___ A__;
M138;
G01 X___ Y___ A__ F___;
□ Explanation
Turns on mirror image for 5th axis.
Specify it in a block by itself.
□ Program
G28 X___ Y__ C___;
M139;
G01 X___ Y___ C__ F___;
□ Explanation
Turns on the mirror image of 6th axis.
Specify it in a block by itself.
2-36 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used in the macro program for automatic measuring.
It stores the status of block skip 1, and turns it on.
□ Explanation
This M code is used in the macro program for automatic measuring.
It stores the status of the block skip 1, and turns it off.
Specification
□ Explanation
This M code is used in the macro program for automatic measuring.
It recovers the status of block skip 1 to the status previously stored by
M140/M141.
□ Explanation
Turns block skip 2 to 9 off.
□ Explanation
Turns on block skip 2.
□ Explanation
Turns on block skip 3.
□ Explanation
Turns on block skip 4.
No.0584J-1405EN 2-37
Specification of M Codes
Specification
□ Explanation
Turns on block skip 5.
□ Explanation
Turns on block skip 6.
□ Explanation
Turns on block skip 7.
□ Explanation
Turns on block skip 8.
□ Explanation
Turns on block skip 9.
□ Explanation
Execute M165 before starting the spindle when BIG PLUS tool holder is used in
the machine with BIG PLUS spindle. This mode is effective until M166 is sent.
This mode status is selected when machine power is turned on.
□ Explanation
Execute M166 before starting the spindle when BT tool holder is used in the
machine with BIG PLUS spindle. This mode is effective until M165 is sent.
2-38 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Execute M167 before starting the spindle when attachment spindle is used. This
mode is effective until M168 is sent.
Execute M167 when change NC parameter of axis composition by attachment
mounting/removal
□ Explanation
Execute M168 before starting the spindle when main spindle is used. This mode
is effective until M167 is sent. This mode status is selected when machine power
is turned on.
Specification
□ Machine Type
All Machine Type
□ Program
M172 S0; (Rapid Feed Speed Limitation Disable)
M172 S1; (Rapid Feed Speed Limitation Enable)
M172; (Rapid Feed Speed Limitation Enable)
□ Explanation
Rapid feed speed limitation mode is set.
□ Program Example
M172 S0; (Rapid Feed Speed Limitation Disable)
M172 S1; (Rapid Feed Speed Limitation Enable)
M172; (Rapid Feed Speed Limitation Enable)
□ Explanation
IAC data becomes enabled.
□ Explanation
Set Rapid Override Limitation.
No.0584J-1405EN 2-39
Specification of M Codes
Specification
□ Explanation
Set Cutting Override Limitation.
□ Explanation
Release override limitation of M174,M175
□ Program
M177 S Parameter Index ;
□ Explanation
Change NC Parameter
□ Explanation
[a51nx,a61nx]
IAC data is disabled.
[D300,D500,V33i-5XB,V56i-5XB]
IAC data is disabled.
The indexing accuracy of the tilting axis to the workpiece weight is returned to
an initial value.
[D800Z]
IAC-E, IAC-E(Tilt angle) is disabled.
The indexing accuracy of the tilting axis to the workpiece weight is returned to
an initial value.
□ Explanation
The indexing accuracy of the tilting axis to the workpiece weight is optimized.
2-40 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Adds value to product counter specified by M186.
Number to be added to the counter is specified by T, and the group of counters
to which the value is added is specified by S.
If T has not been specified, it is regarded as T1 has been specified.
If S has not been specified, all the product counter specified to be added by
M186 are added.
□ Explanation
Turns on the dry run mode.
Specification
□ Machine Type
All Machine Type
□ Explanation
Turns off the dry run mode.
□ Explanation
Disable Count.
Disable count is set by Machine Parameter No.12377
□ Explanation
Enable Count that is dislab by M194.
□ Program
M198 P___ ;
□ Explanation
Calls a subprogram specified by P from a file in an external I/O device.
No.0584J-1405EN 2-41
Specification of M Codes
Specification
□ Explanation
X axis Mirror Image On
□ Explanation
X axis Mirror Image Off
□ Explanation
Y axis Mirror Image On
□ Explanation
Y axis Mirror Image Off
□ Explanation
Turn OFF AC Mode.
□ Program Example
M204;
M205 AC Mode ON
□ Machine Type
All Machine Type
□ Explanation
Turn ON AC Mode.
□ Program Example
M205;
2-42 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turn OFF Study Mode.
□ Program Example
M206;
□ Explanation
Turn ON Study Mode.
□ Program Example
M207;
Specification
M208 Rapid Override Switch Check Function Off
□ Machine Type
All Machine Type
□ Explanation
Turn Rapid Override Switch Check Function Off
□ Explanation
Turn Rapid Override Switch Check Function On
□ Explanation
Enables Gravity Axis Pull Up Function.
□ Explanation
Disables Gravity Axis Pull Up Function.
□ Explanation
Stops recording of Machining Result Function. This code is effective if the
setting of machine parameter No.12215 is 1.
No.0584J-1405EN 2-43
Specification of M Codes
Specification
□ Explanation
Starts recording of Machining Result Function. This code is effective if the
setting of machine parameter No.12215 is 1.
M228 Buzzer ON
□ Machine Type
All Machine Type
□ Explanation
Turns on the buzzer.
□ Explanation
Turns off the buzzer.
□ Explanation
Turns off the TL mode.
M236 TL Mode ON
□ Machine Type
All Machine Type
□ Explanation
Turns on the TL mode.
□ Explanation
Turns off the SL upper limit mode.
□ Explanation
Turns on the SL upper limit mode.
2-44 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Only the ATCBTS check operation is done.
The alarm is not generated.
□ Explanation
ATCBTS is retracted.
Specification
MCD / MCD5XS / a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81
/ a82 / a81nx / a92 / A66E-5XD / A99E / A100E / MAG1 / T2 / T1
□ Explanation
ATCBTS is checked.
□ Explanation
Specifies the vertical direction for the rotary tool measuring sensor.
□ Explanation
Specifies the horizontal direction for the rotary tool measuring sensor.
No.0584J-1405EN 2-45
Specification of M Codes
Specification
□ Explanation
Switches GI/Super-GI to the high accuracy mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
M25xT_S_;
□ Explanation
Switches GI/Super-GI to the high performance mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the ultra high accuracy mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
2-46 No.0584J-1405EN
Specification of M Codes
Specification
M253 GI/Super-GI High Accuracy Mode for Contouring with Rotary Axes
□ Machine Type
Machines other than following.
MAG1 / MAG3 / T4 / T2 / T1 / A7 / A4 / A8 / A12 / A20
□ Explanation
Switches GI/Super-GI to the high accuracy mode for contouring with rotary axes.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the high accuracy mode.
The amount of the tolerance of smooth TCP can be specified for the
Specification
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the Flat Surface mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the extra super-high accuracy mode.
□ Explanation
Switches GI/Super-GI to the radical mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
No.0584J-1405EN 2-47
Specification of M Codes
Specification
□ Explanation
Switches GI/Super-GI to the ultra high performance mode.
□ Explanation
Switches GI/Super-GI to the hybrid mode.
M257 GI/Super-GI High Performance Mode for Contouring with Rotary Axes
□ Machine Type
Machines other than following.
MAG1 / MAG3 / T4 / T2 / T1 / A7 / A4 / A8 / A12 / A20
□ Explanation
Switches GI/Super-GI to the high performance mode for contouring with rotary
axes. (This M code is effective for FS30i/FS31i CNC)
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the high performance mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
M258 GI/Super-GI Ultra High Accuracy Mode for Contouring with Rotary Axes
□ Machine Type
Machines other than following.
MAG1 / MAG3 / T4 / T2 / T1 / A7 / A4 / A8 / A12 / A20
□ Explanation
Switches GI/Super-GI to the ultra high accuracy mode for contouring with rotary
axes. (This M code is effective for FS30i/FS31i CNC)
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
2-48 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Switches GI/Super-GI to the ultra high accuracy mode.
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
□ Explanation
Switches GI/Super-GI to the original mode. (This M code is effective for
FS160is/FS180is CNC)
Specification
The amount of the tolerance of smooth TCP can be specified for the
FS30i/FS31i series by T and S code of the same block.
Refer to help of M250 for the explanation.
M266 GI/Super-GI Ultra High Performance for Contouring With Rotary Axes Mode
□ Machine Type
All Machine Type
□ Explanation
Switches GI/Super-GI to the ultra high performance for contouring with rotary
axes mode.
□ Explanation
This M code is used in tool measurement macro program.
□ Explanation
Turns off the stroke-change signal that has been turned on by M277.
This M code is used in the ATC macro program.
No.0584J-1405EN 2-49
Specification of M Codes
Specification
□ Explanation
Turns on the stroke-change signal.
This M code is used in ATC macro program.
□ Explanation
Suppresses all signal outputs to the signal sight and the buzzer.
□ Explanation
Allows all signal outputs to the signal sight and the buzzer.
□ Explanation
Turns off the SL lower limit mode.
□ Explanation
Turns on the SL lower limit mode.
□ Explanation
Turns off the floating M code exchange prohibition mode.
The floating M code exchange prohibition mode is turned off if NC reset is turned
on.
2-50 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns on the floating M code exchange prohibition mode.
The floating M code exchange does not function after this M code is specified.
□ Explanation
Specification
Command before machining complete.
By this command, inform machining work complete.
□ Explanation
Writes data of variables registered in output group selected on file.
□ Program Example
M295 T1; <-- Outputs header of a group of M296.
M295; <-- Outputs data of a group of M296.
M295 S1 T1; <-- Outputs header of group no.1 registered on
Macro Variable Output Screen.
M295 S1; <-- Outputs data of group no.1 registered on
Macro Variable Output Screen.
M295 S303 T2; <-- Set 303 as marker. Hereafter, 303 is set in
marker area of each output.
No.0584J-1405EN 2-51
Specification of M Codes
Specification
□ Explanation
Registers variables numbers to output into a group of M296.
□ Program Example
M296 T1; <-- Data registration start.
M296 S100; <-- Registers #100 in group of M296.
M296 S103 T110; <-- Registers variables from #103 to #110 in
group of M296.
M296 T0; <-- Data registration end.
□ Explanation
Command before machining complete by spindle tool.
By this command, inform machining complete by spindle tool.
□ Explanation
Saves data file specified by parameter (S code). All data files are saved if
parameter is not specified.
□ Explanation
This M code is for shortening machining times.
Checks for completion of M303 or M304 (the spindle speed has reached the
specified speed) and completes it immediately.
It will wait for the completion of either code.
If M303 or M304 has not been specified yet, M302 finishes immediately.
2-52 No.0584J-1405EN
Specification of M Codes
Specification
M303 Rotate Spindle CW and Start Next Block before Spindle Reaches Specified
Speed
□ Machine Type
All Machine Type
□ Program
S2000 M303;
G00 G90 Y___ Z___ M302;
G01 Z___;
□ Explanation
This M code is for shortening machining times.
Starts the spindle in clockwise direction without waiting for DEN and returns FIN
immediately.
Use M303 and M302 in a pair always.
M304 Rotate Spindle CCW and Start Next Block before Spindle Reaches Specified
Speed
□ Machine Type
Specification
All Machine Type
□ Program
S2000 M304;
G00 G90 Y___ Z___ M302;
G01 Z___;
□ Explanation
This M code is for shortening machining times.
Starts the spindle in counterclockwise direction without waiting for DEN and
returns FIN immediately.
Use M304 and M302 in a pair always.
□ Program
M307;
G91 G28 Y0 Z0;
M6;
G91 Y___;
M308;
□ Explanation
Stores status of the spindle and the coolant, and stops them.
Typically in case of oil-pan type machine, inserting the M307 and M308 before
and after M6 prevents coolant splash on the floor.
No.0584J-1405EN 2-53
Specification of M Codes
Specification
□ Program
M307;
G91 G28 Y0 Z0;
M6;
G91 Y___;
M308;
□ Explanation
Resumes the spindle and the coolant stopped by M307.
Typically, in case of oil-pan type machine, inserting M307 and M308 before and
after M6 prevents coolant from splashing on the floor.
□ Program
M310;
G91 G28 Z0;
G28 X0 Y0;
M6;
G29 X0 Y0;
G29 Z0;
M311;
□ Explanation
Stores status of the spindle and stops the spindle.
2-54 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M310;
G91 G28 Z0;
G28 X0 Y0;
M6;
G29 X0 Y0;
G29 Z0;
M311;
□ Explanation
Resumes spindle rotation stopped by M310.
Specification
M312 Stop Coolant & Record
□ Machine Type
All Machine Type
□ Program
M312;
G91 G28 Z0;
G28 Y0;
M6;
G29 Y0;
G29 Z0;
M313;
□ Explanation
Stores status of the coolant and stops the coolant.
No.0584J-1405EN 2-55
Specification of M Codes
Specification
□ Program
M312;
G91 G28 Z0;
G28 Y0;
M6;
G29 Y0;
G29 Z0;
M313;
□ Explanation
Resumes coolant operation stopped by M312.
□ Explanation
This M code is used in the automatic measuring macro program.
Rotates to clockwise the spindle at a specified speed during specified time by
machine parameters.
After that, orientates and stops the spindle.
Corrects the position of the misaligned spindle edge.
□ Explanation
Cancels the status of the spindle oil controller that has been turned on by M316.
This M code can only be specified if the spindle has been stopped.
□ Explanation
Turns on the spindle oil controller for maintenance, with the spindle stopped.
This M code can only be specified if the maintenance mode has been turned on
and the spindle has been stopped.
□ Explanation
Rotates spindle slowly.
2-56 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
#100= Orient Angle ;
M466;
M318;
□ Explanation
Orients the spindle to the angle specified by macro variable #100.
Specify M466 before M318 to read the value of macro variable #100.
The minimum unit of the angle that can be set for macro variable #100 is 0.1
Deg..
The angle range is 0.0 Deg. to 360.0 Deg..
□ Program Example
O1234;
#100=45.;
Specification
M466;
M318;
M30;
□ Program
M319;
G91 G28 Z0;
G28 Y0;
M6;
□ Explanation
This M code is for decreasing machining time.
Coolant is stopped and control advances to the next block without waiting for
completion of spindle orientation.
Stop check of oriented position is performed by M6, M661.
No.0584J-1405EN 2-57
Specification of M Codes
Specification
□ Program
M319;
G91 G28 Z0;
G28 Y0;
M6;
□ Explanation
This M code is for decreasing machining time.
Coolant is stopped and control advances to the next block without waiting for
completion of spindle orientation.
Stop check of oriented position is performed by M6, M661.
In addition, spindle coolant drawback continues until the completion of M06
(M661/M662). If no tool change is performed 30 seconds after the execution of
M319, drawback will stop.
□ Program
M319;
G91 G28 Z0;
G28 Y0;
M6;
□ Explanation
This M code is for decreasing machining time.
Coolant is stopped and control advances to the next block without waiting for
completion of spindle orientation or ATC shutter open.
Stop check of oriented position or open check of ATC shutter is performed by
M6, M661.
Moreover, the ATC shutter opens.
In addition, spindle coolant drawback continues until the completion of M06
(M661/M662). If no tool change is performed 30 seconds after the execution of
M319, drawback will stop.
□ Explanation
Rotates spindle to measure tool length.
This M code is used in the tool length measuring macro program.
2-58 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M326;
G91 G28 C0;
:
M325;
S800 M3;
□ Explanation
Turns off the Cs axis contouring mode.
The spindle functions as a normal spindle (S, M codes are accepted) until M326
is specified.
Specify it in a block by itself.
Specification
Machines other than following.
V33hyper / H2J
□ Program
M326;
G91 G28 C0;
:
M325;
S800 M3;
□ Explanation
Turns on the Cs axis contouring mode.
The spindle functions as an NC axis (Cs axis) until M325 is specified.
Specify it in a block by itself.
□ Explanation
Unlocks the spindle for measuring.
□ Explanation
Retract clamper.
□ Explanation
Locks the spindle for measuring.
No.0584J-1405EN 2-59
Specification of M Codes
Specification
□ Explanation
Advance clamper.
□ Explanation
Reverses the rotation direction of the spindle during M318.
When M318 is completed, M330 becomes invalid.
□ Explanation
Retract draw bar probe.
□ Explanation
Advance draw bar probe.
□ Explanation
Stops rotation of the dresser after axis travel is completed.
□ Explanation
Rotates the dresser clockwise.
When this M code is specified in the same block as axis travel, it is started
without waiting for completion of travel.
2-60 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Rotates the dresser counterclockwise.
When this M code is specified in the same block as axis travel, it is started
without waiting for completion of travel.
□ Explanation
This M code is used in the macro program for changing attachments.
Specification
□ Explanation
Used for semi-automatic attachment changer on MCC.
Splashguard for attachment changer is opened, and then attachment changer is
advanced.
□ Explanation
This M code is used in the attachment change subprogram.
□ Explanation
This M code is used in the attachment change subprogram.
□ Explanation
The attachment changer is retracted, and then the splashguard for the
attachment changer is closed.
□ Explanation
This M code is used for attachment changer.
It requests the operator to check that the spindle attachment is mounted.
No.0584J-1405EN 2-61
Specification of M Codes
Specification
□ Explanation
This M code is used for attachment changer.
It requests operator to check that spindle attachment is dismounted.
□ Explanation
In case of Robot Interface Type A, Output program number specified via
EXPNO01-EXPNO32 signals.
□ Program
M371;
□ Explanation
This M cod is for shortening machining times.
Returns FIN to NC rapidly. Table is clamped and B axis servo OFF is activated.
□ Program
M372;
:
B___;
:
M373;
□ Explanation
This M cod is for shortening machining times.
Returns FIN to NC rapidly. Table is clamped and B axis servo ON is activated.
□ Program Example
G91 G30 X0. Y0. M372;
B90.;
G91 G00 Z-100.;
M373;
Always use M372 in combination with M373, and enter the B___
in between. Do not command M372/M373 in the same block of
Bxx.
2-62 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M372;
:
B___;
:
M373;
□ Explanation
This M code is for shortening machining times.
Command this M-code prior to cutting feed or pallet change (M60) to confirm
table clamp.
□ Program Example
G91 G30 X0. Y0. M372;
B90.;
Specification
G91 G00 Z-100.;
M373;
Always issue M372 and M373 together, and insert Bxx between
these commands.
Neither M372 nor M373 cannot be issued in the same block as
Bxx.
□ Explanation
Stops table dresser solenoid.
□ Explanation
Start table dresser solenoid.
□ Explanation
Turns off the laser (laser clearance is turned off and shutter is closed) if the
machine has a rotary tool measuring system.
No.0584J-1405EN 2-63
Specification of M Codes
Specification
□ Explanation
Turns on the laser (shutter is opened and laser clearance is turned on) if the
machine has a rotary tool measuring system.
□ Explanation
Angle head support retract.
□ Program Example
M381
□ Explanation
Angle head support advance.
□ Program Example
M382
□ Explanation
Turns on vacuum suction.
□ Explanation
Turns off vacuum suction.
□ Explanation
Selects clamp pressure of tailstock.
□ Program Example
M389 S1;
2-64 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Clamps the tool in the spindle.
M390, M391, and M392 are only for special type machine.
Be careful because if these are used unexpectedly, the tool will
be dropped.
□ Program
M392;
M391;
Specification
□ Explanation
Unclamps the tool in the spindle.
When unclamping, M392 must be specified before M391.
M390, M391, and M392 are only for special type machine.
Be careful because if these are used unexpectedly, the tool will
be dropped.
□ Program
M392;
M391;
□ Explanation
This M code is used to enable unclamping of the spindle tool before M391.
M390, M391, and M392 are only for special type machine.
Be careful because if these are used unexpectedly, the tool will
be dropped.
□ Explanation
This M code is used in the attachment change macro program.
No.0584J-1405EN 2-65
Specification of M Codes
Specification
□ Explanation
Turns on through spindle mist.
□ Explanation
Turns on mist blowing.
2-66 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M406 S Pallet No. T Face No. ;
S Work Data Register Mode T Setting Data ;
:
S Work Data Register Mode T Setting Data ;
M406(M30);
□ Explanation
Registers the desired work data.
Specify the pallet number with S in the same block as where M406 is specified.
If M406 S0 is specified, or 406 is specified without S, the work data registration
mode is turned off.
Specify the face number with T in the same block as where M406 is specified.
If 406 is specified without T, the face number is considered to be 1.
After the work registration mode is turned on, the kind of data is specified with S,
Specification
and the data is specified with T.
Refer to the following work data registration and the setting value table for the
work data registration mode and setting value.
No.0584J-1405EN 2-67
Specification of M Codes
Specification
□ Explanation
Turns off spindle monitoring record mode.
□ Explanation
Turns on spindle monitoring record mode.
□ Explanation
Turn off vacuum pump.
□ Explanation
Turn on vacuum pump.
2-68 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Vacuum device off.
□ Explanation
Specification
Vacuum device on.
□ Program
M417;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M418;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M419;
□ Explanation
When pallet No. 1 has been loaded onto the machine table, block skip 1 is
turned off.
If pallet No. 2 is on the table, block skip 1 is turned on.
If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by an
alarm.
A dummy block for preventing pre-reading such as G53 is necessary after
M417/M418.
No.0584J-1405EN 2-69
Specification of M Codes
Specification
□ Program Example
O1234;
M98 P9810;
M417;
G53;
/M98 P1; <-- Pallet 1, work offset setting, etc.
/M98 P10; <-- Pallet 1, tool prior-check
M418;
G53;
/M98 P2; <-- Pallet 2, work offset setting, etc.
/M98 P20; <-- Pallet 2, tool prior-check
M419;
G53;
:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
2-70 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M417;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M418;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M419;
Specification
□ Explanation
When pallet No. 1 has been loaded onto the machine table, block skip 1 is
turned on.
If pallet No. 2 is on the table, block skip 1 is turned off.
If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by an
alarm.
A dummy block for preventing pre-reading such as G53 is necessary after
M417/M418.
□ Program Example
O1234;
M98 P9810;
M417;
G53;
/M98 P1; <-- Pallet 1, work offset setting, etc.
/M98 P10; <-- Pallet 1, tool prior-check
M418;
G53;
/M98 P2; <-- Pallet 2, work offset setting, etc.
/M98 P20; <-- Pallet 2, tool prior-check
M419;
G53;
:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
No.0584J-1405EN 2-71
Specification of M Codes
Specification
□ Program
M417;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M418;
G53; <-- Dummy block for preventing pre-reading
/___ ;
:
/___ ;
M419;
□ Explanation
Returns the status of block skip 1 to the setting that has been made on the main
control panel.
This is used together with M417 or M418.
□ Explanation
This M code is used to adjust the pallet seating check function.
M430 checks the seating condition of the pallet on the machine table. If seating
is not proper, a machine alarm occurs.
Normally seating is checked during the APC sequence, and there is no need to
specify this code in the program.
□ Explanation
Checks BTS circuit automatically.
□ Explanation
The BT flag of the tool data is checked.
□ Program Example
M434 Tcc;(T:Tool No.)
2-72 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The operation mode of ATCBTS is specified.
□ Program Example
M435 Spp;(S1:Vibration Control)
□ Explanation
Signal light 1 is turned on unconditionally.
Press [Light Off] switch to turn off this lamp.
Specification
M437 Signal Lamp 2 Unconditional ON
□ Machine Type
Machines other than following.
H2J
□ Explanation
Signal light 2 is turned on unconditionally.
Press [Light Off] switch to turn off this lamp.
□ Explanation
This M code is used in the macro program for attachment changes.
No.0584J-1405EN 2-73
Specification of M Codes
Specification
□ Program
M448 S Tool Data Register Mode Data T Cutter No. ;
S Pot No. T Setting Data ;
:
S Pot No. T Setting Data ;
M448(M37,M30);
□ Explanation
Registers the desired tool data.
The magazine number is specified by M450 S__.
If M450 has not ever been specified, the magazine number is considered to be
1.
M448 S4 has the same function as M57.
Specify the tool data registration mode with S in the same block as where M448
is specified.
If M448 S0 is specified, or M448 is specified without S, the tool data registration
mode is turned off.
Specify the cutter number with T in the same block as where M448 is specified.
If M448 is specified without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the pot number is specified with S,
and the tool number is specified with T.
About tool data register mode and the setting data, please refer to the following
tool data register/setting data tables.
2-74 No.0584J-1405EN
Specification of M Codes
Specification
Specification
28 Tool Length(Check) 0 to 9999999
[0.0001mm]/[0.00001inch]
29 Tool Diameter 0 to 9999999
(Radius)(Check) [0.0001mm]/[0.00001inch]
31 O Number 1 (4 Digit)0 to 9999
(8 Digit)0 to 99999999
32 O Number 2 (4 Digit)0 to 9999
(8 Digit)0 to 99999999
33 O Number 3 (4 Digit)0 to 9999
(8 Digit)0 to 99999999
34 TSC Frequency 0, Minimum Frequency to
Maximum Frequency [Hz]
Maximum Frequency:
Machine Parameter No. 7548
Minimum Frequency:
Machine Parameter No. 7549
38 TSC Frequency 0: Incomplete
Setting 1: Complete
2: Max
102 Kind 0:
1:Drill
2:Ball End Mill
3:End Mill
4:Boring Bar
5:Spring Tool 1
6:Spring Tool 2
7:Tapper
8:Reamer
9:Face Mill
10:Probe
11:Grinding Wheel
12:Dresser
14:Limited Tool
15:Air Turbine
16:NT Attachment
17:Angle head
No.0584J-1405EN 2-75
Specification of M Codes
Specification
2-76 No.0584J-1405EN
Specification of M Codes
Specification
□ Program Example
M448 S4; <-- Tool data registration mode ON.
S1 T1010; <-- Sets tool No.1010 to pot No.1.
S10 T1100; <-- Sets tool No.1100 to pot No.10.
S5 T1005; <-- Sets tool No.1005 to pot No.5.
M448 S5; <-- FTN registration mode.
S1 T1010; <-- Sets FTN1010 to pot No.1.
S10 T1100; <-- Sets FTN1100 to pot No.10.
S5 T1005; <-- Sets FTN1005 to pot No.5.
M448 S103 T1; <-- Tool length (Geometry) registration mode for
cutter No.1.
S1 T1010; <-- Sets tool length (Geometry) 0.1010 to cutter
No.1 of pot No.1.
S10 M54 T1100; <-- Sets tool length (Geometry) -0.1100 to cutter
No.1 of pot No.10.
S5 T1005; <-- Sets tool length (Geometry) 0.1005 to cutter
No.1 of pot No.5.
Specification
M448 S103 T2; <-- Tool length (Geometry) registration mode for
cutter No.2.
S1 T2010; <-- Sets tool length (Geometry) 0.2010 to cutter
No.2 of pot No.1.
S10 M54 T2100; <-- Sets tool length (Geometry) -0.2100 to cutter
No.2 of pot No.10.
S5 T2005; <-- Sets tool length (Geometry) 0.2005 to cutter
No.2 of pot No.5
M448; <-- Tool data registration mode OFF.
No.0584J-1405EN 2-77
Specification of M Codes
Specification
□ Program
M449 S Pot No. T Cutter No. ;
S Tool Data Register Mode T Setting Data ;
:
S Tool Data Register Mode T Setting Data ;
M449(M37,M30);
□ Explanation
Registers the desired tool data.
The magazine number is specified by M450 S__.
If M450 has not ever been specified, the magazine number is considered to be
1.
If M448 is used, specify the tool data registration mode at first, then specify the
pot number.
Oppositely, if M449 is used, specify the pot number at first, then specify the tool
data registration mode.
This M code is suitable for registering multiple kinds of data for the tool.
Specify the pot number with S in the same block as where M449 is specified.
If M449 S0 is specified, or M449 is specified without S, the tool data registration
mode is turned off.
Specify the cutter number with T in the same block as where M449 is specified.
If M449 is specified without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the kind of data is specified with S,
and the data is specified with T.
About the tool data register mode and the setting data, refer to the tool data
register/setting data tables in M448 explanation.
□ Program Example
M449 S1 T1; <-- Tool data registration mode for cutter No.1
of pot No.1
S4 T1010; <-- Sets 1010 to tool number.
S5 T1100; <-- Sets 1100 to FTN.
S103 T1005; <-- Sets 0.1005 to tool length (Geometry).
M449 S2 T3; <-- Tool data registration mode for cutter No.3
of pot No.2
S103 M54 T1010; <-- Sets -0.1010 to tool length (Geometry).
S104 T1100; <-- Sets 0.1100 to tool length (Wear).
S105 T1005; <-- Sets 0.1005 to tool radius (Geometry)
M449; <-- Tool data registration mode OFF.
2-78 No.0584J-1405EN
Specification of M Codes
Specification
M450 Setting Tool Magazine No. used in Tool Data Registration Mode
□ Machine Type
All Machine Type
□ Program
M450 S Tool Magazine No. ;
□ Explanation
Sets the Tool magazine number.
Specify the Tool magazine number with S in the same block where M450 is
specified.
If M450 is specified without S, the Tool magazine number is set to 1.
The Tool magazine number is used by the tool data registration M codes (M448,
M449, M57, M94).
It is retained until NC is reset or until M450 is specified.
Specification
The Tool magazine number is set to 1 if the NC has been reset.
□ Program Example
M450 S0; <-- Magazine number is set to 0.
M448 S4; <-- Tool data registration mode for external tools.
S1 T1010; <-- Sets tool No.1010 to pot No.1.
S10 T1100; <-- Sets tool No.1100 to pot No.10.
S5 T1005; <-- Sets tool No.1005 to pot No.5.
M448; <-- Tool data registration mode OFF.
M450; <-- Magazine number is set to 1.
M448 S4; <-- Tool data registration mode for tools in magazine
No.1.
S1 T1010; <-- Sets tool No.1010 to pot No.1.
S10 T1100; <-- Sets tool No.1100 to pot No.10.
S5 T1005; <-- Sets tool No.1005 to pot No.5.
M448; <-- Tool data registration mode OFF.
□ Program
M451 S Cutter No. ;
□ Explanation
Specifies the cutter number of the spindle tool.
The cutter number specified by M451 is retained until M451 is specified or until
the ATC operation is completed.
The cutter number is set to 1 after the ATC operation.
□ Program Example
M450 S2; <-- Sets 2 to the cutter number of the spindle tool.
M56; <-- Transfers tool length and tool radius data of the cutter
No.2 to NC.
No.0584J-1405EN 2-79
Specification of M Codes
Specification
□ Explanation
MCRUN signal is turned OFF for JIG Interface.
□ Explanation
MCRUN signal is turned ON for JIG Interface.
□ Explanation
This M code is used in tool measuring program.
Outputs spindle speed, rotate direction, amount of tool direction transformation
compensation, spindle real speed to custom macro variable #100-#103.
□ Explanation
Measure tool run out of spindle.
Result of measurement is outputted to macro value #100.
□ Explanation
Registration tool base data of spindle.
Result of measurement is outputted to macro value #100.
2-80 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M462;
G53;
□ Explanation
Sends the number of the pallet loaded on the machine table to macro variable
#100.
In case the 4-face program automatic assignment function is provided, the face
number is also sent to #101. (However, the face number is not remained when
the machine is turned off. Therefore, the face number before the machine is
turned off cannot be sent.)
After M462, a dummy block for preventing pre-reading such as G53 must be
inserted before reading #100 or #101.
Specification
□ Machine Type
All Machine Type
□ Program
M464;
G53;
#100=#1032;
M463;
□ Explanation
This M code outputs the measuring function printout status.
Normally the measuring printout status has been output to custom macro #1000,
#1001 and #1032, however when M464, M465, M468, M474, M946 or M974 is
executed, this status becomes unstable temporarily.
This M code outputs the printout status again.
□ Program
M464;
G53;
#100=#1032;
M463;
□ Explanation
The spindle tool number is output to custom macro #1032.
After reading #1032, specify M463 to output the measuring printout status again.
After sending M464 and before reading #1032, insert a dummy block for
preventing pre-reading such as G53.
No.0584J-1405EN 2-81
Specification of M Codes
Specification
□ Program
M465;
G53;
#100=#1032;
M463;
□ Explanation
The spindle tool number "0" is output to custom macro #1032.
After reading #1032, specify M463 to output the measuring printout status again.
After sending M465 and before reading #1032, insert a dummy block for
preventing pre-reading such as G53.
□ Explanation
The macro variable #100 value is read by machine side control.
This M code is used to specify the pallet number to be loaded before M608 for
an independent loading APM.
It is used to specify the position before M318 for external spindle orientation.
□ Program
M468;
G53;
IF[#100 EQ 0] GOTO10;
□ Explanation
Used when MCC is provided with an attachment to output the attachment
number to macro variable #100.
For MCC
#100 = 0.0 ......No attachment
#100 = 13.0 ...... 25 Deg C axis attachment
#100 = 14.0 ......Extension attachment
#100 = 15.0 ...... 25 Deg manual attachment
2-82 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns on the TL alarm suspend mode when the workpiece automatic
measuring/re-machining function is to be performed.
In this mode, since an alarm is not triggered even when a tool life alarm occurs,
the tool for which compensation is performed by the re-machining function is
called when the next machining process is performed, and not the spare tool.
This mode is canceled by M2/M30 or the workpiece automatic
measuring/re-machining termination program (O9793).
In particular, when O9793 is executed to cancel the mode, the suspended alarm
is registered.
Specification
□ Explanation
Turn off metallic cutting mode.
□ Explanation
Turn on metallic cutting mode.
□ Program
M474;
G53;
#100=#1032;
M463;
□ Explanation
Writes the next tool number (specified by T) to custom macro variable #1032.
After reading #1032, specify M463 to restore the measuring function printout
status.
After specifying M474 and before reading #1032, insert a dummy block for
preventing pre-reading such as G53.
No.0584J-1405EN 2-83
Specification of M Codes
Specification
□ Explanation
When system mode is on, reading request of the macro variable value is sent to
the host computer. The read macro variables are decided by the host computer
side setting. Machine alarm occurs in the following cases.
- Machine does not communicate with the host computer.
- Reading the macro variables was not completed within 60[s].
When system mode is off, M480 is completed in no request to the host computer.
□ Program
#100= Data Kind ;
#101= Data Detail 1 ;
#102= Data Detail 2 ;
#103= Data Detail 3 ;
#104= Data Detail 4 ;
#105= Data Detail 5 ;
#106= Data Detail 6 ;
#107= Data Detail 7 ;
#108= Data Detail 8 ;
#109= Data Detail 9 ;
M483;
G53; <-- Pre-Reading Prevention (Necessary when
M483 is not specified as not-buffered M code.)
□ Explanation
Outputs the values of mechanical data (tool data, work data, mechanical
parameters, mechanical condition, I/O signal condition, NC parameters,
diagnosis information, spindle monitoring data etc.) into macro variables.
After setting the type of required machine data with custom macro variable #100
to #109, specify M483.
The data is then output to macro variable #110.
When referring to the obtained data immediately after the M code, set the NC
parameter so that M483 is a non-buffered M code, or insert a G53 after the M
code to prevent pre-reading.
2-84 No.0584J-1405EN
Specification of M Codes
Specification
Kind and Setting Value Table for the Tool Data (Value are all integers.)
Data of #102 Kind of Tool Data Output Data of #110 (unit)
1 Magazine Number 0:External Magazine
1:The 1st Magazine
2:The 2nd Magazine
2 Pot Number 0 to Maximum Pot Number
Specification
3 Kind of Pot 0:BT
1:HSK
2:Adapter
4 Tool No.(PTN) (4 Digit PTN)0 to 9999
(8 Digit PTN)0 to 99999999
5 FTN (4 Digit FTN)0 to 9999
(8 Digit FTN)0 to 99999999
6 ITN (4 Digit ITN)0 to 9999
(8 Digit ITN)0 to 99999999
7 Priority 0 to 65535
9 Through Spindle Enable 0:Disable/1:Enable
10 Through Spindle Coolant 0 to 99999[ms]
Suction Time
11 ATC Speed 0:High/1:Low/2:Middle
12 M60 Disable Flag 0:Disable/1:Enable
13 Prohibition 0:Disable/1:Enable
14 TL Alarm Prohibition 0:Disable/1:Enable
15 Sum of Cutter 1 to 6
16 Pot Size 0:Standard/1:Medium/2:Large/
3:Extra large/4:Small/5:Extra
large 2
17 Prohibit Rotation 0:Disable/1:Enable
18 Empty Pot 0:Disable/1:Enable
19 Irregular Shape 0:Disable/1:Enable
20 Commanded T Code (4 Digit PTN)0 to 9999
(8 Digit PTN)0 to 99999999
21 TLS Continuous Search 0:Disable/1:Enable
22 B Axis Rotation Prohibit 0:Disable/1:Enable
23 One Touch Prohibit 0:Disable/1:Enable
24 L Measurement 0:Disable/1:Enable/2:Complete
25 Tool Size 0:Standard/1:Medium/2:Large/
3:Extra large/4:Small
No.0584J-1405EN 2-85
Specification of M Codes
Specification
2-86 No.0584J-1405EN
Specification of M Codes
Specification
8:Reamer
9:Face Mill
10:Probe
11:Grinding Wheel
12:Dresser
14:Limited Tool
15:Air Turbine
16:NT Attachment
17:Angle head
103 Tool Length -9999999 to 9999999
(Geometry(H)) [0.0001mm]/[0.00001inch]
104 Tool Length(Wear(H)) -9999999 to 9999999
[0.0001mm]/[0.00001inch]
105 Tool Radius -9999999 to 9999999
(Geometry(D)) [0.0001mm]/[0.00001inch]
106 Tool Radius(Wear(D)) -9999999 to 9999999
[0.0001mm]/[0.00001inch]
107 TL[Time] 0:Disable/1:Enable
108 TL Alarm[Time] 0 to 99999999[0.1s]
Specification
109 TL Warning[Time] 0 to 99999999[0.1s]
110 TL Value[Time] -99999999 to 99999999[0.1s]
111 TL[Distance] 0:Disable/1:Enable
112 TL Alarm[Distance] 0 to 999999999[mm]/[0.1inch]
113 TL Warning[Distance] 0 to 999999999[mm]/[0.1inch]
114 TL Value[Distance] -999999999 to 999999999
[mm]/[0.1inch]
115 TL[Count] 0:Disable/1:Enable
116 TL Alarm[Count] 0 to 99999
117 TL Warning[Count] 0 to 99999
118 TL Value[Count] -99999 to 99999
119 SL Upper Limit 0 to 20000[0.01%]
120 SL Lower Limit 0 to 20000[0.01%]
121 AC 0 to 20000[0.01%]
122 Alarm BIT00=Tool Broken(Long)
BIT01=Tool Broken
BIT02=AC Monitor
BIT03=SL Monitor
BIT04=SL Monitor(non load)
BIT05=Tool Life
123 Warning BIT00=Tool Life
124 BTS 0:Disable/1:Enable
125 BTS Before 0 to 9999
126 BTS After 0 to 9999
127 BTS Length 0 to 9999999
[0.0001mm]/[0.00001inch]
128 Operator Call 0:Disable/1:Enable
129 First Used 0:Disable/1:Enable
130 Spindle Speed After M6 0 to 99999[min-1]
131 Coolant After M6 0 to 255
132 Spindle Speed Limit 0 to 99999[min-1]
No.0584J-1405EN 2-87
Specification of M Codes
Specification
Kind and the Setting Value Table for the Work Data (Values are all integers.)
Data of #103 Kind of Work Data Output Data of #110[unit]
1 Pallet No. 0 to 65535
3 Priority 0 to 65535
5 Express 0:OFF/1:ON
6 Index Face No. 0 to 255
20 Pallet Alarm 0 to 65535
25 WHP Trans. Limit 0:None/1:Angle Plate/2:RWH
26 Level 0 to 4
27 Cluster Pos. 0 to 6
28 On Rack 0:Emptiness/1:Existence
31 IAC Auto Measurement 0:Disable/1:Enable
103 Ready 0:OFF/1:ON
104 Suspend 0:OFF/1:ON
2-88 No.0584J-1405EN
Specification of M Codes
Specification
Specification
BIT10=Measuring Failure
116 O No. at Alarm (4 Digit)0 to 9999
(8 Digit)0 to 99999999
117 N No. at Alarm 0 to 99999
118 Spindle Tool No. at Alarm (4 Digit PTN)0 to 9999
(8 Digit PTN)0 to 99999999
(4)Machine Condition
Macro Variable Setting Value
#100 4.0(Machine Condition)
#101 Kind of Machine Condition
Refer to the kind and setting value table for the machine
condition.
#110 Output Data
Refer to the kind and setting value table for the machine
condition.
#111 Output Data
Refer to the kind and setting value table for the machine
condition.
No.0584J-1405EN 2-89
Specification of M Codes
Specification
Kind and Setting Value Table for the Machine Condition (Value are all integers.)
Data of Kind of Machine Output Data of #110[unit] Output Data
#101 Condition of #111[unit]
0 The state of spindle 1.For a/A-Series, D-Series, No Output
warm-up and MCC/MCD Series
0:Warmup is necessary
1:Warmup is unnecessary
2.For MAG3 Series
0:Warmup is necessary
(Condition1)
1:Warmup is unnecessary
2:Warmup is necessary
(Condition2)
3:Warmup is necessary
(Condition3)
1 Last commanded S 0 to 99999[min-1] No Output
code
2 M06 skip flag 0:Does not skip M06 No Output
1:Skip M06
3 Spindle Load and Load:0 to 655.35[%] Actual speed:
Actual speed 0 to 99999
[min-1]
4 The state of spindle 0:Incomplete No Output
oil air filling up 1:Complete
5 Table Temperature Table Temperature No Output
(Thermal Chamber
Monitoring Function)
[0.1deg]
6 Bed Temperature Bed Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
7 Outside Air Outside Air Temperature No Output
Temperature (Thermal Chamber
Monitoring Function)
[0.1deg]
8 CH4 Temperature CH4 Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
9 CH5 Temperature CH5 Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
10 CH6 Temperature CH6 Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
11 CH7 Temperature CH7 Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
12 CH8 Temperature CH8 Temperature (Thermal No Output
Chamber Monitoring
Function) [0.1deg]
13 The state of table 0:Incomplete
oil air supply 1:Complete
2-90 No.0584J-1405EN
Specification of M Codes
Specification
Specification
1:Byte (1 byte without sign)
2:Word (2 bytes without sign)
4:Long (4 bytes with sign)
#104 Bit number (If size is 0 (Bit), input this item)
#110 Output Data
(6)NC Parameter
Macro Variable Setting Value
#100 6.0(NC Parameter)
#101 NC Parameter Number
#102 Axis/Spindle Number (If type is axis or spindle, input this
item.)
1.Axis type
1 to max axis number.
0.0 or empty is alarm.
2.Spindle type (Only FS30i/FS31i series)
1 to max spindle number.
0.0 or empty is set first spindle.
#103 Bit Number (If type is bit, input this item.)
0 to 7:Output each bit.
8:Output all bits.
#104 Path Number (Only FS30i/FS31i series)
0.0 or empty is set first path.
#110 Output Data
No.0584J-1405EN 2-91
Specification of M Codes
Specification
(7)Diagnose Data
Macro Variable Setting Value
#100 7.0(Diagnose Data)
#101 Diagnose Number
#102 Axis/Spindle Number (If type is axis or spindle, input this
item.)
1.Axis type
1 to max axis number.
0.0 or empty is alarm.
2.Spindle type (Only FS30i/FS31i series)
1 to max spindle number.
0.0 or empty is set first spindle.
#103 Bit Number (If type is bit, input this item.)
0 to 7:Output each bit.
8:Output all bits.
#104 Path Number (Only FS30i/FS31i series)
0.0 or empty is set first path.
#110 Output Data
(9)Attachment Data
Macro Variable Setting Value
#100 9.0(Attachment Data)
#101 Attachment Number
#102 Data Kind
0: Stocker Number
1: Max Rotation Speed
2: Rotation Direction
4: Speed Ratio
5: Y axis position when attachment is changed
#110 Output Data
2-92 No.0584J-1405EN
Specification of M Codes
Specification
□ Program Example
1. Tool Data
Specification
(3) When SL data (Upper Limit) of cutter No.2 of 1st. Pot is output:
#100=1.; <-- Tool data output command.
#101=1.; <-- Selects pot No.1.
#102=119.; <-- Selects SL data (Upper Limit).
#103=2.; <-- Selects cutter No.2.
M483; <-- SL data of cutter No.2 of 1st. Pot is output.
G53; <-- Dummy block for preventing pre-reading.
(4) Outputs alarm data, and executes a process if an alarm had been given.
#100=1.; <-- Tool data output command.
#101=1.; <-- Selects pot No.1.
#102=122.; <-- Selects alarm data.
#103=2.; <-- Selects cutter No.2.
M483; <-- Alarm data is output.
G53; <-- Dummy block for preventing pre-reading.
#111=32.; <-- Sets 32. Because TL alarm flag is 5th bit.
#112=#110 <-- Executes
AND #111; AND operation at #110 and #111 to extract 5th bit.
IF[#112NE#111]GOTO1
N1 <-- (Codes executed if TL alarm had been given.)
2. Work Data
No.0584J-1405EN 2-93
Specification of M Codes
Specification
3. Machine Parameter.
4. Machine Condition.
2-94 No.0584J-1405EN
Specification of M Codes
Specification
6. NC Parameter
(1) When first path for byte type parameter No.103 is output:
#100=6.; <-- NC parameter output command
#101=103.; <-- Select NC parameter number
#104=1.; <-- Select path number
M483; <-- First path is output
G53; <-- Dummy block for preventing pre-reading.
(2) When all bits of second axis at first path for bit axis type parameter No.1005
is output:
#100=6.; <-- NC parameter output command
#101=1005.; <-- Select NC parameter number
#102=2.; <-- Select axis number
#103=8.; <-- Select bit number
#104=1.; <-- Select path number
M483; <-- All bits of second axis at first path is output
Specification
G53; <-- Dummy block for preventing pre-reading.
(3) When first axis at second path for byte axis type parameter No.1020 is
output:
#100=6.; <-- NC parameter output command
#101=1020.; <-- Select NC parameter number
#102=1.; <-- Select axis number
#104=2.; <-- Select path number
M483; <-- First axis at second path is output
G53; <-- Dummy block for preventing pre-reading.
7. Diagnose Data
(1) When first path for byte type data No.704 is output:
#100=7.; <-- Diagnose Data output command
#101=704.; <-- Select Diagnose number
#104=1.; <-- Select path number
M483; <-- First path is output
G53; <-- Dummy block for preventing pre-reading.
(2) When all bits of second axis at first path for bit axis type data No.206 is
output:
#100=7.; <-- Diagnose Data output command
#101=206.; <-- Select Diagnose number
#102=2.; <-- Select axis number
#103=8.; <-- Select bit number (All bits)
#104=1.; <-- Select path number
M483; <-- All bits of second axis at first path is output
G53; <-- Dummy block for preventing pre-reading.
No.0584J-1405EN 2-95
Specification of M Codes
Specification
(3) When first axis at second path for byte axis type data No.300 is output:
#100=7.; <-- Diagnose Data output command
#101=300.; <-- Select Diagnose Data number
#102=1.; <-- Select axis number
#104=2.; <-- Select path number
M483; <-- First axis at second path is output
G53; <-- Dummy block for preventing pre-reading.
9. Attachment Data
□ Explanation
Retracts tailstock.
2-96 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Advances tailstock.
□ Explanation
Retracts tailstock position.
Specification
a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx /
a92
□ Explanation
Advances tailstock position.
□ Explanation
Check spindle tool life data and output WCHKRQ signal to Robot interface or
CHKREQ signal to JIG interface.
□ Explanation
Washing Robot starts.
□ Program Example
M500 S_;
(S instruction is program number of Robot)
□ Explanation
Washing Robot stops.
□ Program Example
M501
No.0584J-1405EN 2-97
Specification of M Codes
Specification
□ Explanation
Washing Robot forced end.
□ Program Example
M502
□ Explanation
Confirm Washing Robot is in reference position.
□ Program Example
M503
□ Explanation
Turn OFF of Washing Robot Coolant.
□ Program Example
M504
□ Explanation
Turn ON of Washing Robot Coolant.
□ Program Example
M505
M507 Open ATC Shutter and Start Next Block before Shutter is Fully Open
□ Machine Type
D300 / D500 / D800Z / MCC / MCD / MCD5XS / a51 / a51nx / G5 / a61 / a61RX /
a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx / a92 / MAG1 / MAG3 / T4 / T2 / T1
/ A7 / A4 / A8 / A12 / A20 / S33 / S56 / F3 / F5 / F8 / F9
□ Explanation
Opens ATC shutter without waiting for DEN and returns FIN immediately.
□ Explanation
Set Table side JIG to neautral
2-98 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Set Table side JIG to unclamp
□ Explanation
Set Table side JIG to clamp
Specification
a92
□ Explanation
Confirm Work Seating on Table Side
□ Explanation
Unclamp Work
□ Explanation
Clamp Work
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
No.0584J-1405EN 2-99
Specification of M Codes
Specification
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used to control the JIG interface.
2-100 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used to control the JIG interface.
□ Explanation
This M code is used in the ATC macro program.
Specification
D500 / D800Z / Ga2 / GF / EG3010 / H2J / E33
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
No.0584J-1405EN 2-101
Specification of M Codes
Specification
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in the ATC macro program.
2-102 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M580;
□ Explanation
UMDO1(USDO1) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M581;
Specification
□ Explanation
UMDO1(USDO1) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
□ Program
M582;
□ Explanation
UMDO2(USDO2) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M583;
□ Explanation
UMDO2(USDO2) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
No.0584J-1405EN 2-103
Specification of M Codes
Specification
□ Program
M584;
□ Explanation
UMDO3(USDO3) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M585;
□ Explanation
UMDO3(USDO3) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
□ Program
M586;
□ Explanation
UMDO4(USDO4) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M587;
□ Explanation
UMDO4(USDO4) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
2-104 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M588;
□ Explanation
UMDO5(USDO5) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M589;
Specification
□ Explanation
UMDO5(USDO5) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
□ Program
M590;
□ Explanation
UMDO6(USDO6) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M591;
□ Explanation
UMDO6(USDO6) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
No.0584J-1405EN 2-105
Specification of M Codes
Specification
□ Program
M592;
□ Explanation
UMDO7(USDO7) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M593;
□ Explanation
UMDO7(USDO7) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
□ Program
M594;
□ Explanation
UMDO8(USDO8) signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.
□ Program
M595;
□ Explanation
UMDO8(USDO8) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.
□ Explanation
The customer cannot use it.
2-106 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
The customer cannot use it.
□ Explanation
Clamp work chuck.
Specify the work chuck number with S in the same block as where M604 is
specified.
If M604 S0 is specified, 604 S1 is specified, or 604 is specified without S, the
No.1 work chuck clamp.
□ Explanation
Unclamp work chuck.
Specify the work chuck number with S in the same block as where M605 is
specified.
If M605 S0 is specified, 605 S1 is specified, or 605 is specified without S, the
No.1 work chuck unclamp.
No.0584J-1405EN 2-107
Specification of M Codes
Specification
□ Program
M606 S Pallet (Work) Number T WSS Number
□ Explanation
Pallet in the stocker specified by S is transported to WSS specified by T.
When T is omitted, WSS1 is selected.
□ Program Example
M606 S1;
□ Program
1. For AW C
M606 S Pallet (Work) Number ;
□ Explanation
1. For AW C
Workpiece in the AWC magazine specified by S is transported to WSS.
□ Program Example
M606 S1;
□ Program
M607 T WSS Number ;
□ Explanation
Pallet on WSS specified by T is returned to the stocker.
When T is omitted, WSS1 is selected.
□ Program Example
M607;
2-108 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
1. For AW C
M607;
2. Pallet magazine
M607 T WSS Number ;
□ Explanation
1. For AW C
Workpiece on WSS is returned to the AWC magazine.
2. Pallet magazine
Pallet on WSS specified by T is returned to the stocker.
When T is omitted, WSS1 is selected.
□ Program Example
Specification
M607;
No.0584J-1405EN 2-109
Specification of M Codes
Specification
□ Program
(1)Loads ready-pallet:
M608;
G91G28Z0.;
G91G28A0.M13;
M12;
G90G53Y-400.; (Set Y-15.748 at inch specification)
G91G30X0.;
G91G30C0.M11;
M10;
M60;
□ Explanation
(1)Loads ready-pallet:
Loads the pallet ready to the machine buffer.
There is no pallet to which ready has been turned on. In that case, lifter is
moved in front of the machine buffer (preparation for unloading).
□ Explanation
This M code is used in the one-touch function DNC program to indicate starting
of the function.
2-110 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
1. Pallet changer
This M code is used in the one-touch function DNC program to indicate starting
of the function.
2. Pallet magazine
(1)Loads ready-pallet:
:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M608;
:
Specification
:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
#100=____ ;
M466;
M608;
:
Set the pallet number to the macro variable #100, and command M466. You can
select by setting of the machine parameter No.8069 whether to stop the machine
with an alarm or not, if specified pallet isn't ready or the machine reserve mode
is ON. (0:Stop with alarm/ 1:Not stop with alarm) The pallet number for macro
variable #100 must be with decimal point. (Example: #100=1.0)
No.0584J-1405EN 2-111
Specification of M Codes
Specification
□ Explanation
(1)Loads ready-pallet:
:
M608;
G91 G30 Z0;
G91 G30 X0 Y0;
G91 G30 B0 M11;
M10;
M60;
:
Set the pallet number to the macro variable #100, and command M466. You can
select by setting of the machine parameter No.8069 whether to stop the machine
with an alarm or not, if specified pallet isn't ready or the machine reserve mode
is ON. (0:Stop with alarm/ 1:Not stop with alarm)
The pallet number for macro variable #100 must be with decimal point (Example:
#100=1.0)
The specified pallet number is 0. In that case, lifter is moved in front of the
machine buffer (preparation for unloading).
2-112 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
For Pallet magazine
This M code is used at loads specified pallet.
:
#100=____ ;
M466;
M608;
:
Set the pallet number to the macro variable #100, and command M466. You can
select by setting of the machine parameter No.8069 whether to stop the machine
with an alarm or not, if specified pallet isn't ready or the machine reserve mode
is ON. (0:Stop with alarm/ 1:Not stop with alarm)
The pallet number for macro variable #100 must be with decimal point.
(Example: #100=1.0)
Specification
No.0584J-1405EN 2-113
Specification of M Codes
Specification
□ Program
(1)Loads ready-pallet:
G91G28Z0.;
G91G28A0.M13;
M12;
G90G00G53Y250. ; (Set Y9.842 at inch specification)
G90G00G53C-90.M11;
M10;
M608;
□ Explanation
(1)Loads ready-pallet:
Loads the pallet ready to the machine table.
There is no pallet to which ready has been turned on. In that case, lifter is
moved in front of the machine table (preparation for unloading).
□ Program
M609;
□ Explanation
Pallet on the machine buffer is returned to the magazine stocker.
Nothing is done when there is no pallet in the machine buffer.
In the case of D500 micro MMC, WHP on the machine table is returned to the
WHP stocker.
2-114 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used in the one-touch function DNC program to unload the pallet.
□ Explanation
1:Pallet changer
This M code is used in the one-touch function DNC program to unload the pallet.
2:Pallet magazine
:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M609;
Specification
:
□ Program
G91G28Z0.;
G91G28A0.M13;
M12;
G90G00G53Y250. ; (Set Y9.842 at inch specification)
G90G00G53C-90.M11;
M10;
M609;
□ Explanation
Pallet on the machine table is returned to the magazine stocker.
Nothing is done when there is no pallet in the machine table.
□ Explanation
Retracts Step(Lift)
□ Explanation
Retracts the step for operator, which is used to mount or dismount an
attachment to the spindle, if the machine has a semi-automatic attachment
changer.
No.0584J-1405EN 2-115
Specification of M Codes
Specification
□ Explanation
Advances Step(Down)
□ Explanation
Advances the step for operator, which is used to mount or dismount an
attachment to the spindle, if the machine has a semi-automatic attachment
changer.
□ Program
W Work Number ;
M612;
□ Explanation
Exchanges workpiece on AWC stocker with workpiece on table.
□ Program Example
W1;
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M612;
□ Program
W Work Number ;
M612;
□ Explanation
Exchanges workpiece on the AWC arm (WPM sub arm) with workpiece on
machine table.
□ Program Example
W1;
G91 G30 Z0.;
G91 G30 B0. M11;
M10;
G91 G30 C0. M13;
M12;
M612;
2-116 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M613;
□ Explanation
Moves workpiece from table to AWC stocker.
□ Program Example
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M613;
Specification
□ Program
W Work Number ;
M614;
□ Explanation
Moves workpiece from AWC stocker to table.
□ Program Example
W1;
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M613;
M614;
□ Explanation
Turns on the stroke limit mode. The stroke limit mode is turned on automatically
after the emergency stop status is released or the machine power is turned on or
after the NC unit is reset.
□ Explanation
Stroke limit is ignored temporarily.
No.0584J-1405EN 2-117
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Program
M630 S Z Axis Position ;
□ Explanation
Indicate the escape range between spindle and work (Z axis) to tool change.
If Z axis is in range of -xxx[mm] to 0[mm] when M630Sxxx is performed, tool
change is possible.
□ Program
M631 S Work Number ;
□ Explanation
The function is the same as W command.
Workpiece in the AWC magazine specified by S is moved to the AWC arm.
This M code is immediately completed without waiting for the completion of the
operation.
□ Program Example
M631 S1;
□ Program
M631 S Work Number ;
□ Explanation
Select work that loaded by load command.
□ Program Example
M631 S1;
2-118 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Index demand is transmitted to AWC
□ Program Example
W1;(No.1)
M612;
□ Explanation
Close front door.
Specification
M634 Auto Front Door Open
□ Machine Type
a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx /
a92 / E33 / S33 / S56 / F3 / F5 / F8 / F9
□ Explanation
Open front door.
□ Explanation
Releases prohibition of the execution of ATC set by M636
□ Explanation
Prohibits execution of ATC operations
□ Explanation
Closes ATC shutter.
□ Explanation
Closes ATC shutter / cover.
No.0584J-1405EN 2-119
Specification of M Codes
Specification
□ Explanation
Opens ATC shutter.
□ Explanation
Opens ATC shutter / cover.
□ Explanation
Turns off air cut mode.
□ Explanation
Turns on air cut mode.
□ Explanation
Write program number to macro variable #100 after get program number from
the robot.
□ Explanation
Writes whether or not machining workpiece is exist to macro variable #100.
#100=0 (Does not exist machining workpiece)
#100=1 (Exists machining workpiece)
M644 Open APC Shutter and Start Next Block before Shutter is Fully Open
□ Machine Type
a61 / a61RX / a61nx / G7 / BH50
□ Explanation
Opens APC shutter without waiting for DEN and returns FIN immediately.
2-120 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
G91 G28 Z0;
G28 Y0 M661;
M11;
G90 G01 B___ F___;
M10;
M662;
:
□ Explanation
[M code for decreasing machining time]
Specifies tool change internally without waiting for DEN signal, and returns FIN
signal immediately.
End of tool change is checked by M662.
Specification
Do not command any code excepting M10/M11, between the
M661 and M662.
M661 must be used together with M662.
□ Program
G91 G28 Z0;
G28 Y0 M661;
M11;
G90 G01 B___ F___;
M10;
M662;
:
□ Explanation
Checks completion of tool change specified by M661.
□ Explanation
This M code is used in the ATC subprogram.
No.0584J-1405EN 2-121
Specification of M Codes
Specification
□ Program
M666;
□ Explanation
Exchanges the spindle tool with the tool in built-in tool magazine (first tool
magazine) indexed at the position of next tool, or the tool on ATC arm.
There is the one which does not return according to the version
of the model and software either about the coolant.
□ Program
M666;
□ Explanation
Exchanges the spindle tool with the tool in Tool magazine indexed at the
position of next tool, or the tool on ATC arm.
There is the one which does not return according to the version
of the model and software either about the coolant.
□ Explanation
This M code is used in the ATC subprogram.
2-122 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M666;
□ Explanation
Exchanges the spindle tool with the tool in Tool magazine indexed at the
position of next tool, or the tool on ATC arm.
Specification
□ Program Example
M319;
G91 G28 Z0;
G91 G28 A0 M13;
M12;
M666;
There is the one which does not return according to the version
of the model and software either about the coolant.
□ Explanation
Check The spindle tool exist and coherent.
□ Explanation
The command to unload the spindle tool is sent to the external transport device.
No.0584J-1405EN 2-123
Specification of M Codes
Specification
□ Explanation
The command to load the tool in spindle is sent to the external transport device.
If there is a tool in spindle, the tool is loaded after the spindle tool is unloaded.
T command to the external magazine tool is necessary before this M code is
performed.
□ Explanation
Pallet Clamp(Setting finish)
□ Program Example
M670;
□ Explanation
Pallet Unclamp(Setting standby)
□ Program Example
M671;
□ Explanation
The customer cannot use it.
□ Explanation
Releases prohibition of the execution of APC
□ Explanation
Prohibits execution of APC operations
2-124 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Work clamp (WKCLP) check mode is disabled.
And M02, M30 and emergency switch can disable this mode.
□ Explanation
Work clamp (WKCLP) check mode is enabled.
And M02, M30, M685 and emergency switch can disable this mode.
Specification
□ Machine Type
MAG3 / T4 / T2 / T1 / A7 / A4 / A8 / A12 / A20
□ Explanation
Set vacuum pipe to OPEN by turned off the vacuum pipe valve (SL1684).
□ Program Example
M687;
□ Explanation
Set vacuum pipe to CLOSE by turned on the vacuum pipe valve (SL1684).
□ Program Example
M688;
□ Explanation
Index table pallet.
□ Explanation
Turns off angle plate/table/RWH/SG cleaning coolant.
No.0584J-1405EN 2-125
Specification of M Codes
Specification
□ Explanation
Turns on angle plate/table/RWH/SG cleaning coolant.
□ Explanation
Turns on additional nozzle coolant.
□ Program
G01 X___ Y___ F___ M709;
□ Explanation
Stops all the coolant without waiting for the end of travel command distribution
(DEN) signal.
□ Explanation
Turns off the mist collector.
□ Explanation
Turns on the mist collector.
□ Explanation
Turns off Stylus Cleaning Air.
□ Explanation
Turns on Stylus Cleaning Air.
2-126 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns off the high power (ceiling) coolant.
□ Explanation
Stops rotation of the workpiece after axis travel if the work-one-revolution signal
is ON.
The stop procedure when the signal is ON is different from that when the signal
is OFF.
The stop procedures for each case are as follows:
Specification
[When M725 is specified, the one-revolution signal is already ON]
M725 finishes after the signal is turned off once and turned on again.
□ Explanation
Rotates the workpiece in CW direction.
When it is specified in the same block as axis travel, the workpiece is rotated
without waiting for completion of axis travel.
(Started together with axis travel).
□ Explanation
Rotates the workpiece in CCW direction.
When it is specified in the same block as axis travel, the workpiece is rotated
without waiting for completion of axis travel.
(Started together with axis travel).
No.0584J-1405EN 2-127
Specification of M Codes
Specification
□ Explanation
Specifies rotation speed of the workpiece.
The speed is specified with S in the same block as where the M code is
specified.
Range of S is from 1 to 100 [min-1].
This code is effective only when the workpiece is stopped.
□ Program
1. For 4-Step Pressure Changeover
M732;
□ Explanation
1. For 4-Step Pressure Changeover
Coolant is turned on with pressure setting 1.
□ Program Example
1. For 4-Step Pressure Changeover
M732;
□ Explanation
Coolant is turned on with pressure setting 2 if two or more pressure levels are
available.
2-128 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Coolant is turned on with pressure setting 3 if two or more pressure levels are
available.
□ Explanation
Coolant is turned on with pressure setting 4 if two or more pressure levels are
available.
Specification
M736 Lighting ON
□ Machine Type
All Machine Type
□ Explanation
Turns on the machine light.
□ Explanation
Turns off the machine light.
□ Explanation
Stops the inner chip conveyor.
□ Explanation
Starts the inner chip conveyor.
No.0584J-1405EN 2-129
Specification of M Codes
Specification
□ Explanation
Stops the oil skimmer.
□ Explanation
Starts the oil skimmer.
□ Explanation
Turns on spindle upper nozzle coolant.
□ Explanation
Supplies measuring head cleaning air for one second in the automatic
measuring macro program.
□ Explanation
Turns on IMM cleaning air.
□ Explanation
Turns off IMM cleaning air.
2-130 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns on the IMM cleaning air on mode.
In this mode, the cleaning air is turned on during automatic operation while the
spindle is rotated.
□ Explanation
Turns off M750 mode.
Specification
□ Machine Type
Machines other than following.
V22 / V33 / V33hyper / Ga2 / MCC / MCD / H2J / MAG3 / T4 / T2 / A7 / A4 / A8 /
A12 / A20
□ Explanation
Turns on base coolant.
□ Explanation
Turns on coolant for telescopic cover.
□ Explanation
Turns on air blow.
□ Explanation
Turns off coolant for telescopic cover.
□ Explanation
Turns off telescopic cover coolant and base coolant.
No.0584J-1405EN 2-131
Specification of M Codes
Specification
□ Explanation
Turns off base coolant.
□ Explanation
Used in the tool length automatic measuring macro program. Turns off tool
cleaning air.
□ Explanation
Used in the tool length automatic measuring macro program. Turns on tool
cleaning air.
□ Explanation
Sets amount of through spindle coolant to standard.
□ Explanation
Sets amount of through spindle coolant to high.
□ Explanation
Workpiece rotation mode is turned on. This M-code is used when flexible
synchronize that master axis is RWH axis and workpiece rotation are used at the
same time. Flexible synchronize turns on after workpiece rotation mode is
turned on.
2-132 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turns off Cutting Surface Cleaning Air
□ Explanation
Turns on Cutting Surface Cleaning Air
Specification
□ Explanation
Sets amount of oil on MQL to low.
□ Explanation
Sets amount of oil on MQL to standard.
□ Explanation
Sets amount of oil on MQL to high.
□ Explanation
Sets mist pressure on MQL to high.
□ Explanation
Sets mist pressure on MQL to standard.
No.0584J-1405EN 2-133
Specification of M Codes
Specification
□ Explanation
Through spindle coolant is stopped.
The coolant is not removed in this command.
□ Program Example
M795
□ Explanation
Sets amount of oil on through spindle MQL to low.
□ Explanation
Sets amount of oil on through spindle MQL to standard.
□ Explanation
Sets amount of oil on through spindle MQL to high.
□ Explanation
Turns the flange cleaning air on.
□ Explanation
Grinding nozzle retract.
□ Explanation
Grinding nozzle advance.
2-134 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Spindle Nose Nozzle Coolant Off
□ Explanation
Spindle Nose Nozzle Coolant On
Specification
□ Explanation
Release pause of central coolant pump by M851 command.
The central coolant pause mode is turned on automatically after the emergency
stop status is released or the machine power is turned on or after the NC unit is
reset.
□ Explanation
Stop the central coolant pump.
□ Explanation
Set flexible synchronize 1(MTA) Enable.
□ Explanation
Set flexible synchronize 1(MTA) Disable.
No.0584J-1405EN 2-135
Specification of M Codes
Specification
□ Explanation
Set flexible synchronize 2(MTB) Enable.
□ Explanation
Set flexible synchronize 2(MTB) Disable.
□ Explanation
Set flexible synchronize 3(MTC) Enable.
□ Explanation
Set flexible synchronize 3(MTC) Disable.
□ Explanation
Set flexible synchronize 4(MTD) Enable.
□ Explanation
Set flexible synchronize 4(MTD) Disable.
□ Explanation
Chuck Cleaning Coolant OFF
□ Program Example
M860
2-136 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Chuck Cleaning Coolant ON
□ Program Example
M861
□ Explanation
Chuck Cleaning Air OFF
□ Program Example
Specification
M862
□ Explanation
Chuck Cleaning Air ON
□ Program Example
M863
□ Explanation
S code with M code stops each Air/Coolant.
□ Explanation
S code with M code starts each Air/Coolant.
No.0584J-1405EN 2-137
Specification of M Codes
Specification
□ Explanation
Tool Cleaning Nozzle is Retracted.
□ Explanation
Tool Cleaning Nozzle is Advanced.
□ Explanation
Turns off programmable coolant nozzle.
□ Explanation
Turn Drawing Pump OFF.
□ Program Example
M881;
□ Explanation
Turn Drawing Pump ON.
□ Program Example
M882;
□ Explanation
Turns the angle head coolant on.
2-138 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M884 S Inner Chip Conveyor Speed ;
□ Explanation
Set inner chip conveyor speed.
Command S code for speed in same block.
Speed mode
S1: High Speed
S2: Middle Speed
S3: Low Speed
Specification
(3)Machine Power Off
□ Explanation
Turns the angle head support pin cleaning air on.
□ Explanation
Turns on tool cleaning air 2.
□ Explanation
Turns off terrace cleaning coolant.
□ Explanation
Turns on terrace cleaning coolant.
No.0584J-1405EN 2-139
Specification of M Codes
Specification
□ Explanation
Set amount of mist air standard.
□ Explanation
Set amount of mist air fewer.
□ Explanation
Turns the nozzle coolant off.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The increase air of the mist generation device is turned off.
□ Explanation
The increase air of the mist generation device is turned on.
2-140 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
When coolant pause switch (Coolant ON/OFF) is pushed, coolant pause can be
released by this M code.
□ Explanation
Attachment lubrication is turned off.
The purpose of this M code is to remove a deteriorated lubricant among
attachments after the attachment for a long term had not been used.
Specification
MCC / MCD / MCD5XS
□ Explanation
Attachment lubrication is turned on during maintenance mode.
The purpose of this M code is to remove a deteriorated lubricant among
attachments after the attachment for a long term had not been used.
□ Explanation
The customer cannot use it.
□ Explanation
Use this M code when the alarm is generated in the macro program.
□ Program
M904 S___;
□ Explanation
This M code is used in tool measuring program.
Input/Output the calibration data of tool measuring.
No.0584J-1405EN 2-141
Specification of M Codes
Specification
□ Program
M905 S___ T___;
□ Explanation
This M code is used in automatic work measuring program.
Input/Output the calibration data of automatic workpiece measuring.
□ Explanation
M code for radical mode calculation.
□ Explanation
Use in setting measuring
Get skip position
□ Program Example
M907
□ Program
M908;
G53
□ Explanation
Get probe displacement and set to macro value.
□ Explanation
This M code is used in the workpiece automatic measuring macro program.
It cancels the workpiece automatic measuring mode.
2-142 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used in the workpiece automatic measuring macro program.
It checks whether or not the measuring head battery is OFF.
If the battery is ON, an alarm occurs.
□ Explanation
(1) Measuring unit is made by BLUM
This M code is used in single edge detect function.
M912S1 :Single edge open detection mode
M912S2 :Single edge interrupt detection mode
Specification
M912 :Finish single edge detection
No.0584J-1405EN 2-143
Specification of M Codes
Specification
□ Program
M919 S Increment/Decrement ;
□ Explanation
Specify the value to be added or subtracted with S in the block as M919. When
this value is specified, it is added or subtracted to the tool life on the tool data
screen.
If M919 is specified without S, it is considered to be M919 S1.
The number specified with S is added to the counter or subtracted from the
counter according to the setting of machine parameter No. 01019.
□ Program Example
[Subtraction mode]
O1234;
:
Machining Program
:
M919; <-- Subtracts 1 from a remaining count of workpiece.
:
Machining Program
:
M919 S3; <-- Subtracts 3 from a remaining count of workpiece.
M30;
2-144 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
#100= Tool Length Measuring Data ;
#109= Tool Specifying ;
M920;
□ Explanation
Writes data for macro variable #100 to tool length data in the tool database for
spindle tool or special tool.
Set 0 or blank to macro variable #109 for the spindle tool, or set the tool number
for the special tool.
Set the NC parameter to specify M920 as a non-buffered M code, or insert a G53
after the M code to prevent pre-reading.
There are two kinds of tool length data on the "Tool Data" screen: Geometry (H)
and Wear (H).
The data written to the macro variable #100 is merged with that data.
Specification
Therefore, the data is written as follows in the tool data.
Tool Length (Geometry(H)) = #100
Tool Length (Wear(H)) = 0
□ Program Example
O1234;
T1;
M6;
#100=123.456;
#109=0;
M920; <-- Writes 123.456 into tool data of spindle tool.
:
Machining Program
:
#100=-10.000;
#109=1234.0;
M920; <-- Writes -10.000 into tool data of the tool No.1234.
M30;
No.0584J-1405EN 2-145
Specification of M Codes
Specification
□ Program
#100= Tool Radius Measuring Data ;
#109= Tool Specifying ;
M921;
□ Explanation
Writes data for macro variable #100 to tool radius data in the tool database for
spindle tool or special tool.
Set 0 or blank to macro variable #109 for the spindle tool, or set the tool number
for the special tool.
Set the NC parameter to specify M921 as a non-buffered M code, or insert a G53
after the M code to prevent pre-reading.
There are two kinds of tool radius data on the "Tool Data" screen: Geometry (D)
and Wear (D).
The data written to macro variable #100 is merged with that data.
Therefore, the data is written as follows to the tool data:
Tool Radius (Geometry(D)) = #100
Tool Radius (Wear(D)) = 0
□ Program Example
O1234;
T1;
M6;
#100=12.3456;
#109=0;
M921; <-- Writes 12.3456 into tool radius data of
spindle tool.
:
Machining Program
:
#100=10.000;
#109=1234.0;
M921; <-- Writes 10.000 into tool radius data of the
tool no.1234.
M30;
2-146 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
#100= Tool Radius Measuring Data ;
#109= Tool Specifying ;
M922;
M920;or M921;
□ Explanation
The add mode for adding of data to the macro variable for the tool data when the
tool data is written with M920 or M921 is turned ON.
As this mode is momentary, it must be specified before M920 or M921 every
time.
□ Program Example
O1234;
T1;
Specification
T6;
:
Machining Program
:
#100=-0.010; <-- Adds -0.010 to tool length data (Geometry(H))
of spindle tool.
#109=0;
M922;
M920;
#100=0.030; <-- Adds 0.030 to tool radius data (Geometry(D)) of
spindle tool.
#109=0;
M922;
M921;
:
Machining Program
:
M30;
No.0584J-1405EN 2-147
Specification of M Codes
Specification
□ Program
M926;
G91 G01 X___ Y___ F___;
:
M926;
G91 G01 X___ Y___ F___;
:
M925;
□ Explanation
Ring sensor monitor mode is turned off.
When work has never contact (SKIP signal has never been turned on), alarm is
generated.
□ Program
M926;
G91 G01 X___ Y___ F___;
:
M926;
G91 G01 X___ Y___ F___;
:
M925;
□ Explanation
Ring sensor monitor mode is turned on.
The contact check with work (SKIP signal check) is started after this mode is
turned on.
When work has never contact (SKIP signal has never been turned on), alarm is
generated by M925 or next M926.
□ Explanation
Used in the macro program for Rak rak checker.
□ Explanation
Used in the macro program for Rak rak checker.
2-148 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
This M code is used in the automatic measuring macro program.
If the results are illegal after automatic measurement, a measuring alarm is
triggered and the operator call function or automatic reject function is turned on,
depending on the machine operation mode.
Differing from M35, a BTS alarm is not triggered for the previous tool.
□ Explanation
This M code is used in the automatic measuring macro program.
For a workpiece automatic measuring system, the communication status
Specification
between the probe and receiver, and skip signal status are output to the macro
variables.
□ Program
M946;
G53;
#100=#1032;
M463;
□ Explanation
Writes pot number to which the spindle tool is returned, to the macro variable
#1032.
After reading #1032, execute M463 to restore printout mode output.
After M946 and before reading #1032, insert a dummy block for preventing
pre-reading such as G53.
□ Program
M947;
G53;
#100=#1032;
M463;
□ Explanation
Writes pot number to which the next tool (tool specified with T) is returned to
macro variable #1032.
After reading #1032, execute M463 to restore printout mode output.
After M947 and before reading #1032, insert a dummy block for preventing
pre-reading such as G53.
No.0584J-1405EN 2-149
Specification of M Codes
Specification
□ Explanation
This M code is used in the ATC macro program.
□ Explanation
This M code is used in tool measurement macro program.
□ Program
#101= Function Number ;
#102= Head Number ;
#103= Parameter Number ;
#104= Parameter Setting Value ;
#108= Point Number ;
M951;
G53;
□ Explanation
Start Blum Bore Gauge.
Macro value is changed by machine parameter No.1069.
Infrared
(Machine Parameter
No.1067=1,2)
Write Parameter #101=3. #105= Result
#102= Head Number
#103= Parameter Number
(4:Gauge Compensation,
6:Head Number)
2-150 No.0584J-1405EN
Specification of M Codes
Specification
Specification
Value (08-15:Calibration
Value0-7,16-23:Rin
Gauge Correction0-7
(Unit:1um))
Read Parameter #101=4. #105= Result
#102= Head Number #106= Parameter Setting
#103= Parameter Number Value (08-15:Calibration
(08-15:Calibration Value0-7,16-23:Rin
Value0-7, 16-23:Rin Gauge Correction0-7
Gauge Correction0-7) (Unit:0.1um))
Read Head Number #101=5. #105= Result
#106= Head Number
□ Program Example
#101=1.; <-- Measuring
#102=3.; <-- Head Number No.3
#108=0.; <-- Point NumberNo.0
M951; <-- Blum Bore Gauge Start
G53; <-- Dummy block for preventing pre-reading.
IF[#105 NE 0] <-- If result is not 0
GOTO100;
IF[#106 GE 300.] <-- If measuring result is greater than +30.0um
GOTO110;
IF[#106 LE -300.] <-- If measuring result is less than -30.0um
GOTO110;
□ Explanation
This M code is used in tool measurement macro program.
No.0584J-1405EN 2-151
Specification of M Codes
Specification
□ Explanation
Specifies OFF for the measuring head, waits for 2 seconds, and then checks
whether or not the power for the measuring head has been turned off.
□ Explanation
Specifies ON for the measuring head, waits for 2 seconds, and then checks
whether or not the power of the measuring head has been turned on.
□ Explanation
Turns off the power for measuring head.
□ Explanation
Turns on the power for measuring head.
□ Explanation
This M code is used in the macro program for FF-PATH.
□ Explanation
Closes the cover for the second measuring unit.
□ Explanation
Opens the cover for the second measuring unit.
2-152 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Stop image tool measure tool cleaning air.
□ Explanation
Blow image tool measure tool cleaning air.
Specification
E33 / S33 / S56 / F3 / F5 / F8 / F9
□ Explanation
This M code is used in tool measurement macro program.
□ Explanation
Used in the tool length automatic measuring macro program.
Skip signal is checked.
□ Explanation
This M code is used in the macro program for the rotary axis coordinate
calculate function.
□ Explanation
The customer cannot use it.
□ Explanation
The indexing accuracy of the tilting axis to the workpiece weight is optimized.
No.0584J-1405EN 2-153
Specification of M Codes
Specification
□ Explanation
Ditch processing mode by continuous circular movement OFF
□ Explanation
Ditch processing mode by continuous circular movement ON
□ Explanation
Stop chopping.
□ Program
M1105 S___;
□ Explanation
Start chopping at the movement distance specified by S code.
The speed is set by machine parameter No.5288.
□ Explanation
[a51nx,a61nx,D300,D500,V33i-5XB,V56i-5XB]
IAC data becomes enabled.
[D800Z]
IAC-E, IAC-E (Tilt angle) is enabled.
For IAC-E. IAC of the maximum weight is set when instructing with S0. When S
code is omitted, a usual setting using the measuring data of the work data is
done.
□ Explanation
The customer cannot use it.
2-154 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
Specification
□ Explanation
Rotation axis correction off.
□ Explanation
Rotation axis correction on.
□ Explanation
Smooth control off.
□ Explanation
Smooth control on.
No.0584J-1405EN 2-155
Specification of M Codes
Specification
□ Program
M1116 S Feed Axis Number ;
□ Explanation
This M code is for our field service.
Only the accuracy check in the preparations for high accuracy machining is
performed for the feed axis specified by S code.
□ Program
M1117 S Feed Axis Number ;
□ Explanation
Preparations for high accuracy machining is performed for the feed axis
specified by S code.
When S code is omitted, preparations for high accuracy machining is performed
for the feed axes set to machine parameter No.17001-17006.
□ Explanation
The customer cannot use it.
□ Program
M1119 S Specify Number ;
□ Explanation
Request 5-axis composition change.
2-156 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Program
M1121;
□ Explanation
Smooth control of Tool Center Point Control ON
Specification
□ Machine Type
Machines other than following.
E33 / S33 / S56 / F3 / F5 / F8
□ Program
M1122;
□ Explanation
Fairing OFF
M1123 Fairing ON
□ Machine Type
Machines other than following.
E33 / S33 / S56 / F3 / F5 / F8 / F9
□ Program
M1123;
□ Explanation
Fairing ON
□ Explanation
All axes that have been turned on are turned off.
□ Explanation
Argument S: The NC control axis that makes the function effective is specified.
(S1: X, S2: Y...)
When omitting it, it turns it on to the axis set that effective in the machine
parameter (No.17280).
No.0584J-1405EN 2-157
Specification of M Codes
Specification
□ Explanation
All axes that have been turned on are turned off.
□ Explanation
Argument S: The NC control axis that makes the function effective is specified.
(S1: X, S2: Y...)
When omitting it, it turns it on to the axis set that effective in the machine
parameter (No.18027).
□ Program
M1130 S Cut Type
□ Explanation
Change Cut Type.
2-158 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Make the M198 folder for M198 variable specification.
The setting range is 0 to 99999999.
□ Program Example
M1149 S folder name ;
□ Program
M1156;
□ Explanation
Transfers all cutter's tool offset data at a time.
Specification
M1177 Set Parameters for Spatial Cam Machining Function
□ Machine Type
All Machine Type
□ Program
#100=0;
#101=20.0;
#102=25.0;
#103=19.5;
#104=200.0;
#105=0;
#106=0;
G53M1177;
□ Explanation
Spatial Cam Machining Function parameters is set reading from macro variable
(#100-).
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
No.0584J-1405EN 2-159
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Program restart is disabled.
□ Explanation
Program restart is enabled.
□ Program
M1197 S Group Number ;
□ Explanation
Execute flexible shynchronize auto phase adjustment.
If fielxbiel shynchronize is disable, no action.
2-160 No.0584J-1405EN
Specification of M Codes
Specification
M1198 Output of External Work Zero Offset in Multi Spindle to Macro Variable
□ Machine Type
EG3010
□ Program
M1198 S EXT Number ;
□ Explanation
The external work zero offset in multi spindle is output to macro variable
(#100-).
The EXT number to be output by S code is specified.
The number of NC control axes is used from #100 of the macro variables.
□ Program
#100=1.0;
#101=0.5;
Specification
#102=2.0;
G53M1199 S EXT Number ;
□ Explanation
The external work zero offset in multi spindle is set reading from macro variable
(#100-).
The EXT number to be output by S code is specified.
The number of NC control axes is used from #100 of the macro variables. The
axis of [empty] value doesn't change the setting.
□ Explanation
Turn off whetstone change.
□ Explanation
Turn on whetstone change.
□ Explanation
Air spindle air off
□ Program Example
M1302;
No.0584J-1405EN 2-161
Specification of M Codes
Specification
□ Explanation
Air spindle air on
□ Program Example
M1303;
□ Explanation
Turn axis brake off.
□ Explanation
Turn axis brake on.
□ Explanation
Air Spindle Pressure 1 is selected.
□ Program Example
M1306;
□ Explanation
Air Spindle Pressure 2 is selected.
□ Program Example
M1307;
2-162 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Air Spindle Pressure 3 is selected.
□ Program Example
M1308;
□ Explanation
Air Spindle Pressure 4 is selected.
□ Program Example
M1309;
Specification
M1310 Spindle Speed Limitation Disable at Spindle Idling
□ Machine Type
D300 / D500 / D800Z / MCC / MCD / a51 / a51nx / G5 / a61 / a61RX / a61nx / G7
/ BH50 / a71 / a81 / a82 / a81nx / a92 / A99E / A100E
□ Explanation
Disables spindle speed limitation at spindle idling.
S-code more than maximum spindle speed at spindle idling is enabled, but
spindle cannot start.
□ Explanation
Enables spindle speed limitation at spindle idling.
Or enables it when NC reset or emergency switch is pushed.
M1312 Feed Axis Additional Oil Controller Differential Temperature Control Mode ON
□ Machine Type
D500
□ Explanation
Enables feed axis additional oil controller differential temperature control mode.
The differential temperature setting is automatically changed according to the
axis speed in this mode.
This mode is selected when machine power is turned on.
M1313 Feed Axis Additional Oil Controller Differential Temperature Control Mode OFF
□ Machine Type
D500
□ Explanation
Disables feed axis additional oil controller differential temperature control mode.
No.0584J-1405EN 2-163
Specification of M Codes
Specification
M1314 Feed Axis Additional Oil Controller Differential Temperature Control Data
Output
□ Machine Type
D500
□ Program
M1314 S Differential Temperature Control Data ;
□ Explanation
Output differential temperature control data that specified by S code of the same
block.
Specifying this M code, disables differential temperature control mode.
□ Explanation
The feed axis oil controller which has been pausing with M1319 restarts.
□ Explanation
The feed axis oil controller pauses.
It restarts with M1318 or NC reset.
M1323 Feed Axis Additional Oil Controller (By Temperature) Differential Temperature
Control Mode ON
□ Machine Type
D500
□ Program
M1323;
□ Explanation
Enables feed axis additional oil controller differential temperature control mode.
The differential temperature setting is automatically changed according to the
axis speed in this mode.
This mode is selected when machine power is turned on.
M1324 Feed Axis Additional Oil Controller (By Temperature) Differential Temperature
□ Program
M1324;
□ Explanation
Disables feed axis additional oil controller differential temperature control mode.
2-164 No.0584J-1405EN
Specification of M Codes
Specification
M1325 Feed Axis Additional Oil Controller (By Temperature) Differential Temperature
□ Program
M1325 S Differential Temperature Control Data ;
□ Explanation
Output differential temperature control data that specified by S code of the same
block.
Specifying this M code, disables differential temperature control mode.
□ Explanation
It is open command of the connector cover of electric attachment spindle.
Specification
M1329 Electric attachment spindle connector cover close
□ Machine Type
D500
□ Explanation
It is close command of the connector cover of electric attachment spindle.
□ Program
M1330 S Speed ;
□ Explanation
Set speed of Electric attachment spindle.
□ Explanation
It is electric attachment spindle rotation command.
□ Explanation
It is electric attachment spindle reverse-rotation command.
The direction of the rotation cannot be changed while rotating.
No.0584J-1405EN 2-165
Specification of M Codes
Specification
□ Explanation
It is electric attachment spindle stop command.
□ Explanation
It is electric attachment spindle proofreading rotation command.
□ Program
M1335;
□ Explanation
Strong clamp mode is turned off.
When clamp (M10/M12/M110) is commanded, clamp solenoid is not controlled
and the axis is clamped at standard power.
Standard clamp is used to the machining that accuracy is demanded.
□ Program
M1336;
□ Explanation
Strong clamp mode is turned on.
When clamp (M10/M12/M110) is commanded, clamp solenoid is controlled and
the axis is clamped at strong power.
Strong clamp is used to the machining that accuracy is not demanded (rough
machining etc.).
□ Explanation
The clamp ignore mode is turned off.
The clamp ignore mode is turned off by NC reset, emergency stop switch, M02
and M30 too.
2-166 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The clamp ignore mode is turned on.
When the clamp ignore mode is turned on by the unclamp condition, clamp
operation is disabled.
M1339 High Accuracy A and C Axes Oil Controller Differential Temperature Control
Mode ON
□ Machine Type
D500
□ Program
M1339;
□ Explanation
Enables A and C axes additional oil controller differential temperature control
Specification
mode.
The differential temperature setting is automatically changed according to the
axis temperature (A axis) speed (C axis) in this mode.
This mode is selected when machine power is turned on.
□ Program Example
M1339;
M1340 High Accuracy A and C Axes Oil Controller Differential Temperature Control
Mode OFF
□ Machine Type
D500
□ Program
M1340;
□ Explanation
Disables A and C axes additional oil controller differential temperature control
mode.
□ Program Example
M1340;
No.0584J-1405EN 2-167
Specification of M Codes
Specification
M1341 High Accuracy A and C Axes Oil Controller A Axis Control Temperature Output
□ Machine Type
D500
□ Program
M1341 S Setting Temperature ;
□ Explanation
Output A axis temperature control data that specified by S code of the same
block.
Specifying this M code, disables differential temperature control mode of A and
C axes oil controller.
□ Program Example
M1341 S1053; (Differential temperature of A axis is set to -5.3 degrees.)
M1342 High Accuracy A and C Axes Oil Controller C Axis Control Temperature Output
□ Machine Type
D500
□ Program
M1342 S Setting Temperature ;
□ Explanation
Output C axis temperature control data that specified by S code of the same
block.
Specifying this M code, disables differential temperature control mode of A and
C axes oil controller.
□ Program Example
M1342 S1053; (Differential temperature of C axis is set to -5.3 degrees.)
□ Program
M1343
□ Explanation
Turns OFF AST3 Study Mode Function
□ Program
M1344 S Radial Cutting Force Coefficient T Axial Cutting Force Coefficient ;
□ Explanation
Turns ON AST3 Study Mode Function.
You can specify coefficient of radial cutting force by S, and also specify
coefficient of axial cutting force by T.
If S and T is omitted, machine parameter No.3515 and No.3516 are used as
coefficient.
2-168 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Enable to spindle specified by S code.
1st spindle enable if S code is not specified or S0 is specified.
□ Explanation
Releases pause of AST Recording Function.
Specification
□ Machine Type
a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx /
a92 / MAG1 / MAG3 / T4 / T2 / T1 / A7 / A4 / A8 / A12 / A20
□ Explanation
Pauses AST Recording Function.
□ Program
M1350
□ Explanation
Air spindle is started at running speed.
□ Explanation
Turns AST Playback function OFF.
Using this M code in the program called by M198 or DNC is prohibited.
□ Program Example
M1352;
G53;
M198 P Program No. ;
M1351;
G53;
No.0584J-1405EN 2-169
Specification of M Codes
Specification
□ Explanation
Turns AST Playback function ON.
Using this M code in the program called by M198 or DNC is prohibited.
□ Program Example
M1352;
G53;
M198 P Program No. ;
M1351;
G53;
□ Explanation
Disable Spindle Load/Vibration Record
□ Explanation
Enable Spindle Load/Vibration Record
□ Explanation
The positioning function in high accuracy is turned off.
□ Explanation
The positioning function in high accuracy is turned on.
2-170 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1357;
□ Explanation
SV revolution mode is made ineffective.
□ Program Example
M1357;
□ Program
M1358;
Specification
□ Explanation
SV revolution mode is made effective.
□ Program Example
M1358;
□ Program
M1359 S Rotational speed ;
□ Explanation
The axis during SV revolution control mode rotates in clockwise direction at a
speed specified with S code.
If it is not in the same block as M1359 or there is no previous S (Rotation speed
of SV revolution control axis), an alarm occurs.
□ Program Example
M1359 S500;
□ Program
M1360 S Rotational speed ;
□ Explanation
The axis during SV revolution control mode rotates in counterclockwise direction
at a speed specified with S code.
If it is not in the same block as M1360 or there is no previous S (Rotation speed
of SV revolution control axis), an alarm occurs.
□ Program Example
M1360 S500;
No.0584J-1405EN 2-171
Specification of M Codes
Specification
□ Program
M1361;
□ Explanation
The axis during SV revolution control mode is stopped, after the block
containing M1361 is executed.
□ Program Example
M1361;
□ Explanation
Turns OFF feed override synchronization control mode of AST4.
□ Explanation
Turns ON feed override synchronization control mode of AST4.
□ Program
M1366 S Rotational speed ;
□ Explanation
About SV revolution control, the rotational speed is set by S code of same block.
□ Program Example
M1366 S500;
□ Explanation
Start Table Oil Air Supply.
□ Program Example
M1367;
2-172 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
SL Mode (Built in AST) was turned off.
□ Explanation
SL Mode (Built in AST) was turned on.
Specification
V33hyper / H2J / E33 / S33 / S56 / F3 / F5 / F8 / F9
□ Explanation
AC Mode (Built in AST) was turned off.
□ Explanation
AC Mode (Built in AST) was turned on.
□ Explanation
Turns off spindle air low pressure mode.
□ Explanation
Turns on spindle air low pressure mode.
□ Program
M1382 S Dresser Speed ;
□ Explanation
Set dresser speed.
No.0584J-1405EN 2-173
Specification of M Codes
Specification
□ Explanation
3D Crash Avoidance Mode Off
□ Program Example
M1400;
□ Explanation
3D Crash Avoidance Mode On
□ Program Example
M1401;
□ Explanation
Tool Shape Setting for 3D Crash Avoidance Function
□ Program Example
M1402 S_;
□ Explanation
The change in the setting related to 3D Crash Avoidance function is reflected.
□ Program Example
M1403;
2-174 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1404 S__ T__;
□ Explanation
Sets Z Axis Collision Avoidance.
Specification
M1410 Mode OFF for Collision Safe Guard
□ Machine Type
All Machine Type
□ Program
M1410;
□ Explanation
Collision safe guard is made invalid.
□ Program Example
M1410;
□ Program
M1411;
□ Explanation
Collision safe guard is made effective.
□ Program Example
M1411;
No.0584J-1405EN 2-175
Specification of M Codes
Specification
□ Program
M1412;
□ Explanation
Wait for check tool data.
□ Program Example
M1412;
□ Program
M1413 S The number of sub parts "ATTACH" model ;
□ Explanation
Workpiece offset is fit to workpiece model for collision safe guard specified by
argument S.
(S: Integer from 0 to 9.)
□ Program Example
M1413 S1;
□ Program
M1414 S Loading project file number for collision safe guard ;
□ Explanation
Load project file specified by argument S for collision safe guard.
(S: Integer from 0 to 100)
□ Program Example
M1414 S1;
□ Program
M1415;
□ Explanation
Save project file for collision safe guard.
□ Program Example
M1415;
2-176 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1416;
□ Explanation
Collision safe guard checks tools (T No.) in NC program. This M code is
executable only in the main program.
□ Program Example
M1416; (Check of T1, T3 tool)
T1;
M6;
T3;
Specification
□ Program
M1417 S Stock No. (PC) T Workpiece Kind ;
□ Explanation
Collision safe guard checks workpiece size.
S: Stock No. (PC)
T: Workpiece kind (None or 0: Quadratic prism, 1: Column)
□ Program Example
M1417 S1; (Size Check of Quadratic Prism Workpiece (Stock No. 1))
M1417 S2 T0; (Size Check of Quadratic Prism Workpiece (Stock No. 2))
M1417 S3 T1; (Size Check of Column Workpiece (Stock No. 3))
□ Explanation
The customer cannot use it.
□ Explanation
The actual tool length of the spindle tool is compared with its standard tool
length. Warning will be generated, if the actual tool length exceeds the standard
tool length over the threshold value, set by the machine parameter No. 01169 (or
if the actual tool length is shorter than the standard tool length over the
threshold value, set by the machine parameter No. 01170).
No.0584J-1405EN 2-177
Specification of M Codes
Specification
□ Program
M1424 S Program No. ;
□ Explanation
Writes into a text file a part of tool offset memory specified by machine
parameter No.12262 and No.12263.
□ Explanation
Turns off the signal lamp if it was turned on by M436 or M437.
□ Program
M1426;
□ Explanation
The programmable load monitor function that has been started with M1427 or
M1428 is stopped.
2-178 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1427 S Data No. T Type of Motor ;
□ Explanation
The motor load of the spindle and the feed axis is monitored by the warning load
and the alarm load set to the tool monitor screen. When an actual load exceeds
the alarm load, the machine is stopped.
Specify the following S codes and T codes for the same block.
S Code:
Specify the data number used for the overload monitor.
T Code:
Specify the motor of the spindle or the feed axis by the constant of the table
below. Two or more motors can be specified by specifying the sum of the
constant.
Specification
Constant Type of Motor
1 Spindle
2 X Axis
4 Y Axis
8 Z Axis
16 4th Axis
32 5th Axis
□ Program Example
M1427 S3 T5; <-- Overload data setting No. of 3 monitors
spindle and Y axis load
:
Machining Program
:
M1426; <-- Ends overload monitoring
No.0584J-1405EN 2-179
Specification of M Codes
Specification
□ Program
M1428 S Alarm Load T Type of Motor ;
□ Explanation
The motor load of the spindle and the feed axis is monitored by the alarm load
specified by S code. When an actual load exceeds the alarm load, the machine
is stopped.
Specify the following S codes and T codes for the same block.
S Code:
Specify the alarm load. Unit:[0.01%]
T Code:
Specify the motor of the spindle or the feed axis by the constant of the table
below. Two or more motors cannot be specified by T code. If you want to make
the load of two or more motors monitored, perform M1428 two or more times like
the following program example.
□ Program Example
M1428 S5000 T1; <-- Monitors spindle with alarm load of 50[%]
:
Machining Program
:
M1426; <-- Ends monitoring for spindle overload
:
ATC etc.
:
M1428 S4000 T1; <-- Monitors spindle with alarm load of 40[%]
M1428 S3000 T4; <-- In addition, monitors Y axis with alarm
load of 30[%]
:
Machining Program
:
M1426; <-- Ends monitoring for spindle and Y axis
overload
2-180 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Pull tension out of the work.
Specification
□ Explanation
Put tension on the work.
□ Explanation
Change to eco mode specified by S code.
Eco mode does OFF if S code is not specified or S0 is specified.
□ Explanation
Turn OFF AC function of AST3
M1433 AC (AST3) ON
□ Machine Type
a51 / a51nx / G5 / a61 / a61RX / a61nx / G7 / BH50 / a71 / a81 / a82 / a81nx /
a92 / MAG1 / MAG3 / T4 / T2 / T1 / A4 / A8 / A12 / A20
□ Explanation
Turn ON AC function of AST3
No.0584J-1405EN 2-181
Specification of M Codes
Specification
□ Program
M1434;
□ Explanation
The feed axis lower load detection function that has been started with M1435 is
stopped.
2-182 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1435 S Lower Limit T Type of Motor ;
□ Explanation
The feed axis lower load detection function is started. Specify the following S
codes and T codes for the same block.
S Code:
Specify the lower load. Unit:[0.01%]
T Code:
Specify the motor of the feed axis by the constant of the table below. Two or
more motors cannot be specified by T code. If you want to make the load of two
or more motors monitored, perform M1435 two or more times like the following
program example.
Specification
Constant Type of Motor
2 X Axis
4 Y Axis
8 Z Axis
16 4th Axis
32 5th Axis
When the following are performed, the lower load monitor ends.
- M1434
- M30 or M02
- Emergency stop
□ Program Example
M1435 S5000 T2; <-- Monitors X axis with lower load of 50[%]
:
Machining Program
:
M1434; <-- Ends monitoring for X axis lower load
:
ATC etc.
:
M1435 S4000 T2; <-- Monitors X axis with lower load of 40[%]
M1435 S3000 T4; <-- In addition, monitors Y axis with lower load
of 30[%]
:
Machining Program
:
M1434; <-- Ends monitoring for X and Y axis lower load
No.0584J-1405EN 2-183
Specification of M Codes
Specification
□ Explanation
Retract Movable Step.
□ Explanation
Advance Movable Step.
□ Program
M1438 S Unit for enable stop function ;
□ Explanation
Enable aux unit stop at special machining
□ Program Example
M1438 S1; (Stop disable for hydraulic unit)
M1438 S3: (Stop disable for hydraulic unit/Spindle oil controller)
M1438; (Stop disable for all)
Set unit for stop disable by S Code. Refer machine parameter No.12387 for bit
meaning.
□ Program
M1439 S Unit for disable stop function ;
□ Explanation
Disable aux unit stop at special machining
□ Program Example
M1439 S1; (Stop enable for hydraulic unit)
M1439 S3: (Stop enable for hydraulic unit/Spindle oil controller)
M1439; (Stop enable for all)
Set unit for stop enable by S Code. Refer machine parameter No.12387 for bit
meaning.
2-184 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
O9001(ATC MACRO PROGRAM)
M1441
:
M1440
M99
□ Explanation
Clears the sequence No. and block No. stored with M1441.
Specify this M code at the location where the sub-program ends.
□ Program
Specification
O9001(ATC MACRO PROGRAM)
M1441
:
M1440
M99
□ Explanation
The sequence No. and block No. are stored when M1441 is specified to prevent
influence from the sequence No. and block count in the sub-program. The stored
numbers are used as program restart position judgment data.
Specify this M code at the beginning of the sub-program.
□ Program
M1442 S Contact load of tool contact detection [0.01%]
□ Explanation
Spindle load of contact is set by S code about tool contact detect function.
□ Program Example
M1442 S1500; <-- The load of tool contact detection is set to
15 [%]
M1443 S3000; <-- The alarm load of tool contact detection is
set to 30 [%]
:
M1445; <-- The tool contact detect mode is set to ON
:
(Machining program)
:
M1444; <-- The tool contact detect mode is set to OFF
No.0584J-1405EN 2-185
Specification of M Codes
Specification
□ Program
M1443 S Alarm load of tool contact detection [0.01%]
□ Explanation
Spindle load of alarm is set by S code about tool contact detect function.
□ Program Example
M1442 S1500; <-- The load of tool contact detection is set to
15 [%]
M1443 S3000; <-- The alarm load of tool contact detection is
set to 30 [%]
:
M1445; <-- The tool contact detect mode is set to ON
:
(Machining program)
:
M1444; <-- The tool contact detect mode is set to OFF
□ Program
M1444;
□ Explanation
The tool contact detect mode is set to OFF.
□ Program Example
M1442 S1500; <-- The load of tool contact detection is set to
15 [%]
M1443 S3000; <-- The alarm load of tool contact detection is
set to 30 [%]
:
M1445; <-- The tool contact detect mode is set to ON
:
(Machining program)
:
M1444; <-- The tool contact detect mode is set to OFF
2-186 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1445;
□ Explanation
The tool contact detect mode is set to ON. During this mode ON, the skip signal
becomes ON if spindle load reaches the setting detect value.
□ Program Example
M1442 S1500; <-- The load of tool contact detection is set to
15 [%]
M1443 S3000; <-- The alarm load of tool contact detection is
set to 30 [%]
:
M1445; <-- The tool contact detect mode is set to ON
:
Specification
(Machining program)
:
M1444; <-- The tool contact detect mode is set to OFF
□ Program
M1447
G01 Z___ F___;
:
M1446
□ Explanation
The state to disable the confirmation of the spindle rotation while cutting is
released.
□ Program
M1447
G01 Z___ F___;
:
M1446
□ Explanation
The confirmation of the spindle rotation while cutting is disabled.
No.0584J-1405EN 2-187
Specification of M Codes
Specification
□ Program
M1600 S Load Location ;
□ Explanation
The transport device loads the pallet (workpiece) from the location specified by
S code.
Specify the following S codes in the same block as M1600.
S Code Location
S1 ... S1000 Stocker1 ... 1000
S1001 Machine
S2001 WSS1
S2002 WSS2
□ Program
M1601 S Unload Location ;
□ Explanation
The pallet (workpiece) on the transport device is unloaded to the location
specified by S code.
Specify the following S codes in the same block as M1601.
When S code is omitted, it is returned to stocker of the pallet number.
S Code Location
S1 … S1000 Stocker1 … 1000
S1001 Machine
S2001 WSS1
S2002 WSS2
□ Explanation
Lock stocker pallet 1.
□ Explanation
Unlock stocker pallet 1.
2-188 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Lock stocker pallet 2.
□ Explanation
Unlock stocker pallet 2.
Specification
□ Program
M1607
□ Explanation
Executes axis composition change function for angle head.
□ Explanation
This M code is used in the ATC program.
□ Explanation
Turns off point cleaning water.
□ Program Example
M1700;
No.0584J-1405EN 2-189
Specification of M Codes
Specification
□ Explanation
Turns on point cleaning water.
□ Program Example
M1701;
□ Explanation
Turns off point cleaning air.
□ Program Example
M1702;
□ Explanation
Turns on point cleaning air.
□ Program Example
M1703;
□ Explanation
Turn off dresser coolant.
□ Explanation
Turn on dresser coolant.
□ Explanation
Turn off user coolant.
2-190 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turn on user coolant.
□ Explanation
M Code for Pressure Change
(1) Start Calibration(T=1)
Start calibration between pressure and output value
Write sum of data between output and pressure to macro value 100
Write output value of 1 step to macro value 101
M1714 T1 S Pressure(1-4) ;
Specification
(2)Start Getting Pressure(T=2)
Initialize inner data, and start getting pressure value.
M1714 T2;
□ Explanation
The base coolant stopped temporarily by M1716 is returned.
□ Explanation
The base coolant is stopped temporarily.
The base coolant returns by M1715 or NC reset.
No.0584J-1405EN 2-191
Specification of M Codes
Specification
□ Explanation
Overhead shower coolant start at intermittent operation.
ON Time: Machine Parameter No. 7523
OFF Time: Machine Parameter No. 7524
□ Explanation
Turn off Air on table
□ Explanation
Turn on Air on table
□ Explanation
Turn off JIG Coolant
□ Explanation
Turn on JIG Coolant
□ Explanation
Turn off Stop Block Cleaning Air
2-192 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Turn on Stop Block Cleaning Air
□ Explanation
Turn off oil pan cleaning coolant.
Specification
□ Explanation
Turn on oil pan cleaning coolant.
□ Explanation
Turn JIG Cleaning Air OFF
□ Explanation
Turn JIG Cleaning Air ON
□ Explanation
Room Washing Air Off
□ Explanation
Room Washing Air On
No.0584J-1405EN 2-193
Specification of M Codes
Specification
□ Explanation
Turn chuck air blow OFF.
□ Explanation
Turn chuck air blow ON.
□ Explanation
Turns off X Axis Oil Pan Cleaning Coolant
□ Explanation
Turns on X Axis Oil Pan Cleaning Coolant
□ Explanation
Turns off through spindle coolant output frequency fixation.
□ Explanation
Turns on through spindle coolant output frequency fixation.
□ Program
M1736;
□ Explanation
Coolant Start by Large Flowing Quantity for Cleaning in Machining Chamber.
□ Program Example
M1736;
2-194 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1737 S___;
□ Explanation
Sets amount of oil on MQL to shot frequency.
□ Explanation
Turns the upper nozzle air off.
Specification
□ Machine Type
A4 / A8 / A12 / A20
□ Explanation
Turns the upper nozzle air on.
□ Explanation
Turns off Z axis cleaning air.
□ Explanation
Turns on Z axis cleaning air.
□ Explanation
Turns on TSC drain circuit cleaning air.
Cleaning time is set by machine parameter No.7833 "TSC Drain Circuit Cleaning
Air On Time".
No.0584J-1405EN 2-195
Specification of M Codes
Specification
□ Program
M1743;
□ Explanation
Nozzle coolant push out air is outputted. About output time, refer to the following
machine parameter.
No. 7682 "Delay Time until Push Out Air from Nozzle Coolant Starting"
No. 7683 "Output Time of Push Out Air from Nozzle Coolant"
□ Explanation
Turn off dresser air.
□ Explanation
Turn on dresser air.
□ Explanation
Turn off dresser mist.
□ Explanation
Turn on dresser mist.
2-196 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1900 S Argument ; T Function Code ;
□ Explanation
This M-Code is for in-process measuring.
Perform the following commands to start measuring.
Specification
(2) Auto Master(T=1)
Execute Auto Master
M1900 T1;
□ Program Example
M96P Interrupt Program ; <-- Set Interrupt Custom Macro
M1900 S Measuring Judge Pos ; <-- Set Measuring Judge Pos
Machining Program
M1900 S0; <-- In-process Measuring End
M97; <-- Interrupt Custom Macro OFF
No.0584J-1405EN 2-197
Specification of M Codes
Specification
□ Program
M1901 S mode number ;
□ Explanation
DynaVision measurement mode change
□ Program
M1902 S level number ;
□ Explanation
DynaVision measurement level change
□ Program
M1903;
□ Explanation
DynaVision measurement result output
□ Program Example
M1904;
M1903;
□ Program
M1904;
□ Explanation
DynaVision measurement start
□ Program Example
M1904;
M1903;
2-198 No.0584J-1405EN
Specification of M Codes
Specification
□ Program
M1906;
□ Explanation
DynaVision all reset
□ Program Example
M1906;
□ Program
Specification
M1907;
□ Explanation
Image type tool measurement cleaning air off
□ Program Example
M1907;
□ Program
M1908;
□ Explanation
Image type tool measurement cleaning air on
□ Program Example
M1908;
□ Program
M1909 S monde number ;
□ Explanation
DynaVision profile output mode change
□ Program Example
M1909 S monde number
No.0584J-1405EN 2-199
Specification of M Codes
Specification
□ Program
M1910 S monde number ;
□ Explanation
DynaVision shortening image mode switch
□ Program Example
M1910 S monde number
□ Program
M1911 S display number ;
□ Explanation
Image type tool measurement machine alarming generation
□ Program Example
M1911 S display number
□ Program
M1912;
□ Explanation
Image type tool measurement error reset(DynaVision)
□ Program Example
M1912;
□ Explanation
This M code is for shortening machining times.
Checks for completion of M1914 and completes it immediately.
It will wait for the completion of either code.
2-200 No.0584J-1405EN
Specification of M Codes
Specification
M1914 Open Tool Length Sensor Cover and Start Next Block before Tool Length
□ Explanation
This M code is for shortening machining times.
Opens tool Length sensor cover without waiting for DEN and returns FIN
immediately.
Use M1914 and M1913 in a pair always.
□ Explanation
This M code is for shortening machining times.
Checks for completion of M1918 and completes it immediately.
It will wait for the completion of either code.
Specification
M1918 Close Tool Length Sensor Cover and Start Next Block before Tool Length
□ Explanation
This M code is for shortening machining times.
Closes tool Length sensor cover without waiting for DEN and returns FIN
immediately.
Use M1918 and M1917 in a pair always.
M1920 Interlock Release Mode OFF at Tool Measurement Unit Cover Open Close
□ Machine Type
V22 / V33 / V33i / V33hyper / V56 / V56i / V77 / V99 / FB127 / iQ300 / D300 /
D800Z / Ga2 / GF / EG3010 / H2J
□ Explanation
Interlock is enabled at tool measurement unit cover open close.
M1921 Interlock Release Mode ON at Tool Measurement Unit Cover Open Close
□ Machine Type
V22 / V33 / V33i / V33hyper / V56 / V56i / V77 / V99 / FB127 / iQ300 / D300 /
D800Z / Ga2 / GF / EG3010 / H2J
□ Explanation
Interlock is disabled at tool measurement unit cover open close.
If emergency stop switch or reset button is pushed, this mode is released.
□ Explanation
VTS Power OFF
No.0584J-1405EN 2-201
Specification of M Codes
Specification
□ Explanation
VTS Power ON
□ Explanation
VTS command
□ Explanation
Image Tool Measure shutter close
□ Explanation
Image Tool Measure shutter open
□ Program
M1930;
□ Explanation
This M code for in the measurement function.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
2-202 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
Specification
□ Explanation
Select Measuring Probe Device.
□ Explanation
Get imaging data of tool shape automatically recognition function.
M1941 Tool Shape Automatically Recognition Function: Imaging Disable Mode OFF
□ Machine Type
D500
□ Explanation
Turn off the imaging disable mode of tool shape automatically recognition
function.
□ Explanation
Turn on the imaging disable mode of tool shape automatically recognition
function.
□ Explanation
Reset the system of tool shape automatically recognition.
Argument S0 or None: System is not rebooted.
Argument S1: Sysytem is rebooted.
No.0584J-1405EN 2-203
Specification of M Codes
Specification
□ Explanation
Calibration sequence of the tool shape automatically recognition is done.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
3D Crash Avoidance Mode Record & Off
□ Program Example
M2004;
□ Explanation
3D Crash Avoidance Mode Resume
□ Program Example
M2005;
2-204 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
No.0584J-1405EN 2-205
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Enables the VP Control.
□ Explanation
Disables the VP Control.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
2-206 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The VP control for rotational axis is enabled.
□ Program Example
M2026;
□ Explanation
The VP control for rotational axis is disabled.
□ Program Example
M2027;
No.0584J-1405EN 2-207
Specification of M Codes
Specification
□ Program
M2035;
□ Explanation
Enable the vibration avoidance control (AST4).
□ Program
M2036;
□ Explanation
Disable the vibration avoidance control (AST4).
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
2-208 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
Blum Macro Mode Off.
□ Explanation
Blum Macro Mode On.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
No.0584J-1405EN 2-209
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
2-210 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
No.0584J-1405EN 2-211
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
2-212 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
Specification
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
□ Explanation
The customer cannot use it.
No.0584J-1405EN 2-213
Specification of M Codes
Specification
□ Explanation
Specify SPIN TABLE speed, reference and index action.
□ Program Example
M2300 Snnn; or
M2300 Snnn T0; CW (nnn:speed)
M2300 Snnn T1; CCW(nnn:speed)
M2300 T2; Index
M2300 T3; Reference
□ Explanation
SPIN TABLE spinning start specified by M2300.
□ Program Example
M2301;
□ Explanation
SPIN TABLE spinning stop.
□ Program Example
M2302;
□ Program
M2303 S Cycle No. ; T Part No. ;
□ Explanation
Start gap cycle.
□ Explanation
Finish gap cycle.
2-214 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
The customer cannot use it.
□ Explanation
Utility function signal OFF
□ Explanation
Specification
Utility function signal ON
□ Explanation
Utility function signal check
□ Explanation
INPROCESS GAUGE measuring cycle start
□ Program Example
M2320 Spp Tcc; (S:Cycle No., T:Part No.)
□ Explanation
INPROCESS GAUGE auto zero cycle start.
□ Program Example
M2321 Spp Tcc; (S:Cycle No., T:Part No.)
No.0584J-1405EN 2-215
Specification of M Codes
Specification
□ Explanation
INPROCESS GAUGE outer / inner measuring head retraction air control
solenoid SL3115.SL3116 ON/OFF.
□ Program Example
M2322 S0; (SL3115,SL3116 both OFF)
M2322 S1; (SL3115 ON)
M2322 S2; (SL3116 ON)
□ Explanation
Get INPROCESS GAUGE measuring data to common macro variable #100.
□ Program Example
M2323
□ Explanation
Set INPROCESS GAUGE to manual mode.
□ Program Example
M2324
□ Explanation
Rotary Dresser High Speed / Low Speed control solenoid SL3114.SL3113
ON/OFF.
□ Program Example
M2340 S0; (SL3114,SL3113 both OFF)
M2340 S1; (SL3113 ON)
M2340 S2; (SL3114 ON)
2-216 No.0584J-1405EN
Specification of M Codes
Specification
□ Explanation
Control rotary dresser CW/CCW/STOP.
□ Program Example
M2341 S0; (Rotary Dresser Stop)
M2341 S1; (Rotary Dresser CW)
M2341 S2; (Rotary Dresser CCW)
□ Program
Specification
M2342 S Rotary Dresser Speed ;
□ Explanation
Set rotary dresser speed.
□ Explanation
Enable AE Sensor
□ Explanation
Disable AE Sensor
□ Explanation
Set Millturn function value(Tool Corner Radius, Tool Tip Radius).
Macro Variable #100: Tool Corner Radius
Macro Variable #101: Tool Tip Radius
□ Explanation
Start Millturn function.
No.0584J-1405EN 2-217
Specification of M Codes
Specification
□ Explanation
Wait for preparation finish for Millturn.
2-218 No.0584J-1405EN
Index
3. Index
Index
No.0584J-1405EN 3-1
Index
Index
························································· 2-61
3
AAC Step Advance ···························· 2-116
3D Crash Avoidance Mode Off ·········· 2-174 AAC Step Retract······························· 2-115
3D Crash Avoidance Relation Setting AC Mode Off (Built in AST) ················ 2-173
4th Axis Unclamp ··································· 2-4 Active Damping Function OFF ··········· 2-158
5th Axis Clamp······································· 2-5 Air Cut Mode OFF ······························ 2-120
5th Axis Mirror Image ON ···················· 2-36 Air Cut Mode ON································ 2-120
6th Axis Mirror Image ON ···················· 2-36 Air Spindle Pressure 2 ······················· 2-162
6th Axis Unclamp ································· 2-31 Air Spindle Pressure 3 ······················· 2-163
AAC Retract & AAC Splashguard Close Angle Head Support Advance ·············· 2-64
························································· 2-61
3-2 No.0584J-1405EN
Index
Angle Head Support Pin Cleaning Air ON Attachment Change End ····················· 2-65
Angle Head Support Retract ··············· 2-64 Attachment Lubrication Off ················ 2-141
APC Prohibition Mode OFF··············· 2-124 Auto Measuring Approach Mode ········· 2-26
APC Prohibition Mode ON ················ 2-124 Auto Measuring Rapid Mode ··············· 2-26
AST Playback Function OFF············· 2-169 Auto Reject Mode OFF (Workpiece Not
AST Recording Function Continue Auto Reject Mode ON (M52 Mode Cancel)
AST Recording Function Pause ········ 2-169 Auto Tool Length Measuring Mode ······· 2-8
AST3 Study Function Off ·················· 2-168 Auto Workpiece Measurement / Pallet
Index
OFF ··············································· 2-172 Tool Call ············································ 2-8
AST4 Override Synchronization Control Auto Workpiece Measuring Mode ········· 2-8
End Check ···································· 2-121 Aux Unit Stop Enable at Special Machining
ATC Shutter / Cover Close················ 2-119 AWC Index Work Selection Command
ATC Shutter Close ···························· 2-119 Axis Brake Off ··································· 2-162
ATCBTS Check ··································· 2-45 Axis Retract Position at ATC ············· 2-118
························································ 2-73
No.0584J-1405EN 3-3
Index
3-4 No.0584J-1405EN
Index
Cutting Condition Auto Select ··········· 2-152 DynaVision mode change ················· 2-198
Cutting Feed Override Disable ············ 2-14 DynaVision result output ··················· 2-198
Cutting Surface Cleaning Air ON ······ 2-133 Electric attachment spindle connector
Direct Spare Tool Change··················· 2-30 Electric attachment spindle positive start
Ditch processing mode OFF ············· 2-154 Electric attachment spindle stop ········ 2-166
Ditch processing mode ON ··············· 2-154 Enable IAC ··········· 2-39, 2-40, 2-153, 2-154
Draw Bar Probe Advance···················· 2-60 End of Machining Program and Repeat
Index
Draw Bar Probe Retract ······················ 2-60 ·························································· 2-8
Drawing Pump ON ···························· 2-138 Extend Stroke Change Signal OFF ····· 2-49
Dresser Air OFF ································ 2-196 Extend Stroke Change Signal ON ······· 2-50
Dresser Mist ON································ 2-196 Feed Axis Additional Oil Controller (By
Dry Run OFF······································· 2-41 Feed Axis Additional Oil Controller (By
No.0584J-1405EN 3-5
Index
Feed Axis Additional Oil Controller (By Flush Coolant in Machining Chamber ON2-194
······················································· 2-164
Feed Axis Lower Load Detection Function GI/Super-GI Flat Surface Mode ··········· 2-47
Feed Axis Oil Controller Pause ·········· 2-164 Contouring with Rotary Axes ··········· 2-47
Feed rate Override 100% or Less ········ 2-35 GI/Super-GI High Performance Mode
First Block Skip OFF ···························· 2-37 GI/Super-GI High Performance Mode for
First Block Skip ON······························ 2-37 Contouring with Rotary Axes ··········· 2-48
First Block Skip Return ························ 2-37 GI/Super-GI Hybrid Mode ···················· 2-48
First Use Check Request ····················· 2-97 GI/Super-GI Radical Mode··················· 2-47
Flange Cleaning Air ON ····················· 2-134 GI/Super-GI Ultra High Accuracy Mode
Flexible Synchronize 1 Enable ·········· 2-135 GI/Super-GI Ultra High Accuracy Mode for
Flexible Synchronize 3 Disable ·········· 2-136 GI/Super-GI Ultra High Performance for
Flexible Synchronize 3 Enable ·········· 2-136 Contouring With Rotary Axes Mode
Flexible Synchronize 4 Enable ·········· 2-136 GI/Super-GI Ultra High Performance Mode
3-6 No.0584J-1405EN
Index
Grinding Nozzle Retract ···················· 2-134 Inch / Metric Input Check End ············· 2-34
High Accuracy A and C Axes Oil Controller Index Table Pallet······························ 2-125
High Accuracy A and C Axes Oil Controller ·········· 2-110, 2-111, 2-112, 2-113, 2-114
High Accuracy A and C Axes Oil Controller Inner Chip Conveyor Speed Setting
Start··············································· 2-215
I
INPROCESS GAUGE Measuring Head
Index
Image Tool Measure shutter close Retraction ······································ 2-216
Image Tool Measure shutter open Interlock Release Mode OFF at Tool
······················································ 2-202 Measurement Unit Cover Open Close
Image Tool Measure Tool Cleaning Air ON Measurement Unit Cover Open Close
Image type tool measurement cleaning air Internal Conveyor OFF ······················ 2-129
Image type tool measurement error 2-141, 2-153, 2-154, 2-155, 2-156,
IMM Cleaning Air OFF ··········· 2-130, 2-131 2-200, 2-202, 2-203, 2-204, 2-205,
IMM Cleaning Air OFF Mode ············ 2-131 2-206, 2-207, 2-208, 2-209, 2-210,
IMM Cleaning Air ON ············· 2-130, 2-131 2-211, 2-212, 2-213, 2-215
No.0584J-1405EN 3-7
Index
························································· 2-51
Lighting OFF ······································ 2-129
Macro Variable Output Group Data Setting
Lighting ON········································ 2-129
························································· 2-52
Linear Gauge Type(Absolute Scale) Tool
Macro Variables Reading Request to MOS
Measurement································· 2-151
························································· 2-84
3-8 No.0584J-1405EN
Index
Mode OFF for Collision Safe Guard Open Tool Length Sensor Cover and Start
Mode ON for Collision Safe Guard Cover is Fully Open ······················· 2-201
MP7 Measuring Head Check ············ 2-149 Output of External Work Zero Offset in
······················································ 2-161
N
Overhead Shower Coolant Intermittent
Next Tool No. Output to Macro ··········· 2-83 Operation ······································ 2-192
Next Tool Pot No. Output to Macro Overhead Shower Coolant OFF ········ 2-127
Non Contact Type Measurement Device Override for Tool OFF ························· 2-35
Non Contact Type Spindle Measurement Override Limitation Release ················ 2-40
························································ 2-49
Nozzle Coolant Push Out Air ············ 2-196 Pallet (Workpiece) Load to Transport
Index
Pallet (Workpiece) Unload from Transport
O
Device ··········································· 2-188
Oil Amount Set to Large (MQL) ········· 2-133 Pallet 1 Load Check ···························· 2-26
Oil Amount Set to Shot Frequency(MQL) Pallet 2 Load Check ···························· 2-28
Oil Amount Set to Small (MQL) ········· 2-133 2-18, 2-19, 2-20, 2-21, 2-22, 2-23, 2-24,
Oil Controller OFF ······························· 2-56 Pallet No. Output to Macro ·················· 2-81
Oil Controller ON ································· 2-56 Pallet Ready Not Checked at M60 ······ 2-24
Oil Pan Cleaning Coolant Off ············ 2-193 Pallet Seating Check ··························· 2-72
Oil Pan Cleaning Coolant On ············ 2-193 Pallet Unclamp ·································· 2-124
Oil Skimmer OFF ······························ 2-130 Point Cleaning Air Off ························ 2-190
Open APC Shutter and Start Next Block Point Cleaning Water Off··················· 2-189
before Shutter is Fully Open ········· 2-120 Point Cleaning Water On··················· 2-190
Open ATC Shutter and Start Next Block Positioning Function in High Accuracy
No.0584J-1405EN 3-9
Index
3-10 No.0584J-1405EN
Index
Rotate Spindle CCW and Start Next Block Signal Lamp 2 ON with No Ready Pallet
Rotate Spindle CW and Start Next Block Signal Lamp OFF ······························ 2-178
before Spindle Reaches Specified Signal light effective mode OFF ·········· 2-50
Rotation axes compensation of TCP OFF··· Skip Signal Check for Tool Length
Second Measuring Unit Cover Close SL Lower Limit Mode OFF ·················· 2-50
Second Measuring Unit Cover Open SL Mode Off (Built in AST) ················ 2-173
Set alarm load of tool contact detection SL Upper Mode OFF ··························· 2-44
Index
······················································ 2-186 SL Upper Mode ON ····························· 2-44
Set contact load of tool contact detection Smooth control of Tool Center Point
Set NC Parameter for Angle Head Smooth control of tool posture control ON
Set Parameters for Spatial Cam Machining SPIN TABLE Revolution Speed ········ 2-214
Set Rotary Dresser Speed ················ 2-217 SPIN TABLE Stop ····························· 2-214
Setting of External Work Zero Offset in Spindle Air Low Pressure OFF ·········· 2-173
Multi Spindle ································· 2-161 Spindle Air Low Pressure ON············ 2-173
Setting Tool Magazine No. used in Tool Spindle Attachment Dismount Check
Signal Lamp 1 ON with No Ready Pallet Spindle Attachment Mount Check ······· 2-61
No.0584J-1405EN 3-11
Index
Spindle Monitor Record Mode Off········ 2-68 Standard Amount of Mist Air (MQL)
Spindle Nose Nozzle Coolant Off ······ 2-135 Step Advance ···································· 2-116
Spindle Nose Nozzle Coolant On ······ 2-135 Step Retract ······································· 2-115
Spindle Orientation Stop ························ 2-6 Stocker Pallet 2 Lock ························· 2-189
Specified Angle ································ 2-60 Stop Block Cleaning Air Off ··············· 2-192
Spindle Rotation for Alignment ············ 2-56 Stop Block Cleaning Air On ··············· 2-193
Spindle Rotation for Measuring ··········· 2-58 Stop Coolant & Record ························ 2-55
Spindle Speed Limitation Disable at Stop Coolant and Spindle & Record
Spindle Speed Output to Macro ··········· 2-80 Store Program Restart Position Judgment
Spindle Speed Override Enable ·········· 2-18 Strong Clamp Mode OFF ··················· 2-166
Spindle Start in CCW Direction ·············· 2-3 Strong Clamp Mode ON····················· 2-166
Spindle Tool Clamp ····························· 2-65 Stylus Cleaning Air ON ······················ 2-126
Spindle Tool Pot No. Output to Macro SV Revolution Control Axis Start in CW
Spindle Tool Unloading··········· 2-123, 2-124 SV Revolution Control Mode ON ······· 2-171
······················································· 2-124
3-12 No.0584J-1405EN
Index
Index
Through Spindle Air ON ······················ 2-25
Tool length comparison ····················· 2-177
Through Spindle Coolant Off Without
Tool Length Measurement Data Read
Remove········································· 2-134
······················································ 2-145
Through Spindle Coolant ON ················ 2-7
Tool Length Measuring Calibration
Through Spindle Coolant Output
······················································ 2-141
Frequency Fixation OFF ··············· 2-194
Tool Length Measuring Mode Setting
Through Spindle Coolant Output
······················································ 2-143
Frequency Fixation ON ················· 2-194
Tool Length Sensor Unit Circuit Check
Through Spindle Mist ON ···················· 2-66
················································· 2-8, 2-13
Through Spindle Oil Amount Set to Large
Tool Machining Finish ························· 2-52
(MQL) ············································ 2-134
Tool Measuring Laser OFF ················· 2-63
Through Spindle Oil Amount Set to Small
Tool Measuring Laser ON ··················· 2-64
(MQL) ············································ 2-134
Tool Measuring Sensor X-Axis Direction
Through Spindle Oil Amount Set to
························································ 2-45
Standard (MQL) ···························· 2-134
Tool Measuring Sensor Y-Axis Direction
Through Tool Air ON ····························· 2-7
························································ 2-45
Through Tool Coolant ON ··················· 2-29
Tool No. Register Mode ······················ 2-16
TL Alarm Suspension Mode ON ········· 2-83
Tool Offset Data File Output·············· 2-178
TL Mode OFF······································ 2-44
No.0584J-1405EN 3-13
Index
Tool Offset Data Transfer Command Upper Nozzle Air ON ························· 2-195
Tool Offset Data Transfer Command for User Coolant ON································ 2-191
Tool Offset Negative Value Register Mode Utility function signal OFF ·················· 2-215
······················································· 2-177
V
Tool Radius Measurement Data Read
Tool Run Out Measurement ················ 2-80 Vacuum Device ON ····························· 2-69
Tool Run Out Measurement Base Data Vacuum Pipe Valve Off (Pipe OPEN)
Function: Get Imaging Data ··········· 2-203 Vacuum Pump On································ 2-68
······················································· 2-218
U Axis Emergency Mode ON ··············· 2-32 Washing Robot Forced End ················· 2-98
Unconditional Power Out ······················· 2-7 Washing Robot Start ···························· 2-97
Upper Nozzle Air OFF ······················· 2-195 Washing Robot Stop ···························· 2-97
3-14 No.0584J-1405EN
Index
Whetstone Change ON ····················· 2-161 WSS Pallet (Workpiece) Loading ······ 2-108
Work Data Register Mode ··················· 2-67 X Axis Cover Oil Pan Cleaning Coolant
Work Tension OFF ···························· 2-181 X Axis Cover Oil Pan Cleaning Coolant ON
Work Unclamp ···································· 2-99 X axis Mirror Image Off ······················· 2-42
Workpiece Forward Start ·················· 2-127 Y axis Mirror Image Off ······················· 2-42
Workpiece Origin Offset Fitting for Y Axis Mirror Image ON ························ 2-6
Index
Workpiece Reverse Start ·················· 2-127
Z
Workpiece Rotation Mode ················· 2-132
Workpiece Rotation Stop ·················· 2-127 Z Axis Cleaning Air OFF···················· 2-195
Workpiece Size Check for Collision Safe Z Axis Cleaning Air ON ····················· 2-195
No.0584J-1405EN 3-15
Appendix
4. Appendix
Appendix
No.0584J-1405EN 4-1
Appendix
4-2 No.0584J-1405EN