CNC precision machining machine is a very useful invention and greatly supports the mechanical processing industry. With CNC machines, we can ensure the time as well as the quality of the processing product in the most accurate way. But to be able to understand cnc machine we need to know the most basic things of the machine already.You can refer to the article below to get a better overview of CNC machines.
Read more: What is a CNC machine? Principles and types of CNC machines
The use of CNC machines requires engineers and workers to learn and train to be able to master most of the operations on CNC machines. One of the most important things to operate a CNC machine is that the code of the machine, like a function key but here we have to calculate how each line of misaligned code must fit together during the product finishing process.
Table of Contents
So what functions do these misaligned codes have and how do they be used?
Code is very important in the mechanical machining process, because when processing the details with a CNC machine we need to enter the code into a chain, the statements will be written together to form a manual that controls the instrument moving in the form of programming. These codes are all commands that are carefully identified and calculated by machining engineers.
Entering a wrong command line or changing the structure of the command line will also cause the operation of the CNC machining machine to become flawed and cause errors to the running program or product details. There are two common types of code: G and M in CNC, so let’s take a look at those two.
Code G in CNC
- Each misaligned line of a CNC program with the character starting as G is called a G-code or otherwise known as G-CODE.
- Each G code has a function that controls the tool movement activities of cnc machines.
- You can refer to the G codes for fanuc operating system below:
List of FANUC System G-code (CNC Lathe)
G code |
Depict |
---|---|
G00 |
Fast knife positioning |
G01 |
Interpolation in a straight line |
G02 |
Interpolation in a circular arc, clockwise. |
G03 |
Interpolation in a circular arc, counterclockwise. |
G04 |
Pause the program from time to time. |
G09 |
Stop correctly |
G10 |
Set the OFF-SET value. |
G20 |
“Inch” program unit. |
G21 |
Program unit “mm”. |
G22 |
Close the knife journey limit. |
G23 |
Turn off the extreme knife journey. |
G27 |
Check the root point. |
G28 |
Go back to the original point |
G32 |
Machining lace in a straight line. |
G40 |
Offset the knife-nosed radius. |
G41 |
Offset the radius of the knife nose. |
G42 |
Make up for the knife-nosed radius. |
G70 |
Lathe cycle |
G71 |
Rough lathe along the shaft |
G72 |
Rough lathe glass direction |
G73 |
Contour-line programming |
G74 |
Z-axis drilling |
G75 |
Conveniently grooved, cut off |
G76 |
Lace Lathe |
G92 |
lace lace cycle |
G94 |
Glass Directional Cutting Cycle |
G96 |
Constant machining speed control |
G97 |
Remove the constant machining speed control |
Fanuc System G-code list (CNC Milling Machine)
G code |
Depict |
---|---|
G00 |
Fast knife positioning |
G01 |
Interpolate in a straight line. |
G02 |
Arc interpolation is round with clockwise. |
G03 |
Clockwise round arc interpolation |
G04 |
Pause the program from time to time. |
G17 |
Select the machining plane as XY |
G18 |
Select the machining plane as XZ |
G19 |
Select the machining plane as YZ |
G28 |
Go back to the original point. |
G30 |
Return to the 2nd, 3,4th root point. |
G40 |
Offset the knife-nosed radius. |
G41 |
Offset the radius of the knife nose. |
G42 |
Make up for the knife-nosed radius |
G43 |
Compensation of positive knives by knife length |
G44 |
Clearing negative knives by knife length |
G49 |
Offset knife length |
G54 |
Select the base of the 1st machining coordinates |
G55 |
Select the base of the 2nd machining coordinates |
G56 |
Select the base of the 3rd machining coordinates |
G57 |
Select the base of the 4th machining coordinates |
G58 |
Select the base of the 5th machining coordinates |
G59 |
Select the base of the 6th machining coordinates |
G68 |
Coordinate rotation command |
G69 |
Coordinate rotation end command |
G73 |
Drilling cracking cheese |
G74 |
Left lace taro |
G76 |
Doa Tinh Hole |
G80 |
Cancel the hole drilling cycle |
G81 |
Bait drilling |
G82 |
Drilling has a stop time at the bottom of the hole |
G83 |
Deep drilling |
G84 |
Right lace taro |
G85 |
Doa the hole and back the knife out at the speed of the knife. |
G86 |
Doa the hole and back the knife out that the spindle stops spinning |
G87 |
Doa the back of the hole |
G88 |
Doa backed up the knife with her hands. |
G89 |
Doa has time to stop at the bottom of the hole |
G90 |
Absolute programming |
G91 |
Relative programming |
G92 |
Set the coordinate angle from the instrument’s current location |
G98 |
Back the knife to the starting height, in the hole machining cycles |
G99 |
Back the knife to a safe height, in hole machining cycles |
Code M in CNC
- Just like the G-code, the code written with the initials M is called M-CODE.
- Each M code has an auxiliary function for the G code to control the operation of the CNC machine.
- The M code is also found quite a lot, you can refer to some M codes below
List of FANUC System M-code (CNC Lathe)
M code |
Depict |
---|---|
M00 |
Stop the program unconditionally. |
M01 |
Stop the conditional program. |
M02 |
Stop the program. |
M03 |
The axis rotates clockwise. |
M04 |
The pivot is counterclockwise. |
M05 |
Stop spindle |
M08 |
Turn on the cold watering solution. |
M09 |
Turn off the cold watering solution. |
M30 |
End the program. |
M41 |
Spindle rotates in low speed zone |
M42 |
The spindle rotates in the high-speed zone. |
M98 |
Call the sub-program. |
M99 |
End of the program. |
Fanuc System M-code list (CNC Milling Machine)
M code |
Depict |
---|---|
M00 |
Stop the program unconditionally. |
M01 |
Stop the conditional program. |
M02 |
Stop the program. |
M03 |
The axis rotates clockwise. |
M04 |
The pivot is counterclockwise. |
M05 |
Stop spindle |
M06 |
Change the knife. |
M08 |
Turn on the cold watering solution. |
M09 |
Turn off the cold watering solution. |
M30 |
End the program. |
M41 |
The spindle rotates in the low speed zone. |
M42 |
The spindle rotates in the high-speed zone. |
M98 |
Call the sub-program. |
M99 |
End of the program. |
The conclusion
Through the above information, we can see that the code in mechanical processing is very important, affecting a lot of the detailed processing process. Thereby, we can understand the generalization of CNC machining codes, especially understanding the functions and codes of the two types of G-CODE and M-CODE.
VCC Molds, with a team of engineers with many years of experience in the mechanical industry, we specialize in cnc precision machining as well as precision mold design and machining. Any questions or advice please contact us immediately via Hotline / Zalo: 0934 683 166 or Email: contact@vcc-group.vn or leave a message here. We will contact you as soon as possible.
Vietnam Capacity Precision Mold Joint Stock Company
Address: Lot B2-3-3b, Nam Thang Long Industrial Park, Thu Phuong, Bac Tu Liem, Bac Tu Liem, Hanoi
Phone: (+84)24 6687 8283
Email: contact@vcc-group.vn
Hotline/Zalo: 0934683166
Website: www.vcc-mold.vn
Google map: https://goo.gl/maps/u6TrPvLWSb3bXAwQ6