Vous êtes sur la page 1sur 115

PROFESSIONAL 5

M-CODE LIST
Applicable Models
All Models

No.0584D-0506

Contents

No.0584D-0506

Contents

Contents

Contents

Contents

Contents
1.
1.1
1.2

2.
2.1

Notes on this M Code List ....................................................... 1-2


List of M Codes ....................................................................... 1-3

Specification of M Codes
Specification ............................................................................ 2-2

3.

Index

4.

Appendix

4.1

List of M Codes

History of M Code List............................................................. 4-2

No.0584D-0506

List of M Codes

1. List of M Codes

List of M Codes

No.0584D-0506

1-1

List of M Codes
Notes on this M Code List

1.1 Notes on this M Code List


This list of M codes includes all M codes provided for the machines.
Therefore, please note that it may not be possible to use some M codes, depending
upon the machine specifications and provided options.

List of M Codes
1-2

No.0584D-0506

List of M Codes
List of M Codes

1.2 List of M Codes

No.0584D-0506

Program Stop
Optional Stop
End of Program
Spindle CW Start
Spindle CCW Start
Spindle Stop
Automatic Tool Change
Mist Coolant/Air Blow ON
Nozzle Coolant ON
Coolant OFF
4th Axis Clamp
4th Axis Unclamp
5th Axis Clamp
5th Axis Unclamp
BTS Arm Advance (Movable BTS)
4th Axis Mirror Image ON
BTS Arm Retract (Movable BTS)
Spindle Orientation Stop
BTS Check
X Axis Mirror Image ON
Y Axis Mirror Image ON
Mirror Image OFF
Through Spindle Coolant ON
Unconditional Power Out
Part Program End and Repeat
Workpiece Auto Measuring Mode
Tool Length Auto Measuring Mode
Tool Length Circuit Check
Workpiece Auto Measuring Spare Tool Call
Workpiece Auto Measuring Pallet Unload
Prior Tool Check
Tool Data Register Mode OFF
AC/SL Data Temporary Alter Mode ON
AC/SL Data Temporary Alter Mode OFF
SL Coefficient Setting 125%
SL Coefficient Setting 150%
SL Coefficient Setting 200%
SL and AC Coefficient 0%
Tool Length Circuit Check
SL Lower Limit Coefficient Setting 125%
SL Lower Limit Coefficient Setting 0%
M49 Mode Cancel

List of M Codes

M0
M1
M2
M3
M4
M5
M6
M7
M8
M9
M10
M11
M12
M13
M14
M16
M18
M19
M20
M21
M22
M23
M26
M29
M30
M31
M32
M33
M34
M35
M36
M37
M38
M39
M41
M42
M43
M44
M45
M46
M47
M48

1-3

List of M Codes
List of M Codes

List of M Codes

M49
M50
M51
M52
M54
M56
M57
M58
M59
M60
M61
M62
M63
M64
M65
M69
M77
M78
M79
M80
M84
M85
M86
M88
M89
M94
M95
M97
M98
M99
M100
M101
M105
M106
M107
M110
M111
M132
M135
M138
M139
M140
M141
M142
M150
1-4

Feedrate Override Cancel


AC Coefficient 100%, SL Coefficient 200%
Auto Reject Mode ON (M52 Mode Cancel)
Auto Reject Mode OFF (Reject Inhibit for Alarm)
Tool Offset Data Negative Register Mode
Tool Offset Data Transfer Command
Tool No. Register Mode
M59 Mode Cancel
Spindle Speed Override Cancel
Pallet Change
Pallet Change
Pallet Change
Pallet Change
Pallet Change
Pallet Change
Pallet Ready Not Checked at M60
Through Spindle Air ON
Signal Lamp 1 ON with No Ready Pallet
Signal Lamp 2 ON with No Ready Pallet
Pallet Change
Pallet 1 Load Check
Auto Measuring Approach Mode
Auto Measuring Rapid Mode
APC Shutter Open
APC Shutter Close
Tool Data Delete Mode ON
Pallet 2 Load Check
Overhead Shower Coolant ON
Sub Program Call
Return to Main Program
Cleaning Air Off
Cleaning Air On
Direct Spare Tool Change
Direct Spare Tool Change Inhibit Mode
Direct Spare Tool Change Permit Mode
6th Axis Clamp
6th Axis Unclamp
Override 100% or Less
Rigid Tap Mode ON
5th Axis Mirror Image ON
6th Axis Mirror Image ON
First Block Skip ON
First Block Skip OFF
First Block Skip Return
Block Skip 2 to 9 OFF
No.0584D-0506

List of M Codes
List of M Codes

M258
M259
M270
M276
M277
M283
M284
M291
M292
M302
M303
M304
M307
M308
M310
M311
M312
No.0584D-0506

Block Skip 2 ON
Block Skip 3 ON
Block Skip 4 ON
Block Skip 5 ON
Block Skip 6 ON
Block Skip 7 ON
Block Skip 8 ON
Block Skip 9 ON
Rapid Feed Speed Limitation Mode Setting
Count Sum of Machined Parts
Dry Run ON
Dry Run OFF
Subprogram Call to an External I/O Device.
TL Mode OFF
TL Mode ON
SL Mode OFF
SL Mode ON
Tool Measuring Sensor Y-Axis Direction
Tool Measuring Sensor X-Axis Direction
GI/Super-GI High Accuracy Mode
GI/Super-GI High Performance Mode
GI/Super-GI Ultra High Accuracy Mode
GI/Super-GI Additional Axis Contouring Mode
GI/Super-GI Special Mode
GI/Super-GI M255 Mode
GI/Super-GI High Performance Mode for Contouring with
Rotary Axes
GI/Super-GI Ultra High Performance Mode for Contouring
with Rotary Axes
GI Initial Mode
Non Contact Type Spindle Measurement
Extend Stroke Change Signal OFF
Extend Stroke Change Signal ON
SL Lower Limit Mode OFF
SL Lower Limit Mode ON
Floating M Code Exchange Prohibition Mode OFF
Floating M Code Exchange Prohibition Mode ON
Fin Check for M303 or M304
Spindle CW Without DEN-Waiting
Spindle CCW Without DEN-Waiting
Coolant/Spindle Stop & Release
Coolant/Spindle Resume
Spindle Status Reserve & Stop
Spindle Resume
Coolant Stop & Reserve

List of M Codes

M152
M153
M154
M155
M156
M157
M158
M159
M172
M186
M187
M188
M198
M235
M236
M237
M238
M246
M247
M250
M251
M252
M253
M254
M255
M257

1-5

List of M Codes
List of M Codes

List of M Codes

M313
M314
M315
M316
M317
M318
M319
M322
M325
M326
M327
M328
M330
M331
M332
M340
M341
M344
M346
M347
M359
M372
M373
M377
M378
M381
M382
M387
M388
M389
M390
M391
M392
M394
M398
M399
M417
M418
M419
M430
M434
M435
M436
M437
M441
1-6

Coolant Resume
Spindle Rotation Before Measuring
Oil Controller OFF
Oil Controller ON
Spindle Rotation for Alignment
Spindle Optional Angle Orient Externally
Pre-Orientation
Spindle Rotation for Measuring
Cs Axis Contouring Mode OFF
Cs Axis Contouring Mode ON
Spindle Unlock
Spindle Lock
Improved Spindle Reverse Orient Externally
Draw Bar Probe Retract
Draw Bar Probe Advance
Attachment Change Start
AAC Splashguard Open & AAC Advance
AAC Retract & AAC Splashguard Close
Spindle Attachment Mount Check
Spindle Attachment Dismount Check
Work information output
Pre-Unclamp (NC Index)
Clamp Confirmation (NC Index)
Tool Measuring Laser OFF
Tool Measuring Laser ON
Angle Head Support Retract
Angle Head Support Advance
Vacuum Suction ON
Vacuum Suction OFF
Tailstock Pressure Change
Spindle Tool Clamp
Spindle Tool Unclamp
Spindle Tool Unclamp Ready
Attachment Change End
Through Spindle Mist ON
Mist Blow ON
Machine Table Pallet 1 Check
Machine Table Pallet 2 Check
Machine Table Pallet Check End
Pallet Contact Check
Tool Broken Status (BT/B2)
ATC-Side BTS Tool Measuring Mode
Signal Light 1 Unconditional ON
Signal Light 2 Unconditional ON
Message Output Function
No.0584D-0506

List of M Codes
List of M Codes

M530
M531
M532
M533
M534
M535
M536
M537
M538
M539
M548
M549
M550
M551
M552
M553
M554
M555
M556
M557
M559
M580
M581
M582
No.0584D-0506

Tool Data Register Mode (Type1)


