Pro-5 M code list all models Makinot All Models Makino
-
Upload
sebdominique -
Category
Documents
-
view
3.543 -
download
417
description
Transcript of Pro-5 M code list all models Makinot All Models Makino
PROFESSIONAL 5
M-CODE LIST
Applicable Models
All Models
No.0584D-0506
No.0584D-0506 1
ContentsC
ontents
Contents
2 No.0584D-0506
Contents
Contents
Contents
1. List of M Codes
1.1 Notes on this M Code List ....................................................... 1-2 1.2 List of M Codes ....................................................................... 1-3
2. Specification of M Codes
2.1 Specification............................................................................ 2-2
3. Index
4. Appendix
4.1 History of M Code List ............................................................. 4-2
No.0584D-0506 1-1
List of M CodesList of M
Codes
1. List of M Codes
1-2 No.0584D-0506
List of M Codes Notes on this M Code List
List of M C
odes
1.1 Notes on this M Code List This list of M codes includes all M codes provided for the machines. Therefore, please note that it may not be possible to use some M codes, depending upon the machine specifications and provided options.
No.0584D-0506 1-3
List of M CodesList of M Codes
List of M C
odes
1.2 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
1-4 No.0584D-0506
List of M Codes List of M Codes
List of M C
odes
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 1-5
List of M CodesList of M Codes
List of M C
odes
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
1-6 No.0584D-0506
List of M Codes List of M Codes
List of M C
odes
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 1-7
List of M CodesList of M Codes
List of M C
odes
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
1-8 No.0584D-0506
List of M Codes List of M Codes
List of M C
odes
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 1-9
List of M CodesList of M Codes
List of M C
odes
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
1-10 No.0584D-0506
List of M Codes List of M Codes
List of M C
odes
M951 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 2-1
Specification of M CodesSpecification
2. Specification of M Codes
2-2 No.0584D-0506
Specification of M Codes Specification
Specification
2.1 Specification
The (D) means that this code is performed after the axis moves if an axis movement command is given in that block together.
M00 Program Stop (D)
□Program G01 X___ Y___ F___ M0;
□Explanation Automatic operation stops after the block containing M0 is executed. When automatic operation is stopped by M0, spindle rotation and coolant are stopped, and the [Cycle Start] switch is blinked. And then, the warning lamp is turned on if the machine with a signal tower.If the [Cycle Start] switch is pushed, spindle rotation and coolant are resumed, automatic operation is restarted, and the warning lamp is turned off.
M01 Optional Stop (D) □Program
G01 X___ Y___ F___ M1; □Explanation
This M code functions as M0 only when the [Optional Stop] switch has been turned on. If the [Optional Stop] switch is turned off, M1 is ignored.
M02 End of Program (D)
□Explanation Indicates the end of program, and resets NC after operating as follows: (a) Spindle rotation is stopped. (b) Coolant is stopped. (c) Mirror image off is turned off. Afterward, if the [Power Out] switch has been turned on, the power is turned off, and if the [Warning Lamp] mode has been turned on, M2 turns the warning lamp on.
No.0584D-0506 2-3
Specification of M CodesSpecification
Specification
M03 Spindle CW Start □Program
S800 M3 G00 X___ Y___ ; G01 Z___ F___ ;
□Explanation
Rotates spindle in clockwise direction at a speed specified with S code. If no speed has been specified with S code ever, an alarm occurs.
M04 Spindle CCW Start
□Program S800 M4 G00 X___ Y___ ; G01 Z___ F___ ;
□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 Spindle Stop (D) □Program
G01 X___ Y___ F___ M5; □Explanation
Stops the spindle after the block containing M5 is executed.
2-4 No.0584D-0506
Specification of M Codes Specification
Specification
M06 Automatic Tool Change □Program
M6; □Explanation
Exchanges the spindle tool with the tool in ATC magazine indexed at the position of next tool, or the tool on ATC arm. The typical content of M6 is as follows: (a) Coolant is stopped. (b) Orients and stops the spindle. (c) Exchanges the spindle tool. (d) Resumes coolant.
There is the one which does not return according to the version of the model and software either about the coolant.
M07 Mist Coolant/Air Blow ON □Explanation
Turns the air blow or the mist coolant on.
M08 Nozzle Coolant ON □Explanation
Turns the nozzle coolant on.
M09 Coolant OFF (D) □Program
G01 X___ Y___ F___ M9; □Explanation
Stops coolant after the block containing M9 is executed.
M10 4th Axis Clamp (D)
□Program M11; G91 G01 B___ F___ M10;
□Explanation
Clamps 4th axis after the block containing M10 is executed.
No.0584D-0506 2-5
Specification of M CodesSpecification
Specification
M11 4th Axis Unclamp □Program
M11; G91 G01 B___ F___ M10;
□Explanation
Unclamps 4th axis.
M12 5th Axis Clamp (D)
□Program M13; G91 G01 A___ F___ M12;
□Explanation
Clamps 5th axis after the block containing M12 is executed.
M13 5th Axis Unclamp
□Program M13; G91 G01 A___ F___ M12;
□Explanation
Unclamps 5th axis.
M14 BTS Arm Advance (Movable BTS) (D) □Explanation
Advances the movable BTS arm.
M16 4th Axis Mirror Image ON
□Program G28 B___ M11; M16; G00 B___ M10;
□Explanation
Turns the mirror image of the 4th axis on if the machine has a 4th axis. Specify it in a by block itself.
2-6 No.0584D-0506
Specification of M Codes Specification
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 Checks whether or not the tool has broken. If there is a problem with the tool, a BTS alarm occurs.
M21 X Axis Mirror Image ON
□Program G28 X___ Y___; M21; G01 X___ Y___ F___;
□Explanation
Turns the mirror image for the X axis on. Specify this M code in an independent block.
M22 Y Axis Mirror Image ON
□Program G28 X___ Y___; M22; G01 X___ Y___ F___;
□Explanation
Turns the mirror image of the Y axis on. Specify this M code in an independent block.
No.0584D-0506 2-7
Specification of M CodesSpecification
Specification
M23 Mirror Image OFF (D) □Program
G28 X___ Y___ M23; G01 X___ Y___ F___;
□Explanation
Turns the mirror image (X, Y, 4th, 5th, 6th axis) off after the block containing M23 is executed.
M26 Through Spindle Coolant ON
□Explanation Turns on through spindle coolant.
M29 Unconditional Power Out (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.
2-8 No.0584D-0506
Specification of M Codes Specification
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. The tool length automatic measuring circuit is self-diagnosed.
M34 Workpiece Auto Measuring Spare Tool Call □Explanation
Used in the workpiece automatic measuring macro program. Previously used tool is assigned a BTS alarm. Afterward, a spare tool is indexed if the tool for which a BTS alarm was assigned is called with the T code.
M35 Workpiece Auto Measuring Pallet Unload
□Explanation Used in the workpiece automatic measuring macro program. Previously used tool is assigned to a BTS alarm, and tool change and pallet change are performed to start the next machining process automatically.
No.0584D-0506 2-9
Specification of M CodesSpecification
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
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.
2-10 No.0584D-0506
Specification of M Codes Specification
Specification
M37 Tool Data Register Mode OFF □Program
M___; <---Tool register mode ON such as M448 S___ T___; <---Tool Data Registration M37;
□Explanation Turns off the tool data registration mode. When a registration mode is ON, another registration mode cannot be turned on without turning off the current mode. While the tool data registration mode is ON, you can't use S code to command spindle speed, and can't use T code to command next tool. You can use them to command a spindle speed and a tool number, after M37 is executed.
□Program Example O1234; M448 S4; <---PTN register mode ON. S1 T1000; <---PTN 1000 is set to 1st pot magazine. S2 T2000; <---PTN 2000 is set to 2nd pot magazine. M448 S119; <---SL data register mode ON S1 T123; <---12.3(%) is set to SL(Upper Limit) of 1st. Pot. S1 T456; <---45.6(%) is set to SL(Lower Limit) of 1st. Pot. M37; <---Data registration mode OFF. :
Machining Program : M30; %
No.0584D-0506 2-11
Specification of M CodesSpecification
Specification
M38 AC/SL Data Temporary Alter Mode ON □Program
M38; SAC Data; SSL(Upper) Data; SSL(Under) Data; M39;
□Explanation
Sets AC/SL data for spindle tool. First S is for AC data and second S is for SL data. Specified monitor data is retained until an M6 or M2/M30 is specified. If an S9999 is specified, the monitoring data is not altered but the data on tool detail screen becomes valid.
□Program Example
O1234; M38; S100; <---10.0 [%] is set to AC of simple tool. S125; <---12.5 [%] is set to SL(Upper Limit) of tool. S30; <---3.0 [%] is set to SL(Lower Limit) of tool. M39; : Machining Program : M30; %
M39 AC/SL Data Temporary Alter Mode OFF
□Program M38; SAC Data; SSL(Upper) Data; SSL(Under) Data; M39;
□Explanation Turns off the AC/SL data temporary alteration mode.
2-12 No.0584D-0506
Specification of M Codes Specification
Specification
M41 SL Coefficient Setting 125% □Explanation
Sets SL coefficient data to 125% (Max. spindle actual load current * 1.25) when study mode is ON.
M42 SL Coefficient Setting 150%
□Explanation Sets SL coefficient data to 150% (Max. spindle actual load current * 1.50) when study mode is ON.
M43 SL Coefficient Setting 200%
□Explanation Sets SL coefficient data to 200% (Max. spindle actual load current * 2.00) when study mode is ON.
M44 SL and AC Coefficient 0%
□Explanation Sets SL coefficient data to 0%. Use this M code when you don't use SL monitor and AC monitor.
M45 Tool Length Circuit Check
□Explanation Used in the tool length automatic measuring macro program. The tool length automatic measuring circuit is self-diagnosed. This M code doesn’t turn on measuring head cleaning air.
M46 SL Lower Limit Coefficient Setting 125%
□Explanation Sets SL lower limit coefficient data to 125% (No load * 1.25) when study mode is ON.
M47 SL Lower Limit Coefficient Setting 0%
□Explanation Sets SL lower limit coefficient data to 0% (No load * 0) when study mode is ON. Use this M code when you don't use SL lower limit monitor.
No.0584D-0506 2-13
Specification of M CodesSpecification
Specification
M48 M49 Mode Cancel (D) □Program
G01 X___ Y___ F___ M48; □Explanation
Enables the feedrate override switch after the block containing M48 is executed.
M49 Feedrate Override Cancel □Program
M49; G01 X___ Y___ F___;
□Explanation
Disables the feedrate override switches and fixes the feedrate override at 100% until M48 or M2/M30 is specified.
M50 AC Coefficient 100%, SL Coefficient 200%
□Explanation In the study mode, the AC data is fixed at 100% and the SL data is fixed at 200%. Fixes the AC data at 100% and the SL data at 200% while study mode is ON. AC data = (Max. spindle actual load current × 1.00) SL data = (Max. spindle actual load current × 2.00)
M51 Auto Reject Mode ON (M52 Mode Cancel)
□Explanation Turns on the automatic workpiece reject mode. If a tool monitor alarm occurs during random operation, the automatic workpiece rejection function interrupts machining and starts machining on next pallet or next ready face.
M52 Auto Reject Mode OFF (Reject Inhibit for Alarm) (D)
□Explanation Turns off the automatic workpiece reject mode.
2-14 No.0584D-0506
Specification of M Codes Specification
Specification
M54 Tool Offset Data Negative Register Mode □Program
M448 S____; <---M Code for Tool Registration T___; M54; <---Indicated that following data is negative S___T___; M448;
□Explanation
Specifies that next data is minus. Specify M54 in previous block or the same block of data. M54 is effective only for the next data.
□Program Example 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 %
No.0584D-0506 2-15
Specification of M CodesSpecification
Specification
M56 Tool Offset Data Transfer Command □Program
HOffset No. DOffset No.; M56;
□Explanation
Transfers tool length and radius offset data for spindle tool (registered on Tool Detail screen) to the current offset numbers. If the offset number is 0, the data is not sent to that offset. E.g., H1 D0 causes the tool length data to be sent to H1 but the radius data is not sent. Data is sent as follows according to type of tool compensation memory.
[Tool compensation memory B, C] H > 0 Length (Geometry(H)) ---> Geometry of H number Length (Wear(H)) ---> Wear of H number D > 0 Radius (Geometry(D)) ---> Geometry of D number Radius (Wear(D)) ---> Wear of D number
[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
2-16 No.0584D-0506
Specification of M Codes Specification
Specification
□Program Example O1234; T1; M6; H1 D2; M56; <----Tool length data is sent to offset No.1, and tool radius data is
sent to offset No.2. : Machining Program : M451 S2; M56; <----Tool length data of cutter No.2 is sent to offset No.1, and tool
radius data of cutter No.2 is sent to offset No.2. : Machining Program : T2; M6; H3 D0; M56; <----Tool length data of cutter No.1 is sent to offset No.3, but tool
radius data is not sent. : Machining Program : M30;
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.
No.0584D-0506 2-17
Specification of M CodesSpecification
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.
2-18 No.0584D-0506
Specification of M Codes Specification
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. % [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.
No.0584D-0506 2-19
Specification of M CodesSpecification
Specification
M59 Spindle Speed Override Cancel □Program
S800 M3; M59; G01 X___ Y___ F___;
□Explanation
Disables [Spindle Speed Override] switch and fixes the spindle speed override at 100% until M58 is executed.
M60 Pallet Change (D)
□Explanation This M code is used in the pallet loading and unloading programs (O9810, O9820). 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.
2-20 No.0584D-0506
Specification of M Codes Specification
Specification
M65 Pallet Change (D) □Explanation
This M code is used in the pallet loading and unloading programs (O9810, O9820). Cannot be used by itself.
M69 Pallet Ready Not Checked at M60
□Explanation Used when a pallet change (M60) is required even if the ready status of the pallet on stocker is OFF. With this M code, ready uncheck mode is turned on. Once an M60 is executed, this mode is turned off. This M code cannot be used in the random operation.
□Program Example
M69; M60; <----Exchanges pallet even if a next pallet is not ready. : Machining Program : M60; <----Exchanges pallet only if a next pallet is ready.
M77 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.
No.0584D-0506 2-21
Specification of M CodesSpecification
Specification
M79 Signal Lamp 2 ON with No Ready Pallet □Program
M98 P9810; M79;
□Explanation
Turns on signal light 2 (yellow) if the pallet on stocker is not ready. Signal light turned on by this M code will be turned off by changing the pallet to ready.
M80 Pallet Change
□Explanation This M code is used in the pallet loading and unloading programs (O9810, O9820). Cannot be used by itself.
M84 Pallet 1 Load Check
□Explanation Checks whether or not the pallet number on the table is 1 if a pallet has been loaded. If it is No. 2, a machine alarm occurs. Checks whether or not the pallet on the stocker is ready or not if pallet has not been loaded on the table. When it is not ready, an alarm occurs.
M85 Auto Measuring Approach Mode
□Explanation This M code is used in the automatic measuring macro program (workpiece/tool length) when the sensor approaches the target-point.
M86 Auto Measuring Rapid Mode
□Explanation This M code is used in the automatic measuring macro program (workpiece/tool length) when the sensor is fed at rapid traverse.
M88 APC Shutter Open
□Explanation Opens APC shutter.
2-22 No.0584D-0506
Specification of M Codes Specification
Specification
M89 APC Shutter Close □Explanation
Closes APC shutter.
M94 Tool Data Delete Mode ON □Program
M94; SPot No.; : SPot No.; M37(M30);
□Explanation
Deletes all tool data including tool number of the pot specified with S. Magazine number is set according to M450 S__ command. If M450 has not ever been specified, the magazine number is set to 1. However, tool data of tool No. 0 is not deleted.
□Program Example
O1234; M450 S2; <----Magazine No. is set to 2. M94; <----Tool data delete mode ON. S1; <----All the data of the pot of tool No.1 of magazine No.2 are deleted. S2; <----All the data of the pot of tool No.2 of magazine No.2 are deleted. M37; <----Tool data delete mode OFF. M450; <----Magazine No. is set to 1. S1; <----All the data of the pot of tool No.1 of magazine No.1 are deleted. S2; <----All the data of the pot of tool No.2 of magazine No.1 are deleted. M30; <----Tool data delete mode OFF.
The specifications are different from the specifications for Professional.3.
No.0584D-0506 2-23
Specification of M CodesSpecification
Specification
M95 Pallet 2 Load Check □Explanation
Checks whether or not the pallet number on the table is 2 if a pallet has been loaded. If it is No. 1, a machine alarm occurs. Checks whether or not the pallet on the stocker is ready if a pallet has not been loaded on the table. When it is not ready, an alarm occurs.
M97 Overhead Shower Coolant ON
□Explanation Turns on the high power (ceiling) coolant.
M98 Sub Program Call
□Program M98 P___ ;
□Explanation
Calls the subprogram specified with P.
M99 Return to Main Program □Program
M99; □Explanation
Returns to the main program from subprogram.
M100 Cleaning Air Off □Explanation
This M code is used in tool measurement macro program.
M101 Cleaning Air On □Explanation
This M code is used in tool measurement macro program.
M105 Direct Spare Tool Change □Explanation
Exchanges the spindle tool with a spare tool if a tool life alarm has occurred for the spindle tool. (Direct spare tool change)
2-24 No.0584D-0506
Specification of M Codes Specification
Specification
M106 Direct Spare Tool Change Inhibit Mode □Explanation
Turns on the direct spare tool change inhibit mode when M107 mode is ON.
M107 Direct Spare Tool Change Permit Mode □Explanation
Turns on the direct spare tool change mode. In this mode, whether or not an alarm has occurred for the spindle tool is checked periodically, and the spindle tool is exchanged with a spare tool if an alarm has occurred for the spindle tool.
M110 6th Axis Clamp □Explanation
6th Axis Clamp. □Program Example
M111; G91 G01 B___ F___ M110;
M111 6th Axis Unclamp
□Explanation 6th Axis Unclamp.
□Program Example
M111; G91 G01 B___ F___ M110;
No.0584D-0506 2-25
Specification of M CodesSpecification
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 Rigid Tap Mode ON □Program
S___; M135 S___; G84 Z___ R___ F___; G80; M30;
□Explanation Turns on the rigid tap mode. Specify the same S code as that in the M135 block before the M135 block.
M138 5th Axis Mirror Image ON
□Program G28 X___ Y___ A__; M138; G01 X___ Y___ A__ F___;
□Explanation
Turns on mirror image for 5th axis. Specify it in a block by itself.
2-26 No.0584D-0506
Specification of M Codes Specification
Specification
M139 6th Axis Mirror Image ON □Program
G28 X___ Y___ A__; M139; G01 X___ Y___ A__ F___;
□Explanation
Turns on the mirror image of 6th axis. Specify it in a block by itself.
M140 First Block Skip ON
□Explanation This M code is used in the macro program for automatic measuring. It stores the status of block skip 1, and turns it on.
M141 First Block Skip OFF
□Explanation This M code is used in the macro program for automatic measuring. It stores the status of the block skip 1, and turns it off.
M142 First Block Skip Return □Explanation
This M code is used in the macro program for automatic measuring. It recovers the status of block skip 1 to the status previously stored by M140/M141.
M150 Block Skip 2 to 9 OFF
□Explanation Turns block skip 2 to 9 off.
M152 Block Skip 2 ON
□Explanation Turns on block skip 2.
M153 Block Skip 3 ON
□Explanation Turns on block skip 3.
M154 Block Skip 4 ON
□Explanation Turns on block skip 4.
No.0584D-0506 2-27
Specification of M CodesSpecification
Specification
M155 Block Skip 5 ON □Explanation
Turns on block skip 5.
M156 Block Skip 6 ON □Explanation
Turns on block skip 6.
M157 Block Skip 7 ON □Explanation
Turns on block skip 7.
M158 Block Skip 8 ON □Explanation
Turns on block skip 8.
M159 Block Skip 9 ON □Explanation
Turns on block skip 9.
M172 Rapid Feed Speed Limitation Mode Setting □Explanation
Rapid feed speed limitation mode is set.
□Program Example M172 S0; (Rapid Feed Speed Limitation Disable) M172 S1; (Rapid Feed Speed Limitation Enable) M172; (Rapid Feed Speed Limitation Enable)
M186 Count Sum of Machined Parts
□Explanation Adds value to product counter specified by M186. Number to be added to the counter is specified by T, and the group of counters to which the value is added is specified by S. If T has not been specified, it is regarded as T1 has been specified. If S has not been specified, all the product counter specified to be added by M186 are added.
2-28 No.0584D-0506
Specification of M Codes Specification
Specification
M187 Dry Run ON □Explanation
Turns on the dry run mode.
M188 Dry Run OFF □Explanation
Turns off the dry run mode.
M198 Subprogram Call to an External I/O Device. □Program
M198 P___ ; □Explanation
Calls a subprogram specified by P from a file in an external I/O device.
M235 TL Mode OFF □Explanation
Turns off the TL mode.
M236 TL Mode ON □Explanation
Turns on the TL mode.
M237 SL Mode OFF □Explanation
Turns off the SL mode.
M238 SL Mode ON □Explanation
Turns on the SL mode.
M246 Tool Measuring Sensor Y-Axis Direction □Explanation
Specifies the vertical direction for the rotary tool measuring sensor.
M247 Tool Measuring Sensor X-Axis Direction □Explanation
Specifies the horizontal direction for the rotary tool measuring sensor.
No.0584D-0506 2-29
Specification of M CodesSpecification
Specification
M250 GI/Super-GI High Accuracy Mode □Explanation
Switches GI/Super-GI to the high accuracy mode.
M251 GI/Super-GI High Performance Mode □Explanation
Switches GI/Super-GI to the high performance mode.
M252 GI/Super-GI Ultra High Accuracy Mode □Explanation
Switches GI/Super-GI to the ultra high accuracy mode.
M253 GI/Super-GI Additional Axis Contouring Mode □Explanation
Switches GI/Super-GI to the additional axis contouring mode.
M254 GI/Super-GI Special Mode □Explanation
Switches GI/Super-GI to the M254 mode.
M255 GI/Super-GI Radical Mode □Explanation
Switches GI/Super-GI to the radical mode.
M257 GI/Super-GI High Performance Mode for Contouring with Rotary Axes □Explanation
Switches GI/Super-GI to the high performance mode for contouring with rotary axes. (This M code is effective for FS300is/FS310is CNC)
M258 GI/Super-GI Ultra High Performance Mode for Contouring with
Rotary Axes □Explanation
Switches GI/Super-GI to the ultra high performance mode for contouring with rotary axes. (This M code is effective for FS300is/FS310is CNC)
M259 GI Initial Mode
□Explanation Switches GI/Super-GI to the original mode. (This M code is effective for FS160is/FS180is CNC)
2-30 No.0584D-0506
Specification of M Codes Specification
Specification
M270 Non Contact Type Spindle Measurement □Explanation
This M code is used in tool measurement macro program.
M276 Extend Stroke Change Signal OFF □Explanation
Turns off the stroke-change signal that has been turned on by M277. This M code is used in the ATC macro program.
M277 Extend Stroke Change Signal ON
□Explanation Turns on the stroke-change signal. This M code is used in ATC macro program.
M283 SL Lower Limit Mode OFF
□Explanation Turns off the SL lower limit mode.
M284 SL Lower Limit Mode ON
□Explanation Turns on the SL lower limit mode.
M291 Floating M Code Exchange Prohibition Mode OFF
□Explanation Turns off the floating M code exchange prohibition mode. The floating M code exchange prohibition mode is turned off if NC reset is turned on.
M292 Floating M Code Exchange Prohibition Mode ON
□Explanation Turns on the floating M code exchange prohibition mode. The floating M code exchange does not function after this M code is specified.
Do not use this M code in a machining program. This M code is only for special use in a macro program of one-touch function of MAKINO.
No.0584D-0506 2-31
Specification of M CodesSpecification
Specification
M302 Fin Check for M303 or M304 □Explanation
Checks for completion of M303 or M304, and waits until completion if either code has not been completed. If M303 or M304 has not been specified yet, M302 finishes immediately.
M303 Spindle CW Without DEN-Waiting
□Program S2000 M303; G00 G90 Y___ Z___ M302; G01 Z___;
□Explanation
Starts the spindle in clockwise direction without waiting for DEN and returns FIN immediately.
Use M303 and M302 in a pair always.
M304 Spindle CCW Without DEN-Waiting
□Program S2000 M304; G00 G90 Y___ Z___ M302; G01 Z___;
□Explanation
Starts the spindle in counterclockwise direction without waiting for DEN and returns FIN immediately.
Use M304 and M302 in a pair always.
2-32 No.0584D-0506
Specification of M Codes Specification
Specification
M307 Coolant/Spindle Stop & Release □Program
M307; G91 G28 Y0 Z0; M6; G91 Y___; M308;
□Explanation
Stores status of the spindle and the coolant, and stops them. Typically in case of oil-pan type machine, inserting the M307 and M308 before and after M6 prevents coolant splash on the floor.
M308 Coolant/Spindle Resume □Program
M307; G91 G28 Y0 Z0; M6; G91 Y___; M308;
□Explanation
Resumes the spindle and the coolant stopped by M307. Typically, in case of oil-pan type machine, inserting M307 and M308 before and after M6 prevents coolant from splashing on the floor.
M310 Spindle Status Reserve & Stop
□Program M310; G91 G28 Z0; G28 X0 Y0; M6; G29 X0 Y0; G29 Z0; M311;
□Explanation
Stores status of the spindle and stops the spindle.
Use M310 and M311 in a pair always.
No.0584D-0506 2-33
Specification of M CodesSpecification
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 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.
2-34 No.0584D-0506
Specification of M Codes Specification
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.
M314 Spindle Rotation Before Measuring □Explanation
This M code is used in the automatic measuring macro program. Rotates to clockwise the spindle at a specified speed during specified time by machine parameters. After that, orientates and stops the spindle.
M315 Oil Controller OFF
□Explanation Cancels the status of the spindle oil controller that has been turned on by M316. This M code can only be specified if the spindle has been stopped.
M316 Oil Controller ON □Explanation
Turns on the spindle oil controller for maintenance, with the spindle stopped. This M code can only be specified if the maintenance mode has been turned on and the spindle has been stopped.
M317 Spindle Rotation for Alignment
□Explanation Rotates spindle slowly.
No.0584D-0506 2-35
Specification of M CodesSpecification
Specification
M318 Spindle Optional Angle Orient Externally (D) □Program
#100=Orient Angle; M466; M318;
□Explanation
Orients the spindle to the angle specified by macro variable #100. Specify M466 before M318 to read the value of macro variable #100. The minimum unit of the angle that can be set for macro variable #100 is 0.1 [deg]. The angle range is 0.0 [deg] to 360.0 [deg].
□Program Example
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.
2-36 No.0584D-0506
Specification of M Codes Specification
Specification
M325 Cs Axis Contouring Mode OFF □Program
M326; G91 G28 C0; : M325; S800 M3;
□Explanation
Turns off the Cs axis contouring mode. The spindle functions as a normal spindle (S, M codes are accepted) until M326 is specified. Specify it in a block by itself.
M326 Cs Axis Contouring Mode ON
□Program M326; G91 G28 C0; : M325; S800 M3;
□Explanation
Turns on the Cs axis contouring mode. The spindle functions as an NC axis (Cs axis) until M325 is specified. Specify it in a block by itself.
M327 Spindle Unlock
□Explanation Unlocks the spindle for measuring.
M328 Spindle Lock □Explanation
Locks the spindle for measuring.
M330 Improved Spindle Reverse Orient Externally □Explanation
Reverses the rotation direction of the spindle during M318. When M318 is completed, M330 becomes invalid.
No.0584D-0506 2-37
Specification of M CodesSpecification
Specification
M331 Draw Bar Probe Retract □Explanation
Retract draw bar probe.
M332 Draw Bar Probe Advance □Explanation
Advance draw bar probe.
M340 Attachment Change Start □Explanation
This M code is used in the macro program for changing attachments.
M341 AAC Splashguard Open & AAC Advance □Explanation
Used for semi-automatic attachment changer on MCC. Splashguard for attachment changer is opened, and then attachment changer is advanced.
M344 AAC Retract & AAC Splashguard Close
□Explanation This M code is used for the semi-automatic attachment changer on MCCC.The attachment changer is retracted, and then the splashguard for the attachment changer is closed.
M346 Spindle Attachment Mount Check
□Explanation This M code is used for attachment changer on MCC. It requests the operator to check that the spindle attachment is mounted.
M347 Spindle Attachment Dismount Check
□Explanation This M code is used for attachment changer on MCC. It requests operator to check that spindle attachment is dismounted.
M359 Work information output
□Explanation In case of robot interface type A, output program number specified via EXPNO01-EXPNO32 signals.
2-38 No.0584D-0506
Specification of M Codes Specification
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
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___.
No.0584D-0506 2-39
Specification of M CodesSpecification
Specification
M373 Clamp Confirmation (NC Index) □Program
M372; : B___; : M373;
□Explanation
This M code is for shortening machining times. Confirm to command and check clamp before start of cutting feed
□Program Example
G91 G30 X0. Y0. M372; B90.; G91 G00 Z-100.; M373;
Always use M372 in combination with M373, and enter the B___ in between. Do not command M372/M373 in the same block of B___.
M377 Tool Measuring Laser OFF
□Explanation Turns off the laser (laser clearance is turned off and shutter is closed) if the machine has a rotary tool measuring system.
M378 Tool Measuring Laser ON
□Explanation Turns on the laser (shutter is opened and laser clearance is turned on) if the machine has a rotary tool measuring system.
M381 Angle Head Support Retract
□Explanation Angle head support retract.
M382 Angle Head Support Advance
□Explanation Angle head support advance.
2-40 No.0584D-0506
Specification of M Codes Specification
Specification
M387 Vacuum Suction ON □Explanation
Turns on vacuum suction.
M388 Vacuum Suction OFF □Explanation
Turns off vacuum suction.
M389 Tailstock Pressure Change □Explanation
Selects clamp pressure of tailstock.
M390 Spindle Tool Clamp □Explanation
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.
No.0584D-0506 2-41
Specification of M CodesSpecification
Specification
M392 Spindle Tool Unclamp Ready □Program
M392; M391;
□Explanation
This M code is used to enable unclamping of the spindle tool before M391.
M390, M391, and M392 are only for special type machine. Be careful because if these are used unexpectedly, the tool will be dropped.
M394 Attachment Change End □Explanation
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;
2-42 No.0584D-0506
Specification of M Codes Specification
Specification
□Explanation When pallet No. 1 has been loaded onto the machine table, block skip 1 is turned off. If pallet No. 2 is on the table, block skip 1 is turned on. If neither pallet No. 1 nor No. 2 is on the table, the machine is stopped by an alarm. A dummy block for preventing pre-reading such as G53 is necessary after M417/M418. [M417/M418 and block skip 1 ON/OFF]
Pallet on machine table M417 M418
1 OFF ON
2 ON OFF □Program Example
O1234; M98 P9810; M417; G53; /M98 P1; <----Pallet 1, work offset setting, etc. /M98 P10; <----Pallet 1, tool prior-check M418; G53; /M98 P2; <----Pallet 2, work offset setting, etc. /M98 P20; <----Pallet 2, tool prior-check M419; G53; : Common program for pallet 1 and pallet 2. : M98 P9820; M30; %
No.0584D-0506 2-43
Specification of M CodesSpecification
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]
Pallet on machine table M417 M418
1 OFF ON
2 ON OFF
2-44 No.0584D-0506
Specification of M Codes Specification
Specification
□Program Example O1234; M98 P9810; M417; G53; /M98 P1; <----Pallet 1, work offset setting, etc. /M98 P10; <----Pallet 1, tool prior-check M418; G53; /M98 P2; <----Pallet 2, work offset setting, etc. /M98 P20; <----Pallet 2, tool prior-check M419; G53; : Common program for pallet 1 and pallet 2. : M98 P9820; M30; %
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.
No.0584D-0506 2-45
Specification of M CodesSpecification
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;
2-46 No.0584D-0506
Specification of M Codes Specification
Specification
M435 Tool Broken Status (BT/B2) □Explanation
This M code is used by the ATC-side BTS to measure the tool length after tool vibration stops. For this function, place M435 before M6. This mode will be canceled when M6 is executed. In this mode, the tool is touched once by the BTS arm to stop vibration, and then the length is measured.
□Program Example
M6; <----Immediately after M6, tool length is measured. : M435; M6; <----By tool measuring command, the tool is touched once to the
contactor to stop vibration and then tool length is measured. : M6; <----By tool measuring command, the tool length is measured
immediately.
M436 Signal Light 1 Unconditional ON □Explanation
Signal light 1 is turned on unconditionally. Press [Light Off] switch to turn off this lamp.
M437 Signal Light 2 Unconditional ON
□Explanation Signal light 2 is turned on unconditionally. Press [Light Off] switch to turn off this lamp.
M441 Message Output Function
□Explanation This M code is used in the macro program for attachment changes.
No.0584D-0506 2-47
Specification of M CodesSpecification
Specification
M448 Tool Data Register Mode (Type1) □Program
M448 STool Data Register Mode Data TCutter No.; SPot No. TSetting Data; : SPot No. TSetting Data; M448(M37,M30);
□Explanation
Registers the desired tool data. The magazine number is specified by M450 S__. If M450 has not ever been specified, the magazine number is considered to be 1. M448 S4 has the same function as M57. Specify the tool data registration mode with S in the same block as where M448 is specified. If M448 S0 is specified, or M448 is specified without S, the tool data registration mode is turned off. Specify the cutter number with T in the same block as where M448 is specified. If M448 is specified without T, the cutter number is considered to be 1. After the tool registration mode is turned on, the pot number is specified with S, and the tool number is specified with T.
Kind and Setting Value Table for the Tool Data Tool Data Register
Mode Data (M448 S___)
Kind of Tool Data Setting Data [unit]
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
2-48 No.0584D-0506
Specification of M Codes Specification
Specification
Tool Data Register
Mode Data (M448 S___)
Kind of Tool Data Setting Data [unit]
7 Priority 0 to 65535
9 TS Coolant 0:Disable/1:Enable
10 Through Spindle Coolant Time
0 to 99999[ms]
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 (Geometry(H))
-9999999 to 9999999 [0.0001mm/0.00001inch]
104 Tool Length (Wear(H))
-9999999 to 9999999 [0.0001mm/0.00001inch]
105 Tool Radius (Geometry(D))
-9999999 to 9999999 [0.0001mm/0.00001inch]
106 Tool Radius (Wear(D))
-9999999 to 9999999 [0.0001mm/0.00001inch]
107 TL[Time] 0:Disable/1:Enable
108 TL Alarm[Time] 0 to 99999999
109 TL Warning[Time] 0 to 99999999
110 TL Value[Time] -99999999 to 99999999
No.0584D-0506 2-49
Specification of M CodesSpecification
Specification
Tool Data Register
Mode Data (M448 S___)
Kind of Tool Data Setting Data [unit]
111 TL[Distance] 0:Disable/1:Enable
112 TL Alarm[Distance]
0 to 999999999
113 TL Warning[Distance]
0 to 999999999
114 TL Value[Distance]
-999999999 to 999999999
115 TL[Count] 0:Disable/1:Enable
116 TL Alarm[Count] 0 to 99999
117 TL Warning[Count]
0 to 99999
118 TL Value[Count] -99999 to 99999
119 SL Upper Limit 0 to 20000 [0.01%]
120 SL Lower Limit 0 to 20000 [0.01%]
121 AC 0 to 20000 [0.01%]
122 Alarm BIT00=Tool Broken(Long) BIT01=Tool Broken BIT02=AC Monitor BIT03=SL Monitor BIT04=SL Monitor(non load) BIT05=Tool Life
123 Warning BIT00=Tool Life
124 BTS 0:Disable/1:Enable
125 BTS Before 0 to 9999
126 BTS After 0 to 9999
127 BTS Length 0 to 9999999
128 Operator Call 0:Disable/1:Enable
129 First Used 0:Disable/1:Enable
132 Spindle Speed Limit
0 to 99999[min-1]
2-50 No.0584D-0506
Specification of M Codes Specification
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. %
No.0584D-0506 2-51
Specification of M CodesSpecification
Specification
M449 Tool Data Register Mode (Type2) □Program
M449 SPot No. TCutter No.; STool Data Register Mode TSetting Data; : STool Data Register Mode TSetting Data; M449(M37,M30);
□Explanation
Registers the desired tool data. The magazine number is specified by M450 S__. If M450 has not ever been specified, the magazine number is considered to be 1. 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; <---- Tool data registration mode for cutter No.1 of pot No.1 S4 T1010; <---- Sets 1010 to tool number. S5 T1100; <---- Sets 1100 to FTN. S103 T1005; <---- Sets 0.1005 to tool length (Geometry). M449 S2 T3; <---- Tool data registration mode for cutter No.3 of pot No.2 S103 M54 T1010; <---- Sets -0.1010 to tool length (Geometry). S104 T1100; <---- Sets 0.1100 to tool length (Wear). S105 T1005; <---- Sets 0.1005 to tool radius (Geometry)
2-52 No.0584D-0506
Specification of M Codes Specification
Specification
M450 ATC Magazine No. Setting for Tool Data Register Mode □Program
M450 SATC Magazine No.; S0: Tool out ATC Magazine S1: ATC Magazine No.1 S2: ATC Magazine No.2
□Explanation Sets the ATC magazine number. Specify the ATC magazine number with S in the same block where M450 is specified. If M450 is specified without S, the ATC magazine number is set to 1. ATC magazine number is used by the tool data registration M codes (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
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 2-53
Specification of M CodesSpecification
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 Machining Signal OFF □Explanation
MCRUN signal is turned OFF for Fixture Interface.
M456 Machining Signal ON □Explanation
MCRUN signal is turned ON for Fixture Interface.
M462 Pallet No. Send □Program
M462; G53;
□Explanation
Sends the number of the pallet loaded on the machine table to macro variable #100. In case the 4-face program automatic assignment function is provided, the face number is also sent to #101. After M462, A dummy block for preventing pre-reading such as G53 must be inserted before reading #100 or #101.
2-54 No.0584D-0506
Specification of M Codes Specification
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.
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.
No.0584D-0506 2-55
Specification of M CodesSpecification
Specification
M465 Spindle Tool No. 0 Output □Program
M465; G53; #100=#1032; M463;
□Explanation
The spindle tool number "0" is output to custom macro #1032. After reading #1032, specify M463 to output the measuring printout status again.
After sending M465 and before reading #1032, insert a dummy block for preventing pre-reading such as G53.
M466 Macro Variable (#100) Read
□Explanation The macro variable #100 value is read by machine side control. This M code is used to specify the pallet number to be loaded before M608 for an independent loading APM. It is used to specify the position before M318 for external spindle orientation.
M468 Attachment No. Output to Macro (#100)
□Program M468; G53; IF[#100 EQ 0] GOTO10;
□Explanation
Used when MCC is provided with an attachment to output the attachment number to macro variable #100. For MCC #100 = 0.0 No attachment = 13.0 25 [deg] C axis attachment = 14.0 Extension attachment = 15.0 25 [deg] manual attachment
2-56 No.0584D-0506
Specification of M Codes Specification
Specification
M469 TL Alarm Suspension Mode ON □Explanation
Turns on the TL alarm suspend mode when the workpiece automatic measuring/remachining function is to be performed. In this mode, since an alarm is not triggered even when a tool life alarm occurs, the tool for which compensation is performed bythe remachining function is called when the next machining process is performed, and not the spare tool. This mode is canceled by M2/M30 or the workpiece automatic measuring/remachining termination program (O9793). In particular, when O9793 is executed to cancel the mode, the suspended alarm is registered.
M470 Metallic Cutting Mode OFF
□Explanation Turn off metallic cutting mode.
M471 Metallic Cutting Mode ON
□Explanation Turn on metallic cutting mode.v
M474 Next Tool Output
□Program M474; G53; #100=#1032; M463;
□Explanation
Writes the next tool number (specified by T) to custom macro variable #1032. After reading #1032, specify M463 to restore the measuring function printout status.
After specifying M474 and before reading #1032, insert a dummy block for preventing pre-reading such as G53.
No.0584D-0506 2-57
Specification of M CodesSpecification
Specification
M480 Macro Variables Reading Request to MOS □Explanation
When system mode is on, reading request of the macro variable value is sent to MOS. The read macro variables are decided by MOS side setting. Machine alarm occurs in the following cases. - Machine does not communicate with MOS. - Reading the macro variables was not completed within 60[s]. When system mode is off, M480 is completed in no request to MOS.
M483
Machine Data Output to Macro Variable □Program
#100=Data Kind; #101=Data Detail 1; #102=Data Detail 2; #103=Data Detail 3; #104=Data Detail 4; #105=Data Detail 5; #106=Data Detail 6; #107=Data Detail 7; #108=Data Detail 8; #109=Data Detail 9; M483; G53 <--- Dummy block for preventing pre-reading.
(Necessary when M483 is not specified as not-buffered M code.) □Explanation
Outputs the machine data to macro variables. After setting the type of required machine data with custom macro variable #100 to #109, specify M483. The data is then output to macro variable #110. When referring to the obtained data immediately after the M code, set the NC parameter so that M483 is a non-buffered M code, or insert a G53 after the M code to prevent pre-reading. (Set "483" to an empty NC parameter from No. 3416 to No. 3420 to specify M483 as a non-buffered M-code.)
2-58 No.0584D-0506
Specification of M Codes Specification
Specification
Tool Data Macro
Variable Setting Value
Meaning of Value
100 1.0 Tool Data
0.0 Spindle pot.
-1.0 Next pot
101
Pot No. Other pot
102 Refer following
Kind of Data
103 --- Cutter No. (If empty, 1 is set. )
104 --- ATC Magazine No. (If empty, 1 is set. )
110 Refer following
Output Data
Kind and Setting Value Table for the Tool Data (Value are all integers.) Data of
#102 Kind of Tool Data Output Data of #110 [unit]
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 Coolant Suction Time
0 to 99999[ms]
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 2-59
Specification of M CodesSpecification
Specification
Data of
#102 Kind of Tool Data Output Data of #110 [unit]
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 (Geometry(H))
-9999999 to 9999999 [0.0001mm/0.00001inch]
104 Tool Length (Wear(H))
-9999999 to 9999999 [0.0001mm/0.00001inch]
105 Tool Radius (Geometry(D))
-9999999 to 9999999 [0.0001mm/0.00001inch]
106 Tool Radius (Wear(D))
-9999999 to 9999999 [0.0001mm/0.00001inch]
107 TL [Time] 0:Disable/1:Enable
108 TL Alarm [Time] 0 to 99999999
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 [Distance]
0 to 999999999
114 TL Value [Distance] -999999999 to 999999999
115 TL [Count]
0:Disable/1:Enable
116 TL Alarm [Count]
0 to 99999
117 TL Warning [Count] 0 to 99999
118 TL Value [Count] -99999 to 99999
2-60 No.0584D-0506
Specification of M Codes Specification
Specification
Data of
#102 Kind of Tool Data Output Data of #110 [unit]
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 Limit 0 to 99999[min-1]
No.0584D-0506 2-61
Specification of M CodesSpecification
Specification
Work Data
Macro Variable
Value Meaning of Value
100 2.0 Work Data
0.0 Table Pallet
-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
101
Pallet No. Other pallet
1.0 0 [deg] Face
2.0 90 [deg] Face
3.0 180 [deg] Face
4.0 270 [deg] Face
102
If empty, 1 is set.
103 Refer following Kind of Work Data
110 Refer following Output Data
2-62 No.0584D-0506
Specification of M Codes Specification
Specification
Kind and the Setting Value Table for the Work Data (Values are all integers.)
Data of #103
Kind of Work Data Output Data of #110[unit]
1 Pallet No. 0 to 65535
3 Priority 0 to 65535
5 Express 0:OFF/1:ON
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
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
No.0584D-0506 2-63
Specification of M CodesSpecification
Specification
Machine Parameter Variable Value Meaning of Value
100 3.0 Machine Parameter
101 --- Machine Parameter No.
110 Output Data (Internal Setting Data)
Machine Condition Variable Value Meaning of Value
100 4 .0 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
#101 Kind of Machine
Condition Output Data of #110[unit]
0 The state of spindle warmup
0: Warmup is Necessary 1: Warmup is unnecessary
1 Last commanded S code 0 to 99999[min-1]
Input/Output Signal condition Variable Value Meaning of Value
100 4 .0 Machine Condition
0.0 G Address
1.0 F Address
2.0 Y Address
3.0 X Address
101
100.0 V Address
102 --- Address No.
0.0 Bit
1.0 Byte
2.0 Word
103
4.0 Long
104 0.0-7.0 Bit number (If size is 0 (Bit), input this item)
110 Refer following Output Data
2-64 No.0584D-0506
Specification of M Codes Specification
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: #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.)
No.0584D-0506 2-65
Specification of M CodesSpecification
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 Example ( Machine Parameter. ) #100=3.; <---- Machine parameter output command. #101=1000.; <---- Selects the machine parameter No.1000. M483; <---- The machine parameter No.1000 is output. G53; <---- Dummy block for preventing pre-reading.
□Program Example ( Machine Condition. )
#100=3.; <---- Machine condition output command. #101=1000.; <---- Selects the state of spindle warmup. M483; <---- The state of spindle warmup is output. G53; <---- Dummy block for preventing pre-reading.
2-66 No.0584D-0506
Specification of M Codes Specification
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.
M492 First Use Check Request
□Explanation Check spindle tool life data and output WCHKRQ signal to Robot interface or CHKREQ signal to Fixture interface.
M507 Open ATC Shutter and Start Next Block before Shutter is Fully
Open □Explanation
Opens ATC shutter without waiting for DEN and returns FIN immediately.
M530 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M531 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M532 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
No.0584D-0506 2-67
Specification of M CodesSpecification
Specification
M533 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M534 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M535 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M536 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M537 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M538 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface.
M539 M Code for Fixture Interface □Explanation
This M code is used to control the jig interface..
M548 M Code for ATC □Explanation
This M code is used in the ATC macro program.
M549 M Code for ATC □Explanation
This M code is used in the ATC macro program.
M550 M Code for ATC □Explanation
This M code is used in the ATC macro program.
2-68 No.0584D-0506
Specification of M Codes Specification
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.
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.
No.0584D-0506 2-69
Specification of M CodesSpecification
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. 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.
2-70 No.0584D-0506
Specification of M Codes Specification
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. 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.
No.0584D-0506 2-71
Specification of M CodesSpecification
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. 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.
2-72 No.0584D-0506
Specification of M Codes Specification
Specification
M595 M Code for Special User I/O Interface □Program
M595; □Explanation
UMDO8 signal of special user I/O interface is turned on. Other output signals in the same group are turned off.
M600 Pallet Change Sub M Code (D)
□Explanation This M code is used in the pallet change subprogram.
M601 Axis Index Program End (D)
□Explanation This M code is used in the axis index program.
M602 Routine Function DNC Program End
□Explanation This M code is used in the one-touch function DNC program. Indicates the end of the one-touch function, and returns operation mode to original mode after single-block stop.
Normally it is not used.
M603 Tool Retract End
□Explanation This M code is used for registration of modal data or data at the start of the direct STS program. Do not use in machining program.
Normally it is not used.
M604 Work Chuck Clamp
□Explanation Clamp work chuck.
M605 Work Chuck Unclamp
□Explanation Unclamp work chuck.
No.0584D-0506 2-73
Specification of M CodesSpecification
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).
2-74 No.0584D-0506
Specification of M Codes Specification
Specification
(2)Loads specified pallet. : #100=____ ; M466; M608; G91 G30 Z0; G91 G30 X0 Y0; G91 G30 B0 M11; M10; M60; : Set the pallet number to the macro variable #100, and command M466. You can select by setting of the machine parameter No.8069 whether to stop the machine with an alarm or not, if specified pallet isn't ready or the machine reserve mode is ON. (0:Stop with alarm/ 1:Not stop with alarm) The pallet number for macro variable #100 must be with decimal point. (Example: #100=1.0) The specified pallet number is 0. In that case, lifter is moved in front of the machine buffer (preparation for unloading).
M609 Respective Unload □Explanation
1. For V33/V56/V77 This M code is used in the one-touch function DNC program to unload the pallet. 2. For V56 pallet magazine
: G91 G30 P3 Z0; G91 G30 P3 X0 Y0; M609; : Pallet on the machine table is returned to the stocker.
3. For a-Series pallet magazine
: M609; : Pallet on the machine buffer is returned to the magazine stocker. Nothing is done when there is no pallet in the machine buffer.
No.0584D-0506 2-75
Specification of M CodesSpecification
Specification
M610 AAC Step Retract □Explanation
Retracts the step for operator, which is used to mount or dismount an attachment to the spindle, if the machine has a semi-automatic attachment changer.
M611 AAC Step Advance □Explanation
Advances the step for operator, which is used to mount or dismount an attachment to the spindle, if the machine has a semi-automatic attachment changer.
M612 Workpiece Change □Explanation
Exchanges workpiece on stocker with workpiece on table.
M613 Workpiece Unload □Explanation
Moves workpiece from table to stocker.
M614 Workpiece Load □Explanation
Moves workpiece from stocker to table.
M621 TTravel Limit Valid □Explanation
Turns on the stroke limit mode according to machine parameter No. 0835 and No. 0977. The stroke limit mode is turned on automatically after the emergency stop status is released or the machine power is turned on or after the NC unit is reset.
M621 Travel Limit Invalid
□Explanation Stroke limit is ignored temporarily.
2-76 No.0584D-0506
Specification of M Codes Specification
Specification
M630 Axis Retract Position at ATC □Program
M630 SZ Axis Position; □Explanation
Indicate the escape range between spindle and work (Z axis) to tool change. If Z axis is in range of -xxx[mm] to 0[mm] when M630Sxxx is performed, tool change is possible.
M631 AWC Index Work Selection Command
□Explanation Select work that loaded by load command.
M638 ATC Shutter Close □Explanation
Closes ATC shutter.
M639 ATC Shutter Open □Explanation
Opens ATC shutter.
M661 ATC & B Axis Simultaneous Operation □Program
G91 G28 Z0; G28 Y0 M661; M11; G90 G01 B___ F___; M10; M662; :
□Explanation
[M code for decreasing machining time] Specifies tool change internally without waiting for DEN signal, and returns FIN signal immediately. End of tool change is checked by M662.
Do not command any code excepting M10/M11, between the M661 and M662. M661 must be used together with M662.
No.0584D-0506 2-77
Specification of M CodesSpecification
Specification
M662 ATC & B Axis Simultaneous Operation End Check □Program
G91 G28 Z0; G28 Y0 M661; M11; G90 G01 B___ F___; M10; M662; :
□Explanation
Checks completion of tool change specified by M661.
Do not command any code excepting M10/M11, between the M661 and M662. M661 must be used together with M662.
M663 M Code for ATC □Explanation
This M code is used in the ATC subprogram.
M706 Angle Plate / Table Cleaning Coolant OFF □Explanation
Turns off angle plate / table cleaning coolant.
M707 Angle Plate / Table Cleaning Coolant ON □Explanation
Turns on angle plate / table cleaning coolant.
M708 Additional Nozzle Coolant ON □Explanation
Turns on additional nozzle coolant.
M709 Coolant Stop without DEN Waiting □Program
G01 X___ Y___ F___ M709; □Explanation
Stops all the coolant without waiting for the end of travel command distribution (DEN) signal.
2-78 No.0584D-0506
Specification of M Codes Specification
Specification
M710 Mist Collector OFF □Explanation
Turns off the mist collector.
M711 Mist Collector ON □Explanation
Turns on the mist collector.
M722 Stylus Cleaning Air OFF □Explanation
Turns off Stylus Cleaning Air.
M723 Stylus Cleaning Air ON □Explanation
Turns on Stylus Cleaning Air.
M732 Coolant Pressure Set 1 □Explanation
Coolant is turned on with pressure setting 1 if two or more pressure levels are available.
M733 Coolant Pressure Set 2 □Explanation
Coolant is turned on with pressure setting 2 if two or more pressure levels are available.
M734 Coolant Pressure Set 3 □Explanation
Coolant is turned on with pressure setting 3 if two or more pressure levels are available.
M735 Coolant Pressure Set 4 □Explanation
Coolant is turned on with pressure setting 4 if two or more pressure levels are available.
M736 Lighting ON □Explanation
Turns on the machine light.
M737 Lighting OFF □Explanation
Turns off the machine light.
No.0584D-0506 2-79
Specification of M CodesSpecification
Specification
M740 Inner Chip Conveyor OFF □Explanation
Stops the inner chip conveyor.
M741 Inner Chip Conveyor ON □Explanation
Starts the inner chip conveyor.
M742 Oil Skimmer OFF □Explanation
Stops the oil skimmer.
M743 Oil Skimmer ON □Explanation
Starts the oil skimmer.
M745 Spindle Upper Nozzle Coolant ON □Explanation
Turns on spindle upper nozzle coolant.
M747 Measuring Head Cleaning Air ON □Explanation
Supplies measuring head cleaning air for one second in the automatic measuring macro program.
M748 IMM Cleaning Air ON
□Explanation Turns on IMM cleaning air.
M749 IMM Cleaning Air OFF
□Explanation Turns off IMM cleaning air.
M750 IMM Cleaning Air ON Mode
□Explanation Turns on the IMM cleaning air on mode. In this mode, the cleaning air is turned on during automatic operation while the spindle is rotated.
2-80 No.0584D-0506
Specification of M Codes Specification
Specification
M751 IMM Cleaning Air OFF Mode □Explanation
Turns off M750 mode.
M754 Base Coolant ON □Explanation
Turns on IMM cleaning air.
M755 Cleaning Telescopic-Cover Coolant ON □Explanation
Turns on base coolant.
M756 Air Blow ON □Explanation
Turns on air blow.
M757 Telescopic-Cover Coolant OFF □Explanation
Turns off coolant for telescopic cover.
M775 Tool Cleaning Air OFF □Explanation
Turns off tool cleaning air of rotary tool measuring system.
M776 Tool Cleaning Air ON □Explanation
Turns on tool cleaning air of rotary tool measuring system.
M790 Set Amount of Oil to Little (MQL) □Explanation
Sets amount of oil on MQL to low.
M791 Set Amount of Oil to Standard (MQL) □Explanation
Sets amount of oil on MQL to standard.
M792 Set Amount of Oil to Large (MQL) □Explanation
Sets amount of oil on MQL to high.
No.0584D-0506 2-81
Specification of M CodesSpecification
Specification
M793 Set Mist Pressure to High (MQL) □Explanation
Sets mist pressure on MQL to high.
M794 Set Mist Pressure to Standard (MQL) □Explanation
Sets mist pressure on MQL to standard.
M883 Angle Head Coolant ON □Explanation
Turns the angle head coolant on.
M884 Inner Chip Conveyor Speed Setting □Program
M884 Sinner Chip Conveyor Speed;
□Explanation Set inner chip conveyor speed. Command S code for speed in same block. Speed mode S1: High Speed S2: Middle Speed S3: Low Speed(Default) Commanded speed is changed to low speed by follow action. (1) M2/M30 Command (2)Emergency Stop (3)Machine Power Off
M885 Angle Head Support Pin Cleaning Air ON □Explanation
Turns the angle head support pin cleaning air on.
M895 Increase Air OFF (MQL) □Explanation
The increase air of the mist generation device is turned off.
M896 Increase Air ON (MQL) □Explanation
The increase air of the mist generation device is turned on.
2-82 No.0584D-0506
Specification of M Codes Specification
Specification
M898 Attachment Lubrication Off □Explanation
Attachment lubrication is turned off. The purpose of this M code is to remove a deteriorated lubricant among attachments after the attachment for a long term had not been used.
M899 Attachment Lubrication On □Explanation
Attachment lubrication is turned on during maintenance mode. The purpose of this M code is to remove a deteriorated lubricant among attachments after the attachment for a long term had not been used.
M903 M Code to Generate Alarm □Explanation
Use this M code when the alarm is generated in the macro program.
M910 Workpiece Automatic Measuring Mode Cancel □Explanation
This M code is used in the workpiece automatic measuring macro program.It cancels the workpiece automatic measuring mode.
M911 Measuring Head Alarm Check □Explanation
This M code is used in the workpiece automatic measuring macro program.It checks whether or not the measuring head battery is OFF. If the battery is ON, an alarm occurs.
No.0584D-0506 2-83
Specification of M CodesSpecification
Specification
M919 Counting No. of Machined Parts □Program
M919 SIncrement/Decrement; □Explanation
Specify the value to be added or subtracted with S in the block as M919. When this value is specified, it is added or subtracted to the tool life on the tool data screen. If M919 is specified without S, it is considered to be M919 S1.
The number specified with S is added to the counter or subtracted from the counter according to the setting of machine parameter No. 01019.
□Program Example
[Subtraction mode] O1234; : Machining Program : M919; <---- Subtracts 1 from a remaining count of workpiece. : Machining Program : M919 S3; <---- Subtracts 3 from a remaining count of workpiece. M30; %
2-84 No.0584D-0506
Specification of M Codes Specification
Specification
M920 Tool Length Measuring Data Read □Program
#100=Tool Length Measuring Data; #109=Tool Specifying; M920;
□Explanation
Writes data for macro variable #100 to tool length data in the tool database for spindle tool or special tool. Set 0 or blank to macro variable #109 for the spindle tool, or set the tool number for the special tool. There are two kinds of tool length data on the "Tool Data" screen: Geometry (H) and Wear (H). The data written to the macro variable #100 is merged with that data. Therefore, the data is written as follows in the tool data. Tool Length (Geometry(H)) = #100
Set the NC parameter to specify M920 as non-buffered M code, or insert a G53 after the M code to prevent pre-reading.
When employing a tool by the PTN (Machine parameter No.12013), it cannot use simultaneously with this M code. If employing a tool by the PTN, a tool cannot be specified by the method of specifying a tool number to #109. Writing is performed to all the tools corresponding to the tool numbers set to #109.
□Program Example
O1234; T1; M6; #100=123.456; #109=0; M920; <---- Writes 123.456 into tool data of spindle tool. : Machining Program : #100=-10.000; #109=1234.0; M920; <---- Writes -10.000 into tool data of the tool No.1234. M30; %
No.0584D-0506 2-85
Specification of M CodesSpecification
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). 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.
2-86 No.0584D-0506
Specification of M Codes Specification
Specification
□Program Example O1234; T1; M6; #100=12.3456; #109=0; M921; <---- Writes 12.3456 into tool radius data of spindle tool. : Machining Program : #100=10.000; #109=1234.0; M921; <---- Writes 10.000 into tool radius data of the tool No.1234.M30; %
No.0584D-0506 2-87
Specification of M CodesSpecification
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
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; %
2-88 No.0584D-0506
Specification of M Codes Specification
Specification
M940 Auto End Due to Illegal Work Measurement □Explanation
This M code is used in the automatic measuring macro program. If the results are illegal after automatic measurement, a measuring alarm is triggered and the operator call function or automatic reject function is turned on, depending on the machine operation mode. Differing from M35, a BTS alarm is not triggered for the previous tool.
M941 MP7 Measuring Head Check
□Explanation This M code is used in the automatic measuring macro program. For a workpiece automatic measuring system, the communication status between the probe and receiver, and skip signal status are output to the macro variables.
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.
No.0584D-0506 2-89
Specification of M CodesSpecification
Specification
M947 Next Tool Pot No. Output □Program
M947; G53; #100=#1032; M463;
□Explanation
Writes pot number to which the next tool (tool specified with T) is returned to macro variable #1032. After reading #1032, execute M463 to restore printout mode output.
After M947 and before reading #1032, insert a dummy block for preventing pre-reading such as G53.
M948 M Code for ATC □Explanation
This M code is used in the ATC macro program.
M950 Non Contact Type Measurement Device Zero Set □Explanation
This M code is used in tool measurement macro program.
M951 Blum Bore Gauge Start □Program
#101=Function Number; #102=Head Number; #103=Parameter Number; #104=Parameter Setting Value; #108=Point Number; M951; G53;
□Explanation
Start Blum Bore Gauge. Macro value is changed by machine parameter No.1069. Refer to follow table for macro value of input/output.
2-90 No.0584D-0506
Specification of M Codes Specification
Specification
Function
Name Macro Value(Input) Macro Value(Output)
Measuring #101=1. #102=Head No. #108=Point No.
#105=Result #106=Measuring Result [0.1um] #107=Battery remain [%]
Calibration #101=2. #102=Head No. #108=Point No.
#105=Result #106=Calibration Result [0.1um]
Write Parameter
#101=3. #102=Head No. #103=Parameter No. (4:Gauge Compensation, 6:Head No.) #104=Parameter Setting Value(Gauge Compensation[1um])
#105=Result
Read Parameter
#101=4. #102=Head No. #103=Parameter No. (4:Gauge Compensation, 5:Calibration,6:Head No.)
#105=Result #106=Parameter Setting Value(Gauge Compensation [1um], Calibration[0.1um ])
Read Head Parameter
#101=5. #105=Result #106=Head No.
□Program Example
#101=1.; <---Measuring #102=3.; <---Head Number No.3 #108=0.; <---Point NumberNo.0 M951; <---Blum Bore Gauge Start G53; <---Dummy block for preventing pre-reading. IF[#105 NE 0]GOTO100; <---If result is not 0 IF[#106 GE 300.]GOTO110;<---If measuring result is greater than +30.0umIF[#106 LE -300.]GOTO110;<---If measuring result is less than -30.0um
No.0584D-0506 2-91
Specification of M CodesSpecification
Specification
M963 Measuring Probe Power OFF & Check □Explanation
Specifies OFF for the measuring head, waits for 2 seconds, and then checks whether or not the power for the measuring head has been turned off.
M964 Measuring Probe Power ON & Check
□Explanation Specifies ON for the measuring head, waits for 2 seconds, and then checks whether or not the power of the measuring head has been turned on.
M965 Measuring Probe Power OFF
□Explanation Turns off the power for measuring head.
M966 Measuring Probe Power ON
□Explanation Turns on the power for measuring head.
M968 Cutting Condition Auto Select □Explanation
This M code is used in the macro program for FF-PATH.
M984 High Speed Counter Type Tool Measurement □Explanation
This M code is used in tool measurement macro program.
M994 Rotary Axis Coordinate Calculate Function □Explanation
This M code is used in the macro program for the rotary axis coordinate calculate function.
M2300 Rotary Axis Coordinate Calculate Function □Explanation
Specify SPIN TABLE speed, refferance and index action. □Program Example
M2300 Snnn; or M2300 Snnn T0; CW (nnn:speed) M2300 Snnn T1; CCW(nnn:speed) M2300 T2; Index M2300 T3; Refferance
2-92 No.0584D-0506
Specification of M Codes Specification
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;
M2320 INPROCESS GAUGE Measureing Cycle Start □Explanation
INPROCESS GAUGE measuring cycle start □Program Example
M2320 Spp Tcc; (S:Cycle No., T:Part No.)
M2321 INPROCESS GAUGE Autozero Cycle Start □Explanation
INPROCESS GAUGE autozero cycle start. □Program Example
M2321 Spp Tcc; (S:Cycle No., T:Part No.)
M2322 INPROCESS GAUGE Measureing Head Retraction □Explanation
INPROCESS GAUGE outer / inner measuring head retraction air control solenoid SL3115.SL3116 ON/OFF.
□Program Example
M2322 S0; (SL3115,SL3116 both OFF) M2322 S1; (SL3115 ON) M2322 S2; (SL3116 ON)
No.0584D-0506 2-93
Specification of M CodesSpecification
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 Example
M2340 S0; (SL3114,SL3113 both OFF) M2340 S1; (SL3113 ON) M2340 S2; (SL3114 ON)
2-94 No.0584D-0506
Specification of M Codes Specification
Specification
No.0584D-0506 3-1
Index Index
3. Index
3-2 No.0584D-0506
Index
Index
Index 4
4th Axis Clamp................................2-4 4th Axis Mirror Image ON ...............2-5 4th Axis Unclamp............................2-5
5 5th Axis Clamp................................2-5 5th Axis Mirror Image ON .............2-25 5th Axis Unclamp............................2-5
6 6th Axis Clamp..............................2-24 6th Axis Mirror Image ON .............2-26 6th Axis Unclamp..........................2-24
A AAC Retract & AAC Splashguard Close.............................................2-37 AAC Splashguard Open & AAC Advance........................................2-37 AAC Step Advance .......................2-75 AAC Step Retract..........................2-75 AC Coefficient 100%, SL Coefficient 200%.............................................2-13 AC/SL Data Temporary Alter Mode OFF...............................................2-11 AC/SL Data Temporary Alter Mode ON ................................................2-11 Additional Nozzle Coolant ON......2-77 Air Blow ON ..................................2-80 Angle Head Coolant ON ...............2-81 Angle Head Support Advance ......2-39 Angle Head Support Pin Cleaning Air ON ................................................2-81 Angle Head Support Retract.........2-39 Angle Plate / Table Cleaning Coolant OFF...............................................2-77 Angle Plate / Table Cleaning Coolant ON ................................................2-77 APC Shutter Close........................2-22 APC Shutter Open........................2-21 ATC & B Axis Simultaneous Operation ......................................2-76 ATC & B Axis Simultaneous Operation End Check ...................2-77 ATC Magazine No. Setting for Tool Data Register Mode......................2-52 ATC Shutter Close ........................2-76 ATC Shutter Open ........................2-76
Attachment Change End ..............2-41 Attachment Change Start .............2-37 Attachment Lubrication Off ...........2-82 Attachment Lubrication On...........2-82 Attachment No. Output to Macro (#100) ...........................................2-55 Auto End Due to Illegal Work Measurement................................2-88 Auto Measuring Approach Mode..2-21 Auto Measuring Rapid Mode........2-21 Auto Reject Mode OFF (Reject Inhibit for Alarm)...............2-13 Auto Reject Mode ON (M52 Mode Cancel) ......................2-13 Automatic Tool Change ..................2-4 AWC Index Work Selection Command.....................................2-76 Axis Index Program End...............2-72 Axis Retract Position at ATC ........2-76
B Base Coolant ON..........................2-80 Block Skip 2 ON ...........................2-26 Block Skip 2 to 9 OFF ..................2-26 Block Skip 3 ON ...........................2-26 Block Skip 4 ON ...........................2-26 Block Skip 5 ON ...........................2-27 Block Skip 6 ON ...........................2-27 Block Skip 7 ON ...........................2-27 Block Skip 8 ON ...........................2-27 Block Skip 9 ON ...........................2-27 Blum Bore Gauge Start ................2-89 BTS Arm Advance (Movable BTS) .2-5 BTS Arm Retract(Movable BTS) ....2-6 BTS Check .....................................2-6 BTS LS300 OFF Check................2-45
C Clamp Confirmation......................2-39 Cleaning Air Off ............................2-23 Cleaning Air On ............................2-23 Cleaning Telescopic-Cover Coolant ON ................................................2-80 Coolant OFF...................................2-4 Coolant Pressure Set 1 ................2-78 Coolant Pressure Set 2 ................2-78 Coolant Pressure Set 3 ................2-78 Coolant Pressure Set 4 ................2-78
No.0584D-0506 3-3
Index Index
Coolant Resume...........................2-34 Coolant Stop & Reserve...............2-33 Coolant Stop without DEN Waiting 2-77 Coolant/Spindle Resume..............2-32 Coolant/Spindle Stop & Release ..2-32 Count Sum of Machined Parts .....2-27 Counting No. of Machined Parts ..2-83 Cs Axis Contouring Mode OFF ....2-36 Cs Axis Contouring Mode ON ......2-36 Cutting Condition Auto Select ......2-91
D Direct Spare Tool Change ............2-23 Direct Spare Tool Change Inhibit Mode ............................................2-24 Direct Spare Tool Change Permit Mode ............................................2-24 Draw Bar Probe Advance.............2-37 Draw Bar Probe Retract ...............2-37
E End of Program ..............................2-2 Extend Stroke Change Signal OFF 2-30 Extend Stroke Change Signal ON 2-30
F Feedrate Override Cancel............2-13 Fin Check for M303 or M304........2-31 First Block Skip OFF ....................2-26 First Block Skip ON ......................2-26 First Block Skip Return.................2-26 First Use Check Request .............2-66 Floating M Code Exchange Prohibition Mode OFF ..................2-30 Floating M Code Exchange Prohibition Mode ON....................2-30
G GI Initial Mode ..............................2-29 GI/Super-GI Additional Axis Contouring Mode..........................2-29 GI/Super-GI High Accuracy Mode 2-29 GI/Super-GI High Performance Mode ..................................................2-29 GI/Super-GI High Performance Mode for Contouring with Rotary Axes...2-29 GI/Super-GI Radical Mode...........2-29 GI/Super-GI Special Mode ...........2-29
GI/Super-GI Ultra High Accuracy Mode ............................................ 2-29 GI/Super-GI Ultra High Performance Mode for Contouring with Rotary Axes ............................................. 2-29
H High Speed Counter Type Tool Measurement ............................... 2-91
I IMM Cleaning Air OFF.................. 2-79 IMM Cleaning Air OFF Mode ....... 2-80 IMM Cleaning Air ON ................... 2-79 IMM Cleaning Air ON Mode ......... 2-79 Improved Spindle Reverse Orient Externally ..................................... 2-36 Increase Air OFF (MQL)............... 2-81 Increase Air ON (MQL)................. 2-81 Inner Chip Conveyor OFF............ 2-79 Inner Chip Conveyor ON.............. 2-79 Inner Chip Conveyor Speed Setting .................................................. 2-81 INPROCESS GAUGE Autozero Cycle Start.................................... 2-92 INPROCESS GAUGE Get Measuring Data............................ 2-93 INPROCESS GAUGE Manual Mode 2-93 INPROCESS GAUGE Measureing Cycle Start.................................... 2-92 INPROCESS GAUGE Measureing Head Retraction ........................... 2-92
L Lighting OFF ................................ 2-78 Lighting ON .................................. 2-78
M M Code for ATC ...................... 2-67, 2-68, 2-77, 2-89 M Code for Fixture Interface .........................................2-66, 2-67 M Code for Special User I/O Interface
...................... 2-69, 2-70, 2-71, 2-72 M Code to Generate Alarm .......... 2-82 M49 Mode Cancel ........................ 2-13 M59 Mode Cancel ........................ 2-18 M920, M921 Data Incremental Mode
.................................................. 2-87
3-4 No.0584D-0506
Index
Index
Machine Data Output to Macro Variable .....................................2-57
Machine Table Pallet 1 Check ......2-41 Machine Table Pallet 2 Check ......2-43 Machine Table Pallet Check End..2-44 Machining Signal OFF ..................2-53 Machining Signal ON....................2-53 Macro Variable (#100) Read.........2-55 Macro Variables Reading Request to
MOS ..........................................2-57 Measuring Head Alarm Check......2-82 Measuring Head Cleaning Air ON
..................................................2-79 Measuring Probe Power OFF.......2-91 Measuring Probe Power OFF &
Check ........................................2-91 Measuring Probe Power ON.........2-91 Measuring Probe Power ON & Check
..................................................2-91 Message Output Function ............2-46 Metallic Cutting Mode OFF...........2-56 Metallic Cutting Mode ON.............2-56 Mirror Image OFF ...........................2-7 Mist Blow ON................................2-41 Mist Collector OFF........................2-78 Mist Collector ON..........................2-78 Mist Coolant/Air Blow ON ...............2-4 MP7 Measuring Head Check........2-88
N 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
O Oil Controller OFF.........................2-34 Oil Controller ON ..........................2-34 Oil Skimmer OFF..........................2-79 Oil Skimmer ON............................2-79 Open ATC Shutter and Start Next
Block before Shutter is Fully Open ..................................................2-66
Optional Stop ..................................2-2 Overhead Shower Coolant ON.....2-23 Override 100% or Less.................2-25
P Pallet 1 Load Check .....................2-21 Pallet 2 Load Check .....................2-23 Pallet Change............ 2-19, 2-20, 2-21 Pallet Change Sub M Code..........2-72 Pallet Contact Check....................2-45 Pallet No. Send.............................2-53 Pallet Ready Not Checked at M60 ..................................................2-20 Part Program End and Repeat .......2-7 Pre-Orientation .............................2-35 Pre-Unclamp.................................2-38 Print-out Mode Output ..................2-54 Prior Tool Check .............................2-9 Program Stop..................................2-2
R Rapid Feed Speed Limitation Mode
Setting.......................................2-27 Respective Load...........................2-73 Respective Unload .......................2-74 Return to Main Program ...............2-23 Rigid Tap Mode ON ......................2-25 Rotary Axis Coordinate Calculate
Function ...........................2-91, 2-92 Rotary Dresser Control.................2-93 Routine Function DNC Program End
..................................................2-72 S
Set Amount of Oil to Large(MQL).2-80 Set Amount of Oil to Standard(MQL)
..................................................2-80 Set Mist Pressure to High (MQL) .2-81 Set Mist Pressure to Standard (MQL)
..................................................2-81 Signal Lamp 1 ON with No Ready
Pallet .........................................2-20 Signal Lamp 2 ON with No Ready
Pallet .........................................2-21 Signal Light 1 Unconditional ON ..2-46 Signal Light 2 Unconditional ON ..2-46 SL and AC Coefficient 0% ............2-12 SL Coefficient Setting 125%.........2-12 SL Coefficient Setting 150%.........2-12 SL Coefficient Setting 200%.........2-12 SL Lower Limit Coefficient Setting
0%.............................................2-12
No.0584D-0506 3-5
Index Index
SL Lower Limit Coefficient Setting 125%.........................................2-12
SL Lower Limit Mode OFF ...........2-30 SL Lower Limit Mode ON .............2-30 SL Mode OFF...............................2-28 SL Mode ON.................................2-28 Specified Spindle Tool Output ......2-54 Spindle Attachment Dismount Check ..................................................2-37 Spindle Attachment Mount Check 2-37 Spindle CCW Start..........................2-3 Spindle CCW Without DEN-Waiting ..................................................2-31 Spindle CW Start ............................2-3 Spindle CW Without DEN-Waiting ..................................................2-31 Spindle Lock .................................2-36 Spindle Optional Angle Orient
Externally ..................................2-35 Spindle Orientation Stop.................2-6 Spindle Resume ...........................2-33 Spindle Rotation Before Measuring
..................................................2-34 Spindle Rotation for Alignment .....2-34 Spindle Rotation for Measuring ....2-35 Spindle Speed Override Cancel ...2-19 Spindle Status Reserve & Stop ....2-32 Spindle Stop ...................................2-3 Spindle Tool Clamp.......................2-40 Spindle Tool No. 0 Output.............2-55 Spindle Tool Pot No. Output .........2-88 Spindle Tool Unclamp...................2-40 Spindle Tool Unclamp Ready .......2-41 Spindle Unlock..............................2-36 Spindle Upper Nozzle Coolant ON
..................................................2-79 Stylus Cleaning Air OFF ...............2-78 Stylus Cleaning Air ON.................2-78 Sub Program Call .........................2-23 Subprogram Call to an External I/O
Device.......................................2-28 T
Tailstock Pressure Change ..........2-40 Telescopic-Cover Coolant OFF ....2-80 Through Spindle Air ON ...............2-20 Through Spindle Coolant ON .........2-7 Through Spindle Mist ON .............2-41
TL Alarm Suspension Mode ON... 2-56 TL Mode OFF............................... 2-28 TL Mode ON................................. 2-28 Tool Broken Status (BT/B2).......... 2-46 Tool Cleaning Air OFF.................. 2-80 Tool Cleaning Air ON.................... 2-80 Tool Cutter No. Setting................. 2-53 Tool Data Delete Mode ON
................................2-22, 2-28, 2-69 Tool Data Register Mode (Type1) 2-47 Tool Data Register Mode (Type2) 2-51 Tool Data Register Mode OFF ..... 2-10 Tool Length Auto Measuring Mode 2-8 Tool Length Circuit Check ............ 2-12 Tool Length Circuit Check .............. 2-8 Tool Length Measuring Data Read
.................................................. 2-84 Tool Measuring Laser OFF .......... 2-39 Tool Measuring Laser ON ............ 2-39 Tool Measuring Sensor X-Axis
Direction ................................... 2-28 Tool Measuring Sensor Y-Axis
Direction ................................... 2-28 Tool No. Register Mode ............... 2-17 Tool Offset Data Negative Register Mode .......................................... 2-14
Tool offset Data Transfer Command .................................................. 2-15
Tool Radius Measuring Data Read .................................................. 2-85
Tool Retract End........................... 2-72 Travel Limit Invalid ....................... 2-75
U Unconditional Power Out ............... 2-7
V Vacuum Suction OFF................... 2-40 Vacuum Suction ON..................... 2-40
W Work Chuck Clamp ...................... 2-72 Work Chuck Unclamp .................. 2-72 Work information output ............... 2-37 Workpiece Auto Measuring Mode .. 2-8 Workpiece Auto Measuring Pallet Unload .......................................... 2-8
Workpiece Auto Measuring Spare Tool Call........................................ 2-8
3-6 No.0584D-0506
Index
Index
Workpiece Automatic Measuring Mode Cancel...............................2-82
Workpiece Change .......................2-75 Workpiece Load............................2-75 Workpiece Unload ........................2-75
X X Axis Mirror Image ON.................2-6
Y Y Axis Mirror Image ON.................2-6
No.0584D-0506 4-1
AppendixA
ppendix
4. Appendix
4-2 No.0584D-0506
Appendix
Appe
ndix
4.1 History of M Code List
Number Date Contents 0584B-0310 Oct-03 First edition 0584C-0405 Oct-04 Add new M code. 0584D-0506 June-05 Add new M Code.