Download as pdf or txt
Download as pdf or txt
You are on page 1of 231

M-CODE LIST

Applicable Models
All Models

1. Read this manual carefully before operating the machine.


2. Store this manual in a clearly marked location for easy reference.
3. All rights reserved. No part of this document may be reproduced, copied, or
modified in any form or any means without direct permission of Makino
Milling Machine Co., Ltd.

0844A-1502EN
Contents

Contents

1. LIST OF M CODES ................................................................................................ 2

1.1 N OTES ON THIS M C ODE L IST ................................................................................... 2


1.2 L IST OF M C ODES .................................................................................................... 3

2. SPECIFICATION OF M CODES ............................................................................ 23

3. INDEX ............................................................................................................... 220

4. HISTORY ........................................................................................................... 230

0844A-1502EN 1
List of M Codes

1. List of M Codes

1.1 Notes on this M Code List

This M code list describes all M codes. Please note that there are some M codes that
cannot be used depending upon the machine specif ications and options that are
provided.

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 6 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.

2 0844A-1502EN
List of M Codes

1.2 List of M Codes

M0 Program Stop
M1 Optional Stop
M2 End of Program
M3 Spindle Start in CW Direction
M4 Spindle Start in CCW Direction
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
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 Coeff icient Setting 125%
M42 SL Coeff icient Setting 150%

0844A-1502EN 3
List of M Codes

M43 SL Coeff icient Setting 200%


M44 SL and AC Coeff icient 0%
M45 Tool Length Sensor Unit Circuit Check
M46 SL Lower Limit Coeff icient Setting 125%
M47 SL Lower Limit Coeff icient Setting 0%
M48 Cutting Feed Override Enable
M49 Cutting Feed Override Disable
M50 AC Coeff icient 100%, SL Coeff icient 200%
M51 Auto Reject Mode ON (M52 Mode Cancel)
M52 Auto Reject Mode OFF (Workpiece Not Unloaded at Alarm)
M54 Tool Offset Negative Value Register Mode
M56 Tool Offset Data Transfer Command
M57 Tool No. Register Mode
M58 Spindle Speed Override Enable
M59 Spindle Speed Override Disable
M60 Pallet Change
M61 Pallet Change
M62 Pallet Change
M63 Pallet Change
M64 Pallet Change
M65 Pallet Change
M66 Pallet Change
M67 Pallet Change
M68 Internal use M code
M69 Pallet Ready Not Checked at M60
M74 Custom Macro Interruption Invalid
M75 Custom Macro Interruption Valid
M77 Through Spindle Air ON
M78 Signal Lamp 1 ON with No Ready Pallet
M79 Signal Lamp 2 ON with No Ready Pallet
M80 Pallet Change
M84 Pallet 1 Load Check
M85 Auto Measuring Approach Mode
M86 Auto Measuring Rapid Mode
M88 APC (AWC,WPM) Shutter/Operator Door Open
M89 APC (AWC,WPM) Shutter/Operator Door Close
M94 Tool Data Delete Mode ON
M95 Pallet 2 Load Check
M96 Through Tool Coolant ON
M96 Programmable Coolant Nozzle ON
M97 Overhead Shower Coolant ON

4 0844A-1502EN
List of M Codes

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
M132 Feed rate Override 100% or Less
M135 Rigid Tap Mode ON
M136 Output Machine Condition to Macro Variable
M138 5th Axis Mirror Image ON
M139 6th Axis Mirror Image ON
M140 First Block Skip ON
M141 First Block Skip OFF
M142 First Block Skip Return
M150 Block Skip 2 to 9 OFF
M152 Block Skip 2 ON
M153 Block Skip 3 ON
M154 Block Skip 4 ON
M155 Block Skip 5 ON
M156 Block Skip 6 ON
M157 Block Skip 7 ON
M158 Block Skip 8 ON
M159 Block Skip 9 ON
M165 BIG PLUS Holder Mode
M166 BT Holder Mode

0844A-1502EN 5
List of M Codes

M167 Attachment Spindle Mode


M168 Main Spindle Mode
M172 Rapid Feed Speed Limitation Mode Setting
M173 Enable IAC
M174 Rapid Override Limitation
M175 Cutting Override Limitation
M176 Override Limitation Release
M177 Write NC Parameter
M178 Disable IAC
M179 Enable IAC
M186 Count Sum of Machined Parts
M187 Dry Run ON
M188 Dry Run OFF
M194 Count Disable ON
M195 Count Disable OFF
M198 Subprogram Call from External I/O Device
M200 X axis Mirror Image On
M201 X axis Mirror Image Off
M202 Y axis Mirror Image On
M203 Y axis Mirror Image Off
M204 AC Mode OFF
M205 AC Mode ON
M206 Study Mode OFF
M207 Study Mode ON
M208 Rapid Override Switch Check Function Off
M209 Rapid Override Switch Check Function On
M223 Gravity Axis Lifting Up Function On
M224 Gravity Axis Lifting Up Function Off
M226 Machining Result Record Stop
M227 Machining Result Record Start
M228 Buzzer ON
M229 Buzzer OFF
M235 TL Mode OFF
M236 TL Mode ON
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

6 0844A-1502EN
List of M Codes

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 W ith 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
M296 Macro Variable Output Group Data Setting
M297 Tool Machining Finish
M299 Machine Data File Save
M302 M303 or M304 Completion (Spindle Speed) Check
M303 Rotate Spindle CW and Start Next Block before Spindle Reaches
Specif ied Speed
M304 Rotate Spindle CCW and Start Next Block before Spindle Reaches
Specif ied Speed
M307 Stop Coolant and Spindle & Record
M308 Recover Coolant and Spindle
M310 Record Spindle Status & Stop
M311 Resume Spindle

0844A-1502EN 7
List of M Codes

M312 Stop Coolant & Record


M313 Recover Coolant
M314 Pre-Measurement Spindle Rotation
M315 Oil Controller OFF
M316 Oil Controller ON
M317 Spindle Rotation for Alignment
M318 Spindle Orientation at Externally Specif ied Angle
M319 Pre-Orientation & Coolant Stop
M322 Spindle Rotation for Measuring
M325 Cs Axis Contouring Mode OFF
M326 Cs Axis Contouring Mode ON
M327 Clamper Retract
M328 Clamper Advance
M330 Spindle Reverse Orientation at Externally Specif ied Angle
M331 Draw Bar Probe Retract
M332 Draw Bar Probe Advance
M337 Dresser Stop
M338 Dresser Forward
M340 Attachment Change Start
M341 AAC Splashguard Open & AAC Advance
M344 AAC Retract & AAC Splashguard Close
M346 Spindle Attachment Mount Check
M347 Spindle Attachment Dismount Check
M359 Work information output
M371 Pre-Clamp (NC Index)
M372 Pre-Unclamp (NC Index)
M373 Clamp Conf irmation (NC Index)
M375 Table Dresser Solenoid Stop
M376 Table Dresser Solenoid Start
M377 Tool Measuring Laser OFF
M378 Tool Measuring Laser ON
M381 Angle Head Support Retract
M382 Angle Head Support Advance
M387 Vacuum Suction ON
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

8 0844A-1502EN
List of M Codes

M399 Mist Blow ON


M406 Work Data Register Mode
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 Specif ied
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
M465 Spindle Tool No. 0 Output to Macro
M466 Macro Variable (#100) Read
M468 Attachment No. Output to Macro (#100)
M469 TL Alarm Suspension Mode ON
M470 Metallic Cutting Mode OFF
M471 Metallic Cutting Mode ON
M474 Next Tool No. Output to Macro
M480 Macro Variables Reading Request to MOS
M483 Machine Data Output to Macro Variable
M486 Tailstock Retract
M487 Tailstock Advance
M488 Tailstock Position Retract
M489 Tailstock Position Advance

0844A-1502EN 9
List of M Codes

M492 First Use Check Request


M500 Washing Robot Start
M501 Washing Robot Stop
M502 Washing Robot Forced End
M503 Washing Robot Reference Position Conf irmation
M504 Washing Robot Coolant OFF
M505 Washing Robot Coolant ON
M507 Open ATC Shutter and Start Next Block before Shutter is Fully Open
M510 Table Side JIG Neutral
M511 Table Side JIG Unclamp
M512 Table Side JIG Clamp
M513 Table Side Work Seating Conf irm
M520 Work Unclamp
M521 Work Clamp
M530 M Code for JIG Interface
M531 M Code for JIG Interface
M532 M Code for JIG Interface
M533 M Code for JIG Interface
M534 M Code for JIG Interface
M535 M Code for JIG Interface
M536 M Code for JIG Interface
M537 M Code for JIG Interface
M538 M Code for JIG Interface
M539 M Code for JIG Interface
M548 M Code for ATC
M549 M Code for ATC
M550 M Code for ATC
M551 M Code for ATC
M552 M Code for ATC
M553 M Code for ATC
M554 M Code for ATC
M555 M Code for ATC
M556 M Code for ATC
M557 M Code for ATC
M558 M Code for ATC
M559 M Code for ATC
M580 M Code for Special User I/O Interface
M581 M Code for Special User I/O Interface
M582 M Code for Special User I/O Interface
M583 M Code for Special User I/O Interface
M584 M Code for Special User I/O Interface

10 0844A-1502EN
List of M Codes

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
M609 Individual Pallet Unloading
M610 Step Retract
M610 AAC Step Retract
M611 Step Advance
M611 AAC Step Advance
M612 Workpiece Change
M613 Workpiece Unload
M614 Workpiece Load
M620 Travel Limit Valid
M621 Travel Limit Invalid
M624 Internal use M code
M630 Axis Retract Position at ATC
M631 Change Workpiece Selection Command
M631 AWC Index Work Selection Command
M632 AWC index
M633 Auto Front Door Close
M634 Auto Front Door Open
M635 ATC Prohibition Mode OFF
M636 ATC Prohibition Mode ON

0844A-1502EN 11
List of M Codes

M638 ATC Shutter Close


M638 ATC Shutter / Cover Close
M639 ATC Shutter Open
M639 ATC Shutter / Cover Open
M640 Air Cut Mode OFF
M641 Air Cut Mode ON
M642 Program Number Notice
M643 Machining Workpiece Conf irm
M644 Open APC Shutter and Start Next Block before Shutter is Fully Open
M661 ATC & B Axis Simultaneous Operation
M662 ATC & B Axis Simultaneous Operation End Check
M663 M Code for ATC
M666 Automatic Tool Change
M666 M Code for ATC
M667 Spindle Tool Exist Coherent Check
M670 Pallet Clamp
M671 Pallet Unclamp
M680 Internal use M code
M683 APC Prohibition Mode OFF
M684 APC Prohibition Mode ON
M685 Work Clamp Check Mode OFF
M686 Work Clamp Check Mode ON
M687 Vacuum Pipe Valve Off (Pipe OPEN)
M688 Vacuum Pipe Valve On (Pipe CLOSE)
M690 Index Table Pallet
M706 Angle Plate/Table/RWH/SG Cleaning Coolant OFF
M707 Angle Plate/Table/RWH/SG Cleaning Coolant ON
M708 Additional Nozzle Coolant ON
M709 Stop Coolant before Axis Positioning is Completed
M710 Mist Collector OFF
M711 Mist Collector ON
M722 Stylus Cleaning Air OFF
M723 Stylus Cleaning Air ON
M724 Overhead Shower Coolant OFF
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

12 0844A-1502EN
List of M Codes

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 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)
M794 Mist Pressure Set to Standard (MQL)
M795 Through Spindle Coolant Off W ithout Remove
M800 Flange Cleaning Air ON
M810 Grinding Nozzle Retract
M811 Grinding Nozzle Advance
M812 Spindle Nose Nozzle Coolant Off
M813 Spindle Nose Nozzle Coolant On
M850 Release Central Coolant Pause Mode
M851 Central Coolant Pause Mode
M852 Flexible Synchronize 1 Enable
M853 Flexible Synchronize 1 Disable
M854 Flexible Synchronize 2 Enable

0844A-1502EN 13
List of M Codes

M855 Flexible Synchronize 2 Disable


M856 Flexible Synchronize 3 Enable
M857 Flexible Synchronize 3 Disable
M858 Flexible Synchronize 4 Enable
M859 Flexible Synchronize 4 Disable
M860 Chuck Cleaning Coolant OFF
M861 Chuck Cleaning Coolant ON
M862 Chuck Cleaning Air OFF
M863 Chuck Cleaning Air ON
M864 Tool Cleaning Air/Coolant OFF
M865 Tool Cleaning Air/Coolant ON
M866 Tool Cleaning Nozzle Retract
M867 Tool Cleaning Nozzle Advance
M880 Programmable Coolant Nozzle OFF
M881 Drawing Pump OFF
M882 Drawing Pump ON
M883 Angle Head Coolant ON
M884 Inner Chip Conveyor Speed Setting
M885 Angle Head Support Pin Cleaning Air ON
M885 Tool Cleaning Air 2 ON
M886 Terrace Cleaning Coolant OFF
M887 Terrace Cleaning Coolant ON
M888 Standard Amount of Mist Air (MQL)
M889 Fewer Amount of Mist Air (MQL)
M890 Nozzle Coolant OFF
M893 Internal use M code
M894 Internal use M code
M895 Increase Air OFF (MQL)
M896 Increase Air ON (MQL)
M897 Coolant Pause Release
M898 Attachment Lubrication Off
M899 Attachment Lubrication On
M902 Internal use M code
M903 M Code to Generate Alarm
M904 Tool Length Measuring Calibration
M905 Workpiece Automatic Measuring Calibration
M906 Radical Mode Calculation
M907 Get Skip Position
M908 Get Probe Displacement
M910 Workpiece Automatic Measuring Mode Cancel
M911 Measuring Head Alarm Check

14 0844A-1502EN
List of M Codes

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
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
M1105 Chopping Start
M1108 Enable IAC
M1109 Internal use M code
M1110 Internal use M code
M1111 Internal use M code
M1112 Rotation axes compensation of TCP OFF
M1113 Rotation axes compensation of TCP ON
M1114 Smooth control of tool posture control OFF

0844A-1502EN 15
List of M Codes

M1115 Smooth control of tool posture control ON


M1116 Preparations for High Accuracy Machining (Accuracy Check)
M1117 Preparations for High Accuracy Machining
M1118 Internal use M code
M1119 Axis Composition Change Request for 5 -Axis Machining Function
M1120 Internal use M code
M1121 Smooth control of Tool Center Point Control ON
M1122 Fairing OFF
M1123 Fairing ON
M1126 Active Damping Function OFF
M1127 Active Damping Function ON
M1130 Cut Type Change Request
M1156 Tool Offset Data Transfer Command for Composite Tool
M1191 Internal use M code
M1192 Internal use M code
M1193 Internal use M code
M1194 Internal use M code
M1197 Flexible Synchronize Auto Phase Adjustment
M1300 Whetstone Change OFF
M1301 Whetstone Change ON
M1302 Air Spindle Air OFF
M1303 Air Spindle Air ON
M1304 Axis Brake Off
M1305 Axis Brake On
M1306 Air Spindle Pressure 1
M1307 Air Spindle Pressure 2
M1308 Air Spindle Pressure 3
M1309 Air Spindle Pressure 4
M1310 Spindle Speed Limitation Disable at Spindle Idling
M1311 Spindle Speed Limitation Enable at Spindle Idling
M1312 Feed Axis Additional Oil Controller Differential Temperature Control
Mode ON
M1313 Feed Axis Additional Oil Controller Differential Temperature Control
Mode OFF
M1314 Feed Axis Additional Oil Controller Differential Temperature Control
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

16 0844A-1502EN
List of M Codes

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
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/V ibration Record Disable
M1354 Spindle Load/V ibration Record Enable
M1400 3D Crash Avoidance Mode Off
M1401 3D Crash Avoidance Mode On
M1402 Tool Shape Setting for 3D Crash Avoidance
M1403 3D Crash Avoidance Relation Setting Change
M1404 Z Axis Collision Avoidance Setting
M1410 Mode OFF for Collision Safe Guard
M1411 Mode ON for Collision Safe Guard
M1412 Tool Data Update Check for Collision Safe Guard
M1413 Workpiece Origin Offset Fitting for Collision Safe Guard
M1414 Project File Load for Collision Safe Guard

0844A-1502EN 17
List of M Codes

M1415 Project File Save for Collision Safe Guard


M1416 Tool Pre-check for Collision Safe Guard
M1417 Workpiece Size Check for Collision Safe Guard
M1420 Internal use M code
M1423 Tool length comparison
M1424 Tool Offset Data File Output
M1425 Signal Lamp OFF
M1426 Programmable Load Monitor Function Off
M1427 Programmable Load Monitor Function On (Specifying Data No.)
M1428 Programmable Load Monitor Function On (Specifying Alarm Load)
M1431 Eco Mode
M1432 AC (AST3) OFF
M1433 AC (AST3) ON
M1434 Feed Axis Lower Load Detection Function OFF
M1435 Feed Axis Lower Load Detection Function ON
M1436 Movable Step Retract
M1437 Movable Step Advance
M1438 Aux Unit Stop Enable at Special Machining
M1439 Aux Unit Stop Disable at Special Machining
M1440 Clear Program Restart Position Judgment Data Memory
M1441 Store Program Restart Position Judgment Data
M1442 Set contact load of tool contact detection
M1443 Set alarm load of tool contact detection
M1444 Tool contact detection mode OFF
M1445 Tool contact detection mode ON
M1446 Conf irmation of Spindle Rotation While Cutting Disable Release
M1447 Conf irmation 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
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

18 0844A-1502EN
List of M Codes

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
M1730 Chuck Air Blow OFF
M1731 Chuck Air Blow ON
M1732 X Axis Cover Oil Pan Cleaning Coolant OFF
M1733 X Axis Cover Oil Pan Cleaning Coolant ON
M1734 Through Spindle Coolant Output Frequency Fixation OFF
M1735 Through Spindle Coolant Output Frequency Fixation ON
M1736 Flush Coolant in Machining Chamber ON
M1737 Oil Amount Set to Shot Frequency(MQL)
M1743 Nozzle Coolant Push Out Air
M1744 Tool Cleaning Coolant OFF
M1745 Tool Cleaning Coolant ON
M1900 In-process Measuring M-Code
M1901 DynaV ision mode change
M1902 DynaV ision level change
M1903 DynaV ision result output
M1904 DynaV ision measurement start
M1906 DynaV ision all reset
M1907 Image type tool measurement cleaning air off
M1908 Image type tool measurement cleaning air on
M1909 Internal use M code
M1910 Internal use M code
M1911 MC alarm generation of image type tool measurement
M1912 Image type tool measurement error reset(DynaV ision)
M1920 Interlock Release Mode OFF at Tool Measurement Unit Cover Open

0844A-1502EN 19
List of M Codes

Close
M1921 Interlock Release Mode ON at Tool Measurement Unit Cover Open
Close
M1922 PTIM Power OFF
M1923 PTIM Power ON
M1924 PTIM command
M1925 Image Tool Measure shutter close
M1926 Image Tool Measure shutter open
M1930 CNC initiative message transmission
M1931 Internal use M code
M1932 Internal use M code
M1933 Internal use M code
M1934 Internal use M code
M1940 Tool Shape Automatically Recognition Function: Get Imaging Data
M1941 Tool Shape Automatically Recognition Function: Imaging Disable
Mode OFF
M1942 Tool Shape Automatically Recognition Function: Imaging Disable
Mode ON
M1943 Tool Shape Automatically Recognition Function: Reset Request
M1945 Tool Shape Automatically Recognition Function: calibration
M1960 Measurement Function Set
M1961 SKIP Signal Detection Result Output
M1962 Customer Work Measurement Function Enable
M1963 Customer Tool Measurement Function Enable
M1964 Customer Broken Tool Detection Enable
M1965 Measurement Special IO Signal Control Disable
M1966 Measurement Special IO Signal Control Enable
M2000 Internal use M code
M2001 Internal use M code
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

20 0844A-1502EN
List of M Codes

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 Magnif ication Enable (Rotation Axis)
M2027 VP Control Magnif ication Disable (Rotation Axis)
M2035 V ibration Control(AST4) Enable
M2036 V ibration 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
M2050 Internal use M code
M2051 Internal use M code
M2052 Internal use M code
M2060 Internal use M code
M2061 Internal use M code
M2062 Internal use M code
M2063 Internal use M code
M2064 Internal use M code
M2065 Internal use M code
M2100 Internal use M code
M2101 Internal use M code
M2200 Internal use M code
M2201 Internal use M code
M2202 Internal use M code
M2203 Internal use M code
M2204 Internal use M code
M2205 Internal use M code
M2206 Internal use M code
M2207 Internal use M code
M2209 Internal use M code

0844A-1502EN 21
List of M Codes

M2210 Internal use M code


M2211 Internal use M code
M2212 Internal use M code
M2300 SPIN TABLE Revolution Speed
M2301 SPIN TABLE Start
M2302 SPIN TABLE Stop
M2303 Gap Cycle Start
M2304 Gap Cycle Finish
M2305 Internal use M code
M2310 Utility function signal OFF
M2311 Utility function signal ON
M2312 Utility function signal check
M2320 INPROCESS GAUGE Measuring Cycle Start
M2321 INPROCESS GAUGE Automatic Zero Cycle Start
M2322 INPROCESS GAUGE Measuring Head Retraction
M2323 INPROCESS GAUGE Get Measuring Data
M2324 INPROCESS GAUGE Manual Mode
M2340 Rotary Dresser Control
M2341 Rotary Dresser CW/CCW
M2342 Set Rotary Dresser Speed
M2343 AE Sensor Enable
M2344 AE Sensor Disable
M2345 Set Millturn Data
M2346 Preparations for Millturn
M2347 Wait for preparation f inish for Millturn

22 0844A-1502EN
Specification of M Codes

2. Specification of M Codes
The (D) means that this code is performed after the axis moves if an axis
movement command is given in that block together.

M0 Program Stop (D)


□ Machine Type
All Machine Type

□ 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 ma chine 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.

M1 Optional Stop (D)


□ Machine Type
All Machine Type

□ 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.

M2 End of Program (D)


□ Machine Type
All Machine Type

□ Explanation
Indicates the end of program, and resets NC after operating as follows:

(a) Spindle rotation is stopped.


(b) Coolant is stopped.
(c) Mirror image off is turned off.

After ward, 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.

0844A-1502EN 23
Specification of M Codes

M3 Spindle Start in CW Direction


□ Machine Type
All Machine Type

□ 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.

M4 Spindle Start in CCW Direction


□ Machine Type
All Machine Type

□ Program
S800 M4 G00 X___ Y___ ;
G01 Z___ F___ ;

□ Explanation
Rotates spindle in counterclockwise direction at a speed specif ied with S code.
If it is not in the same block as M04 or there is no previous S (spindle speed), an
alarm occurs.

M5 Spindle Stop (D)


□ Machine Type
All Machine Type

□ Program
G01 X___ Y___ F___ M5;

□ Explanation
Stops the spindle after the block containing M5 is executed.

M6 Automatic Tool Change


□ Machine Type
All Machine Type

□ 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:

(a) Coolant is stopped.


(b) Orients and stops the spindle.
(c) Exchanges the spindle tool.
(d) Resumes coolant.

There is the one which does not return according to the version
of the model and software either about the coolant.

24 0844A-1502EN
Specification of M Codes

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.

M9 Coolant OFF (D)


□ Machine Type
All Machine Type

□ Program
G01 X___ Y___ F___ M9;

□ Explanation
Stops coolant after the block containing M9 is executed.

M10 4th Axis Clamp (D)


□ Machine Type
Machines other than following.
MAG3 / T4

□ Program
M11;
G91 G01 B___ F___ M10;

□ Explanation
Clamps 4th axis after the block containing M10 is executed.

M11 4th Axis Unclamp


□ Machine Type
Machines other than following.
MAG3 / T4

□ Program
M11;
G91 G01 B___ F___ M10;

□ Explanation
Unclamps 4th axis.

0844A-1502EN 25
Specification of M Codes

M12 5th Axis Clamp (D)


□ Machine Type
Machines other than following.
MAG1 / MAG3 / T1 / T2 / T4

□ Program
M13;
G91 G01 A___ F___ M12;

□ Explanation
Clamps 5th axis after the block containing M12 is executed.

M13 5th Axis Unclamp


□ Machine Type
Machines other than following.
MAG1 / MAG3 / T1 / T2 / T4

□ Program
M13;
G91 G01 A___ F___ M12;

□ 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.

M15 Index Table Reverse


□ Machine Type
All Machine Type

□ Program
M15 B___ ;

□ Explanation
Positions the index table in reverse direction if the machine has an index table.

M16 4th Axis Mirror Image ON


□ Machine Type
All Machine Type

□ 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.

26 0844A-1502EN
Specification of M Codes

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.

M19 Spindle Orientation Stop (D)


□ Machine Type
All Machine Type

□ Program
G00 X___ Y___ M19;

□ Explanation
Orients and stops the spindle after the block containing M19 is executed.

M20 Broken Tool Sensor Check (D)


□ Machine Type
All Machine Type

□ Explanation
Checks whether or not the tool has broken.
If there is a problem with the tool, a BTS alarm occurs.

M21 X Axis Mirror Image ON


□ Machine Type
All Machine Type

□ 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 .

M22 Y Axis Mirror Image ON


□ Machine Type
All Machine Type

□ 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 .

0844A-1502EN 27
Specification of M Codes

M23 Mirror Image OFF (D)


□ Machine Type
All Machine Type

□ 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.

M26 Through Spindle Coolant ON


□ Machine Type
Machines other than following.
MAG3

□ Explanation
Turns on through spindle coolant.

M27 Tap Oil Mist/Jet Mode ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / 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.07696 ).
After ward, coolant is turned on ever y time if the direction stored is specified
again.
This mode is valid until M9 or M2/M30, M6, emergency stop is specified.