Tool Data Register Mode (Type2)
ATC Magazine No. Setting for Tool Data Register Mode
Tool Cutter No. Setting
Machining Signal OFF
Machining Signal ON
Pallet No. Send
Print-out Mode Output
Specified Spindle Tool Output
Spindle Tool No. 0 Output
Macro Variable (#100) Read
Attachment No. Output to Macro (#100)
TL Alarm Suspension Mode ON
Metallic Cutting Mode OFF
Metallic Cutting Mode ON
Next Tool Output
Macro Variables Reading Request to MOS
Machine Data Output to Macro Variable
First Use Check Request
Open ATC Shutter and Start Next Block before Shutter is
Fully Open
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for Fixture Interface
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for ATC
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface

List of M Codes

M448
M449
M450
M451
M455
M456
M462
M463
M464
M465
M466
M468
M469
M470
M471
M474
M480
M483
M492
M507

1-7

List of M Codes
List of M Codes

List of M Codes

M583
M584
M585
M586
M587
M588
M589
M590
M591
M592
M593
M594
M595
M600
M601
M602
M603
M604
M605
M608
M609
M610
M611
M612
M613
M614
M620
M621
M630
M631
M638
M639
M661
M662
M663
M706
M707
M708
M709
M710
M711
M722
M723
M732
M733
1-8

M Code for Special User I/O Interface


M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
M Code for Special User I/O Interface
Pallet Change Sub M Code
Axis Index Program End
Routine Function DNC Program End
Tool Retract End
Work Chuck Clamp
Work Chuck Unclamp
Respective Load
Respective Unload
AAC Step Retract
AAC Step Advance
Workpiece Change
Workpiece Unload
Workpiece Load
Travel Limit Valid
Travel Limit Invalid
Axis Retract Position at ATC
AWC Index Work Selection Command
ATC Shutter Close
ATC Shutter Open
ATC & B Axis Simultaneous Operation
ATC & B Axis Simultaneous Operation End Check
M Code for ATC
Angle Plate / Table Cleaning Coolant OFF
Angle Plate / Table Cleaning Coolant ON
Additional Nozzle Coolant ON
Coolant Stop without DEN Waiting
Mist Collector OFF
Mist Collector ON
Stylus Cleaning Air OFF
Stylus Cleaning Air ON
Coolant Pressure Set 1
Coolant Pressure Set 2
No.0584D-0506

List of M Codes
List of M Codes

No.0584D-0506

Coolant Pressure Set 3


Coolant Pressure Set 4
Lighting ON
Lighting OFF
Inner Chip Conveyor OFF
Inner Chip Conveyor ON
Oil Skimmer OFF
Oil Skimmer ON
Spindle Upper Nozzle Coolant ON
Measuring Head Cleaning Air ON
IMM Cleaning Air ON
IMM Cleaning Air OFF
IMM Cleaning Air ON Mode
IMM Cleaning Air OFF Mode
Mist Coolant ON
Work Clean Coolant/Air ON
Air Blow ON
Telescopic-Cover Coolant OFF
Tool Cleaning Air OFF
Tool Cleaning Air ON
Set Amount of Oil to Little (MQL)
Set Amount of Oil to Standard (MQL)
Set Amount of Oil to Large (MQL)
Set Mist Pressure to High (MQL)
Set Mist Pressure to Standard (MQL)
Angle Head Coolant ON
Inner Chip Conveyor Speed Setting
Angle Head Support Pin Cleaning Air ON
Increase Air OFF (MQL)
Increase Air ON (MQL)
Attachment Lubrication Off
Attachment Lubrication On
M Code to Generate Alarm
Workpiece Automatic Measuring Mode Cancel
Measuring Head Alarm Check
Counting No. of Machined Parts
Tool Length Measuring Data Read
Tool Radius Measuring Data Read
M920, M921 Data Incremental Mode
Auto End Due to Illegal Work Measurement
MP7 Measuring Head Check
Spindle Tool Pot No. Output
Next Tool Pot No. Output
M Code for ATC
Non Contact Type Measurement Device Zero Set

List of M Codes

M734
M735
M736
M737
M740
M741
M742
M743
M745
M747
M748
M749
M750
M751
M754
M755
M756
M757
M775
M776
M790
M791
M792
M793
M794
M883
M884
M885
M895
M896
M898
M899
M903
M910
M911
M919
M920
M921
M922
M940
M941
M946
M947
M948
M950

1-9

List of M Codes
List of M Codes

List of M Codes

M951
M963
M964
M965
M966
M968
M984
M994
M2300
M2301
M2302
M2320
M2321
M2322
M2323
M2324
M2340

1-10

Measuring Probe Power OFF & Check


Measuring Probe Power ON & Check
Measuring Probe Power OFF
Measuring Probe Power ON
Cutting Condition Auto Select
High Speed Counter Type Tool Measurement
Rotary Axis Coordinate Calculate Function
SPIN TABLE revolution speed
SPIN TABLE Start
SPIN TALE Stop
INPROCESS GAUGE Measureing Cycle Start
INPROCESS GAUGE Autozero Cycle Start
INPROCESS GAUGE Measureing Head Retraction
INPROCESS GAUGE Get Measuring Data
INPROCESS GAUGE Manual Mode
Rotary Dresser Control

No.0584D-0506

Specification of M Codes

2. Specification of M Codes

Specification

No.0584D-0506

2-1

Specification of M Codes
Specification

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

M00

Program Stop (D)


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.

Specification

And then, the warning lamp is turned on if the machine with a signal tower.
If the [Cycle Start] switch is pushed, spindle rotation and coolant are
resumed, automatic operation is restarted, and the warning lamp is turned
off.

M01

Optional Stop (D)


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.

M02

End of Program (D)


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.
Afterward, if the [Power Out] switch has been turned on, the power is
turned off, and if the [Warning Lamp] mode has been turned on, M2 turns
the warning lamp on.

2-2

No.0584D-0506

Specification of M Codes
Specification

M03

Spindle CW Start
Program
S800 M3 G00 X___ Y___ ;
G01 Z___ F___ ;
Explanation
Rotates spindle in clockwise direction at a speed specified with S code.
If no speed has been specified with S code ever, an alarm occurs.

M04

Spindle CCW Start


Program
S800 M4 G00 X___ Y___ ;
G01 Z___ F___ ;

Rotates spindle in counterclockwise direction at a speed specified with S


code.
If no speed has been specified with S code ever, an alarm occurs.

M05

Spindle Stop (D)


Program
G01 X___ Y___ F___ M5;
Explanation
Stops the spindle after the block containing M5 is executed.

No.0584D-0506

2-3

Specification

Explanation

Specification of M Codes
Specification

M06

Automatic Tool Change


Program
M6;
Explanation
Exchanges the spindle tool with the tool in ATC 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.

Specification

There is the one which does not return according to the


version of the model and software either about the coolant.

M07

Mist Coolant/Air Blow ON


Explanation
Turns the air blow or the mist coolant on.

M08

Nozzle Coolant ON
Explanation
Turns the nozzle coolant on.

M09

Coolant OFF (D)


Program
G01 X___ Y___ F___ M9;
Explanation
Stops coolant after the block containing M9 is executed.

M10

4th Axis Clamp (D)


Program
M11;
G91 G01 B___ F___ M10;
Explanation
Clamps 4th axis after the block containing M10 is executed.

2-4

No.0584D-0506

Specification of M Codes
Specification

M11

4th Axis Unclamp


Program
M11;
G91 G01 B___ F___ M10;
Explanation
Unclamps 4th axis.

M12

5th Axis Clamp (D)


Program
M13;
G91 G01 A___ F___ M12;

Specification

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

M13

5th Axis Unclamp


Program
M13;
G91 G01 A___ F___ M12;
Explanation
Unclamps 5th axis.

M14

BTS Arm Advance (Movable BTS) (D)


Explanation
Advances the movable BTS arm.

M16

4th Axis Mirror Image ON


Program
G28 B___ M11;
M16;
G00 B___ M10;
Explanation
Turns the mirror image of the 4th axis on if the machine has a 4th axis.
Specify it in a by block itself.

No.0584D-0506

2-5

Specification of M Codes
Specification

M18

BTS Arm Retract (Movable BTS) (D)


Explanation
Retracts the movable BTS arm.

M19

Spindle Orientation Stop (D)


Program
G00 X___ Y___ M19;
Explanation
Orients and stops the spindle after the block containing M19 is executed.

M20

BTS Check (D)


Explanation

Specification

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


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


Program
G28 X___ Y___;
M22;
G01 X___ Y___ F___;
Explanation
Turns the mirror image of the Y axis on.
Specify this M code in an independent block.

2-6

No.0584D-0506

Specification of M Codes
Specification

M23

Mirror Image OFF (D)


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


Explanation
Turns on through spindle coolant.

Unconditional Power Out

(D)

Specification

M29

Program
G00 Z___;
X___ Y___;
M29;
Explanation
Turns off the power supply if the [Power Out] switch has been turned on.

M30

Part Program End and Repeat (D)


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.
Afterward, if the [Warning Lamp] switch has been turned on, M30 turns the
warning lamp on.
If the [Power Out] switch has been turned on, M30 turns the power supply
off.
When the pallet changer is operated in the standard operation mode,
automatic operation is started after rewinding if the ready status is ON for
any pallet.

No.0584D-0506

2-7

Specification of M Codes
Specification

M31

Workpiece Auto Measuring Mode


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

M32

Tool Length Auto Measuring Mode


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

M33

Tool Length Circuit Check


Explanation
Used in the tool length automatic measuring macro program.

Specification

The tool length automatic measuring circuit is self-diagnosed.

M34

Workpiece Auto Measuring Spare Tool Call


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.

M35

Workpiece Auto Measuring Pallet Unload


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.

2-8

No.0584D-0506

Specification of M Codes
Specification

M36

Prior Tool Check


Program
M36;
TTool No.;
TTool 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, an alarm occurs.
Program Example

Specification

O1234;
M36;
T1;
T2;
T3;
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 also canceled by M2, M30, emergency stop and


a tool life alarm.

No.0584D-0506

2-9

Specification of M Codes
Specification

M37

Tool Data Register Mode OFF


Program
M___;
S___ T___;
M37;

<---Tool register mode ON such as M448


<---Tool Data Registration

Explanation
Turns off the tool data registration mode.
When a registration mode is ON, another registration mode cannot be
turned on without turning off the current mode.
While the tool data registration mode is ON, you can't use S code to
command spindle speed, and can't use T code to command next tool.
You can use them to command a spindle speed and a tool number, after
M37 is executed.

Specification

Program Example
O1234;
M448 S4;
S1 T1000;
S2 T2000;
M448 S119;
S1 T123;
S1 T456;
M37;
:
Machining Program
:
M30;
%

2-10

<---PTN register mode ON.


<---PTN 1000 is set to 1st pot magazine.
<---PTN 2000 is set to 2nd pot magazine.
<---SL data register mode ON
<---12.3(%) is set to SL(Upper Limit) of 1st. Pot.
<---45.6(%) is set to SL(Lower Limit) of 1st. Pot.
<---Data registration mode OFF.

No.0584D-0506

Specification of M Codes
Specification

M38

AC/SL Data Temporary Alter Mode ON


Program
M38;
SAC Data;
SSL(Upper) Data;
SSL(Under) Data;
M39;
Explanation
Sets AC/SL data for spindle tool.
First S is for AC data and second S is for SL data.
Specified monitor data is retained until an M6 or M2/M30 is specified.
If an S9999 is specified, the monitoring data is not altered but the data on

Specification

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 Alter Mode OFF


Program
M38;
SAC Data;
SSL(Upper) Data;
SSL(Under) Data;
M39;
Explanation
Turns off the AC/SL data temporary alteration mode.

No.0584D-0506

2-11

Specification of M Codes
Specification

M41

SL Coefficient Setting 125%


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

M42

SL Coefficient Setting 150%


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

M43

SL Coefficient Setting 200%


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

Specification

M44

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

M45

Tool Length Circuit Check


Explanation
Used in the tool length automatic measuring macro program.
The tool length automatic measuring circuit is self-diagnosed.
This M code doesnt turn on measuring head cleaning air.

M46

SL Lower Limit Coefficient Setting 125%


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

M47

SL Lower Limit Coefficient Setting 0%


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

2-12

No.0584D-0506

Specification of M Codes
Specification

M48

M49 Mode Cancel

(D)

Program
G01 X___ Y___ F___ M48;
Explanation
Enables the feedrate override switch after the block containing M48 is
executed.

M49

Feedrate Override Cancel


Program
M49;
G01 X___ Y___ F___;
Explanation
100% until M48 or M2/M30 is specified.

M50

AC Coefficient 100%, SL Coefficient 200%


Explanation
In the study mode, the AC data is fixed at 100% and the SL data is fixed at
200%.
Fixes the AC data at 100% and the SL data at 200% while 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)


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 (Reject Inhibit for Alarm) (D)


Explanation
Turns off the automatic workpiece reject mode.

No.0584D-0506

2-13

Specification

Disables the feedrate override switches and fixes the feedrate override at

Specification of M Codes
Specification

M54

Tool Offset Data Negative Register Mode


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

Specification

M448 S103;

<---Tool length (Geometry) register mode ON.

M54;

<---Indicates that following data is negative.

S1T1234;

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

2-14

No.0584D-0506

Specification of M Codes
Specification

M56

Tool Offset Data Transfer Command


Program
HOffset No. DOffset 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 memory.
[Tool compensation memory B, C]
H>0
---> Geometry of H number

Length (Wear(H))

---> Wear of H number

Specification

Length (Geometry(H))
D>0
Radius (Geometry(D))
Radius (Wear(D))

---> Geometry of D number


---> Wear of D number

[Tool compensation memory A]


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

No.0584D-0506

2-15

Specification of M Codes
Specification

Program Example
O1234;
T1;
M6;
H1 D2;
M56;

<----Tool length data is sent to offset No.1, and tool radius data is
sent to offset No.2.

:
Machining Program
:
M451 S2;
M56;

<----Tool length data of cutter No.2 is sent to offset No.1, and tool
radius data of cutter No.2 is sent to offset No.2.

Specification

:
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 specified in the same block as H or D, the data is
transferred to the previous H or D. Specify it in a block by
itself.

2-16

No.0584D-0506

Specification of M Codes
Specification

M57

Tool No. Register Mode


Program
[Sequential Method]
M57;
TTool No.;
:
TTool No.;
M37(M30);
[Random Method]
M57;
SPot No. TTool No.;
:
SPot No. TTool No.;

Explanation
Turns on the tool registration mode.
Two types of registration methods are provided; a sequential method and
random method.
In sequential method, order of data is considered as a pot number. And, in
random method, pot number is specified for each tool.
Magazine number is set according to M450 S__ Specify. If M450 has not
been specified ever, 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 necessary to specify all the pot, but pot number have to be
specified sequentially.
[Random method]
After an M57, specify the pot number with S and the tool number with T
only for necessary pots, in optional order.
Max number of pots is up to the maximum pot number of the tool magazine.

No.0584D-0506

2-17

Specification

M37(M30);

Specification of M Codes
Specification

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.

Specification

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

M58

M59 Mode Cancel

(D)

Program
G01 X___ Y___ F___;
M58;
G01 X___ Y___ F___;
Explanation
Enables [Spindle Speed Override] switch.

2-18

No.0584D-0506

Specification of M Codes
Specification

M59

Spindle Speed Override Cancel


Program
S800 M3;
M59;
G01 X___ Y___ F___;
Explanation
Disables [Spindle Speed Override] switch and fixes the spindle speed
override at 100% until M58 is executed.

M60

Pallet Change

(D)

Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).

