CNC lathe programming code is commonly used
Release date:2019-01-03
The CNC lathe programming code generally has the following:
G00 and G01
There are two kinds of G00 motion trajectories: straight line and polyline. This command is only used for point positioning and cannot be used for cutting.
G01 moves to the target point specified by the command by the linear motion method according to the specified feedrate, and is generally used for cutting.
G02 and G03
G02: Clockwise circular interpolation G03: Counterclockwise circular interpolation
G04 (delay or pause command)
Generally used for positive rotary switching, machining blind holes, stepped holes, turning and grooving
G17, G18, G19 plane selection command, specified plane machining, generally used in milling machines and machining centers
G17: X-Y plane, which can be omitted or a plane parallel to the X-Y plane
G18: X-Z plane or plane parallel to it, only X-Z plane in CNC lathe, no special designation
G19: Y-Z plane or plane parallel thereto
G27, G28, G29 reference point command
G27: Return to the reference point to view and confirm the reference point orientation.
G28: Actively return to the reference point (through the center point)
G29: Come back from the reference point and use it with G28
G40, G41, G42 radius compensation
G40: Undo tool radius compensation
Give it so much, pack it at night and give it again.
G43, G44, G49 length compensation
G43: Positive length compensation G44: Length negative compensation G49: Undo tool length compensation
G32, G92, G76
G32: Thread cutting G92: thread cutting fixed cycle G76: thread cutting compound cycle
Turning processing: G70, G71, 72, G73
G71: Axial roughing compound cycle command G70: Finishing compound cycle G72: Face turning, radial roughing cycle G73: Profile roughing cycle
Programming method G90, G91
G90: Positive coordinate programming G91: Incremental coordinate programming
Spindle setting command
G50: Spindle maximum speed setting G96: Constant line speed control G97: Spindle speed control (undo constant line speed control command) G99: Come back to point R (center hole) G98: Come back to reference point (final hole)
Spindle forward rotation stop command M03, M04, M05
M03: Spindle forward transmission M04: Spindle rotation M05: Spindle stop
Cutting fluid switch M07, M08, M09
M07: Mist cutting fluid is on M08: Liquid cutting fluid is on M09: Cutting fluid is off
Movement stop M00, M01, M02, M30
M00: Program pause M01: Program abort M02: Machine reset M30: Program ends, the pointer comes back to the beginning
M98: Calling a subroutine
M99: Come back to the main program
For more information about Shanghai Lathe Electromechanical Technology Co., Ltd. Shanghai lathe, Shanghai small CNC lathe, Shanghai CNC lathe, please contact Xiaobian.