M29 Unconditional Power Out (D)


□ Machine Type
All Machine Type

□ Program
G00 Z___;
X___ Y___;
M29;

□ Explanation
Turns off the power supply if the [Power Out] switch has been turned on.

28 0844A-1502EN
Specification of M Codes

M30 End of Machining Program and Repeat (D)


□ Machine Type
All Machine Type

□ Explanation
Resets NC and rewinds program after indicating the end of program, and
performs the following operations:

(a) Stops spindle rotation.


(b) Stops coolant.
(c) Turns mirror image off.

After ward, 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.

M31 Auto Workpiece Measuring Mode


□ Machine Type
All Machine Type

□ Explanation
Used in the workpiece automatic measuring macro program.
Specify at the start of workpiece automatic measuring.

M32 Auto Tool Length Measuring Mode


□ Machine Type
All Machine Type

□ Explanation
Used in the tool length automatic measuring macro program.
Specify at the start of tool length automatic measuring.

M33 Tool Length Sensor Unit Circuit Check


□ Machine Type
All Machine Type

□ Explanation
Used in the tool length automatic measuring macro program.
The tool length automatic measuring circuit is self-diagnosed.

M34 Auto Workpiece Measurement / Spare Tool Call


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 29
Specification of M Codes

M35 Auto Workpiece Measurement / Pallet Unload


□ Machine Type
All Machine Type

□ 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.

30 0844A-1502EN
Specification of M Codes

M36 Prior Tool Check


□ Machine Type
All Machine Type

□ 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. 12007=1), Tool magazine number is set by M450
command.

□ Program Example
O1234;
M36;
T1;
T2;
T3;
M37;
:
Machining Program
:
M30;

When the specification of permitting PTN input in multiple tool magazine


(machine parameter No. 12007=1), command as follow.

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.

0844A-1502EN 31
Specification of M Codes

M37 Tool Data Register Mode OFF


□ Machine Type
All Machine Type

□ 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 a nd a tool number, after M37 is
executed.

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 mo de 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.

M37 is same function as M448 (M448 S0).

□ 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;

32 0844A-1502EN
Specification of M Codes

M38 AC/SL Data Temporary Alteration Mode ON


□ Machine Type
All Machine Type

□ 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 specif ied.

If an S9999 is specif ied, 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;

M39 AC/SL Data Temporary Alteration Mode OFF


□ Machine Type
All Machine Type

□ Program
M38;
S AC Data ;
S SL(Upper) Data ;
S SL(Under) Data ;
M39;

□ Explanation
Turns off the AC/SL data temporary alteration mode.

M41 SL Coeff icient Setting 125%


□ Machine Type
All Machine Type

□ Explanation
Sets SL coefficient data to 125% (Max. spindle actual load current * 1.25) when
study mode is ON.

0844A-1502EN 33
Specification of M Codes

M42 SL Coeff icient Setting 150%


□ Machine Type
All Machine Type

□ Explanation
Sets SL coefficient data to 150% (Max. spindle actual load current * 1.50) when
study mode is ON.

M43 SL Coeff icient Setting 200%


□ Machine Type
All Machine Type

□ Explanation
Sets SL coefficient data to 200% (Max. spindle actual load current * 2.00) when
study mode is ON.

M44 SL and AC Coeff icient 0%


□ Machine Type
All Machine Type

□ Explanation
Sets SL coefficient data to 0%.
Use this M code when you don't use SL monitor and AC monitor.

M45 Tool Length Sensor Unit Circuit Check


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Used in the tool length automatic measuring macro program.
The tool length automatic measuring circuit is sel f-diagnosed.
This M code don't turn on measuring head cleaning air.

M46 SL Lower Limit Coeff icient Setting 125%


□ Machine Type
All Machine Type

□ Explanation
Sets SL lower limit coeff icient data to 125% (No load * 1.25) when study mode is
ON.

M47 SL Lower Limit Coeff icient Setting 0%


□ Machine Type
All Machine Type

□ Explanation
Sets SL lower limit coeff icient data to 0% (No load * 0) when study mode is ON.
Use this M code when you don't use SL lower limit monitor.

34 0844A-1502EN
Specification of M Codes

M48 Cutting Feed Override Enable (D)


□ Machine Type
All Machine Type

□ Program
G01 X___ Y___ F___ M48;

□ Explanation
Enables the feed rate override switch after the block containing M48 is executed.

M49 Cutting Feed Override Disable


□ Machine Type
All Machine Type

□ 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 specif ied.

M50 AC Coeff icient 100%, SL Coeff icient 200%


□ Machine Type
All Machine Type

□ Explanation
Set the AC data to 100% and the SL data to 200% when study mode is ON.

AC data = (Max. spindle actual load current * 1.00)


SL data = (Max. spindle actual load current * 2.00)

M51 Auto Reject Mode ON (M52 Mode Cancel)


□ Machine Type
All Machine Type

□ 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.

M52 Auto Reject Mode OFF (Workpiece Not Unloaded at Alarm)


□ Machine Type
All Machine Type

□ Explanation
Turns off the automatic workpiece reject mode.

0844A-1502EN 35
Specification of M Codes

M54 Tool Offset Negative Value Register Mode


□ Machine Type
All Machine Type

□ 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.
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;

M56 Tool Offset Data Transfer Command


□ Machine Type
All Machine Type

□ 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.

Data is sent as follows according to type of tool compensation memor y.

Tool compensation memor y B, C


H>0 Length (Geometry(H)) --> Geometry of H number
Length (Wear(H)) --> Wear of H number
D>0 Radius (Geometry(D)) --> Geometry of D number
Radius (Wear(D)) --> Wear of D number

36 0844A-1502EN
Specification of M Codes

Tool compensation memor y A


H>0 Length (Geometry(H)) + Length(Wear(H)) --> compensation of H
D>0 Radius (Geometry(D)) + Radius(Wear(D)) --> compensation of D

□ 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;

If M56 is commanded in the same block as H or D, the data is


transferred to previous H or D.
Give it by a block itself.

M57 Tool No. Register Mode


□ Machine Type
All Machine Type

□ Program
[Sequential Method]
M57;
T Tool No. ;
:
T Tool No. ;
M37(M30);

[Random Method]

0844A-1502EN 37
Specification of M Codes

M57;
S Pot No. T Tool No. ;
:
S Pot No. T Tool No. ;
M37(M30);

□ 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 specif ied for each tool.
Tool magazine number is set according to M 450 S__ Specify. If M450 has not been
specified ever, tool magazine number is set to 1.

M57 is the same as M448 S4.

[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.
It is not necessar y 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;

38 0844A-1502EN
Specification of M Codes

M58 Spindle Speed Override Enable (D)


□ Machine Type
All Machine Type

□ Program
G01 X___ Y___ F___;
M58;
G01 X___ Y___ F___;

□ Explanation
Enables [Spindle Speed Override] switch.

M59 Spindle Speed Override Disable


□ Machine Type
All Machine Type

□ 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.

M60 Pallet Change (D)


□ Machine Type
V33i / V56i / V77 / MCD

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M60 Pallet Change (D)


□ Machine Type
iQ300 / MAG3 / T4

□ Explanation
Loads the pallet ready to the machine table.

M60 Pallet Change (D)


□ Machine Type
D300 / D500 / D800Z / MAG1 / T1 / T2

□ Explanation
The pallet in the machine table and the machine buffer is exchanged

0844A-1502EN 39
Specification of M Codes

M60 Pallet Change (D)


□ Machine Type
MCC

□ Explanation
For Turn type
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Can be used by itself.

For Shuttle type


The pallet in the machine table and the machine buffer is exchanged.

M60 Pallet Change (D)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
For Turn type
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.

M61 Pallet Change


□ Machine Type
V33i / V56i / V77 / MCC / MCD

□ Explanation
This M code is used in the pallet unloading programs (O9820).
Cannot be used by itself.

M61 Pallet Change


□ Machine Type
MAG3 / T4

□ Explanation
Pallet on the machine table is returned to the buffer.

M62 Pallet Change


□ Machine Type
V33i / V56i / V77 / MCC / MCD

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M62 Pallet Change


□ Machine Type
MAG3

□ Explanation
Not ready pallet on the buffer is loaded to the WSS.

40 0844A-1502EN
Specification of M Codes

M62 Pallet Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ 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.

M62 Pallet Change


□ Machine Type
D300 / D800Z

□ Explanation
This M code is used in the pallet change/pallet loading program (O9003).
Cannot be used by itself.

M63 Pallet Change


□ Machine Type
V33i / V56i / V77 / MCC / MCD

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M63 Pallet Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ 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.

M63 Pallet Change


□ Machine Type
D300 / D800Z

□ Explanation
This M code is used in the pallet change/pallet loading program (O9003).
Cannot be used by itself.

0844A-1502EN 41
Specification of M Codes

M64 Pallet Change


□ Machine Type
V33i / V56i / V77 / MCC

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M64 Pallet Change


□ Machine Type
MAG3

□ Explanation
The pallet change device is returned to the state of standby.

M64 Pallet Change


□ Machine Type
MCD

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

The pallet change device is returned to the state of standby.

M64 Pallet Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ 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.

M64 Pallet Change


□ Machine Type
D300

□ Explanation
This M code is used in the pallet unloading programs (O9004).
Cannot be used by itself.

M65 Pallet Change


□ Machine Type
V33i / V56i / V77 / MCC

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

42 0844A-1502EN
Specification of M Codes

M65 Pallet Change


□ Machine Type
MCD

□ Explanation
The pallet change device is set to the state of pallet load standby.(enable to use
by itself)

M65 Pallet Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ 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.

M65 Pallet Change


□ Machine Type
D300

□ Explanation
This M code is used in the pallet unloading programs (O9004).
Cannot be used by itself.

M66 Pallet Change


□ Machine Type
MCC

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M66 Pallet Change


□ Machine Type
MCD

□ Explanation
The pallet change device is set to the state of pallet load standby cancel .

M68 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 43
Specification of M Codes

M69 Pallet Ready Not Checked at M60


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T4 / MCD

□ Explanation
Used when a pallet change (M60) is required even if the ready status of the pallet
on stocker is OFF.
W ith 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.

M74 Custom Macro Interruption Invalid


□ Machine Type
All Machine Type

□ Explanation
Disables custom macro interruption.

M75 Custom Macro Interruption Valid


□ Machine Type
All Machine Type

□ Explanation
Enables custom macro interruption.

M77 Through Spindle Air ON


□ Machine Type
All Machine Type

□ Explanation
Turns on through spindle air.

M78 Signal Lamp 1 ON with No Ready Pallet


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ 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.

44 0844A-1502EN
Specification of M Codes

M79 Signal Lamp 2 ON with No Ready Pallet


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ 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.

M80 Pallet Change


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E
/ A100E / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Cannot be used by itself.

M80 Pallet Change


□ Machine Type
D300

□ Explanation
This M code is used in the pallet loading and unloading programs (O9003,
O9004).
Cannot be used by itself.

M84 Pallet 1 Load Check


□ Machine Type
All Machine Type

□ 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.

M85 Auto Measuring Approach Mode


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the automatic measuring macro program (workpiece/tool
length) when the sensor approaches the target-point.

0844A-1502EN 45
Specification of M Codes

M86 Auto Measuring Rapid Mode


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the automatic measuring macro program (workpiece/tool
length) when the sensor is fed at rapid traverse.

M88 APC (AWC,WPM) Shutter/Operator Door Open


□ Machine Type
Machines other than following.
a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Opens APC (AWC,WPM) shutter or operator door.

M89 APC (AWC,WPM) Shutter/Operator Door Close


□ Machine Type
Machines other than following.
a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Closes APC (AWC,WPM) shutter or operator door.

46 0844A-1502EN
Specification of M Codes

M94 Tool Data Delete Mode ON


□ Machine Type
All Machine Type

□ 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 specif ied 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.

The specif ication is different from specification of Professional.3.

M95 Pallet 2 Load Check


□ Machine Type
All Machine Type

□ 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 n ot ready, a machine alarm occurs.

0844A-1502EN 47
Specification of M Codes

M96 Through Tool Coolant ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on the through tool coolant.

M96 Programmable Coolant Nozzle ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turns on programmable coolant nozzle.

M97 Overhead Shower Coolant ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the high power (ceiling) coolant.

M98 Sub Program Call


□ Machine Type
All Machine Type

□ 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.

M99 Return to Main Program


□ Machine Type
All Machine Type

□ Program
M99;

□ Explanation
Returns to the main program from subprogram called with M98P___.

M100 Cleaning Air OFF


□ Machine Type
V22 / V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

48 0844A-1502EN
Specification of M Codes

M101 Cleaning Air ON


□ Machine Type
V22 / V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

M102 Direct Spare Tool Change Mode Check


□ Machine Type
All Machine Type

□ Explanation
Used in the macro program type direct spare tool change macro program.

M105 Direct Spare Tool Change


□ Machine Type
All Machine Type

□ Explanation
Exchanges the spindle tool with a spare tool if a tool life alarm has occurred for
the spindle tool.
(Direct spare tool change)

M106 Direct Spare Tool Change Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turns on the direct spare tool change inhibit mode when M107 mode is ON.

M107 Direct Spare Tool Change Mode ON


□ Machine Type
All Machine Type

□ 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.

M110 6th Axis Clamp (D)


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Program
M111;
G91 G01 B___ F___ M110;

□ Explanation
Clamps 6th axis after the block containing M110 is executed.

0844A-1502EN 49
Specification of M Codes

M111 6th Axis Unclamp


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Program
M111;
G91 G01 B___ F___ M110;

□ Explanation
Unclamps 6th axis.

M118 FT Function OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the FT function.

M119 FT Function ON
□ Machine Type
All Machine Type

□ Explanation
Turns on the FT function.

M122 U Axis Mode OFF


□ Machine Type
A99E / A100E

□ Program
M123;
:
U___;
:
M122;

□ Explanation
Turns off the U axis mode.

M123 U Axis Mode ON


□ Machine Type
A99E / A100E

□ Program
M123;
:
U___;
:
M122;

□ Explanation
Turns on the U axis mode.
After M123, U axis is automatically performed reference return.

50 0844A-1502EN
Specification of M Codes

M124 U Axis Emergency Mode ON


□ Machine Type
A99E / A100E

□ Program
M124;
:
U___;
:
M122;

□ Explanation
Turns on the U axis emergency mode.
After M124, U axis is not performed reference return..

M125 Program Search


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 51
Specification of M Codes

M126 Metric Input Check


□ Machine Type
All Machine Type

□ 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 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 necessar y after
M126/M127.

[M126/M127 and block skip 1 ON/OFF]


Inch / Metric Input M126 M127
Metric OFF ON
Inch ON OFF

52 0844A-1502EN
Specification of M Codes

M127 Inch Input Check


□ Machine Type
All Machine Type

□ 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 necessar y after
M126/M127.

[M126/M127 and block skip 1 ON/OFF]


Inch / Metric Input M126 M127
Metric OFF ON
Inch ON OFF

0844A-1502EN 53
Specification of M Codes

M128 Inch / Metric Input Check End


□ Machine Type
All Machine Type

□ 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.

M129 Quadrant Glitch Fine Tuning Mode Change


□ Machine Type
All Machine Type

□ Program
M129 S Tuning Mode Number ;

□ Explanation
The quadrant glitch f ine 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.

M130 Override for Tool OFF


□ Machine Type
All Machine Type

□ Explanation
Disable override for each tool.

M131 Override for Tool ON


□ Machine Type
All Machine Type

□ Explanation
Enable override for each tool.

54 0844A-1502EN
Specification of M Codes

M132 Feed rate Override 100% or Less


□ Machine Type
All Machine Type

□ Explanation
Sets upper limit of cutting feed rate.
M132; Limits the cutting feed rate override to 100% or less.
This mode is called M132 mode.
In M132 mode, the area over 100% of the [Feed Rate
Override] switch is disabled.
M132 mode is turned off by M48.
M132 S__; Used in automatic measuring macro program.
In this mode, the upper limit of the cutting feed rate
override is set to the percentage specif ied by S.
The mode is turned off if M2/M30 is specified or NC reset is
turned on.
M132 S__ is enabled only when machine parameter No.
05022 is set to "1".

M135 Rigid Tap Mode ON


□ Machine Type
All Machine Type

□ 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.

M136 Output Machine Condition to Macro Variable


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Output Machine Condition to Macro Variable.

M138 5th Axis Mirror Image ON


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 55
Specification of M Codes

M139 6th Axis Mirror Image ON


□ Machine Type
All Machine Type

□ 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.

M140 First Block Skip ON


□ Machine Type
All Machine Type

□ 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.

M141 First Block Skip OFF


□ Machine Type
All Machine Type

□ 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.

M142 First Block Skip Return


□ Machine Type
All Machine Type

□ 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.

M150 Block Skip 2 to 9 OFF


□ Machine Type
All Machine Type

□ Explanation
Turns block skip 2 to 9 off.

M152 Block Skip 2 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 2.

56 0844A-1502EN
Specification of M Codes

M153 Block Skip 3 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 3.

M154 Block Skip 4 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 4.

M155 Block Skip 5 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 5.

M156 Block Skip 6 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 6.

M157 Block Skip 7 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 7.

M158 Block Skip 8 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 8.

M159 Block Skip 9 ON


□ Machine Type
All Machine Type

□ Explanation
Turns on block skip 9.

0844A-1502EN 57
Specification of M Codes

M165 BIG PLUS Holder Mode


□ Machine Type
All Machine Type

□ 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.

M166 BT Holder Mode


□ Machine Type
All Machine Type

□ 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.

M167 Attachment Spindle Mode


□ Machine Type
MAG3 / T1 / T2 / T4

□ 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

M168 Main Spindle Mode


□ Machine Type
MAG3 / T1 / T2 / T4

□ 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.

M172 Rapid Feed Speed Limitation Mode Setting


□ 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)

58 0844A-1502EN
Specification of M Codes

M173 Enable IAC


□ Machine Type
All Machine Type

□ Explanation
IAC data becomes enabled.

M174 Rapid Override Limitation


□ Machine Type
All Machine Type

□ Explanation
Set Rapid Override Limitation.

M174S_(S=1 to 100)T_(T=1 to 600);


S:Override[%]
T:Limitation Enable T ime[sec]

M175 Cutting Override Limitation


□ Machine Type
All Machine Type

□ Explanation
Set Cutting Override Limitation.

M175S_(S=1 to 254)T_(T=1 to 600);


S:Override[%]
T:Limitation Enable T ime[sec]

M176 Override Limitation Release


□ Machine Type
All Machine Type

□ Explanation
Release override limitation of M174,M175

M177 Write NC Parameter (D)


□ Machine Type
All Machine Type

□ Program
M177 S Parameter Index ;

□ Explanation
Change NC Parameter

0844A-1502EN 59
Specification of M Codes

M178 Disable IAC


□ Machine Type
All Machine Type

□ 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(T ilt angle) is disabled.
The indexing accuracy of the tilting axis to the workpiece weight is returned to an
initial value.

M179 Enable IAC


□ Machine Type
All Machine Type

□ Explanation
The indexing accuracy of the tilting axis to the workpiece weight is optimized.

M186 Count Sum of Machined Parts


□ Machine Type
All Machine Type

□ Explanation
Adds value to product counter specified by M186.
Number to be added to the counter is specif ied 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 specif ied.
If S has not been specif ied, all the product counter specif ied to be added by M186
are added.

M187 Dry Run ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the dr y run mode.

M188 Dry Run OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the dry run mode.

M194 Count Disable ON


□ Machine Type
All Machine Type

□ Explanation
Disable Count.
Disable count is set by Machine Parameter No.12118

60 0844A-1502EN
Specification of M Codes

M195 Count Disable OFF


□ Machine Type
All Machine Type

□ Explanation
Enable Count that is dislab by M194.

M198 Subprogram Call from External I/O Device


□ Machine Type
All Machine Type

□ Program
M198 P___ ;

□ Explanation
Calls a subprogram specified by P from a f ile in an external I/O device.

M200 X axis Mirror Image On


□ Machine Type
All Machine Type

□ Explanation
X axis Mirror Image On

M201 X axis Mirror Image Off


□ Machine Type
All Machine Type

□ Explanation
X axis Mirror Image Off

M202 Y axis Mirror Image On


□ Machine Type
All Machine Type

□ Explanation
Y axis Mirror Image On

M203 Y axis Mirror Image Off


□ Machine Type
All Machine Type

□ Explanation
Y axis Mirror Image Off

M204 AC Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turn OFF AC Mode.

□ Program Example
M204;

0844A-1502EN 61
Specification of M Codes

M205 AC Mode ON
□ Machine Type
All Machine Type

□ Explanation
Turn ON AC Mode.

□ Program Example
M205;

M206 Study Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turn OFF Study Mode.

□ Program Example
M206;

M207 Study Mode ON


□ Machine Type
All Machine Type

□ Explanation
Turn ON Study Mode.

□ Program Example
M207;

M208 Rapid Override Switch Check Function Off


□ Machine Type
All Machine Type

□ Explanation
Turn Rapid Override Switch Check Function Off

M209 Rapid Override Switch Check Function On


□ Machine Type
All Machine Type

□ Explanation
Turn Rapid Override Switch Check Function On

M223 Gravity Axis Lifting Up Function On


□ Machine Type
All Machine Type

□ Explanation
Enables Gravity Axis Pull Up Function.

62 0844A-1502EN
Specification of M Codes

M224 Gravity Axis Lifting Up Function Off


□ Machine Type
All Machine Type

□ Explanation
Disables Gravity Axis Pull Up Function.

M226 Machining Result Record Stop


□ Machine Type
All Machine Type

□ Explanation
Stops recording of Machining Result Function. This code is effective if the setting
of machine parameter No.12247 is 1.

M227 Machining Result Record Start


□ Machine Type
All Machine Type

□ Explanation
Starts recording of Machining Result Function. This code is effective if the setting
of machine parameter No.12247 is 1.

M228 Buzzer ON
□ Machine Type
All Machine Type

□ Explanation
Turns on the buzzer.

M229 Buzzer OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the buzzer.

