28. 20 July 2015 CAM -- Dr. ahmad Almaleh 28
G Code Group
Group 0
G00 : Rapid traverse
G01 : Linear interpolation
G02 : Circular interpolation clockwise
G03 : Circular interpolation counterclockwise
G04 : Dwell
G72 : Defining circular boring pattern
G74 : Defining rectangular boring pattern
G81 : Drilling, centering
G82 : Drilling, spot-facing
G83 : Deep-hole drilling with retraction
G84 : Tapping
G86 : Deep-hole drilling with chip breaking
G87 : Rectangular pocket milling cycle
G88 : Circular pocket milling cycle
G89 : Slot milling cycle
29. 20 July 2015 CAM -- Dr. ahmad Almaleh 29
G Code Group
Group 2
G94 : Feed in mm/min or 0.01 inch/min
G95 : Feed in um/rev or 0.0001 inch/rev
Group 3
G53 : Cancellation of offsets 1, 2
G54 : Call-up of offset 1
G55 : Call-up of offset 2
Group 4 G92 : Set offset 5
Group 5
G56 : Cancellation of offsets 3, 4, 5
G57 : Call-up of offset 3
G58 : Call-up of offset 4
G59 : Call-up of offset 5
Group 6
G25 : Subroutine call-up
G27 : Unconditional jump
Group 7
G70 : Measurements in inches
G71 : Measurements in mm
30. 20 July 2015 CAM -- Dr. ahmad Almaleh 30
G Code Group
Group 8
G40 : Cancellation of the tool path compensation
G41 : Cutter path compensation left
G42 : Cutter path compensation right
Group 9
G17 : 1st axis switching
G18 : 2nd axis switching
G19 : 3rd axis switching
G20 : 4th axis switching
G21 : 5th axis switching
G22 : 6th axis switching
Group 11
G98 : Withdrawal to starting plane
G99 : Withdrawal to withdrawal plane
Group 12
G73 : Call-up circular boring pattern
G74 : Call-up rectangular boring pattern
31. 20 July 2015 CAM -- Dr. ahmad Almaleh 31
M Code
Group 0
M03 : Spindle ON in clockwise direction
M04 : Spindle ON in counterclockwise direction
M05 : Spindle stop
M19 : Spindle precise stop
Group 1
M38 : Precise stop ON
M39 : Precise stop OFF
Group 2
M00 : Programmed stop
M17 : Subroutine end
M30 : Program end with return to program start
Group 3
M08 : Coolant ON
M09 : Coolant OFF
Group 8
M50 : Cancellation of the direction logic with bidirectional tool turret
M51 : Selection of the direction logic with bidirectional tool turret
Group 10
M90 : Cancellation of the mirroring function
M91 : Mirroring on the X-axis
M92 : Mirroring on the Y-axis
M93 : Mirroring on the Z-axis
32. 32
Modal G-Code List
G00 Rapid Transverse
G01 Linear Interpolation
G02 Circular Interpolation, CW
G03 Circular Interpolation, CCW
G17 XY Plane
G18 XZ Plane
G19 YZ Plane
G20/G70 Inch units
G21/G71 Metric Units
G40 Cutter compensation cancel
G41 Cutter compensation left
G42 Cutter compensation right
G43 Tool length compensation (plus)
G44 Tool length compensation (minus)
G49 Tool length compensation cancel
G80 Cancel canned cycles
G81 Drilling cycle
G82 Counter boring cycle
G83 Deep hole drilling cycle
G90 Absolute positioning
G91 Incremental positioning
20 July 2015 CAM -- Dr. ahmad Almaleh
33. 33
M Codes
M00 Program stop
M01 Optional program stop
M02 Program end
M03 Spindle on clockwise
M04 Spindle on counterclockwise
M05 Spindle stop
M06 Tool change
M08 Coolant on
M09 Coolant off
M10 Clamps on
M11 Clamps off
M30 Program stop, reset to start
20 July 2015 CAM -- Dr. ahmad Almaleh
35. 20 July 2015 CAM -- Dr. ahmad Almaleh 35
G & M Code: deactivation
التعليمة تبقى(G/M)يجري أو مجموعتها من آخر تابع يرد أن إلى فعالة
نفسها المجموعة في اإللغاء توابع بواسطة فعاليتها إلغاء(التي للتوابعتتمتع
مثل الخاصة بهذهG40)زر ضغط أو اآللة أطفئت إذا أو ،RESET.
أمثلة:
N 0100 G00 X -20. Y 5. Z 40 .
N 0110 G00 X 10. Y 5. Z 5.
N 0120 G01 X -20. Y 5. Z -5.
G00
ACTIVE
G00 Deactivated by G01
36. 20 July 2015 CAM -- Dr. ahmad Almaleh 36
G & M Code: deactivation
O 12
N0000
N0020 ………………………..G54
N0030 …………………………G57
N0040 ………………………….M30
_______________________________________
O 20
N0000
N0100 ………………………G00
G54 & G57 are
still active
األساسي البرنامج
الفرعي البرنامج
37. 20 July 2015 CAM -- Dr. ahmad Almaleh 37
G & M Code: deactivation
O 12
N0000
.
N0100 G00 X1 Y1 Z1
N0200 ………………………….M30
O 20
N0000
N0100 X2 Y2
N0200 G02 X2 Y2 G02 is deactivated now by G02
G00 is still active
األساسي البرنامج
الفرعي البرنامج
54. 20 July 2015 CAM -- Dr. ahmad Almaleh 54
تعليمةG00 // G01
G00
السريع الخطي االنتقال
G01
الخطي االستيفاء
N0005 G00 X Y Z
U V W
N0005 G01 X Y Z F
U V W
55. عملي مثال(1)
الث تنفيذ برنامج اكتبقوب
بال الموصفة القطعة فيشكل
صفر أن ًاعلم ،التالي
لآللة معرف القطعة
بالتسجيلG54.األبعاد
اآل تحتوي ال ،بالمليمترلة
تثقي دارات على الرقميةب.
S=2500 RPM
F=100 mm/min
20 July 2015 CAM -- Dr. ahmad Almaleh 55
Y
X
68. Top
View
Front
View
Tool At Home
O0001
N005 G54 G90 S600 M03
N005Sequence Number
G54Fixture Offset
G90Absolute Programming Mode
S600Spindle Speed set to 600 RPM
M03Spindle on in a Clockwise Direction
20 July 2015 CAM -- Dr. ahmad Almaleh 68
69. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
G00Rapid Motion
X1.0X Coordinate 1.0 in. from Zero
Y1.0Y Coordinate 1.0 in. from Zero
20 July 2015 CAM -- Dr. ahmad Almaleh 69
70. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
G43Tool Length Compensation
H01Specifies Tool length compensation
Z.1Z Coordinate .1 in. from Zero
M08Flood Coolant On
20 July 2015 CAM -- Dr. ahmad Almaleh 70
71. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
G01Straight Line Cutting Motion
Z-.75Z Coordinate -.75 in. from Zero
F3.5Feed Rate set to 3.5 in./min.
20 July 2015 CAM -- Dr. ahmad Almaleh 71
72. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
G00Rapid Motion
Z.1Z Coordinate .1 in. from Zero
M09Coolant Off
N025 G00 Z.1 M09
20 July 2015 CAM -- Dr. ahmad Almaleh 72
73. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N030 G91 G28 X0 Y0 Z0
G91Incremental Programming Mode
G28Zero Return Command
X0, Y0, Z0
X,Y,& Z Coordinates at Zero
N025 G00 Z.1 M09
20 July 2015 CAM -- Dr. ahmad Almaleh 73
74. Top
View
Front
View
O0001
N005 G54 G90 S600 M03
N010 G00 X1.0 Y1.0
N015 G43 H01 Z.1 M08
N020 G01 Z-.75 F3.5
N035 M30
N030 G91 G28 X0 Y0 Z0
N025 G00 Z.1 M09
M30End of Program
20 July 2015 CAM -- Dr. ahmad Almaleh 74
75. 20 July 2015 CAM -- Dr. ahmad Almaleh 75
تعليمةG02 // G03
G02
الساعة عقارب مع الدائري االستيفاء
G03
الساعة عقارب عكس الدائري االستيفاء
N0005 G02 X Y Z I J K
U V W I J K
N0005 G03 X Y Z I J K
U V W I J K
ف القوس بدء نقطة إلى القطع أداة إحضار على نحصر السابقة التعليمة تنفيذ أجل منالسطر ي
بواسطة الهدف نقطة إحداثيات ندخل ،القوس دوران جهة نختار ،السابقXYZو المطلقة
UVWللنسبية.الرموز أماIJKالبداية لنقطة بالنسبة القوس مركز إحداثيات فهي.
76. 20 July 2015 CAM -- Dr. ahmad Almaleh 76
تعليمةG02 // G03
77. 20 July 2015 CAM -- Dr. ahmad Almaleh 77
تعليمةG02 // G03
78. 78
G02 Circular Interpolation (CW)
The G02 command requires
an endpoint and a radius in
order to cut the arc.
I,J, and K are relative to the
start point.
N_ G02 X2 Y1 I0 J-1 F10
or
N_ G02 X2 Y1 R1 F10
20 July 2015 CAM -- Dr. ahmad Almaleh
79. 5
1 0
1 5
2 0
2 5
5 1 0 1 5 2 0 2 5 3 0
C
C
C i r c u l a r i n t e r p o l a t i o n f r o m A t o B
a b o u t a c i r c l e c e n t e r e d a t C
N 1 0 G 0 2 X 2 0 0 0 0 Y 1 0 0 0 0
I 5 0 0 0 J 1 5 0 0 0 F 2 5 0 0
A
B
I = 5
J = 1 5
79
G02 Circular Interpolation (CW)
20 July 2015 CAM -- Dr. ahmad Almaleh
80. عملي مثال(2)
الم تنفيذ برنامج اكتبجرى
ف دائري والنصف المائلي
بالشكل الموصفة القطعة
صفر أن ًاعلم ،التالي
لآللة معرف القطعة
بالتسجيلG55.األبعاد
بالمليمتر.
S=2500 RPM
F=100 mm/min
20 July 2015 CAM -- Dr. ahmad Almaleh 80
Y
X
86. 20 July 2015 CAM -- Dr. ahmad Almaleh 86
القطع أداة نصف تعويضG42 G41
G40 : Cancellation of the tool path
compensation
G41 : Cutter path compensation left
G42 : Cutter path compensation right
87. 20 July 2015 CAM -- Dr. ahmad Almaleh 87
القطع أداة مسار انزياح
G41
Offset Direction = Left
G42
Offset Direction = Right
G40
Offset Direction = Off
88. 20 July 2015 CAM -- Dr. ahmad Almaleh 88
القطع أداة مسار انزياح
والخروج الدخول نقطة
التشغي مسار وإلى منل
89. 20 July 2015 CAM -- Dr. ahmad Almaleh 89
بها الخاصاملعلومات وإدخال القطعأداةاختيار
T 01 10
N0100 T02 02 M06
N0400 G00 ……..
OR
N0400 G00 X… Y… Z… T0202
Tool number Tool compensation number
01 - 10 01 - 99
استدعاء عندأداةقطع
استخدام يجب جديدة
G00ف بكتابتها سواء ؛ي
في أو نفسها الكتلة
الحقة كتلة