威尼斯人官网

Welcome to the official website of Ruifeng Xinye Precision Machinery

Shenzhen Ruifeng Xinye Precision Machinery Co., Ltd.

Focus on precision machinery industry for 8 years

Service Hotline: 0755-89924285

威尼斯人官网

Service Hotline: 13823281286

Address: Building 2, No. 5, Shijing Industrial Park, Pingshan District, Shenzhen, China Mobile phone: 13823281286 (Chen Sheng)
Phone: + 86-755-8992 4486
Email: [email protected]

Mobile phone: 13686803292 (Lilian)
Phone: + 86-755-8992 4285-611
Email: [email protected]

Fax: + 86-755-89924858
Website: http://phonicfm.com/

公司新闻 Position: 威尼斯人官网 > News > Company NewsCompany News

cnc machining center code Daquan sharing

Time: 2018-11-29 Source: Site views: 2792

Meaning of letters in NC program

O: program number, set program number

N: block number, set the program sequence number

G: Preparation function

X / Y / Z: size character, axis movement instruction

A / B / C / U / V / W: additional axis movement command

R: arc radius

I / J / K: arc center coordinates (vector)

F: feed, set feed amount

S: Spindle speed, set the spindle speed

T: Tool function, set the tool number

M: auxiliary function, on / off control function

H / D: tool offset number, set the tool offset number

P / X: Delay, set the delay time

P: Program number instruction, set the subprogram number (eg subprogram call: M98P1000)

L: Repeat, set the number of times to repeat the subroutine or canned cycle (such as: M98 P1000 L2, omit L for L1)

P / W / R / Q: parameters, canned cycle parameters (such as tapping G98 / (G99) G84 X_ Y_ R_ Z_ P_ F_)


2. Common G code explanation

G00: positioning or rapid movement

G01: Linear interpolation

G02: Arc interpolation / spiral interpolation CW

G03: Arc interpolation / spiral interpolation CCW

G04: Dwell time or delay time

Ex: G04 X1000 (or G04 X1.0)

G04 P1000 means stay for 1 second

G09: Exact stop or exact stop check (check if it is within the target range)

G10: Programmable data input

G17: Select XPYP plane XP: X axis or its parallel axis

G18: Select ZPXP plane YP: Y axis or its parallel axis

G19: Select YPZP plane ZP: Z axis or its parallel axis

G20: inch input

G21: mm input

G28: Return to reference point detection

Format: G91 / (G90) G28 X__ Y__ Z__

X__ Y__ Z__ return to the reference point after passing through the intermediate point (absolute / incremental value instruction)

G29: Return from reference point

G91 / (G90) G29 X__ Y__ Z__

Instructions for returning from the starting point through the reference point to the target point X__ Y__ Z__ (absolute value / incremental value instruction)

G30 returns to the 2nd, 3rd, 4th reference point

G91 / (G90) G30 P2 X__ Y__ Z__; Return to the 2nd reference point (P2 can be omitted.)

G91 / (G90) G30 P3 X__ Y__ Z__; return to 3rd reference point

G91 / (G90) G30 P4 X__ Y__ Z__; return to the 4th reference point

X__ Y__ Z__: Pass the intermediate point position (absolute value / incremental value command)

G40: Tool radius compensation canceled

G41: Tool radius compensation on the left (the tool is on the left along the feed direction)

G42: Tool radius compensation on the right (the tool is on the right along the feed direction)

G43: Tool length compensation + direction

G44: Tool length compensation-direction

G49: Cancel tool length compensation

G50: Cancel scaling

G51: scaling, format:

ON G51 X_ Y_ Z_ P_;

OFF G50

X_ Y_ Z_: Set the zoom center position

P: zoom ratio, the range is 1-999999, cannot be a decimal, if P800 represents the zoom ratio is 0.8

G52: Set the local coordinate system

G53: Select the machine coordinate system

G54-G59: Select workpiece coordinate system 1-6