M235 TL Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the TL mode.

M236 TL Mode ON
□ Machine Type
All Machine Type

□ Explanation
Turns on the TL mode.

0844A-1502EN 63
Specification of M Codes

M237 SL Upper Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the SL upper limit mode.

M238 SL Upper Mode ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the SL upper limit mode.

M240 ATCBTS Check Action


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T4
/ MCC

□ Explanation
Only the ATCBTS check operation is done.
The alarm is not generated.

M241 ATCBTS Retracted


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T4
/ MCC

□ Explanation
ATCBTS is retracted.

M243 ATCBTS Check


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T4
/ MCC

□ Explanation
ATCBTS is checked.

M246 Tool Measuring Sensor Y-Axis Direction


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Explanation
Specifies the vertical direction for the rotar y tool measuring sensor.

64 0844A-1502EN
Specification of M Codes

M247 Tool Measuring Sensor X-Axis Direction


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Explanation
Specifies the horizontal direction for the rotary tool measuring sensor.

M250 GI/Super-GI High Accuracy Mode


□ Machine Type
All Machine Type

□ 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_;

T: 1st rotary axis tolerance (0 to 99999999)


S: 2nd rotary axis tolerance (0 to 99999999)
The unit of the commanded value depends on machine parameter No.02151.

When S code is omitted, S code value becomes it as well as T code value.


When T code is omitted, T code value becomes it as well as S code value.
When both T and S code are omitted, T code value is set the machine parameter
No. 02149-00 and S code value is set the machine parameter No. 02149-01. The
unit of the value depends on the setting of NC parameter No. 1013.
Moreover, the smooth TCP mode is turned on when T or S code are instructed.
The smooth TCP mode depends on machine parameter No. 02150 when neither is
instructed.

Note 1: Even if T and S code are instructed, it is disregarded when there is no


smooth TCP option.
Note 2: Neither T nor S code are processed for FS180 as an argument.

M251 GI/Super-GI High Performance Mode


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 65
Specification of M Codes

M252 GI/Super-GI Ultra High Accuracy Mode


□ Machine Type
All Machine Type

□ 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.

M253 GI/Super-GI High Accuracy Mode for Contouring with Rotary Axes
□ Machine Type
Machines other than following.
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the high accuracy mode for contouring with rotar y 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 bloc k.
Refer to help of M250 for the explanation.

M253 GI/Super-GI High Accuracy Mode


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ 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.
Refer to help of M250 for the explanation.

M254 GI/Super-GI Special Mode


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the M254 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.

M254 GI/Super-GI Extra Super-High Accuracy Mode


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the extra super-high accuracy mode.

66 0844A-1502EN
Specification of M Codes

M255 GI/Super-GI Radical Mode


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

M256 GI/Super-GI Ultra High Performance Mode


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
Switches GI/Super-GI to the ultra high performance mode.

M256 GI/Super-GI Hybrid Mode


□ Machine Type
MCC / MCD

□ 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 / T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the high performance mode for contouring with rotar y
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.

M257 GI/Super-GI High Performance Mode


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ 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.

0844A-1502EN 67
Specification of M Codes

M258 GI/Super-GI Ultra High Performance Mode for Contouring with Rotary Axes
□ Machine Type
Machines other than following.
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the ultra high performance mode for contouring with
rotar y 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.

M258 GI/Super-GI Ultra High Accuracy Mode


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ 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.

M259 GI Initial Mode


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4

□ Explanation
Switches GI/Super-GI to the original mode. (This M code is effective for
FS160is/FS180is 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.

M266 GI/Super-GI Ultra High Performance for Contouring With Rotary Ax es Mode
□ Machine Type
All Machine Type

□ Explanation
Switches GI/Super-GI to the ultra high performance for contouring with rotar y
axes mode.

M270 Non Contact Type Spindle Measurement


□ Machine Type
V22 / V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

68 0844A-1502EN
Specification of M Codes

M276 Extend Stroke Change Signal OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4

□ Explanation
Turns off the stroke-change signal that has been turned on by M277.
This M code is used in the ATC macro program.

M277 Extend Stroke Change Signal ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4

□ Explanation
Turns on the stroke-change signal.
This M code is used in ATC macro program.

M281 Signal light effective mode OFF


□ Machine Type
All Machine Type

□ Explanation
Suppresses all signal outputs to the signal sight and the buzzer.

M282 Signal light effective mode ON


□ Machine Type
All Machine Type

□ Explanation
Allows all signal outputs to the signal sight and the buzzer.

M283 SL Lower Limit Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the SL lower limit mode.

M284 SL Lower Limit Mode ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the SL lower limit mode.

M291 Floating M Code Change Prohibition Mode OFF


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 69
Specification of M Codes

M292 Floating M Code Change Prohibition Mode ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the floating M code exchange prohibition mode.
The floating M code exchange does not function after this M code is specif ied.

Do not use this M code in a machining program.


This M code is only for special use in a macro program of
one-touch function of MAKINO.

M294 Machining Finish Information


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Command before machining complete.
By this command, inform machining work complete.

M295 Macro Variable Output Group Data Output


□ Machine Type
All Machine Type

□ Explanation
Writes data of variables registered in output group selected on f ile.

□ 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.

M296 Macro Variable Output Group Data Setting


□ Machine Type
All Machine Type

□ 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.

70 0844A-1502EN
Specification of M Codes

M297 Tool Machining Finish


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Command before machining complete by spindle tool.
By this command, inform machining complete by spindle tool.

M299 Machine Data File Save


□ Machine Type
All Machine Type

□ Explanation
Saves data file specified by parameter (S code). All data files are saved if
parameter is not specified.
M299 S0; All data files
M299 S1; Tool Data
M299 S2; Tool Location Data
M299 S3; Work Data
M299 S4; Work Location Data

M302 M303 or M304 Completion (Spindle Speed) Check


□ Machine Type
All Machine Type

□ 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.

M303 Rotate Spindle CW and Start Next Block before Spindle Reaches Specif ied 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.

0844A-1502EN 71
Specification of M Codes

M304 Rotate Spindle CCW and Start Next Block before Spindle Reaches Specif ied Speed
□ Machine Type
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.

M307 Stop Coolant and Spindle & Record


□ Machine Type
All Machine Type

□ 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.

M308 Recover Coolant and Spindle


□ Machine Type
All Machine Type

□ 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.

72 0844A-1502EN
Specification of M Codes

M310 Record Spindle Status & Stop


□ Machine Type
All Machine Type

□ 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.

Use M310 and M311 in a pair always.

M311 Resume Spindle


□ Machine Type
All Machine Type

□ Program
M310;
G91 G28 Z0;
G28 X0 Y0;
M6;
G29 X0 Y0;
G29 Z0;
M311;

□ Explanation
Resumes spindle rotation stopped by M310.

Use M310 and M311 in a pair always.

0844A-1502EN 73
Specification of M Codes

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.

Use M312 and M313 in a pair always.

M313 Recover Coolant


□ Machine Type
All Machine Type

□ Program
M312;
G91 G28 Z0;
G28 Y0;
M6;
G29 Y0;
G29 Z0;
M313;

□ Explanation
Resumes coolant operation stopped by M312.

Use M312 and M313 in a pair always.

M314 Pre-Measurement Spindle Rotation


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the automatic measuring macro program.
Rotates to clockwise the spindle at a specif ied speed during specified time by
machine parameters.

After that, orientates and stops the spindle.


Corrects the position of the misaligned spindle edge .

74 0844A-1502EN
Specification of M Codes

M315 Oil Controller OFF


□ Machine Type
MCC / MCD

□ 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.

M316 Oil Controller ON


□ Machine Type
MCC / MCD

□ 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.

M317 Spindle Rotation for Alignment


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Rotates spindle slowly.

M318 Spindle Orientation at Externally Specif ied Angle (D)


□ Machine Type
All Machine Type

□ Program
#100= Orient Angle ;
M466;
M318;

□ Explanation
Orients the spindle to the angle specif ied 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.;
M466;
M318;
M30;

0844A-1502EN 75
Specification of M Codes

M319 Pre-Orientation & Coolant Stop


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

M319 Pre-Orientation & Coolant Stop


□ Machine Type
A99E / A100E

□ 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.

76 0844A-1502EN
Specification of M Codes

M319 Pre-Orientation & Coolant Stop


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ 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.

M322 Spindle Rotation for Measuring


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Rotates spindle to measure tool length.
This M code is used in the tool length measuring macro program.

M325 Cs Axis Contouring Mode OFF


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 77
Specification of M Codes

M326 Cs Axis Contouring Mode ON


□ Machine Type
All Machine Type

□ 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 specif ied.
Specify it in a block by itself.

M327 Clamper Retract


□ Machine Type
iQ300

□ Explanation
Retract clamper.

M328 Clamper Advance


□ Machine Type
iQ300

□ Explanation
Advance clamper.

M330 Spindle Reverse Orientation at Externally Specif ied Angle


□ Machine Type
All Machine Type

□ Explanation
Reverses the rotation direction of the spindle during M318.
When M318 is completed, M330 becomes invalid.

M331 Draw Bar Probe Retract


□ Machine Type
V22 / V33i / iQ300

□ Explanation
Retract draw bar probe.

M332 Draw Bar Probe Advance


□ Machine Type
V22 / V33i / iQ300

□ Explanation
Advance draw bar probe.

78 0844A-1502EN
Specification of M Codes

M337 Dresser Stop (D)


□ Machine Type
Machines other than following.
V22 / A99E / A100E / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Stops rotation of the dresser after axis travel is completed.

M338 Dresser Forward


□ Machine Type
Machines other than following.
V22 / A99E / A100E / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Rotates the dresser clockwise.
When this M code is specif ied in the same block as axis travel, it is started without
waiting for completion of travel.

M340 Attachment Change Start


□ Machine Type
MCC / MCD

□ Explanation
This M code is used in the macro program for changing attachments.

M341 AAC Splashguard Open & AAC Advance


□ Machine Type
MCC / MCD

□ Explanation
Used for semi-automatic attachment changer on MCC.
Splashguard for attachment changer is opened, and then attachment changer is
advanced.

M344 AAC Retract & AAC Splashguard Close


□ Machine Type
MCC / MCD

□ Explanation
The attachment changer is retracted, and then the splashguard for the attachment
changer is closed.

M346 Spindle Attachment Mount Check


□ Machine Type
MCC / MCD

□ Explanation
This M code is used for attachment changer.
It requests the operator to check that the spindle attachment is mounted.

0844A-1502EN 79
Specification of M Codes

M347 Spindle Attachment Dismount Check


□ Machine Type
MCC / MCD

□ Explanation
This M code is used for attachment changer.
It requests operator to check that spindle attachment is dismounted.

M359 Work information output


□ Machine Type
V33i / iQ300

□ Explanation
In case of Robot Interface Type A, Output program number specif ied via
EXPNO01-EXPNO32 signals.

M371 Pre-Clamp (NC Index)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

M372 Pre-Unclamp (NC Index)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

80 0844A-1502EN
Specification of M Codes

M373 Clamp Conf irmation (NC Index)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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 conf irm
table clamp.

□ Program Example
G91 G30 X0. Y0. M372;
B90.;
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.

M375 Table Dresser Solenoid Stop


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Stops table dresser solenoid.

M376 Table Dresser Solenoid Start


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Start table dresser solenoid.

M377 Tool Measuring Laser OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the laser (laser clearance is turned off and shutter is closed) if the
machine has a rotary tool measuring system.

M378 Tool Measuring Laser ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the laser (shutter is opened and laser clearance is turned on) if the
machine has a rotary tool measuring system.

0844A-1502EN 81
Specification of M Codes

M381 Angle Head Support Retract


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
Angle head support retract.

□ Program Example
M381

M382 Angle Head Support Advance


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
Angle head support advance.

□ Program Example
M382

M387 Vacuum Suction ON


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Turns on vacuum suction.

M388 Vacuum Suction OFF


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Turns off vacuum suction.

M389 Tailstock Pressure Change


□ Machine Type
D300 / D500 / D800Z / V56i / V77 / V99 / FB127

□ Explanation
Selects clamp pressure of tailstock .

□ Program Example
M389 S1;

M390 Spindle Tool Clamp


□ Machine Type
All Machine Type

□ 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.

82 0844A-1502EN
Specification of M Codes

M391 Spindle Tool Unclamp


□ Machine Type
All Machine Type

□ Program
M392;
M391;

□ 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.

M392 Spindle Tool Unclamp Preparation


□ Machine Type
Machines other than following.
MAG3

□ 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.

M394 Attachment Change End


□ Machine Type
MCC / MCD

□ Explanation
This M code is used in the attachment change macro program.

M398 Through Spindle Mist ON


□ Machine Type
Machines other than following.
T1 / T2 / T4

□ Explanation
Turns on through spindle mist.

M399 Mist Blow ON


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4

□ Explanation
Turns on mist blowing.

0844A-1502EN 83
Specification of M Codes

M406 Work Data Register Mode


□ Machine Type
All Machine Type

□ 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 specif ied.
If M406 S0 is specified, or 406 is specif ied without S, the work data registration
mode is turned off.
Specify the face number with T in the same block as where M406 is specif ied.
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,
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.

Work Data Work data Contents Setting Value(Unit)


Registration
Mode(M406S___)
3 Priority 0-65535
5 Express 0:OFF
1:ON
20 Pallet alarm BIT00:Pre tool check
BIT01:Broken tool(LONG)
BIT02:Broken tool
BIT03:AC monitor
BIT04:SL monitor
BIT05:SL monitor(No load)
BIT06:Tool life
BIT07:Spare tool nothing
BIT08:NC program nothing
BIT09:Pallet seat check abnormal
BIT10:Measurement abnormal
25 WHP Trans. Limit 0:None
1:Angle Plate
2:RWH
103 Ready 0:OFF
1:ON
104 Suspend 0:OFF
1:ON
107 Work offset(X axis) -99999999-99999999
108 Work offset(Y axis) -99999999-99999999
109 Work offset(Z axis) -99999999-99999999
110 Index position 0-3599999
When the machine parameter

84 0844A-1502EN
Specification of M Codes

No.24002=2, this item is effective.


111 Block skip 0-255
115 Face alarm BIT00:Pre tool check
BIT01:Broken tool(LONG)
BIT02:Broken tool
BIT03:AC monitor
BIT04:SL monitor
BIT05:SL monitor(No load)
BIT06:Tool life
BIT07:Spare tool nothing
BIT08:NC program nothing
BIT09:Pallet seat check abnormal
BIT10:Measurement abnormal

M409 Vacuum Pump Off


□ Machine Type
V33i

□ Explanation
Turn off vacuum pump.

M410 Vacuum Pump On


□ Machine Type
V33i

□ Explanation
Turn on vacuum pump.

M412 Vacuum Device OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Vacuum device off.

Possible for a metallic cutting mode off.

M413 Vacuum Device ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Vacuum device on.

M417 Machine Table Pallet 1 Check


□ Machine Type
All Machine Type

□ Program

0844A-1502EN 85
Specification of M Codes

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 necessar y after
M417/M418.

[M417/M418 and block skip 1 ON/OFF]


Pallet on machine table M417 M418
No.1 OFF ON
No.2 ON OFF

□ 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;

86 0844A-1502EN
Specification of M Codes

M418 Machine Table Pallet 2 Check


□ Machine Type
All Machine Type

□ 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
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 necessar y after
M417/M418.

[M417/M418 and block skip 1 ON/OFF]


Pallet on machine table M417 M418
No.1 OFF ON
No.2 ON OFF

□ 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.

0844A-1502EN 87
Specification of M Codes

:
M98 P9820;
M30;

M419 Machine Table Pallet Check End


□ Machine Type
All Machine Type

□ 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.

M430 Pallet Seating Check


□ Machine Type
All Machine Type

□ 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.

M433 BTS LS300 OFF Check


□ Machine Type
MCC / MCD

□ Explanation
Checks BTS circuit automatically.

88 0844A-1502EN
Specification of M Codes

M434 Tool Data BT Flag Check


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T4
/ MCC / MCD

□ Explanation
The BT flag of the tool data is checked.

□ Program Example
M434 Tcc;(T:Tool No.)

M435 ATCBTS Operation Mode Specif ied


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MCD

□ Explanation
The operation mode of ATCBTS is specified.

□ Program Example
M435 Spp;(S1:Vibration Control)

M436 Signal Lamp 1 Unconditional ON


□ Machine Type
All Machine Type

□ Explanation
Signal light 1 is turned on unconditionally.
Press [Light Off ] switch to turn off this lamp.

M437 Signal Lamp 2 Unconditional ON


□ Machine Type
All Machine Type

□ Explanation
Signal light 2 is turned on unconditionally.
Press [Light Off ] switch to turn off this lamp.

M441 Message Output Function


□ Machine Type
MCC / MCD

□ Explanation
This M code is used in the macro program for attachment changes.

M448 Tool Data Register Mode (Type1)


□ Machine Type
All Machine Type

□ 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);

0844A-1502EN 89
Specification of M Codes

□ 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 specif ied.
If M448 is specif ied without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the pot number is specif ied with S,
and the tool number is specif ied with T.

About tool data register mode and the setting data, please refer to the following
tool data register/setting data tables.
Tool Data Contents of Tool Setting Data (unit)
Register Mode Data
Data (M448S___)
1 Magazine 0:External Magazine
Number 1:The 1st Magazine
2:The 2nd Magazine
2 Pot Number 0 to Maximum Pot Number
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
8 note 0 to 128
9 Through Spindle 0:Disable/1:Enable
Enable
10 Through Spindle 0 to 99999[ms]
Coolant Suction
T ime
11 ATC Speed 0:High/1:Low/2:Middle
14 TL Alarm 0:Disable/1:Enable
Prohibition
15 Sum of Cutter 1 to 6
18 Empty Pot 0:Disable/1:Enable
19 Irregular Shape 0:Disable/1:Enable
20 Commanded T (4 Digit PTN)0 to 9999
Code (8 Digit PTN)0 to 99999999
25 Tool Size 0:Standard/1:Medium/2:Large/3:Extra
large/4:Small/5:Extra large2
26 TSC Removal 0:Default Setting/1:Air Discharge/
2:Draw Back
28 Tool 0 to 9999999[0.0001mm]/[0.00001inch]
Length(Check)

90 0844A-1502EN
Specification of M Codes

29 Tool 0 to 9999999[0.0001mm]/[0.00001inch]
Diameter(Radius
)(Check)
34 TSC Frequency Minimum Frequency to Maximum
Frequency [Hz]Maximum Frequency:
Machine Parameter No. 07150-00
Minimum Frequency: Machine
Parameter No. 07150-01
35 TSC Flow Check 0:Disable/1:Enable
57 Seat Check 0:Disable/1:Enable
101 Cutter Number 1 to 6
102 Kind 0:
1:Drill
2:Ball End Mill
3:Flat End Mill
4:Boring Bar
5:Hale Bite
7:Tap8:Reamer
9:Face Mill
10:Probe
11:Grinding Tool
12:Dresser
14:Limited Tool
15:Air Turbine
16:NT Attachment
17:Angle Head
18:INCS NAKANISHI
19:Air Turbine Fix
21:Turning Tool
22:Chamfer Tool
23:Radius End Mill
24:Reference Tool
25:Calibration Tool
26:Setup
27:Special Tool-1
28:Special Tool-2
103 Tool -9999999 to
Length(Geometr 9999999[0.0001mm]/[0.00001inch]
y(H))
104 Tool -9999999 to
Length(Wear(H)) 9999999[0.0001mm]/[0.00001inch]
105 Tool -9999999 to
Radius(Geometr 9999999[0.0001mm]/[0.00001inch]
y(D))
106 Tool -9999999 to
Radius(Wear(D)) 9999999[0.0001mm]/[0.00001inch]
107 TL[T ime] 0:Disable/1:Enable
108 TL Alarm[T ime] 0 to 99999999[0.1s]
109 TL 0 to 99999999[0.1s]
Warning[T ime]
110 TL Value[T ime] -99999999 to 99999999[0.1s]
111 TL[Distance] 0:Disable/1:Enable
112 TL 0 to 999999999[mm]/[0.1inch]

0844A-1502EN 91
Specification of M Codes

Alarm[Distance]
113 TL 0 to 999999999[mm]/[0.1inch]
Warning[Distanc
e]
114 TL -999999999 to
Value[Distance] 999999999[mm]/[0.1inch]
115 TL[Count] 0:Disable/1:Enable
116 TL Alarm[Count] 0 to 99999
117 TL 0 to 99999
Warning[Count]
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=Fall Out Tool
BIT01=Broken Tool
BIT02=AC Moniter
BIT03=SL Moniter
BIT04=SL Moniter (No Load)
BIT05=Tool Life Moniter
BIT06=Tool ID Chip Error
BIT07=Not Inspected Tool
BIT08=STS not OK
123 Warning BIT00=Tool Life
127 BTS Length 0 to 9999999[0.0001mm]/[0.00001inch]
128 Operator Call 0:Disable/1:Enable
129 First Used 0:Disable/1:Enable
132 Spindle Speed 0 to 99999[min-1]
Limit
134 Surface Speed 0 to 9999[0.01m/s]/[0.01inch/s]
Limit Value
138 Tooth 0 to 255
139 Corner -9999999 to
R(Geometr y) 9999999[0.0001mm]/[0.00001inch]
140 Corner R(Wear) -9999999 to
9999999[0.0001mm]/[0.00001inch]
141 Radial Max. Load 0 to 99999
142 Axial Max. Load 0 to 99999
163 Cut Type 0:Standard/1:Light Cut/2:Heavy Cut
502 Nominal -9999999 to
9999999[0.0001mm]/[0.00001inch]
503 Nominal -9999999 to
9999999[0.0001mm]/[0.00001inch]
504 Tolerance (+) 0 to 9999999[0.0001mm]/[0.00001inch]
505 Tolerance (-) 0 to 9999999[0.0001mm]/[0.00001inch]
506 Tolerance (+) 0 to 9999999[0.0001mm]/[0.00001inch]
507 Tolerance (-) 0 to 9999999[0.0001mm]/[0.00001inch]
508 Prohibited Flag BIT00=ATC
BIT01=APC

92 0844A-1502EN
Specification of M Codes

BIT02=Used
BIT03=Spindle Rotation
BIT04=Spindle CW
BIT05=Spindle CCW
BIT06=TLS
BIT07=Retract at Power Failure
BIT08=One Touch Function
BIT09=B Axis Rotation
BIT10=Measurement
511 Max. Tool -9999999 to
Length 9999999[0.0001mm]/[0.00001inch]
512 Min. Tool Length -9999999 to
9999999[0.0001mm]/[0.00001inch]
513 Max. Tool Radius -9999999 to
9999999[0.0001mm]/[0.00001inch]
514 Min. Tool Radius -9999999 to
9999999[0.0001mm]/[0.00001inch]
601 Z shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
602 Radius Shift -9999999 to
Value 9999999[0.0001mm]/[0.00001inch]
603 X Shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
604 Y Shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
605 Length 0:None/1:Request/2:Complete
606 Radius 0:None/1:Request/2:Complete
607 Spindle Speed 0 to 99999[min-1]
608 Warming-up 0 to 3600[s]
T ime
609 Cutting T ime 0 to 99999999[0.1s]
(After ATC)
610 Cutting Dist. 0 to 999999999[mm]/[0.1inch]
(After ATC)

□ 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 (Geometr y) 0.1010 to cutter
No.1 of pot No.1.
S10 M54 T1100; <-- Sets tool length (Geometr y) -0.1100 to cutter

0844A-1502EN 93
Specification of M Codes

No.1 of pot No.10.


S5 T1005; <-- Sets tool length (Geometr y) 0.1005 to cutter
No.1 of pot No.5.
M448 S103 T2; <-- Tool length (Geometry) registration mode for
cutter No.2.
S1 T2010; <-- Sets tool length (Geometr y) 0.2010 to cutter
No.2 of pot No.1.
S10 M54 T2100; <-- Sets tool length (Geometr y) -0.2100 to cutter
No.2 of pot No.10.
S5 T2005; <-- Sets tool length (Geometr y) 0.2005 to cutter
No.2 of pot No.5
M448; <-- Tool data registration mode OFF.