Specification

Cannot be used by itself.

M61

Pallet Change

(D)

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

M62

Pallet Change

(D)

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

M63

Pallet Change

(D)

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

M64

Pallet Change

(D)

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

No.0584D-0506

2-19

Specification of M Codes
Specification

M65

Pallet Change

(D)

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

M69

Pallet Ready Not Checked at M60


Explanation
Used when a pallet change (M60) is required even if the ready status of the
pallet on stocker is OFF.
With this M code, ready uncheck mode is turned on.
Once an M60 is executed, this mode is turned off.
This M code cannot be used in the random operation.

Specification

Program Example
M69;
M60;

<----Exchanges pallet even if a next pallet is not ready.

:
Machining Program
:
M60;

M77

<----Exchanges pallet only if a next pallet is ready.

Through Spindle Air ON


Explanation
Turns on through spindle air.

M78

Signal Lamp 1 ON with No Ready Pallet


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.

2-20

No.0584D-0506

Specification of M Codes
Specification

M79

Signal Lamp 2 ON with No Ready Pallet


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
Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).

Specification

Cannot be used by itself.

M84

Pallet 1 Load Check


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 or not if pallet has
not been loaded on the table. When it is not ready, an alarm occurs.

M85

Auto Measuring Approach Mode


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

M86

Auto Measuring Rapid Mode


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 Shutter Open


Explanation
Opens APC shutter.

No.0584D-0506

2-21

Specification of M Codes
Specification

M89

APC Shutter Close


Explanation
Closes APC shutter.

M94

Tool Data Delete Mode ON


Program
M94;
SPot No.;
:
SPot No.;
M37(M30);
Explanation
Deletes all tool data including tool number of the pot specified with S.

Specification

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 specifications are different from the specifications for
Professional.3.

2-22

No.0584D-0506

Specification of M Codes
Specification

M95

Pallet 2 Load Check


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.
Checks whether or not the pallet on the stocker is ready if a pallet has not
been loaded on the table.
When it is not ready, an alarm occurs.

M97

Overhead Shower Coolant ON


Explanation
Turns on the high power (ceiling) coolant.

Sub Program Call

Specification

M98

Program
M98 P___ ;
Explanation
Calls the subprogram specified with P.

M99

Return to Main Program


Program
M99;
Explanation
Returns to the main program from subprogram.

M100

Cleaning Air Off


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

M101

Cleaning Air On
Explanation
This M code is used in tool measurement macro program.

M105

Direct Spare Tool Change


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

No.0584D-0506

2-23

Specification of M Codes
Specification

M106

Direct Spare Tool Change Inhibit Mode


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

M107

Direct Spare Tool Change Permit Mode


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


Explanation
6th Axis Clamp.

Specification

Program Example
M111;
G91 G01 B___ F___ M110;

M111

6th Axis Unclamp


Explanation
6th Axis Unclamp.
Program Example
M111;
G91 G01 B___ F___ M110;

2-24

No.0584D-0506

Specification of M Codes
Specification

M132

Override 100% or Less


Explanation
Sets upper limit of cutting feed rate.
[M132;]
Limits the cutting feedrate 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__;]

M135

Rigid Tap Mode ON


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.

M138

5th Axis Mirror Image ON


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.

No.0584D-0506

2-25

Specification

Used in automatic measuring macro program.


In this mode, the upper limit of the cutting feedrate override is set to the
percentage specified 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. 1029 is set to "1".
Default upper limit of the cutting feedrate override in automatic measuring
mode is set by machine parameter No. 0068.

Specification of M Codes
Specification

M139

6th Axis Mirror Image ON


Program
G28 X___ Y___ A__;
M139;
G01 X___ Y___ A__ F___;
Explanation
Turns on the mirror image of 6th axis.
Specify it in a block by itself.

M140

First Block Skip ON


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.

Specification

M141

First Block Skip OFF


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


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


Explanation
Turns block skip 2 to 9 off.

M152

Block Skip 2 ON
Explanation
Turns on block skip 2.

M153

Block Skip 3 ON
Explanation
Turns on block skip 3.

M154

Block Skip 4 ON
Explanation
Turns on block skip 4.

2-26

No.0584D-0506

Specification of M Codes
Specification

M155

Block Skip 5 ON
Explanation
Turns on block skip 5.

M156

Block Skip 6 ON
Explanation
Turns on block skip 6.

M157

Block Skip 7 ON
Explanation
Turns on block skip 7.

M158

Block Skip 8 ON
Explanation

M159

Specification

Turns on block skip 8.

Block Skip 9 ON
Explanation
Turns on block skip 9.

M172

Rapid Feed Speed Limitation Mode Setting


Explanation
Rapid feed speed limitation mode is set.
Program Example

M186

M172 S0;

(Rapid Feed Speed Limitation Disable)

M172 S1;

(Rapid Feed Speed Limitation Enable)

M172;

(Rapid Feed Speed Limitation Enable)

Count Sum of Machined Parts


Explanation
Adds value to product counter specified by M186.
Number to be added to the counter is specified by T, and the group of
counters to which the value is added is specified by S.
If T has not been specified, it is regarded as T1 has been specified.
If S has not been specified, all the product counter specified to be added by
M186 are added.

No.0584D-0506

2-27

Specification of M Codes
Specification

M187

Dry Run ON
Explanation
Turns on the dry run mode.

M188

Dry Run OFF


Explanation
Turns off the dry run mode.

M198

Subprogram Call to an External I/O Device.


Program
M198 P___ ;
Explanation
Calls a subprogram specified by P from a file in an external I/O device.

Specification

M235

TL Mode OFF
Explanation
Turns off the TL mode.

M236

TL Mode ON
Explanation
Turns on the TL mode.

M237

SL Mode OFF
Explanation
Turns off the SL mode.

M238

SL Mode ON
Explanation
Turns on the SL mode.

M246

Tool Measuring Sensor Y-Axis Direction


Explanation
Specifies the vertical direction for the rotary tool measuring sensor.

M247

Tool Measuring Sensor X-Axis Direction


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

2-28

No.0584D-0506

Specification of M Codes
Specification

M250

GI/Super-GI High Accuracy Mode


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

M251

GI/Super-GI High Performance Mode


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

M252

GI/Super-GI Ultra High Accuracy Mode


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

M253

GI/Super-GI Additional Axis Contouring Mode


Explanation

M254

Specification

Switches GI/Super-GI to the additional axis contouring mode.

GI/Super-GI Special Mode


Explanation
Switches GI/Super-GI to the M254 mode.

M255

GI/Super-GI Radical Mode


Explanation
Switches GI/Super-GI to the radical mode.

M257

GI/Super-GI High Performance Mode for Contouring with Rotary


Axes
Explanation
Switches GI/Super-GI to the high performance mode for contouring with
rotary axes. (This M code is effective for FS300is/FS310is CNC)

M258

GI/Super-GI Ultra High Performance Mode for Contouring with


Rotary Axes
Explanation
Switches GI/Super-GI to the ultra high performance mode for contouring
with rotary axes. (This M code is effective for FS300is/FS310is CNC)

M259

GI Initial Mode
Explanation
Switches GI/Super-GI to the original mode. (This M code is effective for
FS160is/FS180is CNC)

No.0584D-0506

2-29

Specification of M Codes
Specification

M270

Non Contact Type Spindle Measurement


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

M276

Extend Stroke Change Signal OFF


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


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

Specification

M283

SL Lower Limit Mode OFF


Explanation
Turns off the SL lower limit mode.

M284

SL Lower Limit Mode ON


Explanation
Turns on the SL lower limit mode.

M291

Floating M Code Exchange Prohibition Mode OFF


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.

M292

Floating M Code Exchange Prohibition Mode ON


Explanation
Turns on the floating M code exchange prohibition mode.
The floating M code exchange does not function after this M code is
specified.
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.

2-30

No.0584D-0506

Specification of M Codes
Specification

M302

Fin Check for M303 or M304


Explanation
Checks for completion of M303 or M304, and waits until completion if either
code has not been completed.
If M303 or M304 has not been specified yet, M302 finishes immediately.

M303

Spindle CW Without DEN-Waiting


Program
S2000 M303;
G00 G90 Y___ Z___ M302;
G01 Z___;
Explanation

Use M303 and M302 in a pair always.

M304

Spindle CCW Without DEN-Waiting


Program
S2000 M304;
G00 G90 Y___ Z___ M302;
G01 Z___;
Explanation
Starts the spindle in counterclockwise direction without waiting for DEN and
returns FIN immediately.
Use M304 and M302 in a pair always.

No.0584D-0506

2-31

Specification

Starts the spindle in clockwise direction without waiting for DEN and returns
FIN immediately.

Specification of M Codes
Specification

M307

Coolant/Spindle Stop & Release


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

Coolant/Spindle Resume

Specification

Program
M307;
G91 G28 Y0 Z0;
M6;
G91 Y___;
M308;
Explanation
Resumes the spindle and the coolant stopped by M307.
Typically, in case of oil-pan type machine, inserting M307 and M308 before
and after M6 prevents coolant from splashing on the floor.

M310

Spindle Status Reserve & Stop


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.

2-32

No.0584D-0506

Specification of M Codes
Specification

M311

Spindle Resume
Program
M310;
G91 G28 Z0;
G28 X0 Y0;
M6;
G29 X0 Y0;
G29 Z0;
M311;
Explanation
Resumes spindle rotation stopped by M310.

M312

Specification

Use M310 and M311 in a pair always.

Coolant Stop & Reserve


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.

No.0584D-0506

2-33

Specification of M Codes
Specification

M313

Coolant Resume
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.

Specification

M314

Spindle Rotation Before Measuring


Explanation
This M code is used in the automatic measuring macro program.
Rotates to clockwise the spindle at a specified speed during specified time
by machine parameters.
After that, orientates and stops the spindle.

M315

Oil Controller OFF


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


Explanation
Rotates spindle slowly.

2-34

No.0584D-0506

