0% found this document useful (0 votes)
59 views1 page

VMC G-Codes and Pocket Milling Guide

This document provides a comprehensive guide to commonly used G-codes and M-codes for Vertical Machining Centers (VMC) in Hinglish. It includes detailed explanations, examples, and a sample 20mm pocket milling program, along with tips for adjusting feed and speed based on material. The guide aims to simplify the understanding and application of these codes for users in a practical manner.

Uploaded by

rilolah566
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views1 page

VMC G-Codes and Pocket Milling Guide

This document provides a comprehensive guide to commonly used G-codes and M-codes for Vertical Machining Centers (VMC) in Hinglish. It includes detailed explanations, examples, and a sample 20mm pocket milling program, along with tips for adjusting feed and speed based on material. The guide aims to simplify the understanding and application of these codes for users in a practical manner.

Uploaded by

rilolah566
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

VMC G-Codes aur M-

Codes Guide

Hinglish Mein - Vertical Machining Center ke


liye commonly used codes ka complete
reference

Bhai, main tujhe VMC (Vertical Machining Center)


ke liye commonly used G-codes aur M-codes ke
uses ko ek jagah Hinglish mein simple language
mein deta hoon, aur saath hi tera 20mm pocket
milling program (12mm endmill, 0.5mm DOC,
5mm depth, Z-5, L10, M99) ko bhi include karta
hoon with all relevant codes.

Commonly Used G-Codes in


VMC (Hinglish Mein)

G00 - Rapid Positioning

Kya Hai: Tool ko jaldi se ek jagah se doosri jagah


bina cutting ke le jata hai, max speed par.

Kab Use: Jab tool ko safe height (jaise Z50) ya


pocket ke center (X0 Y0) par bhejna ho.

Example: N10 G00 X0 Y0 Z50.0 (Center aur


safe height par jao)

G01 - Linear Interpolation

Kya Hai: Tool ko straight line mein controlled feed


rate (F) ke saath move karta hai, cutting ke liye.

Kab Use: Jab straight cut ya approach chahiye,


jaise Z0 tak jana.

Example: N20 G01 Z0 F200 (Z0 par 200


mm/min speed se jao)

G02 / G03 - Circular Interpolation

Kya Hai:

G02: Clockwise (CW) circular path.

G03: Counter-clockwise (CCW) circular path.

Ye round shapes ya pockets ke liye hote hain.

Kab Use: Jab pocket ya arc banani ho, jaise tera


20mm pocket.

Example: N30 G03 I-4.0 Z-0.5 F200 (4mm


radius ka CCW helical cut, 0.5mm Z-drop)

G17 / G18 / G19 - Plane Selection

Kya Hai:

G17: XY plane (milling ke liye common).

G18: XZ plane (side milling).

G19: YZ plane (rare).

Batata hai ki circular moves kis plane mein


honge.

Kab Use: Pocket milling mein G17, kyunki XY mein


kaam hota hai.

Example: N10 G17 (XY plane select karo)

G40 / G41 / G42 - Cutter Compensation

Kya Hai:

G40: Compensation band (tool as programmed


move karta hai).

G41: Left compensation (tool left side adjust


hota hai).

G42: Right compensation (tool right side adjust).

Tool ke diameter ke hisaab se path adjust karta


hai.

Kab Use: Contour milling mein, lekin tera pocket


program mein G40 use hua to ensure no
compensation.

Example: N10 G40 (Compensation off)

G54 to G59 - Work Coordinate System

Kya Hai: Workpiece ka zero point (origin) set karta


hai. G54 sabse common hai.

Kab Use: Program start mein, workpiece ke


reference point ke liye.

Example: N10 G54 (G54 origin set karo)

G90 / G91 - Absolute/Incremental


Positioning

Kya Hai:

G90: Absolute (coordinates origin se measure).

G91: Incremental (coordinates previous position


se).

Kab Use: G90 setup ke liye, G91 loops ya repetitive


moves ke liye (jaise tera Z-0.5).

Example: N10 G90 (Absolute mode), N20 G91


(Incremental mode)