94 0844A-1502EN
Specification of M Codes

M449 Tool Data Register Mode (Type2)


□ Machine Type
All Machine Type

□ 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 n umber 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 specif ied.
If M449 S0 is specified, or M449 is spec ified without S, the tool data registration
mode is turned off.
Specify the cutter number with T in the same block as where M449 is specif ied.
If M449 is specif ied without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the kind of data is specif ied 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.

0844A-1502EN 95
Specification of M Codes

M450 Setting Tool Magazine No. used in Tool Data Registration Mode
□ Machine Type
All Machine Type

□ Program
M450 S Tool Magazine No. ;

S0:Tool out Tool Magazine

S1:Tool Magazine No.1

S2:Tool Magazine No.2

□ Explanation
Sets the Tool magazine number.
Specify the Tool magazine number with S in the same block where M450 is
specified.
If M450 is specif ied 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.
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.

96 0844A-1502EN
Specification of M Codes

M451 Tool Cutter No. Setting


□ Machine Type
All Machine Type

□ 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.

M455 Machining Signal OFF


□ Machine Type
All Machine Type

□ Explanation
MCRUN signal is turned OFF for JIG Interface.

M456 Machining Signal ON


□ Machine Type
All Machine Type

□ Explanation
MCRUN signal is turned ON for JIG Interface.

M457 Spindle Speed Output to Macro


□ Machine Type
All Machine Type

□ 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.

M460 Tool Run Out Measurement


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Measure tool run out of spindle.
Result of measurement is outputted to macro value #100.
#100=0: Abnormal, Machine Alarm
#100=1: Run Out OK
#100=2: Run Out NG
#100=3: Spindle tool not exist
#100=4: Measurement unit abnormal
#100=5: Speed is different from speed at registration
#100=6: Request measurement tool is not registered
#100=8: Sensor is abnormal

0844A-1502EN 97
Specification of M Codes

M461 Tool Run Out Measurement Base Data Registration


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Registration tool base data of spindle.
Result of measurement is outputted to macro value #100.
#100=0: Abnormal, Machine Alarm
#100=1: Registration complete
#100=3: Spindle tool not exist
#100=4: Measurement unit abnormal
#100=7: Sum of tool is over limit
#100=8: Sensor is abnormal

M462 Pallet No. Output to Macro


□ Machine Type
All Machine Type

□ 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.

M463 Print-out Mode Output


□ 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.

98 0844A-1502EN
Specification of M Codes

M464 Spindle Tool No. Output to Macro


□ Machine Type
All Machine Type

□ 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.

M465 Spindle Tool No. 0 Output to Macro


□ Machine Type
All Machine Type

□ 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.

M466 Macro Variable (#100) Read


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 99
Specification of M Codes

M468 Attachment No. Output to Macro (#100)


□ Machine Type
MCC / MCD

□ 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

M469 TL Alarm Suspension Mode ON


□ Machine Type
All Machine Type

□ 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.

M470 Metallic Cutting Mode OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn off metallic cutting mode.

M471 Metallic Cutting Mode ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn on metallic cutting mode.

100 0844A-1502EN
Specification of M Codes

M474 Next Tool No. Output to Macro


□ Machine Type
All Machine Type

□ 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.

M480 Macro Variables Reading Request to MOS


□ Machine Type
All Machine Type

□ 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.

M483 Machine Data Output to Macro Variable


□ Machine Type
All Machine Type

□ 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(Necessar y when
M483 is not specif ied 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.

0844A-1502EN 101
Specification of M Codes

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.
Set M483 to an empty NC parameter from No.3416 to No.3420 to specify M483 as
a non-buffered M-code.

(1) Tool Data


Macro Variable Setting Value
#100 1.0(Tool Data)
#101 Pot No.
0.0 specif ies spindle pot.
-1.0 specif ies next pot.
Setting pot number specifies other pot.
#102 Kind of Data
Refer to the kind and setting value table for the tool data.
#103 Cutter No.
If empty, 1 is set.
#104 Tool Magazine No.
External Tool: 0.0
Other Tool: Tool Magazine No.
If empty, 1 is set.
#110 Output Data
Refer to the kind and setting value table for the tool data.

Kind and Setting Value Table for the Tool Data (Value are all integers.)
Data of #102 Kind of Tool Output Data of #110 (unit)
Data
1 Magazine 0:External Magazine
Number 1:The 1st Magazine
2:The 2nd Magazine
2 Pot Number 0 to Maximum Pot Number
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
8 note 0 to 128
9 Through Spindle 0:Disable/1:Enable
Enable
10 Through Spindle 0 to 99999[ms]
Coolant Suction
T ime
11 ATC Speed 0:High/1:Low/2:Middle
14 TL Alarm 0:Disable/1:Enable

102 0844A-1502EN
Specification of M Codes

Prohibition
15 Sum of Cutter 1 to 6
18 Empty Pot 0:Disable/1:Enable
19 Irregular Shape 0:Disable/1:Enable
20 Commanded T (4 Digit PTN)0 to 9999
Code (8 Digit PTN)0 to 99999999
25 Tool Size 0:Standard/1:Medium/2:Large/3:Extra
large/4:Small/5:Extra large2
26 TSC Removal 0:Default Setting/1:Air Discharge/
2:Draw Back
28 Tool 0 to 9999999[0.0001mm]/[0.00001inch]
Length(Check)
29 Tool 0 to 9999999[0.0001mm]/[0.00001inch]
Diameter(Radius
)(Check)
34 TSC Frequency Minimum Frequency to Maximum
Frequency [Hz]Maximum Frequency:
Machine Parameter No. 07150-00
Minimum Frequency: Machine
Parameter No. 07150-01
35 TSC Flow Check 0:Disable/1:Enable
57 Seat Check 0:Disable/1:Enable
101 Cutter Number 1 to 6
102 Kind 0:
1:Drill
2:Ball End Mill
3:Flat End Mill
4:Boring Bar
5:Hale Bite
7:Tap8:Reamer
9:Face Mill
10:Probe
11:Grinding Tool
12:Dresser
14:Limited Tool
15:Air Turbine
16:NT Attachment
17:Angle Head
18:INCS NAKANISHI
19:Air Turbine Fix
21:Turning Tool
22:Chamfer Tool
23:Radius End Mill
24:Reference Tool
25:Calibration Tool
26:Setup
27:Special Tool-1
28:Special Tool-2
103 Tool -9999999 to
Length(Geometr 9999999[0.0001mm]/[0.00001inch]
y(H))
104 Tool -9999999 to
Length(Wear(H)) 9999999[0.0001mm]/[0.00001inch]

0844A-1502EN 103
Specification of M Codes

105 Tool -9999999 to


Radius(Geometr 9999999[0.0001mm]/[0.00001inch]
y(D))
106 Tool -9999999 to
Radius(Wear(D)) 9999999[0.0001mm]/[0.00001inch]
107 TL[T ime] 0:Disable/1:Enable
108 TL Alarm[T ime] 0 to 99999999[0.1s]
109 TL 0 to 99999999[0.1s]
Warning[T ime]
110 TL Value[T ime] -99999999 to 99999999[0.1s]
111 TL[Distance] 0:Disable/1:Enable
112 TL 0 to 999999999[mm]/[0.1inch]
Alarm[Distance]
113 TL 0 to 999999999[mm]/[0.1inch]
Warning[Distanc
e]
114 TL -999999999 to
Value[Distance] 999999999[mm]/[0.1inch]
115 TL[Count] 0:Disable/1:Enable
116 TL Alarm[Count] 0 to 99999
117 TL 0 to 99999
Warning[Count]
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=Fall Out Tool
BIT01=Broken Tool
BIT02=AC Moniter
BIT03=SL Moniter
BIT04=SL Moniter (No Load)
BIT05=Tool Life Moniter
BIT06=Tool ID Chip Error
BIT07=Not Inspected Tool
BIT08=STS not OK
123 Warning BIT00=Tool Life
127 BTS Length 0 to 9999999[0.0001mm]/[0.00001inch]
128 Operator Call 0:Disable/1:Enable
129 First Used 0:Disable/1:Enable
132 Spindle Speed 0 to 99999[min-1]
Limit
134 Surface Speed 0 to 9999[0.01m/s]/[0.01inch/s]
Limit Value
138 Tooth 0 to 255
139 Corner -9999999 to
R(Geometr y) 9999999[0.0001mm]/[0.00001inch]
140 Corner R(Wear) -9999999 to
9999999[0.0001mm]/[0.00001inch]
141 Radial Max. Load 0 to 99999

104 0844A-1502EN
Specification of M Codes

142 Axial Max. Load 0 to 99999


163 Cut Type 0:Standard/1:Light Cut/2:Heavy Cut
502 Nominal -9999999 to
9999999[0.0001mm]/[0.00001inch]
503 Nominal -9999999 to
9999999[0.0001mm]/[0.00001inch]
504 Tolerance (+) 0 to 9999999[0.0001mm]/[0.00001inch]
505 Tolerance (-) 0 to 9999999[0.0001mm]/[0.00001inch]
506 Tolerance (+) 0 to 9999999[0.0001mm]/[0.00001inch]
507 Tolerance (-) 0 to 9999999[0.0001mm]/[0.00001inch]
508 Prohibited Flag BIT00=ATC
BIT01=APC
BIT02=Used
BIT03=Spindle Rotation
BIT04=Spindle CW
BIT05=Spindle CCW
BIT06=TLS
BIT07=Retract at Power Failure
BIT08=One Touch Function
BIT09=B Axis Rotation
BIT10=Measurement
511 Max. Tool -9999999 to
Length 9999999[0.0001mm]/[0.00001inch]
512 Min. Tool Length -9999999 to
9999999[0.0001mm]/[0.00001inch]
513 Max. Tool Radius -9999999 to
9999999[0.0001mm]/[0.00001inch]
514 Min. Tool Radius -9999999 to
9999999[0.0001mm]/[0.00001inch]
601 Z shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
602 Radius Shift -9999999 to
Value 9999999[0.0001mm]/[0.00001inch]
603 X Shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
604 Y Shift Value -9999999 to
9999999[0.0001mm]/[0.00001inch]
605 Length 0:None/1:Request/2:Complete
606 Radius 0:None/1:Request/2:Complete
607 Spindle Speed 0 to 99999[min-1]
608 Warming-up 0 to 3600[s]
T ime
609 Cutting T ime 0 to 99999999[0.1s]
(After ATC)
610 Cutting Dist. 0 to 999999999[mm]/[0.1inch]
(After ATC)

(2) Work Data


Macro Variable Setting Data

0844A-1502EN 105
Specification of M Codes

#100 2.0(Work Data)


#101 Table Pallet :0.0
Pallet on Buffer 1:-1.0
Pallet on Buffer 2:-2.0
Pallet on Carrier :-3.0
Pallet on WSS1 :-4.0
Pallet on WSS2 :-5.0
Other pallet :Pallet No.
#102 0 Deg Face :1.0
90 Deg Face :2.0
180 Deg Face :3.0
270 Deg Face :4.0
If empty, 1 is set.
#103 Kind of Work Data
Refer to the kind and setting value table for the work data.
#110 Output Data
Refer to the kind and setting value table for the work data.

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
105 Fin Status 0 to 5
107 Work Offset(X Axis) -99999999 to 99999999
108 Work Offset(Y Axis) -99999999 to 99999999
109 Work Offset(Z Axis) -99999999 to 99999999
110 Index Angle 0 to 3599999
111 Block Skip 0 to 255
115 Alarm BIT00=Pre Tool Check
BIT01=Tool Broken(Long)
BIT02=Tool Broken
BIT03=AC Monitor
BIT04=SL Monitor
BIT05=SL Monitor(no load)
BIT06=Tool Life
BIT07=No Spare Tool
BIT08=No NC Program
BIT09=Pallet Seating Failure
BIT10=Measuring Failure

106 0844A-1502EN
Specification of M Codes

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 (4 Digit PTN)0 to 9999
Alarm (8 Digit PTN)0 to 99999999

(3) Machine Parameter


Macro Variable Setting Value
#100 200.0(Machine Parameter)
#101 Machine Parameter No.
#102 Branch No.
#110 Output Data (Internal Setting Data)

(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.

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 of


#101 Condition #111[unit]
0 The state of 1.For a/A-Series, D-Series, No Output
spindle warm-up and MCC/MCD Series
0:Warmup is necessar y
1:Warmup is unnecessar y

2.For MAG3 Series


0:Warmup is
necessary(Condition1)
1:Warmup is unnecessar y
2:Warmup is
necessary(Condition2)
3:Warmup is
necessary(Condition3)
1 Last 0 to 99999[min-1] No Output
commanded S
code
2 M06 skip flag 0:Does not skip M06 No Output
1:Skip M06
3 Spindle Load Load:0 to 655.35[%] Actual speed:0 to

0844A-1502EN 107
Specification of M Codes

and Actual 99999[min-1]


speed
4 The state of 0:Incomplete No Output
spindle oil air 1:Complete
filling up
5 Table Table Temperature (Thermal No Output
Temperature Chamber Monitoring
Function) [0.1deg]
6 Bed Bed Temperature (Thermal No Output
Temperature Chamber Monitoring
Function) [0.1deg]
7 Outside Air Outside Air Temperature No Output
Temperature (Thermal Chamber
Monitoring Function)
[0.1deg]
300 APC arm (turn 0:Undecided No Output
type) 1:CW
2:CCW
600 On-duty time 0:Off-duty time No Output
1:On-duty time

(5)Input/Output Signal condition


Macro Variable Setting Value
#100 5.0(Input/Output Signal Condition)
#101 Address Type
0:G Address
1:F Address
2:Y Address
3:X Address
100:V Address
#102 Address
#103 Size
0:Bit (Result is 0:OFF,1:ON)
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)

108 0844A-1502EN
Specification of M Codes

1 to max spindle number.


0.0 or empty is set f irst 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 f irst path.
#110 Output Data

(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 f irst 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 f irst path.
#110 Output Data

(8)MAG Spindle Data (MAG series only.)


Macro Variable Setting Value
#100 8.0(MAG Spindle Data)
#101 Data Number
0: Spindle coil temperature
1: Front bearing temperature
2: Rear bearing temperature
3: Vibration Data 1
4: Vibration Data 2
5: Vibration Data 3
#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

0844A-1502EN 109
Specification of M Codes

4: Speed Ratio
5: Y axis position when attachment is changed
#110 Output Data

(10)Function Button Condition


Macro Variable Setting Value
#100 10.0(Function Button
Condition)
#101 Function Number
#110 Output Data
0: OFF
1: ON
2: Blink

□ Program Example
1. Tool Data

(1) When remaining life of spindle tool is output:


#100=1.; <-- Tool data output command.
#101=0.; <-- Selects the spindle tool.
#102=110.; <-- Selects tool life data (Time).
M483; <-- Tool life data (T ime) is output.
G53; <-- Dummy block for preventing pre-reading.

(2) When tool length data of next tool is output:


#100=1.; <-- Tool data output command.
#101=-1.; <-- Selects next tool.
#102=103.; <-- Selects tool length data (Geometry(H)).
M483; <-- Tool length data (Geometry(H)) is output.
G53; <-- Dummy block for preventing pre-reading.

(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.

110 0844A-1502EN
Specification of M Codes

G53; <-- Dummy block for preventing pre-reading.


#111=32.; <-- Sets 32. Because TL alarm flag is 5th bit.
#112=#110 AND #111; <-- Executes 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

(1) When program number of a pallet on the table is output:


#100=2.; <-- Work data output command.
#101=0.; <-- Selects a pallet on the table.
#102=1.; <-- Selects 0 Deg face.
#103=106.; <-- Selects program number data.
M483; <-- Program number of a pallet on the table is output.
G53; <-- Dummy block for preventing pre-reading.

(2) When ready of pallet No.2 is output:


#100=2.; <-- Work data output command.
#101=2.; <-- Selects pallet No.2.
#102=2.; <-- Selects 90 Deg face.
#103=103.; <-- Selects ready data.
M483; <-- Ready of pallet No.2 is output.
G53; <-- Dummy block for preventing pre-reading.

3. Machine Parameter.

#100=3.; <-- Machine parameter output command.


#101=1000.; <-- Selects the machine parameter No.1000.
M483; <-- The machine parameter No.1000 is output.
G53; <-- Dummy block for preventing pre-reading.

4. Machine Condition.

(1) When state of spindle warming up is output:


#100=4.; <-- Machine condition output command.
#101=0.; <-- Selects the state of spindle warming up.
M483; <-- The state of spindle warming up is output.
G53; <-- Dummy block for preventing pre-reading.

(2) When last commanded S code is output:


#100=4.; <-- Machine condition output command.
#101=1.; <-- Selects last commanded S code.
M483; <-- Last commanded S code is output.

0844A-1502EN 111
Specification of M Codes

G53; <-- Dummy block for preventing pre-reading.

5. Input/Output Signal Condition

(1) When condition of X0015 Bit4 is output:


#100=5.; <-- Input/output condition output command
#101=3.; <-- Select X address
#102=15.; <-- Select address 15
#103=0.; <-- Select Size=Bit
#104=4.; <-- Select Bit address 4
M483; <-- Condition of X0015 bit 4 is output
G53; <-- Dummy block for preventing pre-reading.

(2) When condition of G0015 - G0016 is output by Word:


#100=5.; <-- Input/output condition output command
#101=0.; <-- Select G address
#102=15.; <-- Select address 15
#103=2.; <-- Select size=WORD
M483; <-- Condition of G0015 -G0016 is output by WORD
G53; <-- Dummy block for preventing pre-reading.

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 f irst 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 f irst path is output
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

112 0844A-1502EN
Specification of M Codes

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 f irst path is output
G53; <-- Dummy block for preventing pre-reading.

(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.

8. MAG Spindle Data

(1) When temperature data of front bearing is output:


#100=8.; <-- MAG Spindle Data output command
#101=1.; <-- Select Data number
M483; <-- Temperature data of front bearing is output
G53; <-- Dummy block for preventing pre-reading.

9. Attachment Data

(1) When rotation direction of attachment No.3 is output:


#100=9.; <-- Attachment Data output command
#101=3.; <-- Attachment number
#102=2.; <-- Attachment data kind
M483; <-- Attachment data is output

0844A-1502EN 113
Specification of M Codes

G53; <-- Dummy block for preventing pre-reading.

10. Function Button Condition

(1) When Machine Light (Function Number 25) condition is output:


#100=10.; <-- Function Button Condition output command
#101=25.; <-- Function number
M483; <-- Function Button Condition is output
G53; <-- Dummy block for preventing pre-reading.

M486 Tailstock Retract


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Retracts tailstock.

M487 Tailstock Advance


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Advances tailstock.

M488 Tailstock Position Retract


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Retracts tailstock position.

M489 Tailstock Position Advance


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Advances tailstock position.

M492 First Use Check Request


□ Machine Type
All Machine Type

□ Explanation
Check spindle tool life data and output WCHKRQ signal to Robot interface or
CHKREQ signal to JIG interface.

114 0844A-1502EN
Specification of M Codes

M500 Washing Robot Start


□ Machine Type
MCD

□ Explanation
Washing Robot starts.

□ Program Example
M500 S_;
(S instruction is program number of Robot)

M501 Washing Robot Stop


□ Machine Type
MCD

□ Explanation
Washing Robot stops.

□ Program Example
M501

M502 Washing Robot Forced End


□ Machine Type
MCD

□ Explanation
Washing Robot forced end.

□ Program Example
M502

M503 Washing Robot Reference Position Conf irmation


□ Machine Type
MCD

□ Explanation
Conf irm Washing Robot is in reference position.

□ Program Example
M503

M504 Washing Robot Coolant OFF


□ Machine Type
MCC / MCD

□ Explanation
Turn OFF of Washing Robot Coolant.

□ Program Example
M504

0844A-1502EN 115
Specification of M Codes

M505 Washing Robot Coolant ON


□ Machine Type
MCC / MCD

□ 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
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E / A100E

□ Explanation
Opens ATC shutter without waiting for DEN and returns FIN immediately.

M510 Table Side JIG Neutral


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Set Table side JIG to neautral

M511 Table Side JIG Unclamp


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Set Table side JIG to unclamp

M512 Table Side JIG Clamp


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Set Table side JIG to clamp

M513 Table Side Work Seating Conf irm


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Conf irm Work Seating on Table Side

M520 Work Unclamp


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Unclamp Work

116 0844A-1502EN
Specification of M Codes

M521 Work Clamp


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Clamp Work

M530 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M531 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M532 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M533 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M534 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M535 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

0844A-1502EN 117
Specification of M Codes

M536 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M537 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M538 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M539 M Code for JIG Interface


□ Machine Type
Machines other than following.
MCC / MCD

□ Explanation
This M code is used to control the JIG interface.

M548 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M549 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

118 0844A-1502EN
Specification of M Codes

M550 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M551 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M552 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M553 M Code for ATC


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M554 M Code for ATC


□ Machine Type
V56i / V77 / V99 / FB127

□ Explanation
This M code is used in the ATC macro program.

M555 M Code for ATC


□ Machine Type
V56i / V77 / V99 / FB127

□ Explanation
This M code is used in the ATC macro program.

M556 M Code for ATC


□ Machine Type
V56i / V77 / V99 / FB127 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
This M code is used in the ATC macro program.

0844A-1502EN 119
Specification of M Codes

M557 M Code for ATC


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
This M code is used in the ATC macro program.

M558 M Code for ATC


□ Machine Type
V22 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
This M code is used in the ATC macro program.

M559 M Code for ATC


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M580 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M581 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ Program
M581;

□ Explanation
UMDO1(USDO1) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.

M582 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

120 0844A-1502EN
Specification of M Codes

M583 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M584 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M585 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M586 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M587 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

0844A-1502EN 121
Specification of M Codes

M588 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M589 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ Program
M589;

□ Explanation
UMDO5(USDO5) signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.

M590 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M591 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M592 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

122 0844A-1502EN
Specification of M Codes

M593 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M594 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M595 M Code for Special User I/O Interface


□ Machine Type
All Machine Type

□ 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.

M600 Internal use M code (D)


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M601 Internal use M code (D)


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M602 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 123
Specification of M Codes

M603 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M604 Work Chuck Clamp


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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.

M605 Work Chuck Unclamp


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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.

M606 WSS Pallet (Workpiece) Loading


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / a51nx / G5 / MAG3 / T1 / T2 / T4 /
MCC / MCD

□ Program
M606 S Pallet (Work) Number T WSS Number

□ Explanation
Pallet in the stocker specif ied by S is transported to WSS specified by T.
When T is omitted, WSS1 is selected.

□ Program Example
M606 S1;

124 0844A-1502EN
Specification of M Codes

M606 WSS Pallet (Workpiece) Loading


□ Machine Type
a51nx / G5

□ Program
1. For AWC
M606 S Pallet (Work) Number ;

2.For pallet magazine


M606 S Pallet (Work) Number T WSS Number

□ Explanation
1. For AWC
Workpiece in the AWC magazine specif ied by S is transported to WSS.

2.For pallet magazine


Pallet in the stocker specif ied by S is transported to WSS specified by T.
When T is omitted, WSS1 is selected.

□ Program Example
M606 S1;

M607 WSS Pallet (Workpiece) Unloading


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / a51nx / G5 / MAG3 / T1 / T2 / T4 /
MCC / MCD

□ 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;

0844A-1502EN 125
Specification of M Codes

M607 WSS Pallet (Workpiece) Unloading


□ Machine Type
a51nx / G5

□ Program
1. For AWC
M607;

2. Pallet magazine
M607 T WSS Number ;

□ Explanation
1. For AWC
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
M607;

126 0844A-1502EN
Specification of M Codes

M608 Individual Pallet Loading


□ Machine Type
D500 / D800Z

□ Program
(1)Loads ready-pallet:
M608;
G91G28Z0.;
G91G28A0.M13;
M12;
G90G53Y-400.; (Set Y-15.748 at inch specification)
G91G30X0.;
G91G30C0.M11;
M10;
M60;

(2)Loads specif ied pallet.


#100=____ ;
M466;
M608;
G91G28Z0.;
G91G28A0.M13;
M12;
G90G53Y-400.; (Input 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).
(2)Loads specif ied pallet.
Set the pallet number to the macro variable #100, and command M466.
You can select by setting of the machine parameter No.08068 whether to stop the
machine with an alarm or not, if specif ied 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).

(3)In the case of D500 micro MMC


If WHP exists on machine table at M608 commanded, WHP on machine table is
unloaded befor WHP is loaded to machine table.

M608 Individual Pallet Loading


□ Machine Type
V33i / V56i / V77

□ Explanation
This M code is used in the one-touch function DNC program to indicate starting
of the function.

0844A-1502EN 127
Specification of M Codes

M608 Individual Pallet Loading


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ Explanation
(1)Loads ready-pallet:
:
M608;
G91 G30 Z0;
G91 G30 X0 Y0;
G91 G30 B0 M11;
M10;
M60;
:

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).

(2)Loads specif ied pallet.


:
#100=____ ;
M466;
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.0806 8 whether to stop the
machine with an alarm or not, if specif ied 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).

128 0844A-1502EN
Specification of M Codes

M608 Individual Pallet Loading


□ Machine Type
D300

□ Program
(1)Loads ready-pallet:
G91G28Z0.;
G91G28A0.M13;
M12;
G90G00G53Y250. ; (Set Y9.842 at inch specification)
G90G00G53C-90.M11;
M10;
M608;

(2)Loads specif ied pallet.


G91G28Z0.;
G91G28A0.M13;
M12;
G90G00G53Y250. ; (Set Y9.842 at inch specification)
G90G00G53C-90.M11;
M10;
#100=____ ;
M466;
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).
(2)Loads specif ied pallet.
Set the pallet number to the macro variable #100, and command M466.
You can select by setting of the machine parameter No.08068 whether to stop the
machine with an alarm or not, if specif ied pallet isn't ready or the machine reser ve
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 table (preparation for unloading).

M609 Individual Pallet Unloading


□ Machine Type
Machines other than following.
D300 / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1 / T2 / T4 / MCC
/ MCD

□ 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.

0844A-1502EN 129
Specification of M Codes

M609 Individual Pallet Unloading


□ Machine Type
V33i / V56i / V77

□ Explanation
This M code is used in the one-touch function DNC program to unload the pallet.

M609 Individual Pallet Unloading


□ Machine Type
D300

□ 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.

M610 Step Retract


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
Retracts Step(Lift)

M610 AAC Step Retract


□ Machine Type
MCC / MCD

□ 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.

M611 Step Advance


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
Advances Step(Down)

M611 AAC Step Advance


□ Machine Type
MCC / MCD

□ 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.

130 0844A-1502EN
Specification of M Codes

M612 Workpiece Change


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ 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;

M612 Workpiece Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ 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;

M613 Workpiece Unload


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M613;

□ Explanation
Moves workpiece from table to AWC stocker.

□ Program Example
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M613;

0844A-1502EN 131
Specification of M Codes

M614 Workpiece Load


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ 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;

M620 Travel Limit Valid


□ Machine Type
Machines other than following.
V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1 / T2 / T4

□ 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.

M621 Travel Limit Invalid


□ Machine Type
Machines other than following.
V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1 / T2 / T4

□ Explanation
Stroke limit is ignored temporarily.

M624 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M630 Axis Retract Position at ATC


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ 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.

132 0844A-1502EN
Specification of M Codes

M631 Change Workpiece Selection Command


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Program
M631 S Work Number ;

□ Explanation
The function is the same as W command.
Workpiece in the AWC magazine specif ied 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;

M631 AWC Index Work Selection Command


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M631 S Work Number ;

□ Explanation
Select work that loaded by load command.

□ Program Example
M631 S1;

M632 AWC index


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Index demand is transmitted to AWC

□ Program Example
W1;(No.1)
M612;

M633 Auto Front Door Close


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Close front door.

0844A-1502EN 133
Specification of M Codes

M634 Auto Front Door Open


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Open front door.

M635 ATC Prohibition Mode OFF


□ Machine Type
All Machine Type

□ Explanation
Releases prohibition of the execution of ATC set by M636

M636 ATC Prohibition Mode ON


□ Machine Type
All Machine Type

□ Explanation
Prohibits execution of ATC operations

M638 ATC Shutter Close


□ Machine Type
Machines other than following.
V22 / A99E / A100E

□ Explanation
Closes ATC shutter.

M638 ATC Shutter / Cover Close


□ Machine Type
V22

□ Explanation
Closes ATC shutter / cover.

M639 ATC Shutter Open


□ Machine Type
Machines other than following.
V22 / A99E / A100E

□ Explanation
Opens ATC shutter.

M639 ATC Shutter / Cover Open


□ Machine Type
V22

□ Explanation
Opens ATC shutter / cover.

134 0844A-1502EN
Specification of M Codes

M640 Air Cut Mode OFF


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E
/ A100E / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Turns off air cut mode.

M641 Air Cut Mode ON


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E
/ A100E / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Turns on air cut mode.

M642 Program Number Notice


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Write program number to macro variable #100 after get program number from
the robot.

M643 Machining Workpiece Conf irm


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ 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
a61nx / G7

□ Explanation
Opens APC shutter without waiting for DEN and returns FIN immediately.

0844A-1502EN 135
Specification of M Codes

M661 ATC & B Axis Simultaneous Operation


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ 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.

Do not command any code excepting M10/M11, between the


M661 and M662.
M661 must be used together with M662.

M662 ATC & B Axis Simultaneous Operation End Check


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Program
G91 G28 Z0;
G28 Y0 M661;
M11;
G90 G01 B___ F___;
M10;
M662;
:

□ Explanation
Checks completion of tool change specified by M661.

Do not command any code excepting M10/M11, between the


M661 and M662.
M661 must be used together with M662.

M663 M Code for ATC


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
This M code is used in the ATC subprogram.

136 0844A-1502EN
Specification of M Codes

M666 Automatic Tool Change


□ Machine Type
D500

□ 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.
The typical content is as follows:
(a) Coolant is stopped.
(b) Orients and stops the spindle.
(c) Exchanges the spindle tool.
(d) Resumes coolant.

There is the one which does not return according to the version
of the model and software either about the coolant.

M666 M Code for ATC


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
This M code is used in the ATC subprogram.

0844A-1502EN 137
Specification of M Codes

M666 Automatic Tool Change


□ Machine Type
D300 / D800Z

□ 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.
The typical content is as follows:
(a) Coolant is stopped.
(b) Orients and stops the spindle.
(c) Exchanges the spindle tool.
(d) Resume

M666 is tool change command to shorten cycle time.


M666 does not perform A-axis and X-axis move. Z-axis and Y-axis move is
performed.

□ Program Example
M319;
G91 G28 Z0;
G91 G28 A0 M13;
M12;
M666;

Move the spindle to the safe position before M666 command.


There is the one which does not return according to the version
of the model and software either about the coolant.

M667 Spindle Tool Exist Coherent Check


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Check The spindle tool exist and coherent.

M670 Pallet Clamp


□ Machine Type
MCC

□ Explanation
Pallet Clamp(Setting f inish)

□ Program Example
M670;

138 0844A-1502EN
Specification of M Codes

M671 Pallet Unclamp


□ Machine Type
MCC

□ Explanation
Pallet Unclamp(Setting standby)

□ Program Example
M671;

M680 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M683 APC Prohibition Mode OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ Explanation
Releases prohibition of the execution of APC

M684 APC Prohibition Mode ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ Explanation
Prohibits execution of APC operations

M685 Work Clamp Check Mode OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Work clamp (WKCLP) check mode is disabled.
And M02, M30 and emergency switch can disable this mode.

M686 Work Clamp Check Mode ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Work clamp (WKCLP) check mode is enabled.
And M02, M30, M685 and emergency switch can disable this mode.

0844A-1502EN 139
Specification of M Codes

M687 Vacuum Pipe Valve Off (Pipe OPEN)


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
Set vacuum pipe to OPEN by turned off the vacuum pipe valve(SL1684).

□ Program Example
M687;

M688 Vacuum Pipe Valve On (Pipe CLOSE)


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
Set vacuum pipe to CLOSE by turned on the vacuum pipe valve(SL1684).

□ Program Example
M688;

M690 Index Table Pallet


□ Machine Type
T4

□ Explanation
Index table pallet.

M706 Angle Plate/Table/RWH/SG Cleaning Coolant OFF (D)


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns off angle plate/table/RWH/SG cleaning coolant.

M707 Angle Plate/Table/RWH/SG Cleaning Coolant ON


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on angle plate/table/RWH/SG cleaning coolant.

M708 Additional Nozzle Coolant ON


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on additional nozzle coolant.

140 0844A-1502EN
Specification of M Codes

M709 Stop Coolant before Axis Positioning is Completed


□ Machine Type
All Machine Type

□ Program
G01 X___ Y___ F___ M709;

□ Explanation
Stops all the coolant without waiting for the end of travel command distribution
(DEN) signal.

M710 Mist Collector OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the mist collector.

M711 Mist Collector ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the mist collector.

M722 Stylus Cleaning Air OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off Stylus Cleaning Air.

M723 Stylus Cleaning Air ON


□ Machine Type
All Machine Type

□ Explanation
Turns on Stylus Cleaning Air.

M724 Overhead Shower Coolant OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the high power (ceiling) coolant.

0844A-1502EN 141
Specification of M Codes

M725 Workpiece Rotation Stop


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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:

[When M725 is specif ied, the one-revolution signal is already ON]


M725 finishes after the signal is turned off once and turned on again.

[When M725 is specif ied, the one-revolution signal is OFF]


M725 finishes after the signal is turned on.

M726 Workpiece Forward Start


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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).