Specification of M Codes
Specification

M318

Spindle Optional Angle Orient Externally (D)


Program
#100=Orient Angle;
M466;
M318;
Explanation
Orients the spindle to the angle specified by macro variable #100.
Specify M466 before M318 to read the value of macro variable #100.
The minimum unit of the angle that can be set for macro variable #100 is
0.1 [deg].
The angle range is 0.0 [deg] to 360.0 [deg].
Program Example

Specification

O1234;
#100=45.;
M466;
M318;
M30;
%

M319

Pre-Orientation
Program
M319;
G91 G28 Z0;
G28 Y0;
M06;
Explanation
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.

M322

Spindle Rotation for Measuring


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

No.0584D-0506

2-35

Specification of M Codes
Specification

M325

Cs Axis Contouring Mode OFF


Program
M326;
G91 G28 C0;
:
M325;
S800 M3;
Explanation
Turns off the Cs axis contouring mode.
The spindle functions as a normal spindle (S, M codes are accepted) until
M326 is specified.
Specify it in a block by itself.

Specification

M326

Cs Axis Contouring Mode ON


Program
M326;
G91 G28 C0;
:
M325;
S800 M3;
Explanation
Turns on the Cs axis contouring mode.
The spindle functions as an NC axis (Cs axis) until M325 is specified.
Specify it in a block by itself.

M327

Spindle Unlock
Explanation
Unlocks the spindle for measuring.

M328

Spindle Lock
Explanation
Locks the spindle for measuring.

M330

Improved Spindle Reverse Orient Externally


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

2-36

No.0584D-0506

Specification of M Codes
Specification

M331

Draw Bar Probe Retract


Explanation
Retract draw bar probe.

M332

Draw Bar Probe Advance


Explanation
Advance draw bar probe.

M340

Attachment Change Start


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

M341

AAC Splashguard Open & AAC Advance


Explanation

Specification

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


Explanation
This M code is used for the semi-automatic attachment changer on MCCC.
The attachment changer is retracted, and then the splashguard for the
attachment changer is closed.

M346

Spindle Attachment Mount Check


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

M347

Spindle Attachment Dismount Check


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

M359

Work information output


Explanation
In case of robot interface type A, output program number specified via
EXPNO01-EXPNO32 signals.

No.0584D-0506

2-37

Specification of M Codes
Specification

M372

Pre-Unclamp (NC Index)


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

Specification

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

2-38

No.0584D-0506

Specification of M Codes
Specification

M373

Clamp Confirmation (NC Index)


Program
M372;
:
B___;
:
M373;
Explanation
This M code is for shortening machining times.
Confirm to command and check clamp before start of cutting feed
Program Example
G91 G30 X0. Y0. M372;

Specification

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

M377

Tool Measuring Laser OFF


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


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

M381

Angle Head Support Retract


Explanation
Angle head support retract.

M382

Angle Head Support Advance


Explanation
Angle head support advance.

No.0584D-0506

2-39

Specification of M Codes
Specification

M387

Vacuum Suction ON
Explanation
Turns on vacuum suction.

M388

Vacuum Suction OFF


Explanation
Turns off vacuum suction.

M389

Tailstock Pressure Change


Explanation
Selects clamp pressure of tailstock.

M390

Spindle Tool Clamp


Explanation

Specification

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.

M391

Spindle Tool Unclamp


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.

2-40

No.0584D-0506

Specification of M Codes
Specification

M392

Spindle Tool Unclamp Ready


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


Explanation

M398

Specification

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

Through Spindle Mist ON


Explanation
Turns on through spindle mist.

M399

Mist Blow ON
Explanation
Turns on mist blowing.

M417

Machine Table Pallet 1 Check


Program
M417;
G53;
/___

<---- Dummy block for preventing pre-reading


;

:
M418;
G53;
/___

<---- Dummy block for preventing pre-reading


;

:
M419;

No.0584D-0506

2-41

Specification of M Codes
Specification

Explanation
When pallet No. 1 has been loaded onto the machine table, block skip 1 is
turned off.
If pallet No. 2 is on the table, block skip 1 is turned on.
If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by
an alarm.
A dummy block for preventing pre-reading such as G53 is necessary after
M417/M418.
[M417/M418 and block skip 1 ON/OFF]
Pallet on machine table

M417

M418

OFF

ON

ON

OFF

Program Example

Specification

O1234;
M98 P9810;
M417;
G53;
/M98 P1;

<----Pallet 1, work offset setting, etc.

/M98 P10;

<----Pallet 1, tool prior-check

M418;
G53;
/M98 P2;

<----Pallet 2, work offset setting, etc.

/M98 P20;

<----Pallet 2, tool prior-check

M419;
G53;
:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
%

2-42

No.0584D-0506

Specification of M Codes
Specification

M418

Machine Table Pallet 2 Check


Program
M417;
G53;
/___

<---- Dummy block for preventing pre-reading


;

:
/___

M418;
G53;
/___

<---- Dummy block for preventing pre-reading


;

:
/___

M419;

When pallet No. 1 has been loaded onto the machine table, block skip 1 is
turned on.
If pallet No. 2 is on the table, block skip 1 is turned off.
If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by
an alarm.
A dummy block for preventing pre-reading such as G53 is necessary after
M417/M418.
[M417/M418 and block skip 1 ON/OFF]

No.0584D-0506

Pallet on machine table

M417

M418

OFF

ON

ON

OFF

2-43

Specification

Explanation

Specification of M Codes
Specification

Program Example
O1234;
M98 P9810;
M417;
G53;
/M98 P1;

<----Pallet 1, work offset setting, etc.

/M98 P10;

<----Pallet 1, tool prior-check

M418;
G53;
/M98 P2;

<----Pallet 2, work offset setting, etc.

/M98 P20;

<----Pallet 2, tool prior-check

M419;
G53;

Specification

:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
%

M419

Machine Table Pallet Check End


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.

2-44

No.0584D-0506

Specification of M Codes
Specification

M430

Pallet Contact Check


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.

M434

BTS LS300 OFF Check


Program
M434 TTool No.(A tool number whose tool break or abnormality must be
checked.);
Explanation
machining process if the previous machining process was abnormally
terminated after M6.
If there is no need to have the BTS check stop the machine, I.e. to generate
an alarm when the next T command is sent, this code is not necessary.
Program Example
M6 T1; <----T1(tool break check is necessary). The tool length is measured
after searching.
:
Machining Program
:
M6 T2; <----Tool change end completes M6 and control advances to next
blocks.
The T1 (tool break check is necessary) will be measured the
length after searching.
:
Machining Program
:
M6 T3; <----If T1 is alarm, machine stops.
:
Machining Program
:
M434 T1;

No.0584D-0506

2-45

Specification

This M code is used when the machine must be stopped before the next

Specification of M Codes
Specification

M435

Tool Broken Status (BT/B2)


Explanation
This M code is used by the ATC-side BTS to measure the tool length after
tool vibration stops.
For this function, place M435 before M6.
This mode will be canceled when M6 is executed.
In this mode, the tool is touched once by the BTS arm to stop vibration, and
then the length is measured.
Program Example
M6;

<----Immediately after M6, tool length is measured.

:
M435;

Specification

M6; <----By tool measuring command, the tool is touched once to the
contactor to stop vibration and then tool length is measured.
:
M6; <----By tool measuring command, the tool length is measured
immediately.

M436

Signal Light 1 Unconditional ON


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

M437

Signal Light 2 Unconditional ON


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

M441

Message Output Function


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

2-46

No.0584D-0506

Specification of M Codes
Specification

M448

Tool Data Register Mode (Type1)


Program
M448 STool Data Register Mode Data TCutter No.;
SPot No. TSetting Data;
:
SPot No. TSetting Data;
M448(M37,M30);
Explanation
Registers the desired tool data.
The magazine number is specified by M450 S__.
If M450 has not ever been specified, the magazine number is considered to
be 1.

Specify the tool data registration mode with S in the same block as where
M448 is specified.
If M448 S0 is specified, or M448 is specified without S, the tool data
registration mode is turned off.
Specify the cutter number with T in the same block as where M448 is
specified.
If M448 is specified without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the pot number is specified
with S, and the tool number is specified with T.
Kind and Setting Value Table for the Tool Data
Tool Data Register

Kind of Tool Data

Setting Data [unit]

Mode Data
(M448 S___)
3

Kind of Pot

0:BT
1:HSK
2:Adapter

Tool No.(PTN)

(4 Digit PTN)1 to 9999


(8 Digit PTN)1 to 99999999

FTN

(4 Digit FTN)1 to 9999


(8 Digit FTN)1 to 99999999

ITN

(4 Digit ITN)1 to 9999


(8 digit ITN)1 to 99999999

No.0584D-0506

2-47

Specification

M448 S4 has the same function as M57.

Specification of M Codes
Specification

Tool Data Register

Kind of Tool Data

Setting Data [unit]

Mode Data
(M448 S___)
7

Priority

0 to 65535

TS Coolant

0:Disable/1:Enable

10

Through Spindle

0 to 99999[ms]

Coolant Time

Specification

11

ATC Speed

0:High/1:Low/2:Middle

12

M60 Disable Flag

0:Disable/1:Enable

13

Prohibition

0:Disable/1:Enable

14

TL Alarm Prohibit

0:Disable/1:Enable

15

Sum of Cutter

1 to 6

102

Kind

0:
1:Drill
2:Ball End Mill
3:End Mill
4:Boring Bar
5:Spring Tool 1
6:Spring Tool 2
7:Tapper
8:Reamer
9:Face Mill
10:Probe
11:Grinding Wheel

103

Tool Length

-9999999 to 9999999

(Geometry(H))

[0.0001mm/0.00001inch]

Tool Length

-9999999 to 9999999

(Wear(H))

[0.0001mm/0.00001inch]

Tool Radius

-9999999 to 9999999

(Geometry(D))

[0.0001mm/0.00001inch]

Tool Radius

-9999999 to 9999999

(Wear(D))

[0.0001mm/0.00001inch]

107

TL[Time]

0:Disable/1:Enable

108

TL Alarm[Time]

0 to 99999999

109

TL Warning[Time]

0 to 99999999

110

TL Value[Time]

-99999999 to 99999999

104
105
106

2-48

No.0584D-0506

Specification of M Codes
Specification

Tool Data Register

Kind of Tool Data

Setting Data [unit]

Mode Data
(M448 S___)
111

TL[Distance]

0:Disable/1:Enable

112

TL

0 to 999999999

Alarm[Distance]
113

TL

0 to 999999999

Warning[Distance]
114

TL

-999999999 to 999999999

Value[Distance]
TL[Count]

0:Disable/1:Enable

116

TL Alarm[Count]

0 to 99999

117

TL

0 to 99999

Specification

115

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=Tool Broken(Long)
BIT01=Tool Broken
BIT02=AC Monitor
BIT03=SL Monitor
BIT04=SL Monitor(non
load)
BIT05=Tool Life

123

Warning

BIT00=Tool Life

124

BTS

0:Disable/1:Enable

125

BTS Before

0 to 9999

126

BTS After

0 to 9999

127

BTS Length

0 to 9999999

128

Operator Call

0:Disable/1:Enable

129

First Used

0:Disable/1:Enable

132

Spindle Speed

0 to 99999[min-1]

Limit

No.0584D-0506

2-49

Specification of M Codes
Specification

Program Example
M448 S4;

<---- Tool data registration mode ON.

Specification

