PROFESSIONAL
5
M-CODE LIST Applicable Models All Models
No.0584D-0506
Contents
Contents
No.0584D-0506
C o n t e n t s
1
Contents
Contents
No.0584D-0506
C o n t e n t s
1
Contents
Contents
C o n t e n t s
1. 1.1
Notes on this M Code List ...................... ................................. ...................... ...................... ........... 1-2
1.2
List of M Codes ...................... ................................. ...................... ...................... ...................... ................ ..... 1-3
2. 2.1
3. 4. 4.1
2
List of M Codes Codes
Specific ation o f M Codes Specificatio pecification n ...................... ................................. ...................... ...................... ....................... ..................... ......... 2-2
Index Ap p end i x History History of M Code List................................ List........................................... ....................... .................. ...... 4-2
No.0584D-0506
List of M Codes
Lis t of M Codes
L i s t o f M C o d e s
No.0584D-0506
1-1
List of M Codes Notes on this M Code List
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. L i s t o f M C o d e s
1-2
No.0584D-0506
List of M Codes List of M Codes
List of M Codes M0
Program Stop
M1
Optional Stop
M2
End of Program
M3
Spindle CW Start
M4
Spindle CCW Start
M5
Spindle Stop
M6
Automatic Tool Change
M7
Mist Coolant/Air Blow ON
M8
Nozzle Coolant ON
M9
Coolant OFF
M10
4th Axis Clamp
M11
4th Axis Unclamp
M12
5th Axis Clamp
M13
5th Axis Unclamp
M14
BTS Arm Advance (Movable BTS)
M16
4th Axis Mirror Image ON
M18
BTS Arm Retract (Movable BTS)
M19
Spindle Orientation Stop
M20
BTS Check
M21
X Axis Mirror Image ON
M22
Y Axis Mirror Image ON
M23
Mirror Image OFF
M26
Through Spindle Coolant ON
M29
Unconditional Power Out
M30
Part Program End and Repeat
M31
Workpiece Auto Measuring Mode
M32
Tool Length Auto Measuring Mode
M33
Tool Length Circuit Check
M34
Workpiece Auto Measuring Spare Tool Call
M35
Workpiece Auto Measuring Pallet Unload
M36
Prior Tool Check
M37
Tool Data Register Mode OFF
M38
AC/SL Data Temporary Alter Mode ON
M39
AC/SL Data Temporary Alter Mode OFF
M41
SL Coefficient Setting 125%
M42
SL Coefficient Setting 150%
M43
SL Coefficient Setting 200%
M44
SL and AC Coefficient 0%
M45
Tool Length Circuit Check
M46
SL Lower Limit Coefficient Setting 125%
M47
SL Lower Limit Coefficient Setting 0%
M48
M49 Mode Cancel
No.0584D-0506
L i s t o f M C o d e s
1-3
List of M Codes List of M Codes
L i s t o f M C o d e s
1-4
M49
Feedrate Override Cancel
M50
AC Coefficient 100%, SL Coefficient 200%
M51
Auto Reject Mode ON (M52 Mode Cancel)
M52
Auto Reject Mode OFF (Reject Inhibit for Alarm)
M54
Tool Offset Data Negative Register Mode
M56
Tool Offset Data Transfer Command
M57
Tool No. Register Mode
M58
M59 Mode Cancel
M59
Spindle Speed Override Cancel
M60
Pallet Change
M61
Pallet Change
M62
Pallet Change
M63
Pallet Change
M64
Pallet Change
M65
Pallet Change
M69
Pallet Ready Not Checked at M60
M77
Through Spindle Air ON
M78
Signal Lamp 1 ON with No Ready Pallet
M79
Signal Lamp 2 ON with No Ready Pallet
M80
Pallet Change
M84
Pallet 1 Load Check
M85
Auto Measuring Approach Mode
M86
Auto Measuring Rapid Mode
M88
APC Shutter Open
M89
APC Shutter Close
M94
Tool Data Delete Mode ON
M95
Pallet 2 Load Check
M97
Overhead Shower Coolant ON
M98
Sub Program Call
M99
Return to Main Program
M100
Cleaning Air Off
M101
Cleaning Air On
M105
Direct Spare Tool Change
M106
Direct Spare Tool Change Inhibit Mode
M107
Direct Spare Tool Change Permit Mode
M110
6th Axis Clamp
M111
6th Axis Unclamp
M132
Override 100% or Less
M135
Rigid Tap Mode ON
M138
5th Axis Mirror Image ON
M139
6th Axis Mirror Image ON
M140
First Block Skip ON
M141
First Block Skip OFF
M142
First Block Skip Return
M150
Block Skip 2 to 9 OFF No.0584D-0506
List of M Codes List of M Codes
M152
Block Skip 2 ON
M153
Block Skip 3 ON
M154
Block Skip 4 ON
M155
Block Skip 5 ON
M156
Block Skip 6 ON
M157
Block Skip 7 ON
M158
Block Skip 8 ON
M159
Block Skip 9 ON
M172
Rapid Feed Speed Limitation Mode Setting
M186
Count Sum of Machined Parts
M187
Dry Run ON
M188
Dry Run OFF
M198
Subprogram Call to an External I/O Device.
M235
TL Mode OFF
M236
TL Mode ON
M237
SL Mode OFF
M238
SL Mode ON
M246
Tool Measuring Sensor Y-Axis Direction
M247
Tool Measuring Sensor X-Axis Direction
M250
GI/Super-GI High Accuracy Mode
M251
GI/Super-GI High Performance Mode
M252
GI/Super-GI Ultra High Accuracy Mode
M253
GI/Super-GI Additional Axis Contouring Mode
M254
GI/Super-GI Special Mode
M255
GI/Super-GI M255 Mode
M257
GI/Super-GI High Performance Mode for Contouring with Rotary Axes
M258
GI/Super-GI Ultra High Performance Mode for Contouring with Rotary Axes
M259
GI Initial Mode
M270
Non Contact Type Spindle Measurement
M276
Extend Stroke Change Signal OFF
M277
Extend Stroke Change Signal ON
M283
SL Lower Limit Mode OFF
M284
SL Lower Limit Mode ON
M291
Floating M Code Exchange Prohibition Mode OFF
M292
Floating M Code Exchange Prohibition Mode ON
M302
Fin Check for M303 or M304
M303
Spindle CW Without DEN-Waiting
M304
Spindle CCW Without DEN-Waiting
M307
Coolant/Spindle Stop & Release
M308
Coolant/Spindle Resume
M310
Spindle Status Reserve & Stop
M311
Spindle Resume
M312
Coolant Stop & Reserve
No.0584D-0506
L i s t o f M C o d e s
1-5
List of M Codes List of M Codes
L i s t o f M C o d e s
1-6
M313
Coolant Resume
M314
Spindle Rotation Before Measuring
M315
Oil Controller OFF
M316
Oil Controller ON
M317
Spindle Rotation for Alignment
M318
Spindle Optional Angle Orient Externally
M319
Pre-Orientation
M322
Spindle Rotation for Measuring
M325
Cs Axis Contouring Mode OFF
M326
Cs Axis Contouring Mode ON
M327
Spindle Unlock
M328
Spindle Lock
M330
Improved Spindle Reverse Orient Externally
M331
Draw Bar Probe Retract
M332
Draw Bar Probe Advance
M340
Attachment Change Start
M341
AAC Splashguard Open & AAC Advance
M344
AAC Retract & AAC Splashguard Close
M346
Spindle Attachment Mount Check
M347
Spindle Attachment Dismount Check
M359
Work information output
M372
Pre-Unclamp (NC Index)
M373
Clamp Confirmation (NC Index)
M377
Tool Measuring Laser OFF
M378
Tool Measuring Laser ON
M381
Angle Head Support Retract
M382
Angle Head Support Advance
M387
Vacuum Suction ON
M388
Vacuum Suction OFF
M389
Tailstock Pressure Change
M390
Spindle Tool Clamp
M391
Spindle Tool Unclamp
M392
Spindle Tool Unclamp Ready
M394
Attachment Change End
M398
Through Spindle Mist ON
M399
Mist Blow ON
M417
Machine Table Pallet 1 Check
M418
Machine Table Pallet 2 Check
M419
Machine Table Pallet Check End
M430
Pallet Contact Check
M434
Tool Broken Status (BT/B2)
M435
ATC-Side BTS Tool Measuring Mode
M436
Signal Light 1 Unconditional ON
M437
Signal Light 2 Unconditional ON
M441
Message Output Function No.0584D-0506
List of M Codes List of M Codes
M448
Tool Data Register Mode (Type1)
M449
Tool Data Register Mode (Type2)
M450
ATC Magazine No. Setting for Tool Data Register Mode
M451
Tool Cutter No. Setting
M455
Machining Signal OFF
M456
Machining Signal ON
M462
Pallet No. Send
M463
Print-out Mode Output
M464
Specified Spindle Tool Output
M465
Spindle Tool No. 0 Output
M466
Macro Variable (#100) Read
M468
Attachment No. Output to Macro (#100)
M469
TL Alarm Suspension Mode ON
M470
Metallic Cutting Mode OFF
M471
Metallic Cutting Mode ON
M474
Next Tool Output
M480
Macro Variables Reading Request to MOS
M483
Machine Data Output to Macro Variable
M492
First Use Check Request
M507
Open ATC Shutter and Start Next Block before Shutter is Fully Open
M530
M Code for Fixture Interface
M531
M Code for Fixture Interface
M532
M Code for Fixture Interface
M533
M Code for Fixture Interface
M534
M Code for Fixture Interface
M535
M Code for Fixture Interface
M536
M Code for Fixture Interface
M537
M Code for Fixture Interface
M538
M Code for Fixture Interface
M539
M Code for Fixture Interface
M548
M Code for ATC
M549
M Code for ATC
M550
M Code for ATC
M551
M Code for ATC
M552
M Code for ATC
M553
M Code for ATC
M554
M Code for ATC
M555
M Code for ATC
M556
M Code for ATC
M557
M Code for ATC
M559
M Code for ATC
M580
M Code for Special User I/O Interface
M581
M Code for Special User I/O Interface
M582
M Code for Special User I/O Interface
No.0584D-0506
L i s t o f M C o d e s
1-7
List of M Codes List of M Codes
L i s t o f M C o d e s
1-8
M583
M Code for Special User I/O Interface
M584
M Code for Special User I/O Interface
M585
M Code for Special User I/O Interface
M586
M Code for Special User I/O Interface
M587
M Code for Special User I/O Interface
M588
M Code for Special User I/O Interface
M589
M Code for Special User I/O Interface
M590
M Code for Special User I/O Interface
M591
M Code for Special User I/O Interface
M592
M Code for Special User I/O Interface
M593
M Code for Special User I/O Interface
M594
M Code for Special User I/O Interface
M595
M Code for Special User I/O Interface
M600
Pallet Change Sub M Code
M601
Axis Index Program End
M602
Routine Function DNC Program End
M603
Tool Retract End
M604
Work Chuck Clamp
M605
Work Chuck Unclamp
M608
Respective Load
M609
Respective Unload
M610
AAC Step Retract
M611
AAC Step Advance
M612
Workpiece Change
M613
Workpiece Unload
M614
Workpiece Load
M620
Travel Limit Valid
M621
Travel Limit Invalid
M630
Axis Retract Position at ATC
M631
AWC Index Work Selection Command
M638
ATC Shutter Close
M639
ATC Shutter Open
M661
ATC & B Axis Simultaneous Operation
M662
ATC & B Axis Simultaneous Operation End Check
M663
M Code for ATC
M706
Angle Plate / Table Cleaning Coolant OFF
M707
Angle Plate / Table Cleaning Coolant ON
M708
Additional Nozzle Coolant ON
M709
Coolant Stop without DEN Waiting
M710
Mist Collector OFF
M711
Mist Collector ON
M722
Stylus Cleaning Air OFF
M723
Stylus Cleaning Air ON
M732
Coolant Pressure Set 1
M733
Coolant Pressure Set 2 No.0584D-0506
List of M Codes List of M Codes
M734
Coolant Pressure Set 3
M735
Coolant Pressure Set 4
M736
Lighting ON
M737
Lighting OFF
M740
Inner Chip Conveyor OFF
M741
Inner Chip Conveyor ON
M742
Oil Skimmer OFF
M743
Oil Skimmer ON
M745
Spindle Upper Nozzle Coolant ON
M747
Measuring Head Cleaning Air ON
M748
IMM Cleaning Air ON
M749
IMM Cleaning Air OFF
M750
IMM Cleaning Air ON Mode
M751
IMM Cleaning Air OFF Mode
M754
Mist Coolant ON
M755
Work Clean Coolant/Air ON
M756
Air Blow ON
M757
Telescopic-Cover Coolant OFF
M775
Tool Cleaning Air OFF
M776
Tool Cleaning Air ON
M790
Set Amount of Oil to Little (MQL)
M791
Set Amount of Oil to Standard (MQL)
M792
Set Amount of Oil to Large (MQL)
M793
Set Mist Pressure to High (MQL)
M794
Set Mist Pressure to Standard (MQL)
M883
Angle Head Coolant ON
M884
Inner Chip Conveyor Speed Setting
M885
Angle Head Support Pin Cleaning Air ON
M895
Increase Air OFF (MQL)
M896
Increase Air ON (MQL)
M898
Attachment Lubrication Off
M899
Attachment Lubrication On
M903
M Code to Generate Alarm
M910
Workpiece Automatic Measuring Mode Cancel
M911
Measuring Head Alarm Check
M919
Counting No. of Machined Parts
M920
Tool Length Measuring Data Read
M921
Tool Radius Measuring Data Read
M922
M920, M921 Data Incremental Mode
M940
Auto End Due to Illegal Work Measurement
M941
MP7 Measuring Head Check
M946
Spindle Tool Pot No. Output
M947
Next Tool Pot No. Output
M948
M Code for ATC
M950
Non Contact Type Measurement Device Zero Set
No.0584D-0506
L i s t o f M C o d e s
1-9
List of M Codes List of M Codes
M951
L i s t o f M C o d e s
1-10
M963
Measuring Probe Power OFF & Check
M964
Measuring Probe Power ON & Check
M965
Measuring Probe Power OFF
M966
Measuring Probe Power ON
M968
Cutting Condition Auto Select
M984
High Speed Counter Type Tool Measurement
M994
Rotary Axis Coordinate Calculate Function
M2300
SPIN TABLE revolution speed
M2301
SPIN TABLE Start
M2302
SPIN TALE Stop
M2320
INPROCESS GAUGE Measureing Cycle Start
M2321
INPROCESS GAUGE Autozero Cycle Start
M2322
INPROCESS GAUGE Measureing Head Retraction
M2323
INPROCESS GAUGE Get Measuring Data
M2324
INPROCESS GAUGE Manual Mode
M2340
Rotary Dresser Control
No.0584D-0506
Specification of M Codes
Specification of M Codes
S p e c i f i c a t i o n
No.0584D-0506
2-1
Specification of M Codes Specification
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, s pindle rotation and coolant are stopped, and the [Cycle Start] switch is blinked.
S p e c i f i c a t i o n
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
Option al 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
Spind le 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
Spind le CCW Start □Program
S800 M4 G00 X___ Y___ ; G01 Z___ F___ ; □Explanation
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
Spind le Stop (D) □Program
G01 X___ Y___ F___ M5; □Explanation
Stops the spindle after the block containing M5 is executed.
No.0584D-0506
2-3
S p e c i f i c a t i o n
Specification of M Codes Specification
M06
Aut omatic 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. S p e c i f i c a t i o n
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 Cool ant 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 Axi s Clamp (D) □Program
M13; G91 G01 A___ F___ M12; S p e c i f i c a t i o n
□Explanation
Clamps 5th axis after the block containing M12 is executed.
M13
5th Axi s Unclamp □Program
M13; G91 G01 A___ F___ M12; □Explanation
Unclamps 5th axis.
M14
BTS Arm Adv ance (Movable BTS) (D) □Explanation
Advances the movable BTS arm.
M16
4th Axi s 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
S p e c i f i c a t i o n
Checks whether or not the tool has broken. If there is a problem with the tool, a BTS alarm occurs.
M21
X Axi s Mirr or 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 Axi s Mirr or 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
Mirr or 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.
M29
Uncondi tio nal Power Out
S p e c i f i c a t i o n
(D)
□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. S p e c i f i c a t i o n
The tool length automatic measuring circuit is self-diagnosed.
M34
Workpi ece Auto Measuri ng 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
Workpi ece Aut o Measurin g 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
S p e c i f i c a t i o n
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 Regis Register ter Mod e OFF OFF □Program
M___; S___ T___; M37;
<---Tool register mode ON such as M448 <---Tool Data Registration Registrat ion
□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. S p e c i f i c a t i o n
□Program Example
O1234; M448 S4; S1 T1000; S2 T2000; M448 S119; 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 registrat ion mode OFF. OFF.
No.0584D-0506
Specification of M Codes Specification
M38
AC/SL Data Tem po rar y A lt er Mode Mod e 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 tool detail screen becomes valid. □Program
S p e c i f i c a t i o n
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 Tem po rar y A lt er Mode Mod e 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 Coeffici ent Setting 125% □Explanation
Sets SL coefficient data to 125% (Max. spindle actual load current * 1.25) when study mode is ON.
M42
SL Coeffici ent Setting 150% □Explanation
Sets SL coefficient data to 150% (Max. spindle actual load current * 1.50) when study mode is ON.
M43
SL Coeffici ent Setting 200% □Explanation
Sets SL coefficient data to 200% (Max. spindle actual load current * 2.00) when study mode is ON.
S p e c i f i c a t i o n
M44
SL and AC Coeffici ent 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 doesn’t turn on measuring head cleaning air.
M46
SL Lower Li mit Coeffi cient 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
M49 Mode Cancel
M48
(D)
□Program
G01 X___ Y___ F___ M48; □Explanation
Enables the feedrate override switch after the block containing M48 is executed.
Feedrate Override Cancel
M49
□Program
M49; G01 X___ Y___ F___; □Explanation
Disables the feedrate override switches and fixes the feedrate override at 100% until M48 or M2/M30 is specified.
M50
AC Co eff ic ien t 100%, SL Coeff ici ent 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
Au to Rejec t Mode ON (M52 Mod e 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
Au to Rejec t Mo de OFF (Reject Inh ib it for Al arm ) (D) □Explanation
Turns off the automatic workpiece reject mode.
No.0584D-0506
2-13
S p e c i f i c a t i o n
Specification of M Codes Specification
M54
Tool Offset Data Negative Regist er 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 S p e c i f i c a t i o n
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 Offs et 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 Length (Geometry(H))
---> Geometry of H number
Length (Wear(H))
---> Wear of H number
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
: 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.; M37(M30); □Explanation
Turns on the tool registration mode. Two types of registration methods are provided; a sequential method and random method. In sequential method, order of data is considered as a pot number. And, in random method, pot number is 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
S p e c i f i c a t i o n
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.
% S p e c i f i c a t i o n
[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
Spindl e 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).
S p e c i f i c a t i o n
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 Check ed 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. S p e c i f i c a t i o n
□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
Signal Lamp 2 ON wit h No Ready Pallet
M79
□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.
Pallet Change
M80
□Explanation
This M code is used in the pallet loading and unloading programs (O9810, O9820).
S p e c i f i c a t i o n
Cannot be used by itself.
Pallet 1 Load Check
M84
□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
Au to Measuri ng Ap pr oac h Mo de □Explanation
This M code is used in the automatic measuring macro program (workpiece/tool length) when the sensor approaches the target-point.
M86
Au to Measuri ng Rapi d Mo de □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 Sh ut ter Op en □Explanation
Opens APC shutter.
No.0584D-0506
2-21
Specification of M Codes Specification
M89
APC Sh ut ter Clo se □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.
S p e c i f i c a t i o n
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
S2; M30;
deleted. <----All the data of the pot of tool No.2 of magazine No.1 are deleted. <----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 Overhead Shower Coolant ON □Explanation
Turns on the high power (ceiling) coolant.
M98
Sub Program Call
S p e c i f i c a t i o n
□Program
M98 P___ ; □Explanation
Calls the subprogram specified with P.
M99
Retur Retur n to Main Prog Prog ram □Program
M99; □Explanation
Returns to the main program from subprogram.
M100
Cleaning 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 Inhi Inhi bit Mode □Explanation
Turns on the direct spare tool t ool change inhibit mode when M107 mode is ON.
M107
Direct Spare Tool Change Permi Permi t 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, periodically, and the spindle tool is exchanged with a spare tool if an alarm has occurred for the spindle tool.
M110
6th Axis Clamp Clamp □Explanation
6th Axis Clamp.
S p e c i f i c a t i o n
□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__;] 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.
M135
Rigi d 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 Axi s Mirr or 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
S p e c i f i c a t i o n
Specification of M Codes Specification
M139
6th Axis Mirro r 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.
S p e c i f i c a t i o n
M141
First Bl ock 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
Blo ck Skip 2 to 9 OFF □Explanation
Turns block skip 2 to 9 off.
M152
Blo ck Skip 2 ON □Explanation
Turns on block skip 2.
M153
Blo ck Skip 3 ON □Explanation
Turns on block skip 3.
M154
Blo ck Skip 4 ON □Explanation
Turns on block skip 4.
2-26
No.0584D-0506
Specification of M Codes Specification
M155
Bloc k Skip 5 ON □Explanation
Turns on block skip 5.
M156
Bloc k Skip 6 ON □Explanation
Turns on block skip 6.
M157
Bloc k Skip 7 ON □Explanation
Turns on block skip 7.
M158
Bloc k Skip 8 ON □Explanation S p e c i f i c a t i o n
Turns on block skip 8.
M159
Bloc k Skip 9 ON □Explanation
Turns on block skip 9.
M172
Rapid Feed Speed Limi tation Mode Setting □Explanation
Rapid feed speed limitation mode is set. □Program
M186
Example
M172 S0;
(Rapid Feed Speed Limitation Disable)
M172 S1;
(Rapid Feed Speed Limitation Enable)
M172;
(Rapid Feed Speed Limitation Enable)
Count Sum of Machin ed 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
Subpro gram Call to an External I/O Devic e. □Program
M198 P___ ; □Explanation
Calls a subprogram specified by P from a file in an external I/O device. S p e c i f i c a t i o n
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 t ool measuring sensor.
2-28
No.0584D-0506
Specification of M Codes Specification
GI/Super-GI High Accuracy Mode
M250
□Explanation
Switches GI/Super-GI to the high accuracy mode.
GI/Super-GI High Performance Mode
M251
□Explanation
Switches GI/Super-GI to the high performance mode.
GI/Super-GI Ultr a High Accu racy Mode
M252
□Explanation
Switches GI/Super-GI to the ultra high accuracy mode.
GI/Super-GI Additional Axis Contouring Mode
M253
□Explanation S p e c i f i c a t i o n
Switches GI/Super-GI to the additional axis contouring mode.
GI/Super-GI Special Mod e
M254
□Explanation
Switches GI/Super-GI to the M254 mode.
GI/Super-GI Radical Mo de
M255
□Explanation
Switches GI/Super-GI to the radical mode.
M257
GI/Super-GI High Performance Mode for Contou rin g wit h Rotary Ax es □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 Perfo rmance Mode for Contou rin g wit h 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 Init ial 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 Spind le 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 Stro ke Change Signal ON □Explanation
Turns on the stroke-change signal. This M code is used in ATC macro program. S p e c i f i c a t i o n
M283
SL Lower Li mit Mode OFF □Explanation
Turns off the SL lower limit mode.
M284
SL Lower Lim it Mode ON □Explanation
Turns on the SL lower limit mode.
M291
Floating M Code Exchange Proh ibi tio n 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 Proh ibi tio n 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
Spindl e CW Withou t DEN-Waiti ng □Program
S2000 M303; G00 G90 Y___ Z___ M302; G01 Z___; □Explanation
Starts the spindle in clockwise direction without waiting for DEN and returns FIN immediately. Use M303 and M302 in a pair always.
M304
Spindl e CCW Withou t DEN-Waiti ng □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
S p e c i f i c a t i o n
Specification of M Codes Specification
M307
Coolant/Spindle Sto p & 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 S p e c i f i c a t i o n
Coolant/Spindle Resume □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
Spindl e 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. Use M310 and M311 in a pair always.
M312
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
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 Contro ller 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
Spindl e Optional Angl e 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
S p e c i f i c a t i o n
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 Cont ouri ng 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. S p e c i f i c a t i o n
M326
Cs Axis Conto uri ng 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
Improv ed Spin dle Reverse Orient Extern ally □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
Draw Bar Probe Retract
M331
□Explanation
Retract draw bar probe.
Draw Bar Probe Advance
M332
□Explanation
Advance draw bar probe.
M340
At tac hm ent Change St art □Explanation
This M code is used in the macro program for changing attachments.
M341
AA C Spl ash gu ard Open & AA C Ad vance □Explanation S p e c i f i c a t i o n
Used for semi-automatic attachment changer on MCC. Splashguard for attachment changer is opened, and then attachment changer is advanced.
M344
AA C Retr act & A AC Sp las hg uar d Cl os e □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
S p e c i f i c a t i o n
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
Clamp Confir mation (NC Index)
M373
□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;
S p e c i f i c a t i o n
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___.
Tool Measuring Laser OFF
M377
□Explanation
Turns off the laser (laser clearance is turned off and shutter is closed) if the machine has a rotary tool measuring system.
Tool Measuri ng L aser ON
M378
□Explanation
Turns on the laser (shutter is opened and laser clearance is turned on) if the machine has a rotary tool measuring system.
M381
An gl e Head Supp or t Ret rac t □Explanation
Angle head support retract.
M382
An gl e Head Supp or t A dv anc e □Explanation
Angle head support advance.
No.0584D-0506
2-39
Specification of M Codes Specification
M387
Vacuum Suctio n ON □Explanation
Turns on vacuum suction.
M388
Vacuum Suctio n OFF □Explanation
Turns off vacuum suction.
M389
Tails tock Pressure Change □Explanation
Selects clamp pressure of tailstock.
M390
Spindle Tool Clamp □Explanation
S p e c i f i c a t i o n
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
Spindl e Tool Unclamp Ready
M392
□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
At tac hm ent Chan ge End □Explanation S p e c i f i c a t i o n
This M code is used in the attachment change macro program.
M398
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 machi ne table
M417
M418
1
OFF
ON
2
ON
OFF
□Program Example
S p e c i f i c a t i o n
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; □Explanation
When pallet No. 1 has been loaded onto the machine table, block skip 1 is turned on. If pallet No. 2 is on the table, block skip 1 is turned off. If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by an alarm. A dummy block for preventing pre-reading such as G53 is necessary after M417/M418. [M417/M418 and block skip 1 ON/OFF]
No.0584D-0506
Pallet on machi ne table
M417
M418
1
OFF
ON
2
ON
OFF
2-43
S p e c i f i c a t i o n
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; S p e c i f i c a t i o n
: 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
This M code is used when the machine must be stopped before the next 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
S p e c i f i c a t i o n
Specification of M Codes Specification
M435
Tool Br oken 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; M6; <----By tool measuring command, the tool is touched once to the
S p e c i f i c a t i o n
contactor to stop vibration and then tool length is measured. : M6; <----By tool measuring command, the tool length is measured immediately.
M436
Signal Li ght 1 Unconditional ON □Explanation
Signal light 1 is turned on unconditionally. Press [Light Off] switch to turn off this lamp.
M437
Signal Li ght 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 Regist er 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. M448 S4 has the same function as M57. Specify the tool data registration mode with S in the same block as where M448 is specified. If M448 S0 is specified, or M448 is specified without S, the t ool 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 Dat a
Set ting Data [ unit ]
Mode Data (M448 S___) 3
Kind of Pot
0:BT 1:HSK 2:Adapter
4
Tool No.(PTN)
(4 Digit PTN)1 to 9999 (8 Digit PTN)1 to 99999999
5
FTN
(4 Digit FTN)1 to 9999 (8 Digit FTN)1 to 99999999
6
ITN
(4 Digit ITN)1 to 9999 (8 digit ITN)1 to 99999999
No.0584D-0506
2-47
S p e c i f i c a t i o n
Specification of M Codes Specification
Tool Data Register
K ind of Tool Dat a
Set ting Dat a [ uni t]
Mode Data (M448 S___) 7
Priority
0 to 65535
9
TS Coolant
0:Disable/1:Enable
10
Through Spindle
0 to 99999[ms]
Coolant Time
S p e c i f i c a t i o n
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 Regist er
Kind of Tool Dat a
Set ting Data [ uni t]
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] 115
TL[Count]
0:Disable/1:Enable
116
TL Alarm[Count]
0 to 99999
117
TL
0 to 99999
S p e c i f i c a t i o n
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.
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. %
S p e c i f i c a t i o n
2-50
No.0584D-0506
Specification of M Codes Specification
M449
Tool Data Regist er 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. This M code is suitable for registering multiple kinds of data for the tool. Specify the pot number with S in the same block as where 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; S4 T1010; S5 T1100; S103 T1005; M449 S2 T3; S103 M54 T1010; S104 T1100; S105 T1005;
No.0584D-0506
<---- Tool data registration mode for cutter No.1 of pot No.1 <---- Sets 1010 to tool number. <---- Sets 1100 to FTN. <---- Sets 0.1005 to tool length (Geometry). <---- Tool data registration mode for cutter No.3 of pot No.2 <---- Sets -0.1010 to tool length (Geometry). <---- Sets 0.1100 to tool length (Wear). <---- Sets 0.1005 to tool radius (Geometry)
2-51
S p e c i f i c a t i o n
Specification of M Codes Specification
M450
ATC Magazin e No. Set tin g f or Tool Data Regis ter 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 S p e c i f i c a t i o n
(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.
M455
S p e c i f i c a t i o n
Machin ing Signal OFF □Explanation
MCRUN signal is turned OFF for Fixture Interface.
M456
Machi ning 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. S p e c i f i c a t i o n
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
Spindl e Tool No. 0 Output
M465
□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
M466
□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
At tac hm ent No. Ou tpu t t o 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
S p e c i f i c a t i o n
Specification of M Codes Specification
M469
TL Alarm Suspensi on 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.
M470
S p e c i f i c a t i o n
Metallic Cuttin g Mode OFF □Explanation
Turn off metallic cutting mode.
M471
Metallic Cuttin g 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
Machin e Data Output to Macro Variable □Program
#100=Data Kind; #101=Data Detail 1; #102=Data Detail 2;
S p e c i f i c a t i o n
#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
S p e c i f i c a t i o n
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
4
Tool No. (PTN)
(4 Digit PTN)1 to 9999 (8 Digit PTN)1 to 99999999
5
FTN
(4 Digit FTN)1 to 9999 (8 Digit FTN)1 to 99999999
6
ITN
(4 Digit ITN)1 to 9999 (8 digit ITN)1 to 99999999
7
Priority
0 to 65535
9
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 S p e c i f i c a t i o n
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
S p e c i f i c a t i o n
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
Meanin g 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
Pallet No.
Other pallet
1.0
0 [deg] Face
2.0
90 [deg] Face
3.0
180 [deg] Face
4.0
270 [deg] Face
S p e c i f i c a t i o n
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.)
(Values are all
Data of
Kind of Work Data
Output Data of #110[unit ]
#103 1
Pallet No.
0 to 65535
3
Priority
0 to 65535
5
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
S p e c i f i c a t i o n
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
---
Machine Parameter Machine Parameter No.
110
100
Value 4 .0
Meanin g 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 Data of
Kind of Machine
#101
Condition
0 1
Output Data (Internal Setting Data)
Machine Condition Variable
Meaning of Value
S p e c i f i c a t i o n
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]
Input/Output Signal condition Variable
Value
Meanin g 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:
S p e c i f i c a t i o n
#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: #100=2.;
<---- Work data output command.
#101=2.;
<---- Selects pallet No.2.
#102=2.;
<---- Selects 90 [deg] face.
#103=103.;
<---- Selects ready data.
M483;
<---- Ready of pallet No.2 is output.
G53;
<---- Dummy block for preventing pre-reading.
□Program
#100=3.;
S p e c i f i c a t i o n
Example ( Machine Parameter. ) <---- 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
#100=3.;
Example ( Machine Condition. ) <---- 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.
(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.
S p e c i f i c a t i o n
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 Shutt er and Start Next Block before Shutter is Ful ly Open □Explanation
Opens ATC shutter without waiting for DEN and returns FIN immediately.
M530
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M531
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M532
M Code for Fixtur e 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 Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M534
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M535
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M536
M Code for Fixtur e Interface □Explanation S p e c i f i c a t i o n
This M code is used to control the jig interface.
M537
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M538
M Code for Fixtur e Interface □Explanation
This M code is used to control the jig interface.
M539
M Code for Fixtur e 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.
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
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
Ax is In dex Pro gr am En d
(D)
□Explanation S p e c i f i c a t i o n
This M code is used in the axis index program.
M602
Routin e Funct ion 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. (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) 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
S p e c i f i c a t i o n
Specification of M Codes 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).
S p e c i f i c a t i o n
M609
Respecti ve 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
AA C Step Retr act □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
AA C Step Ad van ce □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
Workpi ece Change □Explanation
Exchanges workpiece on stocker with workpiece on table.
M613
S p e c i f i c a t i o n
Workpi ece Unload □Explanation
Moves workpiece from table to stocker.
M614
Workpi ece Load □Explanation
Moves workpiece from stocker to table.
M621
TTravel Limi t 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 Limi t Invalid □Explanation
Stroke limit is ignored temporarily.
No.0584D-0506
2-75
Specification of M Codes Specification
M630
Ax is Ret rac t Pos it ion 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 In dex Wor k Sel ect io n Co mm and □Explanation
Select work that loaded by load command. S p e c i f i c a t i o n
M638
ATC Shut ter Cl os e □Explanation
Closes ATC shutter.
M639
ATC Shut ter Op en □Explanation
Opens ATC shutter.
M661
ATC & B A xi s Si mu lt aneo us Oper ati on □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 A xi s Si mu ltan eous Op erat io n En d Ch eck □Program
G91 G28 Z0; G28 Y0 M661; M11; G90 G01 B___ F___; M10; M662; : □Explanation
Checks completion of tool change specified by M661. Do not command any code excepting M10/M11, between the M661 and M662. M661 must be used together with M662.
M Code for ATC
M663
□Explanation
This M code is used in the ATC subprogram.
M706
An gl e Plat e / Tabl e Cleanin g Co ol ant OFF □Explanation
Turns off angle plate / table cleaning coolant.
M707
An gl e Plat e / Tabl e Cleanin g Co ol ant ON □Explanation
Turns on angle plate / table cleaning coolant.
M708
Ad di ti on al No zzle Co ol ant 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
S p e c i f i c a t i o n
Specification of M Codes Specification
M710
Mist Coll ector OFF □Explanation
Turns off the mist collector.
M711
Mist Collecto r ON □Explanation
Turns on the mist collector.
M722
Stylus Cleanin g Air OFF □Explanation
Turns off Stylus Cleaning Air.
M723
Stylus Cleaning Air ON □Explanation
S p e c i f i c a t i o n
Turns on Stylus Cleaning Air.
M732
Coolant Pressur e Set 1 □Explanation
Coolant is turned on with pressure setting 1 if two or more pressure levels are available.
M733
Coolant Pressur e Set 2 □Explanation
Coolant is turned on with pressure setting 2 if two or more pressure levels are available.
M734
Coolant Pressur e Set 3 □Explanation
Coolant is turned on with pressure setting 3 if two or more pressure levels are available.
M735
Coolant Pressur e Set 4 □Explanation
Coolant is turned on with pressure setting 4 if two or more pressure levels are available.
M736
Lighti ng 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 Skimm er ON □Explanation S p e c i f i c a t i o n
Starts the oil skimmer.
M745
Spindle Upper Nozzle Coolant ON □Explanation
Turns on spindle upper nozzle coolant.
M747
Measurin g Head Cleaning A ir 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 Telescopi c-Cover Coolant ON □Explanation
Turns on base coolant.
M756
Ai r B lo w ON □Explanation
S p e c i f i c a t i o n
Turns on air blow.
M757
Telescopi c-Cover Coolant OFF □Explanation
Turns off coolant for telescopic cover.
M775
Tool Cleaning Ai r OFF □Explanation
Turns off tool cleaning air of rotary tool measuring system.
M776
Tool Cleaning Ai r 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 Am ount of Oil t o Standard (MQL) □Explanation
Sets amount of oil on MQL to standard.
M792
Set Am ount of Oil to Larg e (MQL) □Explanation
Sets amount of oil on MQL to high.
2-80
No.0584D-0506
Specification of M Codes Specification
Set Mist Pressure to High (MQL)
M793
□Explanation
Sets mist pressure on MQL to high.
Set Mist Pressure to Standard (MQL)
M794
□Explanation
Sets mist pressure on MQL to standard.
M883
An gl e Head Cool ant ON □Explanation
Turns the angle head coolant on.
Inner Chip Conveyor Speed Sett ing
M884
□Program
M884 Sinner Chip Conveyor Speed;
S p e c i f i c a t i o n
□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
An gl e Head Supp or t Pin Cleanin g A ir 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
Incr ease 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
At tac hm ent Lu br ic ati on 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
At tac hm ent Lu br ic ati on 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
Use this M code when the alarm is generated in the macro program.
S p e c i f i c a t i o n
M910
Workpi ece Aut omatic Measuring Mode Cancel □Explanation
This M code is used in the workpiece automatic measuring macro program. It cancels the workpiece automatic measuring mode.
M911
Measurin g Head Al arm 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
Counti ng No. of Machin ed 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. □Program
Example
S p e c i f i c a t i o n
[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 L ength Measurin g 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. Therefore, the data is written as follows in the tool data.
S p e c i f i c a t i o n
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: Geometry (H) and Wear (H).
S p e c i f i c a t i o n
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; S p e c i f i c a t i o n
<---- Writes 10.000 into tool radius data of the tool No.1234.
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
S p e c i f i c a t i o n
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
Au to En d Du e to Ill egal Wor k Measur ement □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 Measur ing 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. S p e c i f i c a t i o n
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. Outpu t □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.
M948
S p e c i f i c a t i o n
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.
S p e c i f i c a t i o n
(4:Gauge Compensation, 6:Head No.) #104=Parameter Setting Value(Gauge Compensation[1um]) Read Parameter
Read Head
#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 ])
#101=5.
#105=Result
Parameter
□Program
#106=Head No.
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
Measurin g Pro be Power OFF □Explanation
Turns off the power for measuring head.
M966
S p e c i f i c a t i o n
Measurin g Prob e 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; S p e c i f i c a t i o n
M2320
INPROCESS GAUGE Measur eing 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 Retracti on □Explanation
INPROCESS GAUGE outer / inner measuring head retraction air control solenoid SL3115.SL3116 ON/OFF. □Program
2-92
Example
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;
M2340
Rotary Dresser Control □Explanation
Rotary Dresser High Speed / Low Speed control solenoid SL3114.SL3113 ON/OFF. □Program
No.0584D-0506
Example
M2340 S0;
(SL3114,SL3113 both OFF)
M2340 S1;
(SL3113 ON)
M2340 S2;
(SL3114 ON)
2-93
S p e c i f i c a t i o n
Specification of M Codes Specification
S p e c i f i c a t i o n
2-94
No.0584D-0506
Index
I n d e x
No.0584D-0506
3-1
Index Index Attachment Change End ..............2-41 4th Axis Clamp................................2-4
Attachment Change Start .............2-37
4th Axis Mirror Image ON ...............2-5
Attachment Lubrication Off ...........2-82
4th Axis Unclamp............................2-5
Attachment Lubrication On...........2-82 Attachment No. Output to Macro
5th Axis Clamp................................2-5
(#100) ...........................................2-55
5th Axis Mirror Image ON .............2-25
Auto End Due to Illegal Work
5th Axis Unclamp............................2-5
Measurement................................2-88 Auto Measuring Approach Mode.. 2-21
6th Axis Clamp..............................2-24
Auto Measuring Rapid Mode........ 2-21
6th Axis Mirror Image ON .............2-26
Auto Reject Mode OFF
6th Axis Unclamp..........................2-24
(Reject Inhibit for Alarm)...............2-13 Auto Reject Mode ON
AAC Retract & AAC Splashguard
(M52 Mode Cancel)......................2-13
Close.............................................2-37
Automatic Tool Change .................. 2-4
AAC Splashguard Open & AAC
AWC Index Work Selection
Advance ........................................2-37
Command .....................................2-76
AAC Step Advance .......................2-75
Axis Index Program End............... 2-72
AAC Step Retract..........................2-75
Axis Retract Position at ATC ........2-76
AC Coefficient 100%, SL Coefficient
I n d e x
200%.............................................2-13
Base Coolant ON..........................2-80
AC/SL Data Temporary Alter Mode
Block Skip 2 ON ...........................2-26
OFF...............................................2-11
Block Skip 2 to 9 OFF ..................2-26
AC/SL Data Temporary Alter Mode
Block Skip 3 ON ...........................2-26
ON ................................................2-11
Block Skip 4 ON ...........................2-26
Additional Nozzle Coolant ON ......2-77
Block Skip 5 ON ...........................2-27
Air Blow ON ..................................2-80
Block Skip 6 ON ...........................2-27
Angle Head Coolant ON ...............2-81
Block Skip 7 ON ...........................2-27
Angle Head Support Advance ......2-39
Block Skip 8 ON ...........................2-27
Angle Head Support Pin Cleaning Air
Block Skip 9 ON ...........................2-27
ON ................................................2-81
Blum Bore Gauge Start ................2-89
Angle Head Support Retract.........2-39
BTS Arm Advance (Movable BTS) .2-5
Angle Plate / Table Cleaning Coolant
BTS Arm Retract(Movable BTS) ....2-6
OFF...............................................2-77
BTS Check .....................................2-6
Angle Plate / Table Cleaning Coolant
BTS LS300 OFF Check................2-45
ON ................................................2-77
3-2
APC Shutter Close........................2-22
Clamp Confirmation......................2-39
APC Shutter Open ........................2-21
Cleaning Air Off ............................2-23
ATC & B Axis Simultaneous
Cleaning Air On ............................2-23
Operation ......................................2-76
Cleaning Telescopic-Cover Coolant
ATC & B Axis Simultaneous
ON ................................................2-80
Operation End Check ...................2-77
Coolant OFF...................................2-4
ATC Magazine No. Setting for Tool
Coolant Pressure Set 1 ................2-78
Data Register Mode......................2-52
Coolant Pressure Set 2 ................2-78
ATC Shutter Close ........................2-76
Coolant Pressure Set 3 ................2-78
ATC Shutter Open ........................2-76
Coolant Pressure Set 4 ................2-78
No.0584D-0506
Index Coolant Resume...........................2-34
GI/Super-GI Ultra High Accuracy
Coolant Stop & Reserve...............2-33
Mode ............................................ 2-29
Coolant Stop without DEN Waiting
GI/Super-GI Ultra High Performance
2-77 Coolant/Spindle Resume..............2-32
Mode for Contouring with Rotary Axes ............................................. 2-29
Coolant/Spindle Stop & Release .. 2-32 Count Sum of Machined Parts .....2-27
High Speed Counter Type Tool
Counting No. of Machined Parts .. 2-83
Measurement ............................... 2-91
Cs Axis Contouring Mode OFF ....2-36 Cs Axis Contouring Mode ON ......2-36
IMM Cleaning Air OFF.................. 2-79
Cutting Condition Auto Select ......2-91
IMM Cleaning Air OFF Mode ....... 2-80 IMM Cleaning Air ON ................... 2-79
Direct Spare Tool Change ............ 2-23
IMM Cleaning Air ON Mode ......... 2-79
Direct Spare Tool Change Inhibit
Improved Spindle Reverse Orient
Mode ............................................2-24
Externally ..................................... 2-36
Direct Spare Tool Change Permit
Increase Air OFF (MQL)............... 2-81
Mode ............................................2-24
Increase Air ON (MQL)................. 2-81
Draw Bar Probe Advance............. 2-37
Inner Chip Conveyor OFF............ 2-79
Draw Bar Probe Retract ...............2-37
Inner Chip Conveyor ON.............. 2-79 Inner Chip Conveyor Speed Setting
End of Program .............................. 2-2 Extend Stroke Change Signal OFF 2-30 Extend Stroke Change Signal ON 2-30
.................................................. 2-81 INPROCESS GAUGE Autozero Cycle Start.................................... 2-92 INPROCESS GAUGE Get Measuring Data............................ 2-93 INPROCESS GAUGE Manual Mode
Feedrate Override Cancel............2-13
2-93
Fin Check for M303 or M304........2-31
INPROCESS GAUGE Measureing
First Block Skip OFF .................... 2-26
Cycle Start.................................... 2-92
First Block Skip ON ...................... 2-26
INPROCESS GAUGE Measureing
First Block Skip Return.................2-26
Head Retraction ........................... 2-92
First Use Check Request ............. 2-66 Floating M Code Exchange
Lighting OFF ................................ 2-78
Prohibition Mode OFF ..................2-30
Lighting ON .................................. 2-78
Floating M Code Exchange Prohibition Mode ON....................2-30
M Code for ATC ...................... 2-67, 2-68, 2-77, 2-89
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
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
GI/Super-GI High Performance Mode
M59 Mode Cancel........................ 2-18
for Contouring with Rotary Axes...2-29
M920, M921 Data Incremental Mode
GI/Super-GI Radical Mode...........2-29
.................................................. 2-87
GI/Super-GI Special Mode ...........2-29
No.0584D-0506
3-3
I n d e x
Index Machine Data Output to Macro Variable .....................................2-57
Pallet 1 Load Check .....................2-21
Machine Table Pallet 1 Check ......2-41
Pallet 2 Load Check .....................2-23
Machine Table Pallet 2 Check ......2-43
Pallet Change ............ 2-19, 2-20, 2-21
Machine Table Pallet Check End..2-44
Pallet Change Sub M Code..........2-72
Machining Signal OFF..................2-53
Pallet Contact Check....................2-45
Machining Signal ON....................2-53
Pallet No. Send.............................2-53
Macro Variable (#100) Read.........2-55
Pallet Ready Not Checked at M60
Macro Variables Reading Request to
..................................................2-20
MOS ..........................................2-57
Part Program End and Repeat .......2-7
Measuring Head Alarm Check......2-82
Pre-Orientation .............................2-35
Measuring Head Cleaning Air ON
Pre-Unclamp.................................2-38
..................................................2-79
Print-out Mode Output ..................2-54
Measuring Probe Power OFF.......2-91
Prior Tool Check .............................2-9
Measuring Probe Power OFF &
Program Stop..................................2-2
Check ........................................2-91 Measuring Probe Power ON.........2-91 Measuring Probe Power ON & Check
I n d e x
Rapid Feed Speed Limitation Mode Setting.......................................2-27
..................................................2-91
Respective Load...........................2-73
Message Output Function ............2-46
Respective Unload .......................2-74
Metallic Cutting Mode OFF...........2-56
Return to Main Program ...............2-23
Metallic Cutting Mode ON.............2-56
Rigid Tap Mode ON ......................2-25
Mirror Image OFF ...........................2-7
Rotary Axis Coordinate Calculate
Mist Blow ON................................2-41
Function ...........................2-91, 2-92
Mist Collector OFF........................2-78
Rotary Dresser Control.................2-93
Mist Collector ON..........................2-78
Routine Function DNC Program End
Mist Coolant/Air Blow ON...............2-4
..................................................2-72
MP7 Measuring Head Check........2-88 Set Amount of Oil to Large(MQL).2-80 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
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
Oil Controller OFF.........................2-34
Pallet .........................................2-21
Oil Controller ON ..........................2-34
Signal Light 1 Unconditional ON ..2-46
Oil Skimmer OFF..........................2-79
Signal Light 2 Unconditional ON ..2-46
Oil Skimmer ON............................2-79
SL and AC Coefficient 0% ............2-12
Open ATC Shutter and Start Next
SL Coefficient Setting 125%.........2-12
Block before Shutter is Fully Open
SL Coefficient Setting 150%.........2-12
..................................................2-66
SL Coefficient Setting 200%.........2-12
Optional Stop ..................................2-2 Overhead Shower Coolant ON.....2-23
SL Lower Limit Coefficient Setting 0%.............................................2-12
Override 100% or Less.................2-25
3-4
No.0584D-0506
Index SL Lower Limit Coefficient Setting
TL Alarm Suspension Mode ON... 2-56
125%.........................................2-12
TL Mode OFF............................... 2-28
SL Lower Limit Mode OFF ...........2-30
TL Mode ON................................. 2-28
SL Lower Limit Mode ON .............2-30
Tool Broken Status (BT/B2).......... 2-46
SL Mode OFF...............................2-28
Tool Cleaning Air OFF.................. 2-80
SL Mode ON.................................2-28
Tool Cleaning Air ON.................... 2-80
Specified Spindle Tool Output ...... 2-54
Tool Cutter No. Setting................. 2-53
Spindle Attachment Dismount Check
Tool Data Delete Mode ON
..................................................2-37
................................2-22, 2-28, 2-69
Spindle Attachment Mount Check 2-37
Tool Data Register Mode (Type1) 2-47
Spindle CCW Start.......................... 2-3
Tool Data Register Mode (Type2) 2-51
Spindle CCW Without DEN-Waiting
Tool Data Register Mode OFF ..... 2-10
..................................................2-31
Tool Length Auto Measuring Mode 2-8
Spindle CW Start ............................ 2-3
Tool Length Circuit Check ............ 2-12
Spindle CW Without DEN-Waiting
Tool Length Circuit Check .............. 2-8
..................................................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
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
..................................................2-34
Direction ................................... 2-28
Spindle Rotation for Alignment ..... 2-34
Tool No. Register Mode ............... 2-17
Spindle Rotation for Measuring .... 2-35
Tool Offset Data Negative Register
Spindle Speed Override Cancel ... 2-19 Spindle Status Reserve & Stop .... 2-32 Spindle Stop ................................... 2-3 Spindle Tool Clamp....................... 2-40
Mode .......................................... 2-14 Tool offset Data Transfer Command .................................................. 2-15 Tool Radius Measuring Data Read
Spindle Tool No. 0 Output.............2-55
.................................................. 2-85
Spindle Tool Pot No. Output ......... 2-88
Tool Retract End........................... 2-72
Spindle Tool Unclamp...................2-40
Travel Limit Invalid ....................... 2-75
Spindle Tool Unclamp Ready ....... 2-41 Spindle Unlock..............................2-36
Unconditional Power Out ............... 2-7
Spindle Upper Nozzle Coolant ON ..................................................2-79
Vacuum Suction OFF................... 2-40
Stylus Cleaning Air OFF............... 2-78
Vacuum Suction ON..................... 2-40
Stylus Cleaning Air ON.................2-78 Sub Program Call.........................2-23
Work Chuck Clamp ...................... 2-72
Subprogram Call to an External I/O
Work Chuck Unclamp .................. 2-72
Device.......................................2-28
Work information output............... 2-37 Workpiece Auto Measuring Mode .. 2-8
Tailstock Pressure Change ..........2-40 Telescopic-Cover Coolant OFF .... 2-80 Through Spindle Air ON ...............2-20 Through Spindle Coolant ON ......... 2-7
Workpiece Auto Measuring Pallet Unload .......................................... 2-8 Workpiece Auto Measuring Spare Tool Call........................................ 2-8
Through Spindle Mist ON............. 2-41
No.0584D-0506
3-5
I n d e x
Index Workpiece Automatic Measuring Mode Cancel...............................2-82
X Axis Mirror Image ON.................2-6
Workpiece Change .......................2-75 Workpiece Load............................2-75
Y Axis Mirror Image ON.................2-6
Workpiece Unload ........................2-75
I n d e x
3-6
No.0584D-0506
Appendix
A ppendix
A p p e n d i x
No.0584D-0506
4-1