G80 to G89 - Canned Cycles

Kya Hai:

G80: Canned cycle cancel.

G81: Simple drilling.

G83: Peck drilling (deep holes ke liye).

G84: Tapping.

G85: Boring.

Ye repetitive tasks automate karte hain.

Kab Use: Drilling ya tapping mein, lekin tera


program mein G80 as precaution use hua.

Example: N30 G83 Z-10.0 R2.0 Q2.0 F100


(Peck drill), N40 G80 (Cancel)

G98 / G99 - Canned Cycle Retract Mode

Kya Hai:

G98: Retract to initial Z level.

G99: Retract to R-plane (just above workpiece).

Kab Use: Drilling ke saath retract behavior control


ke liye.

Example: N30 G98 G81 Z-5.0 R2.0 F100


(Retract to initial Z)

G04 - Dwell

Kya Hai: Tool ko ek time ke liye pause karta hai (P


mein milliseconds).

Kab Use: Chip breaking ya finishing ke liye, agar


tera P10 dwell tha.

Example: N30 G04 P10 (10ms pause)

G21 - Metric Units

Kya Hai: Measurements ko millimeters mein set


karta hai.

Kab Use: Metric programming ke liye (tera program


metric mein tha).

Example: N10 G21 (Metric units)

G43 - Tool Length Compensation

Kya Hai: Tool ke length ko account mein lata hai (H


ke saath offset).

Kab Use: Tool change ke baad Z positions accurate


rakhne ke liye.

Example: N10 G43 H1 Z50.0 (Tool length offset


apply)

Commonly Used M-Codes in


VMC (Hinglish Mein)

M00 - Program Stop

Kya Hai: Machine ko rok deta hai, operator check


kar sakta hai.

Kab Use: Jab manual inspection chahiye.

Example: N10 M00 (Program ruk jao)

M01 - Optional Stop

Kya Hai: Program roke, lekin sirf jab optional stop


switch ON ho.

Kab Use: Conditional stop ke liye.

Example: N20 M01 (Optional rukna)

M03 - Spindle On (Clockwise)

Kya Hai: Spindle ko clockwise chalata hai (S ke


saath speed).

Kab Use: Milling ke liye (tera program mein use


hua).

Example: N10 S2000 M03 (2000 RPM


clockwise)

M04 - Spindle On (Counter-Clockwise)

Kya Hai: Spindle ko counter-clockwise chalata hai.

Kab Use: Specific tools ke liye reverse rotation.

Example: N10 S2000 M04 (CCW spindle)

M05 - Spindle Stop

Kya Hai: Spindle ko band karta hai.

Kab Use: Cutting khatam ya tool change ke liye.

Example: N50 M05 (Spindle off)

M06 - Tool Change

Kya Hai: Automatic tool change karta hai (T ke


saath tool number).

Kab Use: Naya tool load karne ke liye (tera 12mm


endmill).

Example: N10 T1 M06 (Tool 1 load)

M08 - Coolant On

Kya Hai: Coolant (flood/mist) chalu karta hai.

Kab Use: Cutting mein heat aur chips control ke


liye.

Example: N20 M08 (Coolant on)

M09 - Coolant Off

Kya Hai: Coolant band karta hai.

Kab Use: Cutting khatam ya program end mein.

Example: N50 M09 (Coolant off)

M30 - Program End and Reset

Kya Hai: Program khatam karta hai aur machine ko


reset karta hai.

Kab Use: Har program ke end mein.

Example: N50 M30 (Program khatam)

M98 - Subprogram Call

Kya Hai: Subprogram ko call karta hai (P ke saath


program number, L ke saath repetitions).

Kab Use: Repetitive tasks ke liye.

Example: N30 M98 P1003 L10 (Subprogram


O1003, 10 baar)

M99 - Subprogram End/Loop

Kya Hai: Subprogram khatam karta hai ya loop


back karta hai (tera program mein loop ke liye).

Kab Use: Subprogram ya loop ke end mein.

Example: N30 M99 %N20 (N20 par loop back)

M19 - Spindle Orientation