S1 T1010;
<---- Sets tool No.1010 to pot No.1.
S10 T1100;
<---- Sets tool No.1100 to pot No.10.
S5 T1005;
<---- Sets tool No.1005 to pot No.5.
M448 S5;
<---- FTN registration mode.
S1 T1010;
<---- Sets FTN1010 to pot No.1.
S10 T1100;
<---- Sets FTN1100 to pot No.10.
S5 T1005;
<---- Sets FTN1005 to pot No.5.
M448 S103 T1;<---- Tool length (Geometry) registration mode for cutter
No.1.
S1 T1010;
<---- Sets tool length (Geometry) 0.1010 to cutter No.1 of
pot No.1.
S10 M54 T1100;<---- Sets tool length (Geometry) -0.1100 to cutter No.1 of
pot No.10.
S5 T1005;
<---- Sets tool length (Geometry) 0.1005 to cutter No.1 of
pot No.5.
M448 S103 T2;<---- Tool length (Geometry) registration mode for cutter
No.2.
S1 T2010;
<---- Sets tool length (Geometry) 0.2010 to cutter No.2 of
pot No.1.
S10 M54 T2100;<---- Sets tool length (Geometry) -0.2100 to cutter No.2 of
pot No.10.
S5 T2005;
<---- Sets tool length (Geometry) 0.2005 to cutter No.2 of
pot No.5
M448;
<---- Tool data registration mode OFF.
%

2-50

No.0584D-0506

Specification of M Codes
Specification

M449

Tool Data Register Mode (Type2)


Program
M449 SPot No. TCutter No.;
STool Data Register Mode TSetting Data;
:
STool Data Register Mode TSetting 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.

Specify the pot number with S in the same block as where M448 is
specified.
If M448 S0 is specified, or M448 is specified without S, the tool data
registration mode is turned off.
Specify the cutter number with T in the same block as where M448 is
specified.
If M448 is specified without T, the cutter number is considered to be 1.
After the tool registration mode is turned on, the kind of data is specified
with S, and the data is specified with T.
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)

No.0584D-0506

2-51

Specification

This M code is suitable for registering multiple kinds of data for the tool.

Specification of M Codes
Specification

M450

ATC Magazine No. Setting for Tool Data Register Mode


Program
M450 SATC Magazine No.;
S0: Tool out ATC Magazine
S1: ATC Magazine No.1
S2: ATC Magazine No.2
Explanation
Sets the ATC magazine number.
Specify the ATC magazine number with S in the same block where M450 is
specified.
If M450 is specified without S, the ATC magazine number is set to 1.
ATC magazine number is used by the tool data registration M codes

Specification

(M448, M449,M57,M94).
It is retained until NC is reset or until M450 is specified.
The ATC magazine number is set to 1 if the NC has been reset.
Program Example

2-52

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.

No.0584D-0506

Specification of M Codes
Specification

M451

Tool Cutter No. Setting


Program
M451 SCutter 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
M451 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.

Specification

M455

Machining Signal OFF


Explanation
MCRUN signal is turned OFF for Fixture Interface.

M456

Machining Signal ON
Explanation
MCRUN signal is turned ON for Fixture Interface.

M462

Pallet No. Send


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.
After M462, A dummy block for preventing pre-reading such as G53 must
be inserted before reading #100 or #101.

No.0584D-0506

2-53

Specification of M Codes
Specification

M463

Print-out Mode Output


Program
M464;
G53;
#100=#1032;
M463;
Explanation
Enables the measuring function printout switch.
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.

Specification

M464

Specified Spindle Tool Output


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.

2-54

No.0584D-0506

Specification of M Codes
Specification

M465

Spindle Tool No. 0 Output


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.

