NC command codes are as follows:

G code

group

interpretation

G00

01

positioning

(fast moving)

G01

linear cutting

G02

clockwise arc cutting

(CW, clockwise)

G03

counterclockwise arc cutting

(CCW, counterclockwise)

G04

00

pause

(dwell)

G09

stop at precise position

G20

06

Imperial input

G21

metric input

G22

04

internal travel limit

valid

G23

internal travel limit

invalid

G27

00

check reference point return

G28

reference point return

g29

return from reference point

G30

return to the second reference point

G32 01

thread cutting

G40

07

cancel tool tip radius offset

G41

tool tip radius offset

(left)

G42

tool tip radius offset

(right)

G50

00

Modify workpiece coordinates; Set the maximum spindle speed

RPM

G52

set the local coordinate system

g53

select the machine coordinate system

G70

00

finish machining cycle

G71

internal and external diameter rough cutting cycle

G72

step rough cutting cycle

G73

forming repeat cycle

G74

Z

step drilling

G75

x

grooving

G76

thread cutting cycle

g80

10

cancel the fixed cycle

g83

drilling cycle

g84

tapping cycle

g85

front boring Hole cycle

g87

side drilling cycle

G88

side tapping cycle

g89

side boring cycle

G90

01

(internal and external diameter) cutting cycle

G92

thread cutting cycle

G94

(step)

Cutting cycle

G96

12

constant linear speed control

g97

constant linear speed control cancellation

g98

05

feed rate per minute

G99

feed rate per revolution

extended data:

Fanuc

0-td system G

code command code group and its meaning "mode code"

and

"general"

code "form code"

functions will continue after it is executed, The

"general code"

only works when the command is received. The codes that define movement are usually "modal codes", such as line, arc and cycle codes. On the contrary, the return code like the origin is called "general code". Each code belongs to its own code group. In "modal code", the current code will be replaced by the same set of loaded codes
the code is explained as follows:

G00

positioning

1
format

G00

x_

Z_
this command moves the tool from the current position to the position specified by the command

(in absolute coordinate mode),

or to a certain distance

(in incremental coordinate mode)

2.
positioning in the form of non-linear cutting

our definition is: the position of each axis is determined by independent fast moving rate. The tool path is not a straight line. According to the order of arrival, the machine axis stops at the position specified by the command in turn

3.
linear positioning

the tool path is similar to linear cutting (G01)

and is positioned at the required position in the shortest time (no more than the rapid movement rate of each axis)

4.
example

N10

G0

X100

Z65

G01

linear interpolation format

G01

x (U)_

Z(W)_

F_

; Linear interpolation moves from the current position to the command position in a linear manner and at the movement rate given by the command. 10.

Z:

the absolute coordinate value of the position to be moved. U. W:

the incremental coordinate value of the position to be moved
NC machining code

Baidu Encyclopedia

G04 pause G05 high speed machining mode cutting G02 arc cutting (CW clockwise) g

G09 stop checking G11 program parameter input cancel

G12 arc cutting CN G13 arc cutting CCN

G17 plane selection X-Y G18 plane selection z-x03 arc cutting (CCW counterclockwise) G04 & nbsp

G19 plane select Y-Z G20 imperial command

G21 metric command G27 reference origin check

G28 reference origin reset g29 start reset G code G00 quick milling operation positioning G01 straight line

G33 thread cutting G34 special fixed cycle

G40 tool correction cancel G41 tool diameter correction left

G42 tool diameter correction right G43 tool length correction stop check G11 program parameter input cancel G1

G49 tool length correction cancel g54 working seat Standard system 1

G55 working coordinate system 2 g56 working coordinate system 3

G57 working coordinate system 4 g58 working coordinate system 503 arc cutting (CCW counterclockwise) G04

G59 working coordinate system 6 g63 tapping mode

G64 cutting mode G76 fixed cycle

