M code List for CNC

These are common Miscellanous (M-Codes) for cnc milling
            
M-CodeFunction
  
M00Program stop
M01Optional stop
M02Program End
M03Spindle ON with cw rotation
M04Spindle ON with ccw rotation
M05Spindle OFF
M06Tool Change
M07Mist coolant ON
M08Flood Coolant ON
M09 Colant OFF
M30End of Program,



The Miscellaneous (M) Function are also known as auxiliary functions, and they include such numerical controlled machine function as spindle forward and reverse rotation, operation stop and Coolant function ON or OFF
These function are designated by an 8-digit number (0 to 999999)  following the address M with Mitsubishi Controller ,so that why i only put a several sample M code. these function also up to 4 group can be commanded in a single block
For example :G00 X00 Y00 Mm1 Mm2 Mm3 Mm4
when five or more command are issued,only the last four will be valid.
the output signal is an 8-digit BCD code and start signal
the six command of M00,M01,M02,M30,M98 and M99 are used as auxiliary command for spesific objective and so they cannot be used as general auxiliary command.this therefore leaves 94 miscellaneous functions are usable as such commands.References should be made to the instruction issued by the manufacturer for actual correspondence betwen the functions and numerical values.
When the M00,M01,M02,and M30 functions are used,the next block is not read into the pre-read buffer due to pre-read inhibiting.
An M function can be specified together with other commands in the same block,and when such as function is specified together with a movement command in the same block,,there are two possible sequences in which te commands are executed.which of these sequences actually applies depends on the machine spesifications.
  1. The M function is executed after movement command
  2. The M function is executed at the same time as the movement command
Processing and completion are required in each case for all M commands except M98 and M99
Below are the 6-M functiion used for specified purpose will be described
  • Program stop = M00

when the tape reader has read this function,it stop reading next block, As far as the NC system's function are concerned,only tape reading is stopped,Whether such machine functions as the spindle rotation and coolant supply are stopped or not differs according to the machine in question
Re-start is enabled by pressing the automatic start button on the machine operation board.Whether resetting can be initiated by M00 depends on the Machine specifications
  • Operational Stop = M01
if the tape reader reads the M01 command when the optional stop switch on the machine operation board is ON,it will stop at the same effect as with the M00 function will apply
(Example)
N10 G00 X100. When the Switch Button is ON, the operation will stop at N11
N11 M01 Next command (N12) is executed without stopping at N11
N12 G01 X200.Z50.F400 when the switch button is OFF
  • Program End = M02 or M30
This commands is normally used in the final block for completing the machining, and so it is primarily used for tape rewindingWhether the tape is actually rewound or not depens on the machine specifications, and the system is reset by the M02 or M30 command upon completion of tape rewinding and any other commands issued in the same block
  • Subprogram call =M98,M99
These commands are used as the return instructions from branch destination subprograms and branches to subprogramsM98 and M99 are processed internally and so M code signals and strobe signals are not output
  • Internal processing with M00/M01/M02/M30 commands
internal processing suspends pre-reading when the M00,M01,M02 or M30 command has been read,Other tape rewinding operations and the initialization of modals by resetting differ according the machine specifications
M code List for CNC M code List for CNC Reviewed by Unknown on 7:47 PM Rating: 5

2 comments:

  1. First of all, this technology is a good choice if you want to fit, test, or prototype some functional parts or fixtures. Most manufacturers have a variety of parts that they need to test to make sure they can work properly. And under the CNC method, the testing can be done cost effectively as computer systems are used to perform the tests and ensure high accuracy throughout the process. milling tips and tricks

    ReplyDelete

Powered by Blogger.