Macro Variable (#100) Read


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.

M468

Attachment No. Output to Macro (#100)


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.0584D-0506

No attachment

= 13.0

25 [deg] C axis attachment

= 14.0

Extension attachment

= 15.0

25 [deg] manual attachment

2-55

Specification

M466

Specification of M Codes
Specification

M469

TL Alarm Suspension Mode ON


Explanation
Turns on the TL alarm suspend mode when the workpiece automatic
measuring/remachining 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 bythe remachining
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/remachining termination program (O9793).
In particular, when O9793 is executed to cancel the mode, the suspended
alarm is registered.

Specification

M470

Metallic Cutting Mode OFF


Explanation
Turn off metallic cutting mode.

M471

Metallic Cutting Mode ON


Explanation
Turn on metallic cutting mode.v

M474

Next Tool Output


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.

2-56

No.0584D-0506

Specification of M Codes
Specification

M480

Macro Variables Reading Request to MOS


Explanation
When system mode is on, reading request of the macro variable value is
sent to MOS. The read macro variables are decided by MOS side setting.
Machine alarm occurs in the following cases.
- Machine does not communicate with MOS.
- Reading the macro variables was not completed within 60[s].
When system mode is off, M480 is completed in no request to MOS.

M483

Machine Data Output to Macro Variable


Program
#100=Data Kind;
#101=Data Detail 1;

Specification

#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 <--- Dummy block for preventing pre-reading.
(Necessary when M483 is not specified as not-buffered M code.)
Explanation
Outputs the machine data to macro variables.
After setting the type of required machine data with custom macro variable
#100 to #109, specify M483.
The data is then output to macro variable #110.
When referring to the obtained data immediately after the M code, set the
NC parameter so that M483 is a non-buffered M code, or insert a G53 after
the M code to prevent pre-reading.
(Set "483" to an empty NC parameter from No. 3416 to No. 3420 to specify
M483 as a non-buffered M-code.)

No.0584D-0506

2-57

Specification of M Codes
Specification

Tool Data
Macro

Setting

Variable

Value

100

1.0

Tool Data

101

0.0

Spindle pot.

-1.0

Next pot

Pot No.

Other pot

102

Refer

Meaning of Value

Kind of Data

following
103

---

Cutter No. (If empty, 1 is set. )

104

---

ATC Magazine No. (If empty, 1 is set. )

110

Refer

Output Data

following

Specification

Kind and Setting Value Table for the Tool Data (Value are all integers.)
Data of

Kind of Tool Data

Output Data of #110 [unit]

#102
3

Kind of Pot

0:BT
1:HSK
2:Adapter

Tool No. (PTN)

(4 Digit PTN)1 to 9999


(8 Digit PTN)1 to 99999999

FTN

(4 Digit FTN)1 to 9999


(8 Digit FTN)1 to 99999999

ITN

(4 Digit ITN)1 to 9999


(8 digit ITN)1 to 99999999

Priority

0 to 65535

TS Coolant

0:Disable/1:Enable

10

Through Spindle

0 to 99999[ms]

Coolant Suction Time

2-58

11

ATC Speed

0:High/1:Low/2:Middle

12

M60 Disable Flag

0:Disable/1:Enable

13

Prohibition

0:Disable/1:Enable

14

TL Alarm Prohibit

0:Disable/1:Enable

15

Sum of Cutter

1 to 6

No.0584D-0506

Specification of M Codes
Specification

Data of

Kind of Tool Data

Output Data of #110 [unit]

#102
102

Kind

0:
1:Drill
2:Ball End Mill
3:End Mill
4:Boring Bar
5:Spring Tool 1
6:Spring Tool 2
7:Tapper
8:Reamer
9:Face Mill

Specification

10:Probe
11:Grinding Wheel
103

Tool Length

-9999999 to 9999999

(Geometry(H))

[0.0001mm/0.00001inch]

Tool Length

-9999999 to 9999999

(Wear(H))

[0.0001mm/0.00001inch]

Tool Radius

-9999999 to 9999999

(Geometry(D))

[0.0001mm/0.00001inch]

Tool Radius

-9999999 to 9999999

(Wear(D))

[0.0001mm/0.00001inch]

107

TL [Time]

0:Disable/1:Enable

108

TL Alarm [Time]

0 to 99999999

109

TL Warning [Time]

0 to 99999999

110

TL Value [Time]

-99999999 to 99999999

111

TL [Distance]

0:Disable/1:Enable

112

TL Alarm [Distance]

0 to 999999999

113

TL Warning

0 to 999999999

104
105
106

[Distance]
114

TL Value [Distance]

-999999999 to 999999999

115

TL

0:Disable/1:Enable

[Count]
116

TL Alarm

0 to 99999

[Count]

No.0584D-0506

117

TL Warning [Count]

0 to 99999

118

TL Value [Count]

-99999 to 99999

2-59

Specification of M Codes
Specification

Data of

Kind of Tool Data

Output Data of #110 [unit]

#102
119

SL Upper Limit

0 to 20000 [0.01%]

120

SL Lower Limit

0 to 20000 [0.01%]

121

AC

0 to 20000 [0.01%]

122

Alarm

BIT00=Tool Broken (Long)


BIT01=Tool Broken
BIT02=AC Monitor
BIT03=SL Monitor
BIT04=SL Monitor (non load)
BIT05=Tool Life

Specification
2-60

123

Warning

BIT00=Tool Life

124

BTS

0:Disable/1:Enable

125

BTS Before

0 to 9999

126

BTS After

0 to 9999

127

BTS Length

0 to 9999999

128

Operator Call

0:Disable/1:Enable

129

First Used

0:Disable/1:Enable

132

Spindle Speed Limit

0 to 99999[min-1]

No.0584D-0506

Specification of M Codes
Specification

Work Data
Macro

Value

Meaning of Value

Variable
100

2.0

Work Data

101

0.0

Table Pallet

102

-1.0

Pallet on Buffer 1

-2.0

Pallet on Buffer 2

-3.0

Pallet on Carrier

-4.0

Pallet on WSS1

-5.0

Pallet on WSS2
Other pallet

1.0

0 [deg] Face

2.0

90 [deg] Face

3.0

180 [deg] Face

4.0

270 [deg] Face

Specification

Pallet No.

If empty, 1 is set.

No.0584D-0506

103

Refer following

Kind of Work Data

110

Refer following

Output Data

2-61

Specification of M Codes
Specification

Kind and the Setting Value Table for the Work Data
integers.)
Data of

Kind of Work Data

(Values are all

Output Data of #110[unit]

#103
1

Pallet No.

0 to 65535

Priority

0 to 65535

Express

0:OFF/1:ON

103

Ready

0:OFF/1:ON

104

Suspend

0:OFF/1:ON

105

Fin Status

0 to 5

106

Program No.

(4 Digit)1 to 9999
(8 Digit)1 to 99999999

Specification

107

Work Offset (X Axis)

-99999999 to 99999999

108

Work Offset (Y Axis)

-99999999 to 99999999

109

Work Offset (Z Axis)

-99999999 to 99999999

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

117

O No. at Alarm

(4 Digit)1 to 9999
(8 Digit)1 to 99999999

118

N No. at Alarm

0 to 99999

119

Spindle Tool No. at Alarm (4 Digit PTN)1 to 9999


(8 Digit PTN)1 to 99999999

2-62

No.0584D-0506

Specification of M Codes
Specification

Machine Parameter
Variable

Value

100

3.0

101

---

Meaning of Value
Machine Parameter
Machine Parameter No.

110

Output Data (Internal Setting Data)

Machine Condition
Variable
100

Value
4 .0

Meaning of Value
Machine Condition

101

Refer following

Kind of Machine Condition

110

Refer following

Output Data

Kind and Setting Value Table for the Machine Condition


Kind of Machine

#101

Condition

0
1

Output Data of #110[unit]

The state of spindle

0: Warmup is Necessary

warmup

1: Warmup is unnecessary

Last commanded S code

0 to 99999[min-1]

Specification

Data of

Input/Output Signal condition


Variable

Value

Meaning of Value

100

4 .0

Machine Condition

101

0.0

G Address

1.0

F Address

2.0

Y Address

3.0

X Address

100.0

V Address

102

---

Address No.

103

0.0

Bit

1.0

Byte

2.0

Word

4.0

Long

104

0.0-7.0

Bit number
(If size is 0 (Bit), input this item)

110

No.0584D-0506

Refer following

Output Data

2-63

Specification of M Codes
Specification

Program Example ( 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 (Time) is output.

G53;

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

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

Specification

#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.
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-64

No.0584D-0506

Specification of M Codes
Specification

Program Example ( 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:


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

Specification

#100=2.;

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

Program Example ( Machine Condition. )


#100=3.;

<---- Machine condition output command.

#101=1000.; <---- Selects the state of spindle warmup.

No.0584D-0506

M483;

<---- The state of spindle warmup is output.

G53;

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

2-65

Specification of M Codes
Specification

Program Example (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

#103=106.;

<---- Select Size=Bit

#104=4.;

<---- Select Bit address 4

M483;

<---- Condition of X0015 bit 4 is output

G53;

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

Specification

(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
#103=2.;
<---- Select size=WORD
M483;
<---- Condition of G0015 -G0016 is output by WORD
G53;
<---- Dummy block for preventing pre-reading.

M492

First Use Check Request


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

M507

Open ATC Shutter and Start Next Block before Shutter is Fully
Open
Explanation
Opens ATC shutter without waiting for DEN and returns FIN immediately.

M530

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M531

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M532

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

2-66

No.0584D-0506

Specification of M Codes
Specification

M533

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M534

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M535

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M536

M Code for Fixture Interface


Explanation

M537

Specification

This M code is used to control the jig interface.

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M538

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface.

M539

M Code for Fixture Interface


Explanation
This M code is used to control the jig interface..

M548

M Code for ATC


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

M549

M Code for ATC


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

M550

M Code for ATC


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

No.0584D-0506

2-67

Specification of M Codes
Specification

M551

M Code for ATC


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

M552

M Code for ATC


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

M553

M Code for ATC


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

M554

M Code for ATC


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

Specification

M555

M Code for ATC


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

M556

M Code for ATC


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

M557

M Code for ATC


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

M558

M Code for ATC


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

M559

M Code for ATC


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

2-68

No.0584D-0506

Specification of M Codes
Specification

M580

M Code for Special User I/O Interface


Program
M580;
Explanation
UMDO1 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


Program
M581;
Explanation
UMDO1 signal of special user I/O interface is turned on.

Specification

Other output signals in the same group are turned off.

M582

M Code for Special User I/O Interface


Program
M582;
Explanation
UMDO2 signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.

M583

M Code for Special User I/O Interface


Program
M583;
Explanation
UMDO2 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


Program
M584;
Explanation
UMDO3 signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.

No.0584D-0506

2-69

Specification of M Codes
Specification

M585

M Code for Special User I/O Interface


Program
M585;
Explanation
UMDO3 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


Program
M586;
Explanation
UMDO4 signal of special user I/O interface is turned off.

Specification

Other output signals in the same group are turned off.

M587

M Code for Special User I/O Interface


Program
M587;
Explanation
UMDO4 signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.

M588

M Code for Special User I/O Interface


Program
M588;
Explanation
UMDO5 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


Program
M589;
Explanation
UMDO5 signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.

2-70

No.0584D-0506

Specification of M Codes
Specification

M590

M Code for Special User I/O Interface


Program
M590;
Explanation
UMDO6 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


Program
M591;
Explanation
UMDO6 signal of special user I/O interface is turned on.

Specification

Other output signals in the same group are turned off.

M592

M Code for Special User I/O Interface


Program
M592;
Explanation
UMDO7 signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.

M593

M Code for Special User I/O Interface


Program
M593;
Explanation
UMDO7 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


Program
M594;
Explanation
UMDO8 signal of special user I/O interface is turned off.
Other output signals in the same group are turned off.

No.0584D-0506

2-71

Specification of M Codes
Specification

M595

M Code for Special User I/O Interface


Program
M595;
Explanation
UMDO8 signal of special user I/O interface is turned on.
Other output signals in the same group are turned off.

M600

Pallet Change Sub M Code

(D)

Explanation
This M code is used in the pallet change subprogram.

M601

Axis Index Program End

(D)

Explanation

Specification

This M code is used in the axis index program.

M602

Routine Function DNC Program End


Explanation
This M code is used in the one-touch function DNC program.
Indicates the end of the one-touch function, and returns operation mode to
original mode after single-block stop.
Normally it is not used.

M603

Tool Retract End


Explanation
This M code is used for registration of modal data or data at the start of the
direct STS program.
Do not use in machining program.
Normally it is not used.

M604

Work Chuck Clamp


Explanation
Clamp work chuck.

M605

Work Chuck Unclamp


Explanation
Unclamp work chuck.

2-72

No.0584D-0506

Specification of M Codes
Specification

M608

Individual Pallet Loading


Explanation
1. For V33/V56/V77
This M code is used in the one-touch function DNC program to indicate
starting of the function.
2. For V56 pallet magazine
(1)Loads ready-pallet:
:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M608;
:
Loads the pallet ready to the machine table.

3. For a-Series pallet magazine


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

No.0584D-0506

2-73

Specification

(2)Loads specified pallet.


:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
#100=____ ;
M466;
M608;
:
Set the pallet number to the macro variable #100, and command
M466.
You can select by setting of the machine parameter No.8069
whether to stop the machine with an alarm or not, if specified pallet
isn't ready or the machine reserve mode is ON.
(0:Stop with alarm/ 1:Not stop with alarm)
The pallet number for macro variable #100 must be with decimal
point. (Example: #100=1.0)

Specification of M Codes
Specification

Specification

(2)Loads specified 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.8069
whether to stop the machine with an alarm or not, if specified pallet
isn't ready or the machine reserve mode is ON.
(0:Stop with alarm/ 1:Not stop with alarm)
The pallet number for macro variable #100 must be with decimal
point. (Example: #100=1.0)
The specified pallet number is 0. In that case, lifter is moved in front
of the machine buffer (preparation for unloading).

M609

Respective Unload
Explanation
1. For V33/V56/V77
This M code is used in the one-touch function DNC program to unload the
pallet.
2. For V56 pallet magazine
:
G91 G30 P3 Z0;
G91 G30 P3 X0 Y0;
M609;
:
Pallet on the machine table is returned to the stocker.
3. For a-Series pallet magazine
:
M609;
:
Pallet on the machine buffer is returned to the magazine stocker.
Nothing is done when there is no pallet in the machine buffer.

2-74

No.0584D-0506

Specification of M Codes
Specification

M610

AAC Step Retract


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

AAC Step Advance


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.

M612

Workpiece Change
Explanation
Exchanges workpiece on stocker with workpiece on table.

Specification

M613

Workpiece Unload
Explanation
Moves workpiece from table to stocker.

M614

Workpiece Load
Explanation
Moves workpiece from stocker to table.

M621

TTravel Limit Valid


Explanation
Turns on the stroke limit mode according to machine parameter No. 0835
and No. 0977.
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


Explanation
Stroke limit is ignored temporarily.

No.0584D-0506

2-75

Specification of M Codes
Specification

M630

Axis Retract Position at ATC


Program
M630 SZ 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.

M631

AWC Index Work Selection Command


Explanation
Select work that loaded by load command.

Specification

M638

ATC Shutter Close


Explanation
Closes ATC shutter.

M639

ATC Shutter Open


Explanation
Opens ATC shutter.

M661

ATC & B Axis Simultaneous Operation


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.

2-76

No.0584D-0506

Specification of M Codes
Specification

M662

ATC & B Axis Simultaneous Operation End Check


Program
G91 G28 Z0;
G28 Y0 M661;
M11;
G90 G01 B___ F___;
M10;
M662;
:
Explanation
Checks completion of tool change specified by M661.

M663

M Code for ATC


Explanation
This M code is used in the ATC subprogram.

M706

Angle Plate / Table Cleaning Coolant OFF


Explanation
Turns off angle plate / table cleaning coolant.

M707

Angle Plate / Table Cleaning Coolant ON


Explanation
Turns on angle plate / table cleaning coolant.

M708

Additional Nozzle Coolant ON


Explanation
Turns on additional nozzle coolant.

M709

Coolant Stop without DEN Waiting


Program
G01 X___ Y___ F___ M709;
Explanation
Stops all the coolant without waiting for the end of travel command
distribution (DEN) signal.

No.0584D-0506

2-77

Specification

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


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

Specification of M Codes
Specification

M710

Mist Collector OFF


Explanation
Turns off the mist collector.

M711

Mist Collector ON
Explanation
Turns on the mist collector.

M722

Stylus Cleaning Air OFF


Explanation
Turns off Stylus Cleaning Air.

M723

Stylus Cleaning Air ON


Explanation

Specification

Turns on Stylus Cleaning Air.

M732

Coolant Pressure Set 1


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

M733

Coolant Pressure Set 2


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

M734

Coolant Pressure Set 3


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

M735

Coolant Pressure Set 4


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

M736

Lighting ON
Explanation
Turns on the machine light.

M737

Lighting OFF
Explanation
Turns off the machine light.

2-78

No.0584D-0506

Specification of M Codes
Specification

M740

Inner Chip Conveyor OFF


Explanation
Stops the inner chip conveyor.

M741

Inner Chip Conveyor ON


Explanation
Starts the inner chip conveyor.

M742

Oil Skimmer OFF


Explanation
Stops the oil skimmer.

M743

Oil Skimmer ON
Explanation

M745

Specification

Starts the oil skimmer.

Spindle Upper Nozzle Coolant ON


Explanation
Turns on spindle upper nozzle coolant.

M747

Measuring Head Cleaning Air ON


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

M748

IMM Cleaning Air ON


Explanation
Turns on IMM cleaning air.

M749

IMM Cleaning Air OFF


Explanation
Turns off IMM cleaning air.

M750

IMM Cleaning Air ON Mode


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

No.0584D-0506

2-79

Specification of M Codes
Specification

M751

IMM Cleaning Air OFF Mode


Explanation
Turns off M750 mode.

M754

Base Coolant ON
Explanation
Turns on IMM cleaning air.

M755

Cleaning Telescopic-Cover Coolant ON


Explanation
Turns on base coolant.

M756

Air Blow ON
Explanation

Specification

Turns on air blow.

M757

Telescopic-Cover Coolant OFF


Explanation
Turns off coolant for telescopic cover.

M775

Tool Cleaning Air OFF


Explanation
Turns off tool cleaning air of rotary tool measuring system.

M776

Tool Cleaning Air ON


Explanation
Turns on tool cleaning air of rotary tool measuring system.

M790

Set Amount of Oil to Little (MQL)


Explanation
Sets amount of oil on MQL to low.

M791

Set Amount of Oil to Standard (MQL)


Explanation
Sets amount of oil on MQL to standard.

M792

Set Amount of Oil to Large (MQL)


Explanation
Sets amount of oil on MQL to high.

2-80

No.0584D-0506

Specification of M Codes
Specification

M793

Set Mist Pressure to High (MQL)


Explanation
Sets mist pressure on MQL to high.

M794

Set Mist Pressure to Standard (MQL)


Explanation
Sets mist pressure on MQL to standard.

M883

Angle Head Coolant ON


Explanation
Turns the angle head coolant on.

M884

Inner Chip Conveyor Speed Setting


Program
M884 Sinner Chip Conveyor Speed;

Specification

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

M885

Angle Head Support Pin Cleaning Air ON


Explanation
Turns the angle head support pin cleaning air on.

M895

Increase Air OFF (MQL)


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

M896

Increase Air ON (MQL)


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

No.0584D-0506

2-81

Specification of M Codes
Specification

M898

Attachment Lubrication Off


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

M903

M Code to Generate Alarm


Explanation

Specification

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

M910

Workpiece Automatic Measuring Mode Cancel


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


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

2-82

No.0584D-0506

Specification of M Codes
Specification

M919

Counting No. of Machined Parts


Program
M919 SIncrement/Decrement;
Explanation
Specify the value to be added or subtracted with S in the block as M919.
When this value is specified, it is added or subtracted to the tool life on the
tool data screen.
If M919 is specified without S, it is considered to be M919 S1.
The number specified with S is added to the counter or
subtracted from the counter according to the setting of machine
parameter No. 01019.

Specification

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

No.0584D-0506

2-83

Specification of M Codes
Specification

M920

Tool Length Measuring Data Read


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.
There are two kinds of tool length data on the "Tool Data" screen:
Geometry (H) and Wear (H).
The data written to the macro variable #100 is merged with that data.

Specification

Therefore, the data is written as follows in the tool data.


Tool Length (Geometry(H)) = #100
Set the NC parameter to specify M920 as non-buffered M
code, or insert a G53 after the M code to prevent pre-reading.
When employing a tool by the PTN (Machine parameter
No.12013), it cannot use simultaneously with this M code. If
employing a tool by the PTN, a tool cannot be specified by the
method of specifying a tool number to #109. Writing is
performed to all the tools corresponding to the tool numbers
set to #109.
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;
%

2-84

No.0584D-0506

Specification of M Codes
Specification

M921

Tool Radius Measuring Data Read


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:

Specification

Geometry (H) and Wear (H).


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(H)) = #100
Tool Radius (Wear(H)) = 0
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.
When employing a tool by the PTN (Machine parameter
No.12013), it cannot use simultaneously with this M code. If
employing a tool by the PTN, a tool cannot be specified by the
method of specifying a tool number to #109. Writing is
performed to all the tools corresponding to the tool numbers
set to #109.

No.0584D-0506

2-85

Specification of M Codes
Specification

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.

Specification

M30;
%

2-86

No.0584D-0506

Specification of M Codes
Specification

M922

M920, M921 Data Incremental Mode


Program
#100=Tool Radius Measuring Data;
#109=Tool Specifying;
M922;
M920;or M921;
Explanation
The add mode for adding of data to the macro variable for the tool data
when the tool data is written with M920 or M921 is turned ON.
As this mode is momentary, it must be specified before M920 or M921
every time.
Program Example

Specification

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;
M920;
:
Machining Program
:
M30;
%

No.0584D-0506

2-87

Specification of M Codes
Specification

M940

Auto End Due to Illegal Work Measurement


Explanation
This M code is used in the automatic measuring macro program.
If the results are illegal after automatic measurement, a measuring alarm is
triggered and the operator call function or automatic reject function is
turned on, depending on the machine operation mode.
Differing from M35, a BTS alarm is not triggered for the previous tool.

M941

MP7 Measuring Head Check


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.

Specification

M946

Spindle Tool Pot No. Output


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.

2-88

No.0584D-0506

Specification of M Codes
Specification

M947

Next Tool Pot No. Output


Program
M947;
G53;
#100=#1032;
M463;
Explanation
Writes pot number to which the next tool (tool specified with T) is returned
to macro variable #1032.
After reading #1032, execute M463 to restore printout mode output.
After M947 and before reading #1032, insert a dummy block for
preventing pre-reading such as G53.

Specification

M948

M Code for ATC


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

M950

Non Contact Type Measurement Device Zero Set


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

M951

Blum Bore Gauge Start


Program
#101=Function Number;
#102=Head Number;
#103=Parameter Number;
#104=Parameter Setting Value;
#108=Point Number;
M951;
G53;
Explanation
Start Blum Bore Gauge.
Macro value is changed by machine parameter No.1069.
Refer to follow table for macro value of input/output.

No.0584D-0506

2-89

Specification of M Codes
Specification

Function

Macro Value(Input)

Macro Value(Output)

Name
Measuring

#101=1.

#105=Result

#102=Head No.

#106=Measuring Result

#108=Point No.

[0.1um]
#107=Battery remain [%]

Calibration

Write
Parameter

#101=2.

#105=Result

#102=Head No.

#106=Calibration Result

#108=Point No.

[0.1um]

#101=3.

#105=Result

#102=Head No.
#103=Parameter No.

Specification

(4:Gauge Compensation,
6:Head No.)
#104=Parameter Setting
Value(Gauge
Compensation[1um])
Read
Parameter

#101=4.

#105=Result

#102=Head No.

#106=Parameter Setting

#103=Parameter No.

Value(Gauge

(4:Gauge Compensation,

Compensation [1um],

5:Calibration,6:Head No.)

Calibration[0.1um ])

Read Head #101=5.

#105=Result

Parameter

#106=Head No.

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

2-90

No.0584D-0506

Specification of M Codes
Specification

M963

Measuring Probe Power OFF & Check


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


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


Explanation
Turns off the power for measuring head.

Specification

M966

Measuring Probe Power ON


Explanation
Turns on the power for measuring head.

M968

Cutting Condition Auto Select


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

M984

High Speed Counter Type Tool Measurement


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

M994

Rotary Axis Coordinate Calculate Function


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

M2300

Rotary Axis Coordinate Calculate Function


Explanation
Specify SPIN TABLE speed, refferance and index action.
Program Example
M2300 Snnn; or

No.0584D-0506

M2300 Snnn T0;

CW (nnn:speed)

M2300 Snnn T1;

CCW(nnn:speed)

M2300 T2;

Index

M2300 T3;

Refferance

2-91

Specification of M Codes
Specification

M2301

Rotary Axis Coordinate Calculate Function


Explanation
SPIN TABLE spinning start specified by M2300.
Program Example
M2301;

M2302

Rotary Axis Coordinate Calculate Function


Explanation
SPIN TABLE spinning stop.
Program Example
M2302;

Specification

M2320

INPROCESS GAUGE Measureing Cycle Start


Explanation
INPROCESS GAUGE measuring cycle start
Program Example
M2320 Spp Tcc;

M2321

(S:Cycle No., T:Part No.)

INPROCESS GAUGE Autozero Cycle Start


Explanation
INPROCESS GAUGE autozero cycle start.
Program Example
M2321 Spp Tcc;

M2322

(S:Cycle No., T:Part No.)

INPROCESS GAUGE Measureing Head Retraction


Explanation
INPROCESS GAUGE outer / inner measuring head retraction air control
solenoid SL3115.SL3116 ON/OFF.
Program Example

2-92

M2322 S0;

(SL3115,SL3116 both OFF)

M2322 S1;

(SL3115 ON)

M2322 S2;

(SL3116 ON)

No.0584D-0506

Specification of M Codes
Specification

M2323

INPROCESS GAUGE Get Measuring Data


Explanation
Get INPROCESS GAUGE measuring data to common macro valiable
#100.
Program Example
M2323;

M2324

INPROCESS GAUGE Manual Mode


Explanation
Set INPROCESS GAUGE to manual mode.
Program Example
M2324;

Rotary Dresser Control


Explanation
Rotary Dresser High Speed / Low Speed control solenoid SL3114.SL3113
ON/OFF.
Program Example

No.0584D-0506

M2340 S0;

(SL3114,SL3113 both OFF)

M2340 S1;

(SL3113 ON)

M2340 S2;

(SL3114 ON)

2-93

Specification

M2340

Specification of M Codes
Specification

Specification
2-94

No.0584D-0506

Index

3.

Index

No.0584D-0506

3-1

Index

Index

4th Axis Clamp................................2-4


4th Axis Mirror Image ON ...............2-5
4th Axis Unclamp ............................2-5

5th Axis Clamp................................2-5


5th Axis Mirror Image ON .............2-25
5th Axis Unclamp ............................2-5

6th Axis Clamp..............................2-24


6th Axis Mirror Image ON .............2-26
6th Axis Unclamp ..........................2-24

Index

AAC Retract & AAC Splashguard


Close.............................................2-37
AAC Splashguard Open & AAC
Advance........................................2-37
AAC Step Advance .......................2-75
AAC Step Retract..........................2-75
AC Coefficient 100%, SL Coefficient
200%.............................................2-13
AC/SL Data Temporary Alter Mode
OFF...............................................2-11
AC/SL Data Temporary Alter Mode
ON ................................................2-11
Additional Nozzle Coolant ON ......2-77
Air Blow ON ..................................2-80
Angle Head Coolant ON ...............2-81
Angle Head Support Advance ......2-39
Angle Head Support Pin Cleaning Air
ON ................................................2-81
Angle Head Support Retract.........2-39
Angle Plate / Table Cleaning Coolant
OFF...............................................2-77
Angle Plate / Table Cleaning Coolant
ON ................................................2-77
APC Shutter Close........................2-22
APC Shutter Open ........................2-21
ATC & B Axis Simultaneous
Operation ......................................2-76
ATC & B Axis Simultaneous
Operation End Check ...................2-77
ATC Magazine No. Setting for Tool
Data Register Mode......................2-52
ATC Shutter Close ........................2-76
ATC Shutter Open ........................2-76

3-2

Attachment Change End ..............2-41


Attachment Change Start .............2-37
Attachment Lubrication Off ...........2-82
Attachment Lubrication On...........2-82
Attachment No. Output to Macro
(#100) ...........................................2-55
Auto End Due to Illegal Work
Measurement................................2-88
Auto Measuring Approach Mode ..2-21
Auto Measuring Rapid Mode........2-21
Auto Reject Mode OFF
(Reject Inhibit for Alarm)...............2-13
Auto Reject Mode ON
(M52 Mode Cancel)......................2-13
Automatic Tool Change ..................2-4
AWC Index Work Selection
Command .....................................2-76
Axis Index Program End...............2-72
Axis Retract Position at ATC ........2-76

Base Coolant ON..........................2-80


Block Skip 2 ON ...........................2-26
Block Skip 2 to 9 OFF ..................2-26
Block Skip 3 ON ...........................2-26
Block Skip 4 ON ...........................2-26
Block Skip 5 ON ...........................2-27
Block Skip 6 ON ...........................2-27
Block Skip 7 ON ...........................2-27
Block Skip 8 ON ...........................2-27
Block Skip 9 ON ...........................2-27
Blum Bore Gauge Start ................2-89
BTS Arm Advance (Movable BTS) .2-5
BTS Arm Retract(Movable BTS) ....2-6
BTS Check .....................................2-6
BTS LS300 OFF Check................2-45

Clamp Confirmation......................2-39
Cleaning Air Off ............................2-23
Cleaning Air On ............................2-23
Cleaning Telescopic-Cover Coolant
ON ................................................2-80
Coolant OFF ...................................2-4
Coolant Pressure Set 1 ................2-78
Coolant Pressure Set 2 ................2-78
Coolant Pressure Set 3 ................2-78
Coolant Pressure Set 4 ................2-78

No.0584D-0506

Index
Coolant Resume........................... 2-34
Coolant Stop & Reserve............... 2-33
Coolant Stop without DEN Waiting
2-77
Coolant/Spindle Resume.............. 2-32
Coolant/Spindle Stop & Release .. 2-32
Count Sum of Machined Parts ..... 2-27
Counting No. of Machined Parts .. 2-83
Cs Axis Contouring Mode OFF .... 2-36
Cs Axis Contouring Mode ON ...... 2-36
Cutting Condition Auto Select ...... 2-91

Direct Spare Tool Change ............ 2-23


Direct Spare Tool Change Inhibit
Mode ............................................ 2-24
Direct Spare Tool Change Permit
Mode ............................................ 2-24
Draw Bar Probe Advance............. 2-37
Draw Bar Probe Retract ............... 2-37

End of Program .............................. 2-2


Extend Stroke Change Signal OFF
2-30
Extend Stroke Change Signal ON
2-30
Feedrate Override Cancel............ 2-13
Fin Check for M303 or M304........ 2-31
First Block Skip OFF .................... 2-26
First Block Skip ON ...................... 2-26
First Block Skip Return................. 2-26
First Use Check Request ............. 2-66
Floating M Code Exchange
Prohibition Mode OFF .................. 2-30
Floating M Code Exchange
Prohibition Mode ON .................... 2-30

GI Initial Mode .............................. 2-29


GI/Super-GI Additional Axis
Contouring Mode.......................... 2-29
GI/Super-GI High Accuracy Mode 2-29
GI/Super-GI High Performance Mode
.................................................. 2-29
GI/Super-GI High Performance Mode
for Contouring with Rotary Axes... 2-29
GI/Super-GI Radical Mode........... 2-29
GI/Super-GI Special Mode ........... 2-29

No.0584D-0506

High Speed Counter Type Tool


Measurement ............................... 2-91

IMM Cleaning Air OFF.................. 2-79


IMM Cleaning Air OFF Mode ....... 2-80
IMM Cleaning Air ON ................... 2-79
IMM Cleaning Air ON Mode ......... 2-79
Improved Spindle Reverse Orient
Externally ..................................... 2-36
Increase Air OFF (MQL)............... 2-81
Increase Air ON (MQL)................. 2-81
Inner Chip Conveyor OFF............ 2-79
Inner Chip Conveyor ON.............. 2-79
Inner Chip Conveyor Speed Setting
.................................................. 2-81
INPROCESS GAUGE Autozero
Cycle Start.................................... 2-92
INPROCESS GAUGE Get
Measuring Data............................ 2-93
INPROCESS GAUGE Manual Mode
2-93
INPROCESS GAUGE Measureing
Cycle Start.................................... 2-92
INPROCESS GAUGE Measureing
Head Retraction ........................... 2-92

Lighting OFF ................................ 2-78


Lighting ON .................................. 2-78

M Code for ATC


...................... 2-67, 2-68, 2-77, 2-89
M Code for Fixture Interface
......................................... 2-66, 2-67
M Code for Special User I/O Interface
...................... 2-69, 2-70, 2-71, 2-72
M Code to Generate Alarm .......... 2-82
M49 Mode Cancel ........................ 2-13
M59 Mode Cancel ........................ 2-18
M920, M921 Data Incremental Mode
.................................................. 2-87

3-3

Index

GI/Super-GI Ultra High Accuracy


Mode ............................................ 2-29
GI/Super-GI Ultra High Performance
Mode for Contouring with Rotary
Axes ............................................. 2-29

Index

Index

Machine Data Output to Macro


Variable .....................................2-57
Machine Table Pallet 1 Check ......2-41
Machine Table Pallet 2 Check ......2-43
Machine Table Pallet Check End..2-44
Machining Signal OFF ..................2-53
Machining Signal ON ....................2-53
Macro Variable (#100) Read.........2-55
Macro Variables Reading Request to
MOS ..........................................2-57
Measuring Head Alarm Check......2-82
Measuring Head Cleaning Air ON
..................................................2-79
Measuring Probe Power OFF.......2-91
Measuring Probe Power OFF &
Check ........................................2-91
Measuring Probe Power ON.........2-91
Measuring Probe Power ON & Check
..................................................2-91
Message Output Function ............2-46
Metallic Cutting Mode OFF ...........2-56
Metallic Cutting Mode ON.............2-56
Mirror Image OFF ...........................2-7
Mist Blow ON ................................2-41
Mist Collector OFF........................2-78
Mist Collector ON..........................2-78
Mist Coolant/Air Blow ON ...............2-4
MP7 Measuring Head Check........2-88

Next Tool Output ...........................2-56


Next Tool Pot No. Output ..............2-89
Non Contact Type Measurement
Device Zero Set ........................2-89
Non Contact Type Spindle
Measurement ............................2-30
Nozzle Coolant ON .........................2-4

Oil Controller OFF.........................2-34


Oil Controller ON ..........................2-34
Oil Skimmer OFF ..........................2-79
Oil Skimmer ON............................2-79
Open ATC Shutter and Start Next
Block before Shutter is Fully Open
..................................................2-66
Optional Stop ..................................2-2
Overhead Shower Coolant ON.....2-23
Override 100% or Less.................2-25

3-4

Pallet 1 Load Check .....................2-21


Pallet 2 Load Check .....................2-23
Pallet Change ............ 2-19, 2-20, 2-21
Pallet Change Sub M Code..........2-72
Pallet Contact Check ....................2-45
Pallet No. Send.............................2-53
Pallet Ready Not Checked at M60
..................................................2-20
Part Program End and Repeat .......2-7
Pre-Orientation .............................2-35
Pre-Unclamp.................................2-38
Print-out Mode Output ..................2-54
Prior Tool Check .............................2-9
Program Stop..................................2-2

Rapid Feed Speed Limitation Mode


Setting.......................................2-27
Respective Load...........................2-73
Respective Unload .......................2-74
Return to Main Program ...............2-23
Rigid Tap Mode ON ......................2-25
Rotary Axis Coordinate Calculate
Function ...........................2-91, 2-92
Rotary Dresser Control.................2-93
Routine Function DNC Program End
..................................................2-72

Set Amount of Oil to Large(MQL) .2-80


Set Amount of Oil to Standard(MQL)
..................................................2-80
Set Mist Pressure to High (MQL) .2-81
Set Mist Pressure to Standard (MQL)
..................................................2-81
Signal Lamp 1 ON with No Ready
Pallet .........................................2-20
Signal Lamp 2 ON with No Ready
Pallet .........................................2-21
Signal Light 1 Unconditional ON ..2-46
Signal Light 2 Unconditional ON ..2-46
SL and AC Coefficient 0% ............2-12
SL Coefficient Setting 125%.........2-12
SL Coefficient Setting 150%.........2-12
SL Coefficient Setting 200%.........2-12
SL Lower Limit Coefficient Setting
0%.............................................2-12

No.0584D-0506

Index

Tailstock Pressure Change .......... 2-40


Telescopic-Cover Coolant OFF .... 2-80
Through Spindle Air ON ............... 2-20
Through Spindle Coolant ON ......... 2-7
Through Spindle Mist ON ............. 2-41

No.0584D-0506

TL Alarm Suspension Mode ON... 2-56


TL Mode OFF ............................... 2-28
TL Mode ON................................. 2-28
Tool Broken Status (BT/B2).......... 2-46
Tool Cleaning Air OFF.................. 2-80
Tool Cleaning Air ON.................... 2-80
Tool Cutter No. Setting ................. 2-53
Tool Data Delete Mode ON
................................2-22, 2-28, 2-69
Tool Data Register Mode (Type1) 2-47
Tool Data Register Mode (Type2) 2-51
Tool Data Register Mode OFF ..... 2-10
Tool Length Auto Measuring Mode 2-8
Tool Length Circuit Check ............ 2-12
Tool Length Circuit Check .............. 2-8
Tool Length Measuring Data Read
.................................................. 2-84
Tool Measuring Laser OFF .......... 2-39
Tool Measuring Laser ON ............ 2-39
Tool Measuring Sensor X-Axis
Direction ................................... 2-28
Tool Measuring Sensor Y-Axis
Direction ................................... 2-28
Tool No. Register Mode ............... 2-17
Tool Offset Data Negative Register
Mode .......................................... 2-14
Tool offset Data Transfer Command
.................................................. 2-15
Tool Radius Measuring Data Read
.................................................. 2-85
Tool Retract End........................... 2-72
Travel Limit Invalid ....................... 2-75

Unconditional Power Out ............... 2-7

Vacuum Suction OFF ................... 2-40


Vacuum Suction ON..................... 2-40

Work Chuck Clamp ...................... 2-72


Work Chuck Unclamp .................. 2-72
Work information output ............... 2-37
Workpiece Auto Measuring Mode .. 2-8
Workpiece Auto Measuring Pallet
Unload .......................................... 2-8
Workpiece Auto Measuring Spare
Tool Call........................................ 2-8

3-5

Index

SL Lower Limit Coefficient Setting


125%......................................... 2-12
SL Lower Limit Mode OFF ........... 2-30
SL Lower Limit Mode ON ............. 2-30
SL Mode OFF ............................... 2-28
SL Mode ON................................. 2-28
Specified Spindle Tool Output ...... 2-54
Spindle Attachment Dismount Check
.................................................. 2-37
Spindle Attachment Mount Check 2-37
Spindle CCW Start.......................... 2-3
Spindle CCW Without DEN-Waiting
.................................................. 2-31
Spindle CW Start ............................ 2-3
Spindle CW Without DEN-Waiting
.................................................. 2-31
Spindle Lock ................................. 2-36
Spindle Optional Angle Orient
Externally .................................. 2-35
Spindle Orientation Stop................. 2-6
Spindle Resume ........................... 2-33
Spindle Rotation Before Measuring
.................................................. 2-34
Spindle Rotation for Alignment ..... 2-34
Spindle Rotation for Measuring .... 2-35
Spindle Speed Override Cancel ... 2-19
Spindle Status Reserve & Stop .... 2-32
Spindle Stop ................................... 2-3
Spindle Tool Clamp....................... 2-40
Spindle Tool No. 0 Output............. 2-55
Spindle Tool Pot No. Output ......... 2-88
Spindle Tool Unclamp................... 2-40
Spindle Tool Unclamp Ready ....... 2-41
Spindle Unlock.............................. 2-36
Spindle Upper Nozzle Coolant ON
.................................................. 2-79
Stylus Cleaning Air OFF ............... 2-78
Stylus Cleaning Air ON................. 2-78
Sub Program Call ......................... 2-23
Subprogram Call to an External I/O
Device....................................... 2-28

Index
Workpiece Automatic Measuring
Mode Cancel...............................2-82
Workpiece Change .......................2-75
Workpiece Load............................2-75
Workpiece Unload ........................2-75

X Axis Mirror Image ON................. 2-6

Y Axis Mirror Image ON................. 2-6

Index
3-6

No.0584D-0506

Appendix

4. Appendix

x
i
d
n
e
p
p
A
No.0584D-0506

4-1

Appendix

4.1 History of M Code List


Number
0584B-0310
0584C-0405
0584D-0506

Date
Oct-03
Oct-04
June-05

Contents
First edition
Add new M code.
Add new M Code.

x
i
d
n
e
p
p
A
4-2

No.0584D-0506

Vous aimerez peut-être aussi