G60: Unidirectional positioning, eliminate transmission gap (instead of G00), go back to the target position after passing the target position

G61: Exact stop inspection method, when the cutting feed approaches the target position, decelerate and check the position tolerance range

G62: Automatic corner magnification

G63: Tapping method

G64: Normal cutting mode, no deceleration when the cutting feed approaches the target position, and no deceleration between cutting segments

G65: Macro program call

G66: Macro program modal call

G67: Macro program modal call canceled

G68: coordinate rotation, format:

G17: G68 X_ Y_ R_

G18: G68 X_ Z_ R_

G19: G68 Y_ Z_ R_

G69 coordinate rotation canceled

G73: Multi-stage drilling cycle

G74: Left-handed thread cycle

G76: Fine boring cycle (directional eccentric retraction)

G80: Cancel Canned Cycle

G81: Single-stage drilling cycle

G82: Single-stage drilling cycle (to achieve hole bottom stop or delay)

G83: Multi-stage drilling cycle

G84: tapping right-hand thread

G85: Boring cycle

G86: Boring cycle

G87: Back boring cycle

G88: Boring cycle

G89: Boring cycle

G90: Absolute command

G91: relative instruction

G92: Set the workpiece coordinate system

G98: Return to the starting point when backing up in a fixed cycle

G99: Return point when backing up in a fixed cycle (point R is set in a fixed cycle)




3. Common M code explanation

M00: Program stops unconditionally

M01: Program condition stops

M02: End of program

M03: Spindle forward

M04: Reverse spindle

M05: Spindle stops

M08: Open external cooling

M09: Turn off all cooling

M26: Open internal cooling

M30: Program ends and returns to the beginning of the program

M84: Check Tray 1

M95: Check Tray 2

M98: call subroutine

M99: return to the main program

M135: rigid tapping

M417: Inspection of machine tray 1

M418: Machine tray 2 inspection

M419: Machine tray inspection completed

M433: Tool break detection

M462: Tray number transmission


4. Common Arithmetic

Addition: # i = # j + # k

Subtraction: # i = # j- # k

Multiplication: # i = # j * # k

Division: # i = # j / # k

Sine: # i = SIN [#j]

Arcsine: # i = ASIN [#j]

Cosine: # i = COS [#j]

Arc cosine: # i = ACOS [#j]

Tangent: # i = TAN [#j]

Arctangent: # i = ATAN [#j]

Square root: # i = SQRT [#j]

Absolute value: # i = ABS [#j]

Round: # i = ROUND [#j]

Round up: # i = FIX [#j]

Round down: # i = FUP [#j]

Natural logarithm: # i = LN [#j]

Exponential function: # i = EXP [#j]

Or: # i = # jOR # k

XOR: # i = # jXOR # k

With: # i = # AND # k

From BCD to BIN: # i = BIN [#j]

From BIN to BCD: # i = BCD [#j]




5. Logical operators

EQ: equal

NE: not equal

GT: greater than

GE: less than or equal to

LT: less than


6. Program transfer and loop

Unconditional transfer: GOTO

Conditional transition: IF [conditional expression]

IF [conditional expression] GOTO n, if the condition is satisfied, jump to block n

IF [conditional expression] THEN, such as: IF [# I = # J] THEN # K = 0


7. Loop statements

WHILE [Conditional Expression] Dom (m = 1,2,, 3)

...

ENDm

If the conditions are met, execute the program between Dom and ENDm (until the conditions are not met), otherwise execute the program after ENDm

Shenzhen Ruifeng Xinye Precision Machinery Co., Ltd. 2020 All rights reserved. 粤 ICP 备 14034804 号 -1

Address: Building 2, No. 5, Shijing Industrial Park, Pingshan District, Shenzhen Tel: + 86-755-8992 4285-611 + 86-755-8992 4486
Mobile phone: +86 13823281286 (Chen Sheng), +86 13686803292 (Lilian)
Website: http://www.china-rfc.com Email: [email protected]
No. 44031002000250

Scan QR code to get business card