What is the G code and M code of the CNC and VMC M/C for Fanuc and Siemens systems
What is the G code and M code of the CNC and VMC M/C for
Fanuc and Siemens systems
CNC that mean computer numerical control and
VMC mean vertical machining center. This machine control by the M code and G
code
What is the M code:- M code is the miscellaneous machining
function and control programs start and stopping. this command for use instant,
M03 start spindle, M72 part count, coolant on and off , M06
tool change and help the operators
What is the G code:- G code is the preparatory command ,
which is controls the CNC program. Use of G code we can create program and
control of the program ,tool and job like rapidly transverse, create thread,
drilling, boring counter, milling and
other operation du by the use G & M code
List
of M code:-
S.N |
M code |
Function of M code |
||
1. |
M00 |
Program stop |
||
2. |
M01 |
Optional stop |
||
3. |
M02 |
End of program |
||
4. |
M03 |
Spindle rotation clockwise |
||
5. |
M04 |
Spindle rotation counter clockwise |
||
6. |
M05 |
Spindle stop |
||
7. |
M06 |
Auto tool change |
||
8. |
M07 |
Coolant on |
||
9. |
M09 |
Coolant off |
||
10. |
M10 |
Tool unclamp unable |
||
11. |
M19 |
Spindle orientation |
||
12. |
M20 |
Spindle orientation release |
||
13. |
M26 |
Pocket down in MDI(twin ARM ATC) |
||
14. |
M27 |
Pocket down in MDI(twin ARM ATC) |
||
15. |
M28 |
Rigid tap off |
||
16. |
M29 |
Rigid tap on |
||
17. |
M30 |
End of program |
||
18. |
M48 |
Standard chip flush and push cycle |
||
19. |
M49 |
Customized chip flush and push cycle |
||
20. |
M60 |
Tool load /unload |
||
21. |
M71 |
Tool life over massage |
||
22. |
M72 |
Part count |
||
23. |
M98 |
Calling of subprogram |
||
24. |
M99 |
End of subprogram |
||
25. |
M180 |
One cycle chip push /flush coolant |
||
26. |
M181 |
Flush coolant on cycle |
||
27. |
M182 |
Flush coolant on cycle |
||
28. |
M185 |
Block buffering |
||
29. |
M21 |
Tailstock forward |
||
30. |
M22 |
Tailstock backward |
||
Optional:-
01 |
M12 |
Component clamp /load sequence program call |
02 |
M13 |
Component unclamp /unload sequence program call |
03 |
M32 |
Probe on/tool breakage detection check |
04 |
M46 |
Machine front auto door close |
05 |
M47 |
Machine front auto door open |
06 |
M52 |
Coolant through spindle on |
07 |
M53 |
Coolant through spindle
off |
08 |
M73 |
Air through nozzle on |
09 |
M74 |
Air through nozzle off |
10 |
M80 |
Auto pallet change |
11 |
M81 |
Enable pallet 1 transfer
in auto(linear APC) |
12 |
M82 |
Enable pallet 2 transfer
in auto(linear APC) |
13 |
M83 |
Enable pallet 1&2
transfer in auto (linear APC) |
14 |
M89 |
Pallet-1 subprogram check |
15 |
M90 |
Pallet-2 subprogram check |
16 |
M31 |
Probe on /tool breakage
detection check |
G code list:-
1 |
G00
|
Rapid positioning |
2 |
G01 |
Linear interpolation |
3 |
G02 |
Circulation interpolation clock |
4 |
G05 |
High-precision contour control |
5 |
G03 |
Circulation interpolation counter clockwise |
6 |
G04 |
Dwell |
7 |
G05 |
Al nano contour control |
8 |
G06 |
Non uniform rational B spline machining |
9 |
G07 |
Imaginary axis designation |
10 |
G09 |
Exact stop check |
11 |
G10 |
Programmable data input |
12 |
G11 |
Data write cancel |
13 |
G12 |
Full circle interpolation clockwise |
14 |
G13 |
Full circle interpolation, counter clockwise |
15 |
G17 |
X y plane selection |
16 |
G18 |
ZX plane selection |
17 |
G19 |
YZ plane selection |
18 |
G20 |
Programming in inches |
19 |
G21 |
Programming in mm |
20 |
G28 |
Return in home position |
21 |
G30 |
Return to secondary home position |
22 |
G31 |
Skip function |
23 |
G32 |
Single point threading |
24 |
G33 |
Constant-pitch threading |
25 |
G33 |
Single point threading, longhand style |
26 |
G34 |
Variable-pitch threading |
27 |
G40 |
Tool radius compensation off |
28 |
G41 |
Tool radius compensation left |
29 |
G42 |
Tool radius compensation right |
30 |
G43 |
Tool height offset compensation negative |
31 |
G44 |
Tool height offset compensation positive |
32 |
G45 |
Axis offset single increase |
33 |
G46 |
Axis offset single decrease |
34 |
G47 |
Axis offset double increase |
35 |
G48 |
Axis offset double decrease |
36 |
G49 |
Tool length offset compensation cancel |
37 |
G50 |
Define the maximum spindle speed |
38 |
G50 |
Scaling function cancel |
39 |
G52 |
Local coordinate system |
40 |
G53 |
Machine coordinate system |
41 |
G54 TO G59 |
Work coordinate system |
42 |
G54.1 P1
TO P48 |
Extended work coordinate system |
43 |
G70 |
Fixed cycle multiple repetitive cycle for finishing |
44 |
G71 |
Fixed cycle multiple repetitive cycle for roughing (Z axis emphasis) |
45 |
G72 |
Fixed cycle multiple repetitive cycle for roughing (X axis emphasis) |
46 |
G73 |
Fixed cycle multiple repetitive cycle for roughing with pattern repetition |
47 |
G74 |
Peck drilling cycle for turning |
48 |
G74 |
Tapping cycle for milling |
49 |
G75 |
Peck grooving cycle for turning |
50 |
G76 |
Fine boring cycle for milling |
51 |
G76 |
Threading cycle for turning |
52 |
G80 |
Cancel canned cycle |
53 |
G81 |
Single drilling cycle |
54 |
G82 |
Drilling cycle with dwell |
55 |
G83 |
Peck drilling cycle |
56 |
G84 |
Tapping cycle |
57 |
G90 |
Absolute programming |
58 |
G91 |
Incremental programming |
59 |
G92 |
Position resister (programming of vector from part zero to tool tip) |
60 |
G92 |
Threading cycle, single cycle |
61 |
G94 |
Federate per minutes |
62 |
G94 |
Fixed cycle for roughing |
63 |
G95 |
Federate per revolution |
64 |
G96 |
Constant surface speed |
65 |
G97 |
Constant spindle speed |
66 |
G98 |
Return initial z level in canned cycle |
67 |
G98 |
Feed per minutes |
68 |
G99 |
Return to R level in canned cycle |
69 |
G99 |
Federate per revolution(group type A |
Post Comment
No comments