Hello friends welcome to swaylen training session. 1
Our course is CNC. 2
with G - code & M - code 3
swaylen training session in this course we will discuss how to write CNC program manually and check 4
in eCam software 5
So let's start 6
CNC means computer numerical control with G- code and M - code 7
Now CNC is the automated control of machining tools like 3( drills, boring tools, lathes) and 3D printers 8
by means of a computer. 9
Next a CNC machine processes a piece of material like (metal, plastic, wood, ceramic, or composite) 10
to meet specification by following a coded program instruction and without manual operator. 11
Next a CNC machine is a motorized tool and often a motorized platform which are both controlled 12
by a computer ,according to a specific input instruction. 13
Next 14
instruction are delivered to a CNC machine in the form of a sequential program of machine control 15
instruction such as G - code and then executed next. 16
The program can be written by a person or far more often. 17
This century, generated by graphical computer aided design software. 18
Next 3D printers. 19
Also use G - code 20
First we will discuss lathe Operation / program 21
Today we will learn about syntax of program. 22
You will see this is the syntax N- G- 23
X - Y- Z - F - S- T- M Now. 24
N - means the line number 25
G - means motion 26
X - means horizontal position 27
Y - vertical position , Z - means depth 28
F - means feed rate , S - means spindle speed, T- means tool selection ,M - means miscellaneous function. 29
Now any other optional. 30
Also here like INJ for incremental center of an arc and R- for radius of an arc. 31
Ok so this is the normal syntax of our program. 32
Now 33
we will learn about G - code and M - code 34
So first we will discuss about the G - code 35
So this is the G00 for positioning means the rapid traverse for 2 you will see this images indicate the 36
00 path see the positioning now next G01 37
So the G01 used for linear interpolation with feed 38
You will see in image 39
over start position is X=0 40
Y = 0 and now over position is X=1 Y=1 next 41
this is a G02 G02 is used for circular interpolation but in clockwise you will see in your 42
image G02 means the clockwise arc and in figure you will see easily understand the G02 means the 43
clockwise portion similarly next one is G03 means same means the circular interpolation but in counterclockwise 44
you will easily understand by image just G03 counter clockwise arcs ok in Figure you will 45
see G03 means the counter clockwise rotation 46
G04 for dwell time 47
next one is G17 - XY plane selection 48
next is G18 - 49
ZX plane selection and G19 - YZ plane selection. 50
So what is the meaning of this planes selection 51
I have an image you will see with this image you will easily understand. 52
See the G17 means X Y see 53
G18 means the X Z see and G19 means. 54
YZ see so this is the G17 , G18 and G19 55
Ok next 56
G20- for input in inch value G21- for input in mm value G28- return to machine home position 57
G90 for absolute programming coordinate mode 58
G91-increment programming coordinate mode now 59
we will learn about the G- code and m - code 60
So last one we will discuss the G- code 61
Now you will see here the sum divination of the G- code like for motion. 62
So you will see in motion some code is here like G00,G01,G02,G03,G80,G81,G82,G84, 63
G85,G86,G87,G88,G89 other is plain selection we will discussing 64
the previous side for plain selection the code is G17,G18 and G19 next one is absolute or increment more 65
so G90, G91 66
feed rate mode so G93 G94 the units - inches/millimeters so G20, G21 67
cutter radius compensation G40, G41, G42 68
Next is tool length offset G43,G49 return mode in canned cycles G98, and 69
G99 work coordinate system selection G54, G55, G56, G57, 70
G58 and G59 in this sum of the code is standard like G 70, G80,G90 for 71
plane selection like absolute increment G91 G90 Ok so next 72
now we will discuss about the M- code so what is the full form of M- code, M- code means Miscellaneous code 73
first of all M00- for program stop and press cycle Start button to continue M01- optional stop M02- 74
end of program M03- spindle on clockwise M04- spindle on but counterclockwise M05- for spindle stop 75
M06- change the tool, M08- coolant on, M09- coolant off and the last one is m30 end of 76
program and press cycle start to run it again. 77
OK so this is some is Miscellaneous code otherwise M- code for over CNC programming in next lecture we will discuss 78
about some operation and check in this eCAM software so thank your friends.