M728 Workpiece Reverse Start


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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).

M729 Workpiece Speed Set


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Specifies rotation speed of the workpiece.
The speed is specified with S in the same block as where the M code is specif ied.
Range of S is from 1 to 100 [min-1].
This code is effective only when the workpiece is stopped.

142 0844A-1502EN
Specification of M Codes

M732 Coolant Pressure Setting 1


□ Machine Type
Machines other than following.
MAG3 / T4

□ Program
1. For 4-Step Pressure Changeover
M732;

2. For 7 or 15-Step Pressure Changeover, Or High-pressure coolant unit made by


NIKUNI
M732 S Coolant Pressure ;

□ Explanation
1. For 4-Step Pressure Changeover
Coolant is turned on with pressure setting 1.

2. For 7 or 15-Step Pressure Changeover, Or High-pressure coolant unit made by


NIKUNI
Coolant pressure is commanded.

□ Program Example
1. For 4-Step Pressure Changeover
M732;

2. For 7 or 15-Step Pressure Changeover, Or High-pressure coolant unit made by


NIKUNI
M732 S1;

M733 Coolant Pressure Setting 2


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Coolant is turned on with pressure setting 2 if two or more pressure levels are
available.

M734 Coolant Pressure Setting 3


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Coolant is turned on with pressure setting 3 if two or more pressure levels are
available.

M735 Coolant Pressure Setting 4


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Coolant is turned on with pressure setting 4 if two or more pressure levels are
available.

0844A-1502EN 143
Specification of M Codes

M736 Lighting ON
□ Machine Type
All Machine Type

□ Explanation
Turns on the machine light.

M737 Lighting OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the machine light.

M740 Internal Conveyor OFF


□ Machine Type
All Machine Type

□ Explanation
Stops the inner chip conveyor.

M741 Internal Conveyor ON


□ Machine Type
All Machine Type

□ Explanation
Starts the inner chip conveyor.

M742 Oil Skimmer OFF


□ Machine Type
All Machine Type

□ Explanation
Stops the oil skimmer.

M743 Oil Skimmer ON


□ Machine Type
All Machine Type

□ Explanation
Starts the oil skimmer.

M745 Spindle Upper Nozzle Coolant ON


□ Machine Type
MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on spindle upper nozzle coolant.

M747 Measuring Head Cleaning Air ON


□ Machine Type
All Machine Type

□ Explanation
Supplies measuring head cleaning air for one second in the automatic measuring
macro program.

144 0844A-1502EN
Specification of M Codes

M748 IMM Cleaning Air ON


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Turns on IMM cleaning air.

M749 IMM Cleaning Air OFF


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Turns off IMM cleaning air.

M750 IMM Cleaning Air ON Mode


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Turns on the IMM cleaning air on mode.
In this mode, the cleaning air is turned on during automat ic operation while the
spindle is rotated.

M751 IMM Cleaning Air OFF Mode


□ Machine Type
Machines other than following.
MAG3 / T4

□ Explanation
Turns off M750 mode.

M754 Base Coolant ON


□ Machine Type
Machines other than following.
V22 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on base coolant.

M755 Cleaning Telescopic-Cover Coolant ON


□ Machine Type
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns on coolant for telescopic cover.

M756 Air Blow ON


□ Machine Type
All Machine Type

□ Explanation
Turns on air blow.

0844A-1502EN 145
Specification of M Codes

M757 Telescopic-Cover Coolant OFF


□ Machine Type
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns off coolant for telescopic cover.

M757 Base Coolant OFF


□ Machine Type
Machines other than following.
V22 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turns off base coolant.

M775 Tool Cleaning Air OFF


□ Machine Type
All Machine Type

□ Explanation
Used in the tool length automatic measuring macro program. Turns off tool
cleaning air.

M776 Tool Cleaning Air ON


□ Machine Type
All Machine Type

□ Explanation
Used in the tool length automatic measuring macro program. Turns on tool
cleaning air.

M781 Coolant Amount Set to Standard


□ Machine Type
T1 / T2 / T4

□ Explanation
Sets amount of through spindle coolant to standard.

M782 Coolant Amount Set to Large


□ Machine Type
T1 / T2 / T4

□ Explanation
Sets amount of through spindle coolant to high.

M783 Workpiece Rotation Mode (D)


□ Machine Type
Machines other than following.
MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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.

146 0844A-1502EN
Specification of M Codes

M786 Cutting Surface Cleaning Air OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off Cutting Surface Cleaning Air

M787 Cutting Surface Cleaning Air ON


□ Machine Type
All Machine Type

□ Explanation
Turns on Cutting Surface Cleaning Air

M790 Oil Amount Set to Small (MQL)


□ Machine Type
All Machine Type

□ Explanation
Sets amount of oil on MQL to low.

M791 Oil Amount Set to Standard (MQL)


□ Machine Type
All Machine Type

□ Explanation
Sets amount of oil on MQL to standard.

M792 Oil Amount Set to Large (MQL)


□ Machine Type
All Machine Type

□ Explanation
Sets amount of oil on MQL to high.

M793 Mist Pressure Set to High (MQL)


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Explanation
Sets mist pressure on MQL to high.

M794 Mist Pressure Set to Standard (MQL)


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1
/ T2 / T4

□ Explanation
Sets mist pressure on MQL to standard.

0844A-1502EN 147
Specification of M Codes

M795 Through Spindle Coolant Off Without Remove


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
Through spindle coolant is stopped.
The coolant is not removed in this command.

□ Program Example
M795

M800 Flange Cleaning Air ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MCC / MCD

□ Explanation
Turns the flange cleaning air on.

M810 Grinding Nozzle Retract


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Grinding nozzle retract.

M811 Grinding Nozzle Advance


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Grinding nozzle advance.

M812 Spindle Nose Nozzle Coolant Off


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Spindle Nose Nozzle Coolant Off

M813 Spindle Nose Nozzle Coolant On


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Spindle Nose Nozzle Coolant On

M850 Release Central Coolant Pause Mode


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M

□ 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.

148 0844A-1502EN
Specification of M Codes

M851 Central Coolant Pause Mode


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M

□ Explanation
Stop the central coolant pump.

Cannot use the coolant which turned on by central coolant pump


at M851 mode.

M852 Flexible Synchronize 1 Enable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 1(MTA) Enable.

M853 Flexible Synchronize 1 Disable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 1(MTA) Disable.

M854 Flexible Synchronize 2 Enable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 2(MTB) Enable.

M855 Flexible Synchronize 2 Disable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 2(MTB) Disable.

M856 Flexible Synchronize 3 Enable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 3(MTC) Enable.

M857 Flexible Synchronize 3 Disable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 3(MTC) Disable.

0844A-1502EN 149
Specification of M Codes

M858 Flexible Synchronize 4 Enable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 4(MTD) Enable.

M859 Flexible Synchronize 4 Disable (D)


□ Machine Type
All Machine Type

□ Explanation
Set flexible synchronize 4(MTD) Disable.

M860 Chuck Cleaning Coolant OFF


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Chuck Cleaning Coolant OFF

□ Program Example
M860

M861 Chuck Cleaning Coolant ON


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Chuck Cleaning Coolant ON

□ Program Example
M861

M862 Chuck Cleaning Air OFF


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Chuck Cleaning Air OFF

□ Program Example
M862

M863 Chuck Cleaning Air ON


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Chuck Cleaning Air ON

□ Program Example
M863

150 0844A-1502EN
Specification of M Codes

M864 Tool Cleaning Air/Coolant OFF


□ Machine Type
MCC / MCD

□ Explanation
S code with M code stops each Air/Coolant.
M864; Tool Cleaning Air /Coolant OFF
M864 S1; Tool Cleaning Air OFF
M864 S2; Tool Cleaning Coolant OFF

M865 Tool Cleaning Air/Coolant ON


□ Machine Type
MCC / MCD

□ Explanation
S code with M code starts each Air/Coolant.
M865; Tool Cleaning Air /Coolant ON
M865 S1; Tool Cleaning Air ON
M865 S2; Tool Cleaning Coolant ON

M866 Tool Cleaning Nozzle Retract


□ Machine Type
MCC / MCD

□ Explanation
Tool Cleaning Nozzle is Retracted.

M867 Tool Cleaning Nozzle Advance


□ Machine Type
MCC / MCD

□ Explanation
Tool Cleaning Nozzle is Advanced.

M880 Programmable Coolant Nozzle OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turns off programmable coolant nozzle.

M881 Drawing Pump OFF


□ Machine Type
Machines other than following.
V99 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 /
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn Drawing Pump OFF.

□ Program Example
M881;

0844A-1502EN 151
Specification of M Codes

M882 Drawing Pump ON


□ Machine Type
Machines other than following.
V99 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 /
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn Drawing Pump ON.

□ Program Example
M882;

M883 Angle Head Coolant ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
Turns the angle head coolant on.

M884 Inner Chip Conveyor Speed Setting


□ Machine Type
MAG3 / T4

□ 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
Commanded speed is changed to Machine Parameter No.07075 speed by follow
action.
(1)M2/M30 Command
(2)Emergency Stop
(3)Machine Power Off

M885 Angle Head Support Pin Cleaning Air ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Explanation
Turns the angle head support pin cle aning air on.

M885 Tool Cleaning Air 2 ON


□ Machine Type
MCD

□ Explanation
Turns on tool cleaning air 2.

152 0844A-1502EN
Specification of M Codes

M886 Terrace Cleaning Coolant OFF


□ Machine Type
D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E /
MAG1

□ Explanation
Turns off terrace cleaning coolant.

M887 Terrace Cleaning Coolant ON


□ Machine Type
D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E /
MAG1

□ Explanation
Turns on terrace cleaning coolant.

M888 Standard Amount of Mist Air (MQL)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ Explanation
Set amount of mist air standard.

M889 Fewer Amount of Mist Air (MQL)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1

□ Explanation
Set amount of mist air fewer.

M890 Nozzle Coolant OFF


□ Machine Type
All Machine Type

□ Explanation
Turns the nozzle coolant off.

M893 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M894 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 153
Specification of M Codes

M895 Increase Air OFF (MQL)


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
The increase air of the mist generation device is turned off.

M896 Increase Air ON (MQL)


□ Machine Type
MAG3 / T1 / T2 / T4

□ Explanation
The increase air of the mist generation device is turned on.

M897 Coolant Pause Release


□ Machine Type
All Machine Type

□ Explanation
When coolant pause switch (Coolant ON/OFF) is pushed, coolant pause can be
released by this M code.

M898 Attachment Lubrication Off


□ Machine Type
MCC / MCD

□ 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.

M899 Attachment Lubrication On


□ Machine Type
MCC / MCD

□ 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.

M902 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M903 M Code to Generate Alarm


□ Machine Type
All Machine Type

□ Explanation
Use this M code when the alarm is generated in the macro program.

154 0844A-1502EN
Specification of M Codes

M904 Tool Length Measuring Calibration


□ Machine Type
All Machine Type

□ Program
M904 S___;

□ Explanation
This M code is used in tool measuring program.
Input/Output the calibration data of tool measuring.

S0: Read data


S1: Write data
S2: Delete data
S3: Delete All data

M905 Workpiece Automatic Measuring Calibration


□ Machine Type
All Machine Type

□ Program
M905 S___ T___;

□ Explanation
This M code is used in automatic work measuring program.
Input/Output the calibration data of automatic workpiece measuring.

S0: Read data


S1: Write data
S2: Delete data
S3: Delete All data

When some probes are used, the probe is specified by T code.

M906 Radical Mode Calculation


□ Machine Type
All Machine Type

□ Explanation
M code for radical mode calculation.

M907 Get Skip Position


□ Machine Type
All Machine Type

□ Explanation
Use in setting measuring
Get skip position

□ Program Example
M907

0844A-1502EN 155
Specification of M Codes

M908 Get Probe Displacement


□ Machine Type
All Machine Type

□ Program
M908;
G53

□ Explanation
Get probe displacement and set to macro value.

M910 Workpiece Automatic Measuring Mode Cancel


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the workpiece automatic measuring macro program.
It cancels the workpiece automatic measuring mode.

M911 Measuring Head Alarm Check


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the workpiece automatic measuring macro program.
It checks whether or not the measuring head batter y is OFF.
If the battery is ON, an alarm occurs.

M912 Tool Length Measuring Mode Setting


□ Machine Type
All Machine Type

□ 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
M912 :Finish single edge detection

(2) Measuring unit is made by Renishaw


Select measuring mode.
M912 :Tool measuring mode
M912S1 :Latch mode
M912S2 :High speed tool broken detection mode

156 0844A-1502EN
Specification of M Codes

M919 Machined Piece Count


□ Machine Type
All Machine Type

□ 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 specif ied, it is added or subtracted to the tool life on the tool data
screen.
If M919 is specif ied 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. 01028.

□ 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;

0844A-1502EN 157
Specification of M Codes

M920 Tool Length Measurement Data Read


□ Machine Type
All Machine Type

□ 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 i s merged with that data.
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;

M920 functions correctly only when FTN mode is ON.


If PTN mode is ON, M920 writes data into tool data of all the pots
including a tool number specified.

158 0844A-1502EN
Specification of M Codes

M921 Tool Radius Measurement Data Read


□ Machine Type
All Machine Type

□ 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;

M921 functions correctly only when FTN mode is ON.


If PTN mode is ON, M921 writes data into tool data of all the pots
including a tool number specified.

0844A-1502EN 159
Specification of M Codes

M922 M920, M921 Data Incremental Mode


□ Machine Type
All Machine Type

□ 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 momentar y, it must be specified before M920 or M921 every time.

□ Program Example
O1234;
T1;
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;

160 0844A-1502EN
Specification of M Codes

M925 Ring Sensor Monitor Mode OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

M926 Ring Sensor Monitor Mode ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.

M938 Rak rak checker Auto/Manual Select


□ Machine Type
All Machine Type

□ Explanation
Used in the macro program for Rak rak checker.

M939 Rak rak checker End


□ Machine Type
All Machine Type

□ Explanation
Used in the macro program for Rak rak checker.