NC commands are mainly g, m, s and t codes
G code is the interpolation instruction in NC program. It is generally called G instruction code. M code is defined as auxiliary function code. M code plays an auxiliary control role of the machine tool. S. Code

spindle speed command code. T code tool change command code
1. G00 and G01

there are two kinds of G00 motion tracks: straight line and broken line. This command is only used for point positioning and cannot be used for cutting.

G01 moves to the target point specified by the command in a straight line motion according to the specified feed speed. It is generally used for cutting.

2, G02 and G03

G02: clockwise arc interpolation

G03: counterclockwise arc interpolation

3, G04 (delay or pause command)

it is generally used for forward and reverse switching, machining blind holes, step holes Turning and grooving

4, G17, G18, G19

plane selection instruction, specifying plane processing, generally used for milling machines and machining centers

G17: X-Y plane, which can be omitted or can be a plane parallel to the X-Y plane

G18: x-z plane or a plane parallel to the X-Y plane. There is only x-z plane in CNC lathes, and there is no need to specify

G19: Y-Z plane or a plane parallel to it

5, G27, G28, g29

reference point instruction

G27: return to the reference point, check Confirm the reference point position

G28: automatically return to the reference point (passing through the middle point)

g29: return from the reference point and use it with G28

6, G40, G41, G42

radius compensation

G40: cancel tool radius compensation

7, G43, g44, G49

length compensation

G43: length positive compensation

g44: length negative compensation

G49: cancel tool length compensation

8, G32, G92 G76

G32: thread cutting

G92: thread cutting fixed cycle

G76: thread cutting compound cycle

9. Turning: G70, G71, 72, G73

G71: axial rough turning compound cycle instruction

G70: finishing compound cycle

G72: end face turning, radial rough turning cycle

G73: profiling rough turning cycle

"FANUC

0I

mate

TC system lathe programming details" Wenku/View /

10. Milling machine and machining center:

G73: high speed deep hole pecking

g83: deep hole pecking

g81: drilling cycle

g82: deep hole drilling cycle

G74: left-hand thread processing

g84: right-hand thread processing

G76: fine boring cycle

g86: boring cycle

g85: reaming

g80: cancel cycle command

11. Programming method

G90, G91

G90: absolute coordinate programming

G91: incremental coordinate programming

12 Spindle setting instruction

g50: setting of the maximum spindle speed

g96: constant linear speed control

g97: spindle speed control (canceling the constant linear speed control instruction)

g99: returning to the R point (middle hole)

g98: returning to the reference point (last hole)

m Code:

13. Spindle forward and reverse rotation stop instruction

m03, M04, m05

m03: spindle forward transmission

m04: spindle reverse

m05: spindle stop

14. Cutting fluid switch

m07 M08, M09

M07: mist cutting fluid on

M08: liquid cutting fluid on

M09: cutting fluid off

15, motion stop

M00, M01, M02, M30

M00: program pause

M01: planned stop

M02: machine tool reset

M30: program end, pointer returns to the beginning

16, M98: Call Subroutine

17, M99: return to main program

for more details, please refer to the instructions of various types of CNC systems
NC programming letter key function:

G

preparation function

command action mode

m

auxiliary function

machine tool M code command

F

feed speed

feed speed command

s

spindle function

spindle speed command

T

tool function

tool number command

I

coordinate word

X-axis coordinate of arc center

J

coordinate word

Y-axis coordinate of arc center

k

coordinate word

z-axis coordinate of arc center

P

program number of pause or start of use of a function in the program

L

number of repetitions

number of repetitions of fixed cycle and subroutine

d

compensation number

Weergaven: 1

Opmerking

Je moet lid zijn van Beter HBO om reacties te kunnen toevoegen!

Wordt lid van Beter HBO

© 2024   Gemaakt door Beter HBO.   Verzorgd door

Banners  |  Een probleem rapporteren?  |  Algemene voorwaarden