Professional Documents
Culture Documents
Pro-5 M Code List All Models Makinot All Models Makino
Pro-5 M Code List All Models Makinot All Models Makino
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
Specification of M Codes
Specification ............................................................................ 2-2
3.
Index
4.
Appendix
4.1
List of M Codes
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
List of M Codes
1-2
No.0584D-0506
List of M Codes
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
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
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
List of M Codes
List of M Codes
No.0584D-0506
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
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
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
M02
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
M05
No.0584D-0506
2-3
Specification
Explanation
Specification of M Codes
Specification
M06
Specification
M07
M08
Nozzle Coolant ON
Explanation
Turns the nozzle coolant on.
M09
M10
2-4
No.0584D-0506
Specification of M Codes
Specification
M11
M12
Specification
Explanation
Clamps 5th axis after the block containing M12 is executed.
M13
M14
M16
No.0584D-0506
2-5
Specification of M Codes
Specification
M18
M19
M20
Specification
M21
M22
2-6
No.0584D-0506
Specification of M Codes
Specification
M23
M26
(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
No.0584D-0506
2-7
Specification of M Codes
Specification
M31
M32
M33
Specification
M34
M35
2-8
No.0584D-0506
Specification of M Codes
Specification
M36
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.
No.0584D-0506
2-9
Specification of M Codes
Specification
M37
Explanation
Turns off the tool data registration mode.
When a registration mode is ON, another registration mode cannot be
turned on without turning off the current mode.
While the tool data registration mode is ON, you can't use S code to
command spindle speed, and can't use T code to command next tool.
You can use them to command a spindle speed and a tool number, after
M37 is executed.
Specification
Program Example
O1234;
M448 S4;
S1 T1000;
S2 T2000;
M448 S119;
S1 T123;
S1 T456;
M37;
:
Machining Program
:
M30;
%
2-10
No.0584D-0506
Specification of M Codes
Specification
M38
Specification
S125;
S30;
M39;
:
Machining Program
:
M30;
%
M39
No.0584D-0506
2-11
Specification of M Codes
Specification
M41
M42
M43
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
M46
M47
2-12
No.0584D-0506
Specification of M Codes
Specification
M48
(D)
Program
G01 X___ Y___ F___ M48;
Explanation
Enables the feedrate override switch after the block containing M48 is
executed.
M49
M50
M51
M52
No.0584D-0506
2-13
Specification
Disables the feedrate override switches and fixes the feedrate override at
Specification of M Codes
Specification
M54
Specification
M448 S103;
M54;
S1T1234;
S2 M54 T345;
S3 T345;
M30
%
2-14
No.0584D-0506
Specification of M Codes
Specification
M56
Length (Wear(H))
Specification
Length (Geometry(H))
D>0
Radius (Geometry(D))
Radius (Wear(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
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;
M57;
T1;
T2;
M37;
M450;
T12;
T345;
M30;
Specification
[Random Type]
O1234;
M57;
S1 T1010;
S10 T1100;
S5 T1005;
M30;
%
M58
(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
M60
Pallet Change
(D)
Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Specification
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
Specification
Program Example
M69;
M60;
:
Machining Program
:
M60;
M77
M78
2-20
No.0584D-0506
Specification of M Codes
Specification
M79
M80
Pallet Change
Explanation
This M code is used in the pallet loading and unloading programs (O9810,
O9820).
Specification
M84
M85
M86
M88
No.0584D-0506
2-21
Specification of M Codes
Specification
M89
M94
Specification
M94;
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;
M450;
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;
2-22
No.0584D-0506
Specification of M Codes
Specification
M95
M97
Specification
M98
Program
M98 P___ ;
Explanation
Calls the subprogram specified with P.
M99
M100
M101
Cleaning Air On
Explanation
This M code is used in tool measurement macro program.
M105
No.0584D-0506
2-23
Specification of M Codes
Specification
M106
M107
M110
Specification
Program Example
M111;
G91 G01 B___ F___ M110;
M111
2-24
No.0584D-0506
Specification of M Codes
Specification
M132
M135
M138
No.0584D-0506
2-25
Specification
Specification of M Codes
Specification
M139
M140
Specification
M141
M142
M150
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
Block Skip 9 ON
Explanation
Turns on block skip 9.
M172
M186
M172 S0;
M172 S1;
M172;
No.0584D-0506
2-27
Specification of M Codes
Specification
M187
Dry Run ON
Explanation
Turns on the dry run mode.
M188
M198
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
M247
2-28
No.0584D-0506
Specification of M Codes
Specification
M250
M251
M252
M253
M254
Specification
M255
M257
M258
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
M276
M277
Specification
M283
M284
M291
M292
2-30
No.0584D-0506
Specification of M Codes
Specification
M302
M303
M304
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
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
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
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
M315
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
2-34
No.0584D-0506
Specification of M Codes
Specification
M318
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
No.0584D-0506
2-35
Specification of M Codes
Specification
M325
Specification
M326
M327
Spindle Unlock
Explanation
Unlocks the spindle for measuring.
M328
Spindle Lock
Explanation
Locks the spindle for measuring.
M330
2-36
No.0584D-0506
Specification of M Codes
Specification
M331
M332
M340
M341
Specification
M344
M346
M347
M359
No.0584D-0506
2-37
Specification of M Codes
Specification
M372
Specification
2-38
No.0584D-0506
Specification of M Codes
Specification
M373
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
M378
M381
M382
No.0584D-0506
2-39
Specification of M Codes
Specification
M387
Vacuum Suction ON
Explanation
Turns on vacuum suction.
M388
M389
M390
Specification
M391
2-40
No.0584D-0506
Specification of M Codes
Specification
M392
M394
M398
Specification
M399
Mist Blow ON
Explanation
Turns on mist blowing.
M417
:
M418;
G53;
/___
:
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;
/M98 P10;
M418;
G53;
/M98 P2;
/M98 P20;
M419;
G53;
:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
%
2-42
No.0584D-0506
Specification of M Codes
Specification
M418
:
/___
M418;
G53;
/___
:
/___
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
M417
M418
OFF
ON
ON
OFF
2-43
Specification
Explanation
Specification of M Codes
Specification
Program Example
O1234;
M98 P9810;
M417;
G53;
/M98 P1;
/M98 P10;
M418;
G53;
/M98 P2;
/M98 P20;
M419;
G53;
Specification
:
Common program for pallet 1 and pallet 2.
:
M98 P9820;
M30;
%
M419
2-44
No.0584D-0506
Specification of M Codes
Specification
M430
M434
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
:
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
M437
M441
2-46
No.0584D-0506
Specification of M Codes
Specification
M448
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
Mode Data
(M448 S___)
3
Kind of Pot
0:BT
1:HSK
2:Adapter
Tool No.(PTN)
FTN
ITN
No.0584D-0506
2-47
Specification
Specification of M Codes
Specification
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
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
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;
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
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;
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
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;
M448 S4;
S1 T1010;
S10 T1100;
S5 T1005;
M448;
M450;
M448 S4;
S1 T1010;
S10 T1100;
S5 T1005;
M448;
No.0584D-0506
Specification of M Codes
Specification
M451
M56;
<---- Transfers tool length and tool radius data of the cutter
No.2 to NC.
Specification
M455
M456
Machining Signal ON
Explanation
MCRUN signal is turned ON for Fixture Interface.
M462
No.0584D-0506
2-53
Specification of M Codes
Specification
M463
Specification
M464
2-54
No.0584D-0506
Specification of M Codes
Specification
M465
M468
No.0584D-0506
No attachment
= 13.0
= 14.0
Extension attachment
= 15.0
2-55
Specification
M466
Specification of M Codes
Specification
M469
Specification
M470
M471
M474
2-56
No.0584D-0506
Specification of M Codes
Specification
M480
M483
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
---
104
---
110
Refer
Output Data
following
Specification
Kind and Setting Value Table for the Tool Data (Value are all integers.)
Data of
#102
3
Kind of Pot
0:BT
1:HSK
2:Adapter
FTN
ITN
Priority
0 to 65535
TS Coolant
0:Disable/1:Enable
10
Through Spindle
0 to 99999[ms]
2-58
11
ATC Speed
0:High/1:Low/2:Middle
12
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
#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
#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
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
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
4.0
Specification
Pallet No.
If empty, 1 is set.
No.0584D-0506
103
Refer following
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
#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
-99999999 to 99999999
108
-99999999 to 99999999
109
-99999999 to 99999999
111
Block Skip
0 to 255
115
Alarm
117
O No. at Alarm
(4 Digit)1 to 9999
(8 Digit)1 to 99999999
118
N No. at Alarm
0 to 99999
119
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
Machine Condition
Variable
100
Value
4 .0
Meaning of Value
Machine Condition
101
Refer following
110
Refer following
Output Data
#101
Condition
0
1
0: Warmup is Necessary
warmup
1: Warmup is unnecessary
0 to 99999[min-1]
Specification
Data of
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
#101=0.;
#102=110.;
M483;
G53;
Specification
#100=1.;
#101=-1.;
#102=103.;
M483;
G53;
(3) When SL data (Upper Limit) of cutter No.2 of 1st. Pot is output:
#100=1.;
#101=1.;
#102=119.;
#103=2.;
M483;
G53;
(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
#101=0.;
#102=1.;
#103=106.;
M483;
G53;
#101=2.;
#102=2.;
#103=103.;
M483;
G53;
Specification
#100=2.;
G53;
No.0584D-0506
M483;
G53;
2-65
Specification of M Codes
Specification
#101=3.;
#102=15.;
#103=106.;
#104=4.;
M483;
G53;
Specification
M492
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
M531
M532
2-66
No.0584D-0506
Specification of M Codes
Specification
M533
M534
M535
M536
M537
Specification
M538
M539
M548
M549
M550
No.0584D-0506
2-67
Specification of M Codes
Specification
M551
M552
M553
M554
Specification
M555
M556
M557
M558
M559
2-68
No.0584D-0506
Specification of M Codes
Specification
M580
M581
Specification
M582
M583
M584
No.0584D-0506
2-69
Specification of M Codes
Specification
M585
M586
Specification
M587
M588
M589
2-70
No.0584D-0506
Specification of M Codes
Specification
M590
M591
Specification
M592
M593
M594
No.0584D-0506
2-71
Specification of M Codes
Specification
M595
M600
(D)
Explanation
This M code is used in the pallet change subprogram.
M601
(D)
Explanation
Specification
M602
M603
M604
M605
2-72
No.0584D-0506
Specification of M Codes
Specification
M608
No.0584D-0506
2-73
Specification
Specification of M Codes
Specification
Specification
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
M611
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
M621
No.0584D-0506
2-75
Specification of M Codes
Specification
M630
M631
Specification
M638
M639
M661
2-76
No.0584D-0506
Specification of M Codes
Specification
M662
M663
M706
M707
M708
M709
No.0584D-0506
2-77
Specification
Specification of M Codes
Specification
M710
M711
Mist Collector ON
Explanation
Turns on the mist collector.
M722
M723
Specification
M732
M733
M734
M735
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
M741
M742
M743
Oil Skimmer ON
Explanation
M745
Specification
M747
M748
M749
M750
No.0584D-0506
2-79
Specification of M Codes
Specification
M751
M754
Base Coolant ON
Explanation
Turns on IMM cleaning air.
M755
M756
Air Blow ON
Explanation
Specification
M757
M775
M776
M790
M791
M792
2-80
No.0584D-0506
Specification of M Codes
Specification
M793
M794
M883
M884
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
M895
M896
No.0584D-0506
2-81
Specification of M Codes
Specification
M898
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
Specification
Use this M code when the alarm is generated in the macro program.
M910
M911
2-82
No.0584D-0506
Specification of M Codes
Specification
M919
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
Specification
2-84
No.0584D-0506
Specification of M Codes
Specification
M921
Specification
No.0584D-0506
2-85
Specification of M Codes
Specification
Program Example
O1234;
T1;
M6;
#100=12.3456;
#109=0;
M921;
:
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
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
M941
Specification
M946
2-88
No.0584D-0506
Specification of M Codes
Specification
M947
Specification
M948
M950
M951
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 ])
#105=Result
Parameter
#106=Head No.
Program Example
#101=1.;
<---Measuring
#102=3.;
#108=0.;
<---Point NumberNo.0
M951;
G53;
2-90
No.0584D-0506
Specification of M Codes
Specification
M963
M964
M965
Specification
M966
M968
M984
M994
M2300
No.0584D-0506
CW (nnn:speed)
CCW(nnn:speed)
M2300 T2;
Index
M2300 T3;
Refferance
2-91
Specification of M Codes
Specification
M2301
M2302
Specification
M2320
M2321
M2322
2-92
M2322 S0;
M2322 S1;
(SL3115 ON)
M2322 S2;
(SL3116 ON)
No.0584D-0506
Specification of M Codes
Specification
M2323
M2324
No.0584D-0506
M2340 S0;
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
Index
3-2
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
No.0584D-0506
3-3
Index
Index
Index
3-4
No.0584D-0506
Index
No.0584D-0506
3-5
Index
Index
Workpiece Automatic Measuring
Mode Cancel...............................2-82
Workpiece Change .......................2-75
Workpiece Load............................2-75
Workpiece Unload ........................2-75
Index
3-6
No.0584D-0506
Appendix
4. Appendix
x
i
d
n
e
p
p
A
No.0584D-0506
4-1
Appendix
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