0844A-1502EN 161
Specification of M Codes

M940 Auto End with NG Workpiece Measurement Result


□ Machine Type
All Machine Type

□ 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 t ool.

M941 MP7 Measuring Head Check


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the automatic measuring macro program.
For a workpiece automatic measuring system, the communication status between
the probe and receiver, and skip signal status are output to the macro variables.

M946 Spindle Tool Pot No. Output to Macro


□ Machine Type
All Machine Type

□ 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.

M947 Next Tool Pot No. Output to Macro


□ Machine Type
All Machine Type

□ 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 prev enting
pre-reading such as G53.

162 0844A-1502EN
Specification of M Codes

M948 M Code for ATC


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
This M code is used in the ATC macro program.

M950 Non Contact Type Measurement Device Zero Set


□ Machine Type
V22 / V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

M951 Blum Bore Gauge Start


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.01117.
Refer to follow table for macro value of input/output.
Function Macro Value(Input) Macro Value(Output)
Name
Measuring #101=1. #105= Result
#102= Head Number #106= Measuring
#108= Point Number Result(Unit:0.1um)
#107= Batter y Remain(Unit:%)
Calibration #101=2. #105= Result
#102= Head Number #106= Calibration Result
#108= Point Number (Unit:0.1um)
Write #101=3. #105= Result
Parameter #102= Head Number
#103= Parameter Number
(4:Gauge Compensation,6:Head
Number)
#104= Parameter Setting Value
(Gauge Compensation
(Unit:1um))
Read #101=4. #105= Result
Parameter #102= Head Number #106= Parameter Setting Value
#103= Parameter Number (Gauge Compensation
(4:Gauge Compensation, (Unit:1um)
5:Calibration, 6:Head Number) ,Calibration (Unit:0.1um))
Read Head #101=5. #105= Result

0844A-1502EN 163
Specification of M Codes

Number #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] GOTO100; <-- If result is not 0
IF[#106 GE 300.] GOTO110; <-- If measuring result is greater than
+30.0um
IF[#106 LE -300.] GOTO110; <-- If measuring result is less than -30.0um

M956 Linear Gauge Type(Absolute Scale) Tool Measurement


□ Machine Type
V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

M963 Measuring Probe Power OFF & Check


□ Machine Type
All Machine Type

□ 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.

M964 Measuring Probe Power ON & Check


□ Machine Type
All Machine Type

□ 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.

M965 Measuring Probe Power OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the power for measuring head.

M966 Measuring Probe Power ON


□ Machine Type
All Machine Type

□ Explanation
Turns on the power for measuring head.

164 0844A-1502EN
Specification of M Codes

M968 Cutting Condition Auto Select


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the macro program for FF-PATH.

M971 Second Measuring Unit Cover Close


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Closes the cover for the second measuring unit.

M972 Second Measuring Unit Cover Open


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Opens the cover for the second measuring unit.

M977 Image Tool Measure Tool Cleaning Air OFF


□ Machine Type
Machines other than following.
FB127 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1
/ MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Stop image tool measure tool cleaning air.

M978 Image Tool Measure Tool Cleaning Air ON


□ Machine Type
Machines other than following.
FB127 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1
/ MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Blow image tool measure tool cleaning air.

M984 High Speed Counter Type Tool Measurement


□ Machine Type
V22 / V33i / V56i / V77 / iQ300 / FB127

□ Explanation
This M code is used in tool measurement macro program.

0844A-1502EN 165
Specification of M Codes

M994 Rotar y Axis Coordinate Calculation Function


□ Machine Type
All Machine Type

□ Explanation
This M code is used in the macro program for the rotary axis coordinate calculate
function.

M1100 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1101 Enable IAC


□ Machine Type
All Machine Type

□ Explanation
The indexing accuracy of the tilting axis to the workpiece weight is optimized.

M1102 Ditch processing mode OFF


□ Machine Type
D300 / D500 / D800Z

□ Explanation
Ditch processing mode by continuous yen movement OFF

M1103 Ditch processing mode ON


□ Machine Type
D300 / D500 / D800Z

□ Explanation
Ditch processing mode by continuous yen movement ON

M1104 Chopping Stop


□ Machine Type
All Machine Type

□ Explanation
Stop chopping.

M1105 Chopping Start


□ Machine Type
All Machine Type

□ Program
M1105 S___;

□ Explanation
Start chopping at the movement distance specified by S code.
The speed is set by machine parameter No.05153.

166 0844A-1502EN
Specification of M Codes

M1108 Enable IAC


□ Machine Type
All Machine Type

□ Explanation
[a51nx,a61nx,D300,D500,V33i-5XB,V56i-5XB]
IAC data becomes enabled.
[D800Z]
IAC-E, IAC-E(T ilt 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.

M1109 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1110 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1111 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1112 Rotation axes compensation of TCP OFF


□ Machine Type
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Rotation axis correction off.

M1113 Rotation axes compensation of TCP ON


□ Machine Type
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Rotation axis correction on.

M1114 Smooth control of tool posture control OFF


□ Machine Type
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Smooth control off.

0844A-1502EN 167
Specification of M Codes

M1115 Smooth control of tool posture control ON


□ Machine Type
D300 / D500 / D800Z / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Smooth control on.

M1116 Preparations for High Accuracy Machining (Accuracy Check)


□ Machine Type
All Machine Type

□ Program
M1116 S Feed Axis Number ;

□ Explanation
This M code is for our f ield service.
Only the accuracy check in the preparations for high accuracy machining is
performed for the feed axis specified by S code.

Feed Axes move within the range of 20[mm] ([deg]).


Feed rate override is fixed by 100% while operating.
Take care about interference.

M1117 Preparations for High Accuracy Machining


□ Machine Type
All Machine Type

□ Program
M1117 S Feed Axis Number ;

□ Explanation
Preparations for high accuracy machining is performed for the feed axis specif ied
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.

Feed Axes move within the range of 20[mm] ([deg]).


Feed rate override is fixed by 100% while operating.
Take care about interference.

M1118 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

168 0844A-1502EN
Specification of M Codes

M1119 Axis Composition Change Request for 5-Axis Machining Function (D)
□ Machine Type
All Machine Type

□ Program
M1119 S Specify Number ;

□ Explanation
Request Axis Composition Change for 5-Axis Machining Function

M1120 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1121 Smooth control of Tool Center Point Control ON


□ Machine Type
All Machine Type

□ Program
M1121;

□ Explanation
Smooth control of Tool Center Point Control ON

M1122 Fairing OFF


□ Machine Type
All Machine Type

□ Program
M1122;

□ Explanation
Fairing OFF

M1123 Fairing ON
□ Machine Type
All Machine Type

□ Program
M1123;

□ Explanation
Fairing ON

M1126 Active Damping Function OFF (D)


□ Machine Type
All Machine Type

□ Explanation
All axes that have been turned on are turned off.

0844A-1502EN 169
Specification of M Codes

M1127 Active Damping Function ON (D)


□ Machine Type
All Machine Type

□ 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.18007).

M1130 Cut Type Change Request (D)


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Program
M1130 S Cut Type

□ Explanation
Change Cut Type.

M1156 Tool Offset Data Transfer Command for Composite Tool


□ Machine Type
All Machine Type

□ Program
M1156;

□ Explanation
Transfers all cutter's tool offset data at a time.

M1191 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1192 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1193 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

170 0844A-1502EN
Specification of M Codes

M1194 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1197 Flexible Synchronize Auto Phase Adjustment


□ Machine Type
All Machine Type

□ Program
M1197 S Group Number ;

□ Explanation
Execute flexible shynchronize auto phase adjustment.
If fielxbiel shynchronize is disable, no action.

M1300 Whetstone Change OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn off whetstone change.

M1301 Whetstone Change ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn on whetstone change.

M1302 Air Spindle Air OFF


□ Machine Type
D300 / D500 / D800Z / V33i / V56i / iQ300 / MCC / MCD

□ Explanation
Air spindle air off

□ Program Example
M1302;

M1303 Air Spindle Air ON


□ Machine Type
D300 / D500 / D800Z / V33i / V56i / iQ300 / MCC / MCD

□ Explanation
Air spindle air on

□ Program Example
M1303;

0844A-1502EN 171
Specification of M Codes

M1304 Axis Brake Off (D)


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn axis brake off.

M1305 Axis Brake On (D)


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn axis brake on.

M1306 Air Spindle Pressure 1


□ Machine Type
MCC / MCD

□ Explanation
Air Spindle Pressure 1 is selected.

□ Program Example
M1306;

M1307 Air Spindle Pressure 2


□ Machine Type
MCC / MCD

□ Explanation
Air Spindle Pressure 2 is selected.

□ Program Example
M1307;

M1308 Air Spindle Pressure 3


□ Machine Type
MCC / MCD

□ Explanation
Air Spindle Pressure 3 is selected.

□ Program Example
M1308;

M1309 Air Spindle Pressure 4


□ Machine Type
MCC / MCD

□ Explanation
Air Spindle Pressure 4 is selected.

□ Program Example
M1309;

172 0844A-1502EN
Specification of M Codes

M1310 Spindle Speed Limitation Disable at Spindle Idling


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG1 / MAG3 / T1 / T2 / T4

□ Explanation
Disables spindle speed limitation at spindle idling.
S-code more than maximum spindle speed at spindle idling is enabled, but
spindle cannot start.

M1311 Spindle Speed Limitation Enable at Spindle Idling


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG1 / MAG3 / T1 / T2 / T4

□ 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.

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.

M1318 Release Feed Axis Oil Controller Pause


□ Machine Type
D500

□ Explanation
The feed axis oil controller which has been pausing with M1319 restarts.

0844A-1502EN 173
Specification of M Codes

M1319 Feed Axis Oil Controller Pause


□ Machine Type
D500

□ 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
Control Mode OFF
□ Machine Type
D500

□ Program
M1324;

□ Explanation
Disables feed axis additional oil controller differential temperature control mode.

M1325 Feed Axis Additional Oil Controller (By Temperature) Differential Temperature
Control Data Output
□ Machine Type
D500

□ 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.

M1328 Electric attachment spindle connector cover open


□ Machine Type
D500

□ Explanation
It is open command of the connector cover of electric attachment spindle.

174 0844A-1502EN
Specification of M Codes

M1329 Electric attachment spindle connector cover close


□ Machine Type
D500

□ Explanation
It is close command of the connector cover of electric attachment spindle.

M1330 Electric attachment spindle speed set


□ Machine Type
D500

□ Program
M1330 S Speed ;

□ Explanation
Set speed of Electric attachment spindle.

M1331 Electric attachment spindle positive start


□ Machine Type
D500

□ Explanation
It is electric attachment spindle rotation command.

M1332 Electric attachment spindle reverse start


□ Machine Type
D500

□ Explanation
It is electric attachment spindle reverse-rotation command.
The direction of the rotation cannot be changed while rotating.

M1333 Electric attachment spindle stop


□ Machine Type
D500

□ Explanation
It is electric attachment spindle stop command.

M1334 Electric attachment spindle proofreading


□ Machine Type
D500

□ Explanation
It is electric attachment spindle proofreading rotation command.

0844A-1502EN 175
Specification of M Codes

M1335 Strong Clamp Mode OFF


□ Machine Type
All Machine Type

□ 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.

M1336 Strong Clamp Mode ON


□ Machine Type
All Machine Type

□ 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.).

M1337 Clamp Ignore Mode OFF


□ Machine Type
All Machine Type

□ 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.

M1338 Clamp Ignore Mode ON


□ Machine Type
All Machine Type

□ Explanation
The clamp ignore mode is turned on.
When the clamp ignore mode is turned on by the unclamp condition, clamp
operation is disabled.

176 0844A-1502EN
Specification of M Codes

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
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;

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 specif ied 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.)

0844A-1502EN 177
Specification of M Codes

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 specif ied 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.)

M1343 AST3 Study Function Off


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Program
M1343

□ Explanation
Turns OFF AST3 Study Mode Function

M1344 AST3 Study Function On


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Program
M1344 S Radial Cutting Force Coefficient T Axial Cutting Force Coeff icient ;

□ 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.03325 and No.03326 are used as
coefficient.

M1348 AST Recording Function Continue


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
Releases pause of AST Recording Function.

178 0844A-1502EN
Specification of M Codes

M1349 AST Recording Function Pause


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
Pauses AST Recording Function.

M1350 Air Spindle Running Start


□ Machine Type
D300 / D500 / D800Z / V33i / V56i / iQ300

□ Program
M1350

□ Explanation
Air spindle is started at running speed.

M1351 AST Playback Function OFF


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ 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;

M1352 AST Playback Function ON


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ 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;

0844A-1502EN 179
Specification of M Codes

M1353 Spindle Load/Vibration Record Disable


□ Machine Type
All Machine Type

□ Explanation
Disable Spindle Load/V ibration Record

M1354 Spindle Load/Vibration Record Enable


□ Machine Type
All Machine Type

□ Explanation
Enable Spindle Load/Vibration Record

M1400 3D Crash Avoidance Mode Off


□ Machine Type
All Machine Type

□ Explanation
3D Crash Avoidance Mode Off

□ Program Example
M1400;

M1401 3D Crash Avoidance Mode On


□ Machine Type
All Machine Type

□ Explanation
3D Crash Avoidance Mode On

□ Program Example
M1401;

M1402 Tool Shape Setting for 3D Crash Avoidance


□ Machine Type
All Machine Type

□ Explanation
Tool Shape Setting for 3D Crash Avoidance Function

□ Program Example
M1402 S_;

M1403 3D Crash Avoidance Relation Setting Change


□ Machine Type
All Machine Type

□ Explanation
The change in the setting related to 3D Crash Avoidance function is reflected.

□ Program Example
M1403;

180 0844A-1502EN
Specification of M Codes

M1404 Z Axis Collision Avoidance Setting


□ Machine Type
All Machine Type

□ Program
M1404 S__ T__;

□ Explanation
Sets Z Axis Collision Avoidance.

If non-zero S-code is commanded:


The level of the upper plane of the limitation area used with the Z Axis Collision
Avoidance function is set at the height specified by the S -code, after which Z Axis
Collision Avoidance function turns on.
The reference position of Z axis of limitation area is specified by T.

If S=0 or no S-code is commanded:


Turns off the Z Axis Collision Avoidance function.
If T=0 or no T-code is commanded:
Machine parameter No.02064 is used as reference position.

M1410 Mode OFF for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1410;

□ Explanation
Collision safe guard is made invalid.

□ Program Example
M1410;

M1411 Mode ON for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1411;

□ Explanation
Collision safe guard is made effective.

□ Program Example
M1411;

0844A-1502EN 181
Specification of M Codes

M1412 Tool Data Update Check for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1412;

□ Explanation
Wait for check tool data.

□ Program Example
M1412;

M1413 Workpiece Origin Offset Fitting for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1413 S The number of sub parts "ATTACH" model ;

□ Explanation
Workpiece offset is fit to workpiece model for collision safe guard specif ied by
argument S.
(S: Integer from 0 to 9.)

□ Program Example
M1413 S1;

M1414 Project File Load for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1414 S Loading project file number for collision safe guard ;

□ Explanation
Load project file specif ied by argument S for collision safe guard.
(S: Integer from 0 to 100)

□ Program Example
M1414 S1;

M1415 Project File Save for Collision Safe Guard


□ Machine Type
All Machine Type

□ Program
M1415;

□ Explanation
Save project file for collision safe guard.

□ Program Example
M1415;

182 0844A-1502EN
Specification of M Codes

M1416 Tool Pre-check for Collision Safe Guard


□ Machine Type
All Machine Type

□ 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;

M1417 Workpiece Size Check for Collision Safe Guard


□ Machine Type
All Machine Type

□ 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))

M1420 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1423 Tool length comparison


□ Machine Type
All Machine Type

□ 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. 01162 (or
if the actual tool length is shorter than the standard tool length over the
threshold value, set by the machine param eter No. 01163).

0844A-1502EN 183
Specification of M Codes

M1424 Tool Offset Data File Output


□ Machine Type
All Machine Type

□ Program
M1424 S Program No. ;

□ Explanation
Writes into a text file a part of tool offset memory specif ied by machine
parameter No.12127 and No.12128.

M1425 Signal Lamp OFF


□ Machine Type
All Machine Type

□ Explanation
Turns off the signal lamp if it was turned on by M436 or M437.

M1426 Programmable Load Monitor Function Off


□ Machine Type
All Machine Type

□ Program
M1426;

□ Explanation
The programmable load monitor function that has been started with M1427 or
M1428 is stopped.

M1427 Programmable Load Monitor Function On (Specifying Data No.)


□ Machine Type
All Machine Type

□ 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 specif ied by specifying the sum of the
constant.
Constant Type of Motor
1 Spindle
2 X Axis
4 Y Axis
8 Z Axis
16 4th Axis

184 0844A-1502EN
Specification of M Codes

32 5th Axis

When the following are performed, the overload monitor ends.


- M1426
- M30 or M02
- Emergency stop

□ Program Example
M1427 S3 T5; <-- Overload data setting No. of 3 monitors
spindle and Y axis load
:
Machining Program
:
M1426; <-- Ends overload monitoring

When the spindle load is monitored, an overload may be


erroneously detected by the increase in load caused when the
spindle is started and stopped. Therefore, execute this M code
after the spindle is started, and execute M1426 before the
spindle is stopped.

M1428 Programmable Load Monitor Function On (Specifying Alarm Load)


□ Machine Type
All Machine Type

□ 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.
Constant Type of Motor
1 Spindle
2 X Axis
4 Y Axis
8 Z Axis
16 4th Axis
32 5th Axis

When the following are performed, the overload monitor ends.


- M1426

0844A-1502EN 185
Specification of M Codes

- M30 or M02
- Emergency stop

□ 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

When the spindle load is monitored, an overload may be


erroneously detected by the increase in load caused when the
spindle is started and stopped. Therefore, execute this M code
after the spindle is started, and execute M1426 before the
spindle is stopped.

M1431 Eco Mode


□ Machine Type
All Machine Type

□ Explanation
Change to eco mode specif ied by S code.
Eco mode does OFF if S code is not specif ied or S0 is specified.

M1431 S0; Eco Mode OFF


M1431 S1; Eco Mode ON
M1431 S2; Eco Mode (Custom 1) ON
M1431 S3; Eco Mode (Custom 2) ON

M1432 AC (AST3) OFF


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
Turn OFF AC function of AST3

186 0844A-1502EN
Specification of M Codes

M1433 AC (AST3) ON
□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
Turn ON AC function of AST3

M1434 Feed Axis Lower Load Detection Function OFF


□ Machine Type
All Machine Type

□ Program
M1434;

□ Explanation
The feed axis lower load detection function that has been started with M1435 is
stopped.

0844A-1502EN 187
Specification of M Codes

M1435 Feed Axis Lower Load Detection Function ON


□ Machine Type
All Machine Type

□ 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 specif ied 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.
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

188 0844A-1502EN
Specification of M Codes

M1436 Movable Step Retract


□ Machine Type
T1 / T2

□ Explanation
Retract Movable Step.

M1437 Movable Step Advance


□ Machine Type
T1 / T2

□ Explanation
Advance Movable Step.

M1438 Aux Unit Stop Enable at Special Machining


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ 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.12229 for bit
meaning.

M1439 Aux Unit Stop Disable at Special Machining


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E

□ Program
M1439 S Unit for disable stop function ;

□ Explanation
Disable aux unit stop at special machining

□ Program Example
M1438 S1; (Stop enable for hydraulic unit)

M1438 S3: (Stop enable for hydraulic unit/Spindle oil controller)

M1438; (Stop enable for all)

Set unit for stop enable by S Code. Refer machine parameter No.12229 for bit
meaning.

0844A-1502EN 189
Specification of M Codes

M1440 Clear Program Restart Position Judgment Data Memory


□ Machine Type
All Machine Type

□ 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.

M1441 Store Program Restart Position Judgment Data


□ Machine Type
All Machine Type

□ Program
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.

M1442 Set contact load of tool contact detection


□ Machine Type
All Machine Type

□ 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

190 0844A-1502EN
Specification of M Codes

M1443 Set alarm load of tool contact detection


□ Machine Type
All Machine Type

□ 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

M1444 Tool contact detection mode OFF


□ Machine Type
All Machine Type

□ 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

0844A-1502EN 191
Specification of M Codes

M1445 Tool contact detection mode ON


□ Machine Type
All Machine Type

□ 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
:
(Machining program)
:
M1444; <-- The tool contact detect mode is set to
OFF

M1446 Conf irmation of Spindle Rotation While Cutting Disable Release (D)
□ Machine Type
All Machine Type

□ Program
M1447
G01 Z___ F___;
:
M1446

□ Explanation
The state to disable the confirmation of the spindle rotation while cutting is
released.

M1447 Conf irmation of Spindle Rotation While Cutting Disable (D)


□ Machine Type
All Machine Type

□ Program
M1447
G01 Z___ F___;
:
M1446

□ Explanation
The confirmation of the spindle rotation while cutting is disabled.

192 0844A-1502EN
Specification of M Codes

M1600 Pallet (Workpiece) Load to Transport Device


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Program
M1600 S Load Location ;

□ Explanation
The transport device loads the pallet (workpiece) from the location specif ied 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

M1601 Pallet (Workpiece) Unload from Transport Device


□ Machine Type
Machines other than following.
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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

M1602 Stocker Pallet 1 Lock


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Lock stocker pallet 1.

M1603 Stocker Pallet 1 Unlock


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Unlock stocker pallet 1.

0844A-1502EN 193
Specification of M Codes

M1604 Stocker Pallet 2 Lock


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Lock stocker pallet 2.

M1605 Stocker Pallet 2 Unlock


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Unlock stocker pallet 2.

M1607 Set NC Parameter for Angle Head


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / MCC / MCD

□ Program
M1607

□ Explanation
Executes axis composition change function for angle head.

M1700 Point Cleaning Water Off


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Turns off point cleaning water.

□ Program Example
M1700;

M1701 Point Cleaning Water On


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Turns on point cleaning water.

□ Program Example
M1701;

M1702 Point Cleaning Air Off


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Turns off point cleaning air.

□ Program Example
M1702;

194 0844A-1502EN
Specification of M Codes

M1703 Point Cleaning Air On


□ Machine Type
V22 / V33i / V56i / V77 / V99 / iQ300 / FB127

□ Explanation
Turns on point cleaning air.

□ Program Example
M1703;

M1710 Dresser Coolant OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn off dresser coolant.

M1711 Dresser Coolant ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn on dresser coolant.

M1712 User Coolant OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn off user coolant.

M1713 User Coolant ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Turn on user coolant.

0844A-1502EN 195
Specification of M Codes

M1714 M Code for Through Spindle Coolant Pressure Change


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ 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) ;

(2)Start Getting Pressure(T=2)


Initialize inner data, and start getting pressure value.
M1714 T2;

(3)Get Pressure Value(T=3)


Get Pressure
If macro value 100 is 1, go next output step
M1714 T3;

(4)Check Calibration Complete(T=4)


Check calibration complete
M1714 T4;

M1715 Release Base Coolant Pause


□ Machine Type
All Machine Type

□ Explanation
The base coolant stopped temporarily by M1716 is returned.

M1716 Base Coolant Pause


□ Machine Type
All Machine Type

□ Explanation
The base coolant is stopped temporarily.
The base coolant returns by M1715 or NC reset.

M1717 Overhead Shower Coolant Intermittent Operation


□ Machine Type
Machines other than following.
V22 / V33i / V77 / V99 / iQ300 / FB127

□ Explanation
Overhead shower coolant start at intermittent operation.
ON T ime: Machine Parameter No. 07237
OFF T ime: Machine Parameter No. 07238

M1718 Air OFF on table


□ Machine Type
V56i

□ Explanation
Turn off Air on table

196 0844A-1502EN
Specification of M Codes

M1719 Air ON on table


□ Machine Type
V56i

□ Explanation
Turn on Air on table

M1720 JIG Coolant Off


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
Turn off JIG Coolant

