G-Code programming is a very robust and simple language. G-codes are what CNC Machines run on. A CNC control program process the g-code line by line and send this information to the machine. The machine then takes this information and makes precise movements. Yes, it is as simple as that.
Basic G-Code in CNC:
G0 or G00 – Rapid Movement
The most rapid movement the CNC Machine can make to the next position. If moving in multiple axis, each axis will move as fast as they can independently of one another.
G1 or G01 – Linear Movement
A straight move with a speed defined by an “F.” [F=Feedrate] If moving in multiple axis, the machine will move in each axis until it reaches its defined position.
G2 or G02 – Interpolation Clockwise
A circular movement in 2-axis in a clockwise motion. Will create an arc to a specified radius defined by an R or I/J combination.
G2 or G03 - Interpolation Counter Clockwise
A circular movement in 2-axis in a counter-clockwise motion. Will create an arc to a specified radius defined by an R or I/J combination.
G4 or G04 – Dwell
Machine will dwell once reached position to a user defined time, noted by a “P”
G9 or G09 – Exact Stop/Exact Position
Machine will not traverse to next line of code until it locates exactly to specified position.
G17 - XY plane selection
G18 - ZX plane selection
G19 - YZ plane selection
G20 - Machine in inch
G21 - Machine in MM
G28 - Return to Reference Position
Normally machine home.
G30 - Return to 2nd reference position
G40 - Cutter Compensation Cancel
G41 - Cutter Compensation Left
G42 - Cutter Compensation Right
G43 - Tool Length Compensation +
G44 - Tool Length Compensation -
nice work ^^
ReplyDeletethanks
ReplyDelete