Kya Hai: Spindle ko specific angle par rokta hai.

Kab Use: Tool change ya special operations mein.

Example: N10 M19 (Spindle align for ATC)

Tera 20mm Pocket Milling


Program (Hinglish Comments
ke Saath)

Ye tera program hai, 20mm diameter pocket ke liye


(12mm endmill, 0.5mm DOC, 5mm depth, Z-5, L10,
M99), with all common G-codes aur M-codes, aur
~6 lines mein. Main P10 ko L10 maan raha hoon
(10 loops for 10 passes), lekin agar dwell hai toh
last mein alternative dunga.

%
O1009 (20MM POCKET MILLING - 12MM
ENDMILL, Z-5, L10)
N10 G90 G54 G17 G21 G40 G00 Z50.0
T1 M06 S2000 M03 M08 G43 H1 X0 Y0
Z5.0 (Setup: absolute, G54 origin,
XY plane, metric, no compensation,
safe height, tool 1, spindle 2000
RPM, coolant on, tool length
offset, center position)
N20 G01 Z0 F200 G91 G03 I-4.0 Z-0.5
F200 L10 (Z0 tak approach,
incremental mode, helical CCW 4mm
radius, 0.5mm Z-drop, 10 loops)
N30 G80 M99 %N20 (Canned cycle
cancel, loop back to N20 for 10
passes)
N40 G90 G00 Z50.0 M09 (Absolute
mode, retract to safe height,
coolant off)
N50 M05 M30 (Spindle band, program
khatam aur reset)
%

Program Ki Samajh:

N10: Sab setup kiya – absolute (G90),


origin (G54), XY plane (G17), metric (G21),
no compensation (G40), safe height (Z50),
tool 1 (M06), spindle on (M03, 2000 RPM),
coolant on (M08), tool length (G43 H1),
center (X0 Y0 Z5).

N20: Z0 tak approach (G01), incremental


mode (G91) for helical interpolation (G03),
4mm radius (I-4.0) se 20mm pocket
banaya, 0.5mm Z-drop per pass, 10 baar
(L10).

N30: Canned cycle cancel (G80) as


precaution, aur loop back (M99 %N20) for
10 passes.

N40: Absolute mode (G90), safe height par


retract (Z50), coolant off (M09).

N50: Spindle band (M05), program end


(M30).

Depth: 10 passes × 0.5mm = 5mm (Z-5).

Tool Path: 4mm radius + 12mm endmill =


20mm pocket.

Agar P10 Dwell Hai (G04 P10)

Agar tera P10 10ms dwell ke liye tha, toh ye


alternative program hai:

%
O1010 (20MM POCKET WITH DWELL P10)
N10 G90 G54 G17 G21 G40 G00 Z50.0
T1 M06 S2000 M03 M08 G43 H1 X0 Y0
Z5.0 (Setup sab same)
N20 G01 Z0 F200 G91 G03 I-4.0 Z-0.5
F200 G04 P10 L10 (Helical move,
10ms dwell har pass mein)
N30 G80 M99 %N20 (Loop back)
N40 G90 G00 Z50.0 M09 (Retract,
coolant off)
N50 M05 M30 (Spindle off, end)
%

Tips aur Notes

Feed aur Speed: S2000 (RPM) aur F200


(mm/min) placeholders hain. Material ke
hisaab se adjust kar:

Aluminum: 1500-3000 RPM, 150-300


mm/min.

Steel: 800-1200 RPM, 80-150 mm/min.

Simulation: Program ko VMC ke simulator


mein check karo to tool path verify ho.

Machine-Specific: Kuch machines mein


M99 %N20 ka syntax alag ho sakta hai
(jaise GOTO 20 ). Manual dekho.

Coolant: M08/M09 add kiye hain for better


cutting. Agar nahi chahiye, toh hata do.

P10 Clarification: Agar P10 kuch aur hai


(dwell nahi, ya parameter), toh batana.

Other Codes: Agar drilling, tapping, ya


specific operation ke codes chahiye, toh
bol.

Line Count: ~6 lines rakha hai, clear aur


complete.

<

You might also like