M1721 JIG Coolant On


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
Turn on JIG Coolant

M1722 Stop Block Cleaning Air Off


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
Turn off Stop Block Cleaning Air

M1723 Stop Block Cleaning Air On


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Explanation
Turn on Stop Block Cleaning Air

M1724 Oil Pan Cleaning Coolant Off


□ Machine Type
T4

□ Explanation
Turn off oil pan cleaning coolant.

M1725 Oil Pan Cleaning Coolant On


□ Machine Type
T4

□ Explanation
Turn on oil pan cleaning coolant.

M1726 JIG Cleaning Air OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn JIG Cleaning Air OFF

0844A-1502EN 197
Specification of M Codes

M1727 JIG Cleaning Air ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn JIG Cleaning Air ON

M1728 Room Washing Air Off


□ Machine Type
D500 / V22 / V33i / V56i / V77 / V99

□ Explanation
Room Washing Air Off

M1729 Room Washing Air On


□ Machine Type
D500 / V22 / V33i / V56i / V77 / V99

□ Explanation
Room Washing Air On

M1730 Chuck Air Blow OFF


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn chuck air blow OFF.

M1731 Chuck Air Blow ON


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92

□ Explanation
Turn chuck air blow ON.

M1732 X Axis Cover Oil Pan Cleaning Coolant OFF


□ Machine Type
A99E

□ Explanation
Turns off X Axis Oil Pan Cleaning Coolant

M1733 X Axis Cover Oil Pan Cleaning Coolant ON


□ Machine Type
A99E

□ Explanation
Turns on X Axis Oil Pan Cleaning Coolant

M1734 Through Spindle Coolant Output Frequency Fixation OFF


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Turns off through spindle coolant output frequency fixation.

198 0844A-1502EN
Specification of M Codes

M1735 Through Spindle Coolant Output Frequency Fixation ON


□ Machine Type
V33i / V56i / V77 / V99 / FB127

□ Explanation
Turns on through spindle coolant output frequency fixation.

M1736 Flush Coolant in Machining Chamber ON


□ Machine Type
D300 / D800Z

□ Program
M1736;

□ Explanation
Coolant Start by Large Flowing Quantity for Cleaning in Machining Chamber.

□ Program Example
M1736;

M1737 Oil Amount Set to Shot Frequency(MQL)


□ Machine Type
Machines other than following.
V22 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 /
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Program
M1737 S___;

□ Explanation
Sets amount of oil on MQL to shot frequency.

M1743 Nozzle Coolant Push Out Air


□ Machine Type
D300 / D800Z

□ Program
M1743;

□ Explanation
Nozzle coolant push out air is outputted. About output time, refer to the
following machine parameter.
No. 07202 "Delay T ime until Push Out Air from Nozzle Coolant Starting"
No. 07203 "Output T ime of Push Out Air from Nozzle Coolant"

M1744 Tool Cleaning Coolant OFF


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

0844A-1502EN 199
Specification of M Codes

M1745 Tool Cleaning Coolant ON


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

M1900 In-process Measuring M-Code


□ Machine Type
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / MAG1

□ Program
M1900 S Argument ; T Function Code ;

□ Explanation
This M-Code is for in-process measuring.
Perform the following commands to start measuring.

(1)In-Process Measurement(T=0 or No T Command)


If measuring is started, command follow program.
M1900 S Measuring Judge Pos(1-4) ;
If measuring is ended, command follow program.
If workpiece is not machined to the measuring judgment position at the
command, alarm occurs.
M1900 S0;

(2) Auto Master(T=1)


Execute Auto Master
M1900 T1;

(3) Outside Offset(T=2)


Execute Outside Offset(Plus)
M1900 T2 S Offset Amount ;

(4) Outside Offset(T=3)


Execute Outside Offset(Minus)
M1900 T3 S Offset Amount ;

(5) Write Output Value of Coolant Pressure to Macro(T=4)


Write Output Value that is calculated from pressure in in process measurement
screen on program edit screen to macro value 100.
Command as follow
M1900 T4 S Measuring Judge Pos(1-4) ;
G53;
M26;
M734 S[#100];
M1900 S Measuring Judge Pos(1-4) ;

□ Program Example
M96P Interrupt Program ; <-- Set Interrupt Custom Macro
M1900 S Measuring Judge <-- Set Measuring Judge Pos
Pos ;
Machining Program
M1900 S0; <-- In-process Measuring End
M97; <-- Interrupt Custom Macro OFF

200 0844A-1502EN
Specification of M Codes

M1901 DynaVision mode change


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1901 S mode number ;

□ Explanation
DynaV ision measurement mode change

M1902 DynaVision level change


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1902 S level number ;

□ Explanation
DynaV ision measurement level change

M1903 DynaVision result output


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1903;

□ Explanation
DynaV ision measurement result output

□ Program Example
M1904;
M1903;

M1904 DynaVision measurement start


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1904;

□ Explanation
DynaV ision measurement start

□ Program Example
M1904;
M1903;

0844A-1502EN 201
Specification of M Codes

M1906 DynaVision all reset


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1906;

□ Explanation
DynaV ision all reset

□ Program Example
M1906;

M1907 Image type tool measurement cleaning air off


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1907;

□ Explanation
Image type tool measurement cleaning air off

□ Program Example
M1907;

M1908 Image type tool measurement cleaning air on


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1908;

□ Explanation
Image type tool measurement cleaning air on

□ Program Example
M1908;

202 0844A-1502EN
Specification of M Codes

M1909 Internal use M code


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1909 S monde number ;

□ Explanation
DynaV ision profile output mode change

□ Program Example
M1909 S monde number

M1910 Internal use M code


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1910 S monde number ;

□ Explanation
DynaV ision shortening image mode switch

□ Program Example
M1910 S monde number

M1911 MC alarm generation of image type tool measurement


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1911 S display number ;

□ Explanation
Image type tool measurement machine alarming generation

□ Program Example
M1911 S display number

0844A-1502EN 203
Specification of M Codes

M1912 Image type tool measurement error reset(DynaVision)


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M1912;

□ Explanation
Image type tool measurement error reset(DynaVision)

□ Program Example
M1912;

M1920 Interlock Release Mode OFF at Tool Measurement Unit Cover Open Close
□ Machine Type
Machines other than following.
D500 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1
/ MAG3 / T1 / T2 / T4 / MCC / MCD

□ 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
Machines other than following.
D500 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1
/ MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Interlock is disabled at tool measurement unit cover open close.
If emergency stop switch or reset button is pushed, this mode is released.

M1922 PTIM Power OFF


□ Machine Type
All Machine Type

□ Explanation
VTS Power OFF

M1923 PTIM Power ON


□ Machine Type
All Machine Type

□ Explanation
VTS Power ON

M1924 PTIM command


□ Machine Type
All Machine Type

□ Explanation
VTS command

204 0844A-1502EN
Specification of M Codes

M1925 Image Tool Measure shutter close


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Image Tool Measure shutter close

M1926 Image Tool Measure shutter open


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Image Tool Measure shutter open

M1930 CNC initiative message transmission


□ Machine Type
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99

□ Program
M1930;

□ Explanation
This M code for in the measurement function.

M1931 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1932 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1933 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M1934 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 205
Specification of M Codes

M1940 Tool Shape Automatically Recognition Function: Get Imaging Data


□ Machine Type
D500

□ 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.

M1942 Tool Shape Automatically Recognition Function: Imaging Disable Mode ON


□ Machine Type
D500

□ Explanation
Turn on the imaging disable mode of tool shape automatically recognition
function.

M1943 Tool Shape Automatically Recognition Function: Reset Request


□ Machine Type
D500

□ Explanation
Reset the system of tool shape automatically recognition.
Argument S0 or None: System is not rebooted.
Argument S1: Sysytem is rebooted.

M1945 Tool Shape Automatically Recognition Function: calibration


□ Machine Type
D500

□ Explanation
Calibration sequence of the tool shape automatically recognition is done.

M1960 Measurement Function Set


□ Machine Type
All Machine Type

□ Program
M1960 S Measurement Function ;

□ Explanation
Used in the tool length automatic measuring macro program.

206 0844A-1502EN
Specification of M Codes

M1961 SKIP Signal Detection Result Output


□ Machine Type
All Machine Type

□ Explanation
Used in the tool length automatic measuring macro program.

M1962 Customer Work Measurement Function Enable


□ Machine Type
All Machine Type

□ Explanation
Enable customer work measurement function.

M1963 Customer Tool Measurement Function Enable


□ Machine Type
All Machine Type

□ Explanation
Enable customer tool measurement function.

M1964 Customer Broken Tool Detection Enable


□ Machine Type
All Machine Type

□ Explanation
Enable customer broken tool detection.

M1965 Measurement Special IO Signal Control Disable


□ Machine Type
All Machine Type

□ Explanation
Disable measurement special IO signal control.

M1966 Measurement Special IO Signal Control Enable


□ Machine Type
All Machine Type

□ Explanation
Enable measurement special IO signal control.

M2000 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2001 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 207
Specification of M Codes

M2002 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2003 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2004 3D Crash Avoidance Mode Record & Off


□ Machine Type
All Machine Type

□ Explanation
3D Crash Avoidance Mode Record & Off

□ Program Example
M2004;

M2005 3D Crash Avoidance Mode Resume


□ Machine Type
All Machine Type

□ Explanation
3D Crash Avoidance Mode Resume

□ Program Example
M2005;

M2006 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2007 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2008 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

208 0844A-1502EN
Specification of M Codes

M2009 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2010 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2011 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2012 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2013 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2014 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2015 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2016 VP Control Enable


□ Machine Type
All Machine Type

□ Explanation
Enables the VP Control.

0844A-1502EN 209
Specification of M Codes

M2017 VP Control Disable


□ Machine Type
All Machine Type

□ Explanation
Disables the VP Control.

M2018 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2020 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2021 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2022 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2023 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2024 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2025 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

210 0844A-1502EN
Specification of M Codes

M2026 VP Control Magnif ication Enable (Rotation Axis)


□ Machine Type
All Machine Type

□ Explanation
The VP control for rotational axis is enabled.

□ Program Example
M2026;

M2027 VP Control Magnif ication Disable (Rotation Axis)


□ Machine Type
All Machine Type

□ Explanation
The VP control for rotational axis is disabled.

□ Program Example
M2027;

M2035 Vibration Control(AST4) Enable


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Program
M2035;

□ Explanation
Enable the vibration avoidance control (AST4).

M2036 Vibration Control(AST4) Disable


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Program
M2036;

□ Explanation
Disable the vibration avoidance control (AST4).

M2037 Internal use M code


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
The customer cannot use it.

0844A-1502EN 211
Specification of M Codes

M2038 Internal use M code


□ Machine Type
Machines other than following.
D300 / D500 / D800Z / V22 / V33i / V56i / V77 / V99 / iQ300 / FB127 / A99E /
A100E / MCC / MCD

□ Explanation
The customer cannot use it.

M2039 Internal use M code


□ Machine Type
T4

□ Explanation
The customer cannot use it.

M2040 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2041 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2044 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2050 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2051 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

212 0844A-1502EN
Specification of M Codes

M2052 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2060 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2061 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2062 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2063 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2064 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2065 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2100 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

0844A-1502EN 213
Specification of M Codes

M2101 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2200 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2201 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2202 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2203 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2204 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2205 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2206 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

214 0844A-1502EN
Specification of M Codes

M2207 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2209 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2210 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2211 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2212 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2300 SPIN TABLE Revolution Speed


□ Machine Type
V77 / V99 / FB127

□ 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

0844A-1502EN 215
Specification of M Codes

M2301 SPIN TABLE Start


□ Machine Type
V77 / V99 / FB127

□ Explanation
SPIN TABLE spinning start specified by M2300.

□ Program Example
M2301;

M2302 SPIN TABLE Stop


□ Machine Type
V77 / V99 / FB127

□ Explanation
SPIN TABLE spinning stop.

□ Program Example
M2302;

M2303 Gap Cycle Start


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Program
M2303 S Cycle No. ; T Part No. ;

□ Explanation
Start gap cycle.

M2304 Gap Cycle Finish


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Finish gap cycle.

M2305 Internal use M code


□ Machine Type
All Machine Type

□ Explanation
The customer cannot use it.

M2310 Utility function signal OFF


□ Machine Type
All Machine Type

□ Explanation
Utility function signal OFF

216 0844A-1502EN
Specification of M Codes

M2311 Utility function signal ON


□ Machine Type
All Machine Type

□ Explanation
Utility function signal ON

M2312 Utility function signal check


□ Machine Type
All Machine Type

□ Explanation
Utility function signal check

M2320 INPROCESS GAUGE Measuring Cycle Start


□ Machine Type
V77 / V99 / FB127

□ Explanation
INPROCESS GAUGE measuring cycle start

□ Program Example
M2320 Spp Tcc; (S:Cycle No., T:Part No.)

M2321 INPROCESS GAUGE Automatic Zero Cycle Start


□ Machine Type
V77 / V99 / FB127

□ Explanation
INPROCESS GAUGE auto zero cycle start.

□ Program Example
M2321 Spp Tcc; (S:Cycle No., T:Part No.)

M2322 INPROCESS GAUGE Measuring Head Retraction


□ Machine Type
V77 / V99 / FB127

□ 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)

M2323 INPROCESS GAUGE Get Measuring Data


□ Machine Type
V77 / V99 / FB127

□ Explanation
Get INPROCESS GAUGE measuring data to common macro variable #100.

□ Program Example
M2323

0844A-1502EN 217
Specification of M Codes

M2324 INPROCESS GAUGE Manual Mode


□ Machine Type
V77 / V99 / FB127

□ Explanation
Set INPROCESS GAUGE to manual mode.

□ Program Example
M2324

M2340 Rotar y Dresser Control


□ Machine Type
V77 / V99 / FB127

□ 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)

M2341 Rotar y Dresser CW/CCW


□ Machine Type
Machines other than following.
a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 / MAG3
/ T1 / T2 / T4 / MCC / MCD

□ Explanation
Control rotary dresser CW/CCW/STOP.

□ Program Example
M2341 S0; (Rotary Dresser Stop)
M2341 S1; (Rotary Dresser CW)
M2341 S2; (Rotary Dresser CCW)

M2342 Set Rotar y Dresser Speed


□ Machine Type
Machines other than following.
A99E / A100E / MAG1 / MAG3 / T1 / T2 / T4 / MCC / MCD

□ Program
M2342 S Rotar y Dresser Speed ;

□ Explanation
Set rotary dresser speed.

M2343 AE Sensor Enable


□ Machine Type
Machines other than following.
V22 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 /
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Enable AE Sensor

218 0844A-1502EN
Specification of M Codes

M2344 AE Sensor Disable


□ Machine Type
Machines other than following.
V22 / a51nx / G5 / a61nx / G7 / a81nx / a82 / a82M / a92 / A99E / A100E / MAG1 /
MAG3 / T1 / T2 / T4 / MCC / MCD

□ Explanation
Disable AE Sensor

M2345 Set Millturn Data


□ Machine Type
V22

□ Explanation
Set Millturn function value(Tool Corner Radius, Tool T ip Radius).
Macro Variable #100: Tool Corner Radius
Macro Variable #101: Tool T ip Radius

M2346 Preparations for Millturn


□ Machine Type
V22

□ Explanation
Start Millturn function.

M2347 Wait for preparation f inish for Millturn


□ Machine Type
V22

□ Explanation
Wait for preparation finish for Millturn.

0844A-1502EN 219
Index

3. Index
Active Damping Function OFF ................. 169
3 Active Damping Function ON ................... 170

3D Crash Avoidance Mode Off .................. 180 Additional Nozzle Coolant ON .................. 140

3D Crash Avoidance Mode On ................... 180 AE Sensor Disable .................................... 219

3D Crash Avoidance Mode Record & Off ... 208 AE Sensor Enable ..................................... 218

3D Crash Avoidance Mode Resume ........... 208 Air Blow ON ....................................... 25, 145

3D Crash Avoidance Relation Setting Change Air Cut Mode OFF .................................... 135

............................................................. 180 Air Cut Mode ON ..................................... 135


Air OFF on table ...................................... 196
4 Air ON on table ........................................ 197

4th Axis Clamp ........................................... 25 Air Spindle Air OFF ................................. 171

4th Axis Mirror Image ON .......................... 26 Air Spindle Air ON ................................... 171

4th Axis Unclamp ....................................... 25 Air Spindle Pressure 1 ............................. 172


Air Spindle Pressure 2 ............................. 172
5 Air Spindle Pressure 3 ............................. 172

5th Axis Clamp ........................................... 26 Air Spindle Pressure 4 ............................. 172

5th Axis Mirror Image ON .......................... 55 Air Spindle Running Start........................ 179

5th Axis Unclamp ....................................... 26 Angle Head Coolant ON ........................... 152


Angle Head Support Advance ..................... 82
6 Angle Head Support Pin Cleaning Air ON 152

6th Axis Clamp ........................................... 49 Angle Head Support Retract ....................... 82

6th Axis Mirror Image ON .......................... 56 Angle Plate/Table/RWH/SG Cleaning Coolant

6th Axis Unclamp ....................................... 50 OFF ...................................................... 140


Angle Plate/Table/RWH/SG Cleaning Coolant
A ON ........................................................ 140
APC (AWC,WPM) Shutter/Operator Door
AAC Retract & AAC Splashguard Close ...... 79
Close ....................................................... 46
AAC Splashguard Open & AAC Advance ..... 79
APC (AWC,WPM) Shutter/Operator Door
AAC Step Advance .................................... 130
Open ....................................................... 46
AAC Step Retract ..................................... 130
APC Prohibition Mode OFF ...................... 139
AC (AST3) OFF ........................................ 186
APC Prohibition Mode ON ........................ 139
AC (AST3) ON .......................................... 187
AST Playback Function OFF .................... 179
AC Coefficient 100%, SL Coefficient 200% .. 35
AST Playback Function ON ...................... 179
AC Mode OFF ............................................. 61
AST Recording Function Continue............ 178
AC Mode ON .............................................. 62
AST Recording Function Pause ................ 179
AC/SL Data Temporary Alteration Mode OFF
AST3 Study Function Off ......................... 178
............................................................... 33
AST3 Study Function On .......................... 178
AC/SL Data Temporary Alteration Mode ON 33
ATC & B Axis Simultaneous Operation ..... 136

220 0844A-1502EN
Index

ATC & B Axis Simultaneous Operation End B


Check ................................................... 136
Base Coolant OFF .................................... 146
ATC Prohibition Mode OFF ...................... 134
Base Coolant ON ...................................... 145
ATC Prohibition Mode ON ........................ 134
Base Coolant Pause .................................. 196
ATC Shutter / Cover Close ....................... 134
BIG PLUS Holder Mode ............................. 58
ATC Shutter / Cover Open ........................ 134
Block Skip 2 ON ......................................... 56
ATC Shutter Close ................................... 134
Block Skip 2 to 9 OFF ................................ 56
ATC Shutter Open .................................... 134
Block Skip 3 ON ......................................... 57
ATCBTS Check .......................................... 64
Block Skip 4 ON ......................................... 57
ATCBTS Check Action ................................ 64
Block Skip 5 ON ......................................... 57
ATCBTS Operation Mode Specified ............ 89
Block Skip 6 ON ......................................... 57
ATCBTS Retracted ..................................... 64
Block Skip 7 ON ......................................... 57
Attachment Change End ............................ 83
Block Skip 8 ON ......................................... 57
Attachment Change Start .......................... 79
Block Skip 9 ON ......................................... 57
Attachment Lubrication Off ..................... 154
Blum Bore Gauge Start ..................... 163, 164
Attachment Lubrication On ..................... 154
Broken Tool Sensor Check .......................... 27
Attachment No. Output to Macro (#100) .. 100
BT Holder Mode ......................................... 58
Attachment Spindle Mode .......................... 58
BTS Arm Advance, Tool Length Sensor Cover
Auto End with NG Workpiece Measurement
Open ....................................................... 26
Result ................................................... 162
BTS Arm Retract, Tool Length Sensor Cover
Auto Front Door Close ............................. 133
Close....................................................... 27
Auto Front Door Open .............................. 134
BTS LS300 OFF Check ............................... 88
Auto Measuring Approach Mode ................. 45
Buzzer OFF ................................................ 63
Auto Measuring Rapid Mode ...................... 46
Buzzer ON ................................................. 63
Auto Reject Mode OFF (Workpiece Not
Unloaded at Alarm) ................................ 35 C
Auto Reject Mode ON (M52 Mode Cancel) .. 35
Central Coolant Pause Mode .................... 149
Auto Tool Length Measuring Mode ............. 29
Change Workpiece Selection Command .... 133
Auto Workpiece Measurement / Pallet
Chopping Start ........................................ 166
Unload .................................................... 30
Chopping Stop .......................................... 166
Auto Workpiece Measurement / Spare Tool
Chuck Air Blow OFF ................................ 198
Call ........................................................ 29
Chuck Air Blow ON .................................. 198
Auto Workpiece Measuring Mode ............... 29
Chuck Cleaning Air OFF .......................... 150
Automatic Tool Change ............... 24, 137, 138
Chuck Cleaning Air ON ............................ 150
Aux Unit Stop Disable at Special Machining 189
Chuck Cleaning Coolant OFF ................... 150
Aux Unit Stop Enable at Special Machining 189
Chuck Cleaning Coolant ON .................... 150
AWC index ............................................... 133
Clamp Confirmation (NC Index) ................. 81
AWC Index Work Selection Command ...... 133
Clamp Ignore Mode OFF .......................... 176
Axis Brake Off ......................................... 172
Clamp Ignore Mode ON ............................ 176
Axis Brake On .......................................... 172
Clamper Advance ....................................... 78
Axis Retract Position at ATC .................... 132

0844A-1502EN 221
Index

Clamper Retract ......................................... 78 Direct Spare Tool Change Mode Check ....... 49
Cleaning Air OFF ....................................... 48 Direct Spare Tool Change Mode OFF .......... 49
Cleaning Air ON ......................................... 49 Direct Spare Tool Change Mode ON ............ 49
Cleaning Telescopic-Cover Coolant ON ..... 145 Disable IAC ................................................ 60
Clear Program Restart Position Judgment Ditch processing mode OFF ...................... 166
Data Memory ........................................ 190 Ditch processing mode ON ........................ 166
CNC initiative message transmission ....... 205 Draw Bar Probe Advance ............................ 78
Confirmation of Spindle Rotation While Draw Bar Probe Retract ............................. 78
Cutting Disable ..................................... 192 Drawing Pump OFF ................................. 151
Confirmation of Spindle Rotation While Drawing Pump ON ................................... 152
Cutting Disable Release ........................ 192 Dresser Coolant OFF ................................ 195
Coolant Amount Set to Large ................... 146 Dresser Coolant ON ................................. 195
Coolant Amount Set to Standard .............. 146 Dresser Forward ........................................ 79
Coolant OFF ....................................... 25, 151 Dresser Speed .......................................... 218
Coolant Pause Release ............................. 154 Dresser Stop ....................................... 79, 218
Coolant Pressure Setting 1 ....................... 143 Dry Run OFF ............................................. 60
Coolant Pressure Setting 2 ....................... 143 Dry Run ON ............................................... 60
Coolant Pressure Setting 3 ....................... 143 DynaVision all reset ................................. 202
Coolant Pressure Setting 4 ....................... 143 DynaVision level change ........................... 201
Count Disable OFF ..................................... 61 DynaVision measurement start ................ 201
Count Disable ON ...................................... 60 DynaVision mode change .......................... 201
Count Sum of Machined Parts .................... 60 DynaVision result output ......................... 201
Cs Axis Contouring Mode OFF ................... 77
Cs Axis Contouring Mode ON ..................... 78

Custom Macro Interruption Invalid ............ 44 Eco Mode .................................................. 186
Custom Macro Interruption Valid ............... 44 Electric attachment spindle connector cover
Customer Broken Tool Detection Enable ... 207 close ...................................................... 175
Customer Tool Measurement Function Electric attachment spindle connector cover
Enable .................................................. 207 open ...................................................... 174
Customer Work Measurement Function Electric attachment spindle positive start 175
Enable .................................................. 207 Electric attachment spindle proofreading . 175
Cut Type Change Request ........................ 170 Electric attachment spindle reverse start . 175
Cutting Condition Auto Select .................. 165 Electric attachment spindle speed set ...... 175
Cutting Feed Override Disable ................... 35 Electric attachment spindle stop .............. 175
Cutting Feed Override Enable .................... 35 Enable IAC ............................ 59, 60, 166, 167
Cutting Override Limitation ...................... 59 End of Machining Program and Repeat ...... 29
Cutting Surface Cleaning Air OFF ........... 147 End of Program .......................................... 23
Cutting Surface Cleaning Air ON ............. 147 Extend Stroke Change Signal OFF ............. 69
Extend Stroke Change Signal ON ............... 69

Direct Spare Tool Change ........................... 49

222 0844A-1502EN
Index

F G
Fairing OFF ............................................. 169 Gap Cycle Finish ...................................... 216
Fairing ON ............................................... 169 Gap Cycle Start ....................................... 216
Feed Axis Additional Oil Controller Get Probe Displacement ........................... 156
Differential Temperature Control Data Get Skip Position ..................................... 155
Output .................................................. 173 GI Initial Mode .......................................... 68
Feed Axis Additional Oil Controller GI/Super-GI Extra Super-High Accuracy
Differential Temperature Control Mode Mode ....................................................... 66
OFF ...................................................... 173 GI/Super-GI High Accuracy Mode ......... 65, 66
Feed Axis Additional Oil Controller GI/Super-GI High Accuracy Mode for
Differential Temperature Control Mode ON Contouring with Rotary Axes .................. 66
............................................................. 173 GI/Super-GI High Performance Mode ... 65, 67
Feed Axis Lower Load Detection Function GI/Super-GI High Performance Mode for
OFF ...................................................... 187 Contouring with Rotary Axes .................. 67
Feed Axis Lower Load Detection Function GI/Super-GI Hybrid Mode .......................... 67
ON ........................................................ 188 GI/Super-GI Radical Mode ......................... 67
Feed Axis Oil Controller Pause ................ 174 GI/Super-GI Special Mode .......................... 66
Feed rate Override 100% or Less................ 55 GI/Super-GI Ultra High Accuracy Mode 66, 68
Fewer Amount of Mist Air (MQL) ............. 153 GI/Super-GI Ultra High Performance for
First Block Skip OFF ................................. 56 Contouring With Rotary Axes Mode ........ 68
First Block Skip ON ................................... 56 GI/Super-GI Ultra High Performance Mode ...
First Block Skip Return ............................. 56 67, 68
First Use Check Request .......................... 114 Gravity Axis Lifting Up Function Off ......... 63
Flange Cleaning Air ON ........................... 148 Gravity Axis Lifting Up Function On ......... 62
Flexible Synchronize 1 Disable ................ 149 Grinding Nozzle Advance ......................... 148
Flexible Synchronize 1 Enable ................. 149 Grinding Nozzle Retract .......................... 148
Flexible Synchronize 2 Disable ................ 149
Flexible Synchronize 2 Enable ................. 149

Flexible Synchronize 3 Disable ................ 149 High Accuracy A and C Axes Oil Controller A
Flexible Synchronize 3 Enable ................. 149 Axis Control Temperature Output ......... 177
Flexible Synchronize 4 Disable ................ 150 High Accuracy A and C Axes Oil Controller C
Flexible Synchronize 4 Enable ................. 150 Axis Control Temperature Output ......... 178
Flexible Synchronize Auto Phase Adjustment 171 High Speed Counter Type Tool Measurement165
Floating M Code Change Prohibition Mode
OFF ........................................................ 69 I
Floating M Code Change Prohibition Mode Image Tool Measure shutter close ............ 205
ON .......................................................... 70 Image Tool Measure shutter open ............ 205
Flush Coolant in Machining Chamber ON 199 Image Tool Measure Tool Cleaning Air OFF 165
FT Function OFF ....................................... 50 Image Tool Measure Tool Cleaning Air ON 165
FT Function ON ......................................... 50 Image type tool measurement cleaning air off

0844A-1502EN 223
Index

............................................................. 202 JIG Coolant On ........................................ 197


Image type tool measurement cleaning air on
............................................................. 202

Image type tool measurement error Lighting OFF ........................................... 144
reset(DynaVision) ................................. 204 Lighting ON ............................................. 144
IMM Cleaning Air OFF ............................. 145 Linear Gauge Type(Absolute Scale) Tool
IMM Cleaning Air OFF Mode ................... 145 Measurement ........................................ 164
IMM Cleaning Air ON .............................. 145
IMM Cleaning Air ON Mode ..................... 145 M
Inch / Metric Input Check End ................... 54 M Code for ATC ... 118, 119, 120, 136, 137, 163
Inch Input Check ....................................... 53 M Code for JIG Interface ................... 117, 118
Increase Air OFF (MQL) ........................... 154 M Code for Special User I/O Interface ...........
Increase Air ON (MQL) ............................ 154 120, 121, 122, 123
Index Table Pallet .................................... 140 M Code for Through Spindle Coolant
Index Table Reverse ................................... 26 Pressure Change ................................... 196
Individual Pallet Loading .......... 127, 128, 129 M Code to Generate Alarm ....................... 154
Individual Pallet Unloading ............. 129, 130 M303 or M304 Completion (Spindle Speed)
Inner Chip Conveyor Speed Setting .......... 152 Check ...................................................... 71
INPROCESS GAUGE Automatic Zero Cycle M920, M921 Data Incremental Mode ........ 160
Start ..................................................... 217 Machine Data File Save ............................. 71
INPROCESS GAUGE Get Measuring Data 217 Machine Data Output to Macro Variable .. 101
INPROCESS GAUGE Manual Mode ......... 218 Machine Table Pallet 1 Check .................... 85
INPROCESS GAUGE Measuring Cycle Start 217 Machine Table Pallet 2 Check .................... 87
INPROCESS GAUGE Measuring Head Machine Table Pallet Check End ................ 88
Retraction ............................................. 217 Machined Piece Count .............................. 157
In-process Measuring M-Code .................. 200 Machining Finish Information .................... 70
Interlock Release Mode OFF at Tool Machining Result Record Start................... 63
Measurement Unit Cover Open Close .... 204 Machining Result Record Stop .................... 63
Interlock Release Mode ON at Tool Machining Signal OFF ............................... 97
Measurement Unit Cover Open Close .... 204 Machining Signal ON ................................. 97
Internal Conveyor OFF ............................ 144 Machining Workpiece Confirm .................. 135
Internal Conveyor ON .............................. 144 Macro Variable (#100) Read ........................ 99
Internal use M code ....................................... Macro Variable Output Group Data Output 70
43, 123, 124, 132, 139, 153, 154, 166, 167, Macro Variable Output Group Data Setting 70
168, 169, 170, 171, 183, 203, 205, 207, 208, Macro Variables Reading Request to MOS 101
209, 210, 211, 212, 213, 214, 215, 216 Main Spindle Mode ..................................... 58
MC alarm generation of image type tool

measurement ........................................ 203
JIG Cleaning Air OFF .............................. 197 Measurement Function Set ....................... 206
JIG Cleaning Air ON ................................ 198 Measurement Special IO Signal Control
JIG Coolant Off ........................................ 197 Disable.................................................. 207

224 0844A-1502EN
Index

Measurement Special IO Signal Control Oil Pan Cleaning Coolant Off ................... 197
Enable .................................................. 207 Oil Pan Cleaning Coolant On ................... 197
Measuring Head Alarm Check .................. 156 Oil Skimmer OFF ..................................... 144
Measuring Head Cleaning Air ON ............ 144 Oil Skimmer ON ...................................... 144
Measuring Probe Power OFF .................... 164 Open APC Shutter and Start Next Block
Measuring Probe Power OFF & Check ..... 164 before Shutter is Fully Open ................. 135
Measuring Probe Power ON ..................... 164 Open ATC Shutter and Start Next Block
Measuring Probe Power ON & Check ....... 164 before Shutter is Fully Open ................. 116
Message Output Function .......................... 89 Optional Stop ............................................. 23
Metallic Cutting Mode OFF ...................... 100 Output Machine Condition to Macro Variable
Metallic Cutting Mode ON ....................... 100 ............................................................... 55
Metric Input Check .................................... 52 Overhead Shower Coolant Intermittent
Mirror Image OFF ...................................... 28 Operation ............................................. 196
Mist Blow ON ............................................ 83 Overhead Shower Coolant OFF ................ 141
Mist Collector OFF .................................. 141 Overhead Shower Coolant ON .................... 48
Mist Collector ON .................................... 141 Override for Tool OFF ................................ 54
Mist Pressure Set to High (MQL) ............. 147 Override for Tool ON .................................. 54
Mist Pressure Set to Standard (MQL) ...... 147 Override Limitation Release ...................... 59
Mode OFF for Collision Safe Guard .......... 181
Mode ON for Collision Safe Guard ........... 181

Movable Step Advance ............................. 189 Pallet (Workpiece) Load to Transport Device 193
Movable Step Retract ............................... 189 Pallet (Workpiece) Unload from Transport
MP7 Measuring Head Check .................... 162 Device ................................................... 193
Pallet 1 Load Check ................................... 45
N Pallet 2 Load Check ................................... 47
Next Tool No. Output to Macro ................. 101 Pallet Change ................ 39, 40, 41, 42, 43, 45
Next Tool Pot No. Output to Macro .......... 162 Pallet Clamp ............................................ 138
Non Contact Type Measurement Device Zero Pallet No. Output to Macro ........................ 98
Set ........................................................ 163 Pallet Ready Not Checked at M60 .............. 44
Non Contact Type Spindle Measurement .... 68 Pallet Seating Check .................................. 88
Nozzle Coolant OFF ................................. 153 Pallet Unclamp ........................................ 139
Nozzle Coolant ON ..................................... 25 Point Cleaning Air Off ............................. 194
Nozzle Coolant Push Out Air .................... 199 Point Cleaning Air On .............................. 195
Point Cleaning Water Off ......................... 194
O Point Cleaning Water On ......................... 194

Oil Amount Set to Large (MQL) ............... 147 Pre-Clamp (NC Index) ................................ 80

Oil Amount Set to Shot Frequency(MQL) . 199 Pre-Measurement Spindle Rotation ............ 74

Oil Amount Set to Small (MQL) ............... 147 Pre-Orientation & Coolant Stop ........... 76, 77
Oil Amount Set to Standard (MQL) .......... 147 Preparations for High Accuracy Machining 168

Oil Controller OFF ..................................... 75 Preparations for High Accuracy Machining

Oil Controller ON ...................................... 75 (Accuracy Check) .................................. 168

0844A-1502EN 225
Index

Preparations for Millturn ......................... 219 Ring Sensor Monitor Mode ON ................. 161
Pre-Unclamp (NC Index) ............................ 80 Room Washing Air Off .............................. 198
Print-out Mode Output ............................... 98 Room Washing Air On .............................. 198
Prior Tool Check ......................................... 31 Rotary Axis Coordinate Calculation Function 166
Program Number Notice ........................... 135 Rotary Dresser Control ............................ 218
Program Search .......................................... 51 Rotary Dresser CW/CCW .......................... 218
Program Stop ............................................. 23 Rotate Spindle CCW and Start Next Block
Programmable Coolant Nozzle OFF .......... 151 before Spindle Reaches Specified Speed .. 72
Programmable Coolant Nozzle ON .............. 48 Rotate Spindle CW and Start Next Block
Programmable Load Monitor Function Off 184 before Spindle Reaches Specified Speed .. 71
Programmable Load Monitor Function On Rotation axes compensation of TCP OFF .. 167
(Specifying Alarm Load) ........................ 185 Rotation axes compensation of TCP ON .... 167
Programmable Load Monitor Function On
(Specifying Data No.) ............................ 184

Project File Load for Collision Safe Guard 182 Second Measuring Unit Cover Close ......... 165
Project File Save for Collision Safe Guard 182 Second Measuring Unit Cover Open ......... 165
PTIM command ........................................ 204 Set alarm load of tool contact detection .... 191
PTIM Power OFF ..................................... 204 Set contact load of tool contact detection .. 190
PTIM Power ON ....................................... 204 Set Millturn Data ..................................... 219
Set NC Parameter for Angle Head ............ 194
Q Set Rotary Dresser Speed ......................... 218
Quadrant Glitch Fine Tuning Mode Change 54 Setting Tool Magazine No. used in Tool Data
Registration Mode ................................... 96
R Signal Lamp 1 ON with No Ready Pallet .... 44

Radical Mode Calculation ......................... 155 Signal Lamp 1 Unconditional ON ............... 89


Rak rak checker Auto/Manual Select ........ 161 Signal Lamp 2 ON with No Ready Pallet .... 45

Rak rak checker End ................................ 161 Signal Lamp 2 Unconditional ON ............... 89

Rapid Feed Speed Limitation Mode Setting 58 Signal Lamp OFF ..................................... 184

Rapid Override Limitation ......................... 59 Signal light effective mode OFF ................. 69

Rapid Override Switch Check Function Off 62 Signal light effective mode ON ................... 69

Rapid Override Switch Check Function On. 62 SKIP Signal Detection Result Output ....... 207

Record Spindle Status & Stop .................... 73 SL and AC Coefficient 0% ........................... 34

Recover Coolant ................................... 72, 74 SL Coefficient Setting 125% ....................... 33

Recover Coolant and Spindle ...................... 72 SL Coefficient Setting 150% ....................... 34

Release Base Coolant Pause ..................... 196 SL Coefficient Setting 200% ....................... 34

Release Central Coolant Pause Mode ....... 148 SL Lower Limit Coefficient Setting 0% ....... 34

Release Feed Axis Oil Controller Pause .... 173 SL Lower Limit Coefficient Setting 125% ... 34

Resume Spindle .......................................... 73 SL Lower Limit Mode OFF ......................... 69


Return to Main Program ............................ 48 SL Lower Limit Mode ON ........................... 69

Rigid Tap Mode ON .................................... 55 SL Upper Mode OFF ................................... 64

Ring Sensor Monitor Mode OFF ............... 161 SL Upper Mode ON .................................... 64

226 0844A-1502EN
Index

Smooth control of Tool Center Point Control Stocker Pallet 1 Lock ............................... 193
ON ........................................................ 169 Stocker Pallet 1 Unlock ............................ 193
Smooth control of tool posture control OFF 167 Stocker Pallet 2 Lock ............................... 194
Smooth control of tool posture control ON 168 Stocker Pallet 2 Unlock ............................ 194
SPIN TABLE Revolution Speed ................ 215 Stop Block Cleaning Air Off ..................... 197
SPIN TABLE Start ................................... 216 Stop Block Cleaning Air On...................... 197
SPIN TABLE Stop .................................... 216 Stop Coolant & Record ............................... 74
Spindle Attachment Dismount Check ......... 80 Stop Coolant and Spindle & Record ............ 72
Spindle Attachment Mount Check .............. 79 Stop Coolant before Axis Positioning is
Spindle Load/Vibration Record Disable .... 180 Completed ............................................ 141
Spindle Load/Vibration Record Enable ..... 180 Store Program Restart Position Judgment
Spindle Nose Nozzle Coolant Off .............. 148 Data ..................................................... 190
Spindle Nose Nozzle Coolant On .............. 148 Strong Clamp Mode OFF .......................... 176
Spindle Orientation at Externally Specified Strong Clamp Mode ON ........................... 176
Angle ...................................................... 75 Study Mode OFF ........................................ 62
Spindle Orientation Stop ........................... 27 Study Mode ON .......................................... 62
Spindle Reverse Orientation at Externally Stylus Cleaning Air OFF .......................... 141
Specified Angle ....................................... 78 Stylus Cleaning Air ON ............................ 141
Spindle Rotation for Alignment .................. 75 Sub Program Call ....................................... 48
Spindle Rotation for Measuring ................. 77 Subprogram Call from External I/O Device 61
Spindle Speed Limitation Disable at Spindle
Idling .................................................... 173

Spindle Speed Limitation Enable at Spindle Table Dresser Solenoid Start ...................... 81
Idling .................................................... 173 Table Dresser Solenoid Stop ....................... 81
Spindle Speed Output to Macro .................. 97 Table Side JIG Clamp .............................. 116
Spindle Speed Override Disable ................. 39 Table Side JIG Neutral ............................ 116
Spindle Speed Override Enable .................. 39 Table Side JIG Unclamp .......................... 116
Spindle Start in CCW Direction ................. 24 Table Side Work Seating Confirm ............. 116
Spindle Start in CW Direction ................... 24 Tailstock Advance .................................... 114
Spindle Stop .............................................. 24 Tailstock Position Advance ....................... 114
Spindle Tool Clamp .................................... 82 Tailstock Position Retract ........................ 114
Spindle Tool Exist Coherent Check .......... 138 Tailstock Pressure Change ......................... 82
Spindle Tool No. 0 Output to Macro ........... 99 Tailstock Retract ...................................... 114
Spindle Tool No. Output to Macro .............. 99 Tap Oil Mist/Jet Mode ON .......................... 28
Spindle Tool Pot No. Output to Macro ...... 162 Telescopic-Cover Coolant OFF .................. 146
Spindle Tool Unclamp ................................ 83 Terrace Cleaning Coolant OFF ................. 153
Spindle Tool Unclamp Preparation ............. 83 Terrace Cleaning Coolant ON ................... 153
Spindle Upper Nozzle Coolant ON............ 144 Through Spindle Air ON ............................ 44
Standard Amount of Mist Air (MQL) ........ 153 Through Spindle Coolant Off Without
Step Advance ........................................... 130 Remove ................................................. 148
Step Retract ............................................. 130 Through Spindle Coolant ON ..................... 28

0844A-1502EN 227
Index

Through Spindle Coolant Output Frequency Tool Offset Data Transfer Command for
Fixation OFF ........................................ 198 Composite Tool ...................................... 170
Through Spindle Coolant Output Frequency Tool Offset Negative Value Register Mode .. 36
Fixation ON .......................................... 199 Tool Pre-check for Collision Safe Guard .... 183
Through Spindle Mist ON .......................... 83 Tool Radius Measurement Data Read ....... 159
Through Tool Coolant ON ........................... 48 Tool Run Out Measurement .................. 97, 98
TL Alarm Suspension Mode ON ................ 100 Tool Run Out Measurement Base Data
TL Mode OFF ............................................. 63 Registration ............................................ 98
TL Mode ON ............................................... 63 Tool Shape Automatically Recognition
Tool Cleaning Air 2 ON............................. 152 Function: calibration............................. 206
Tool Cleaning Air OFF ...................... 146, 151 Tool Shape Automatically Recognition
Tool Cleaning Air ON ....................... 146, 151 Function: Get Imaging Data .................. 206
Tool Cleaning Air/Coolant OFF ................. 151 Tool Shape Automatically Recognition
Tool Cleaning Air/Coolant ON .................. 151 Function: Imaging Disable Mode OFF ... 206
Tool Cleaning Coolant OFF .............. 151, 199 Tool Shape Automatically Recognition
Tool Cleaning Coolant ON ................ 151, 200 Function: Imaging Disable Mode ON ..... 206
Tool Cleaning Nozzle Advance .................. 151 Tool Shape Automatically Recognition
Tool Cleaning Nozzle Retract ................... 151 Function: Reset Request ....................... 206
Tool contact detection mode OFF .............. 191 Tool Shape Setting for 3D Crash Avoidance 180
Tool contact detection mode ON ................ 192 Travel Limit Invalid ................................. 132
Tool Cutter No. Setting .............................. 97 Travel Limit Valid .................................... 132
Tool Data BT Flag Check ............................ 89
Tool Data Delete Mode ON ......................... 47

Tool Data Register Mode (Type1) ................ 89 U Axis Emergency Mode ON ....................... 51
Tool Data Register Mode (Type2) ................ 95 U Axis Mode OFF ....................................... 50
Tool Data Register Mode OFF ..................... 32 U Axis Mode ON ......................................... 50
Tool Data Update Check for Collision Safe Unconditional Power Out ........................... 28
Guard ................................................... 182 User Coolant OFF .................................... 195
Tool length comparison ............................. 183 User Coolant ON ...................................... 195
Tool Length Measurement Data Read ....... 158 Utility function signal check .................... 217
Tool Length Measuring Calibration .......... 155 Utility function signal OFF ...................... 216
Tool Length Measuring Mode Setting ....... 156 Utility function signal ON ........................ 217
Tool Length Sensor Unit Circuit Check 29, 34
Tool Machining Finish ................................ 71 V
Tool Measuring Laser OFF ......................... 81 Vacuum Device OFF ................................... 85
Tool Measuring Laser ON ........................... 81 Vacuum Device ON ..................................... 85
Tool Measuring Sensor X-Axis Direction ..... 65 Vacuum Pipe Valve Off (Pipe OPEN) ........ 140
Tool Measuring Sensor Y-Axis Direction ..... 64 Vacuum Pipe Valve On (Pipe CLOSE) ....... 140
Tool No. Register Mode ............................... 37 Vacuum Pump Off ...................................... 85
Tool Offset Data File Output .................... 184 Vacuum Pump On ....................................... 85
Tool Offset Data Transfer Command ... 36, 170 Vacuum Suction OFF .................................. 82

228 0844A-1502EN
Index

Vacuum Suction ON ................................... 82 Workpiece Change .................................... 131


Vibration Control(AST4) Disable .............. 211 Workpiece Forward Start ......................... 142
Vibration Control(AST4) Enable .............. 211 Workpiece Load ........................................ 132
VP Control Disable .................................. 210 Workpiece Origin Offset Fitting for Collision
VP Control Enable ................................... 209 Safe Guard ........................................... 182
VP Control Magnification Disable (Rotation Workpiece Reverse Start .......................... 142
Axis) ..................................................... 211 Workpiece Rotation Mode ......................... 146
VP Control Magnification Enable (Rotation Workpiece Rotation Stop .......................... 142
Axis) ..................................................... 211 Workpiece Size Check for Collision Safe
Guard ................................................... 183
W Workpiece Speed Set ................................ 142

Wait for preparation finish for Millturn ... 219 Workpiece Unload .................................... 131

Washing Robot Coolant OFF .................... 115 Write NC Parameter .................................. 59

Washing Robot Coolant ON ...................... 116 WSS Pallet (Workpiece) Loading ....... 124, 125

Washing Robot Forced End ....................... 115 WSS Pallet (Workpiece) Unloading ... 125, 126

Washing Robot Reference Position


Confirmation ........................................ 115

Washing Robot Start ................................ 115 X Axis Cover Oil Pan Cleaning Coolant OFF198
Washing Robot Stop ................................. 115 X Axis Cover Oil Pan Cleaning Coolant ON 198
Whetstone Change OFF ........................... 171 X axis Mirror Image Off ............................. 61
Whetstone Change ON ............................. 171 X axis Mirror Image On ............................. 61
Work Chuck Clamp .................................. 124 X Axis Mirror Image ON ............................ 27
Work Chuck Unclamp ............................... 124
Work Clamp ...................................... 117, 139

Work Clamp Check Mode OFF .................. 139 Y axis Mirror Image Off ............................. 61
Work Clamp Check Mode ON ................... 139 Y axis Mirror Image On ............................. 61
Work Data Register Mode .......................... 84 Y Axis Mirror Image ON ............................ 27
Work information output ............................ 80
Work Unclamp ......................................... 116 Z
Workpiece Automatic Measuring Calibration155 Z Axis Collision Avoidance Setting ........... 181
Workpiece Automatic Measuring Mode
Cancel .................................................. 156

0844A-1502EN 229
History

4. History

Number Date Contents


0844A-1502 Feb-2015 First edition

230 0844A-1502EN

You might also like