The programmable functions of CNC machine tools are divided into two categories: one is used to control the tool trajectory, that is to say the movement of each food axis, such as interpolation linear / arc, food control The adjustment of the unit of size of this type of function is called the preparation function, composed of letter G and two figures, also known by the code name G. Another type of Function is called auxiliary functions, which are used to complete the program execution control, control of the pin, tool control, control of auxiliary equipment and other functions. Among these auxiliary functions, the TX X is used for the selection of tools and SX XXX is used to control the speed of the pin. Other functions are implemented by M Code composed of letter M and two figures.
1. Functions of the common code G
G00 positioning (fast movement)
Linear interpolation G01 (power speed)
G02 Insertion of arc in the hourly direction
Interpolation of arc in the antihorarous sense G03
G04 Pause, precise stop
G09 Precise stop
G17 Select xy plane
G18 SELECT ZX PLANE
G19 Select the Yz plane
G27 returns and check the reference point
G28 Back to the point of reference
G29 Back to the reference point
G30 Back to the second reference point
G40 Cancel the tool radius compensation
G41 Ray of the left tool
G42 Radius of right tool compensation
G43 Tool length compensation +
G44 Tool length compensation
G49 Cancel compensation for the length of the tool
G52 Definition of the local coordinate system
G53 Select the machine-tool coordinating system
G54 Select the part coordinate system n ° 1
G55 chooses the coordinate system n ° 2
G56 Select the coordinate system of part 3
G57 Select the coordinate system of part n ° 4
G58 Select the coordinate system of part n ° 5
G59 Select the coordinate system for part n ° 6
G60 Unique positioning
G61 precise stop method
G64 cutting method
Macro G65 call
G66 Macro Macro Program Call program
G67 Modal Macro Program Call Cancel
G73 Déforms from Fore Deep Cycy
G74 Inverted thread tactuing fixing cycle
G76 Fine Boring Fixed Cycle
G80 Cancel the fixed cycle
G81 Driller Cycy
G82 Driller Cycy
G83 Déforms from Fore Deep Cycy
G84 Total Fixed Circulation
G85 boring fixed circulation
G86 boring fixed circulation
G87 Back Boring Fixed Cycle
G88 boring fixed circulation
G89 boring fixed circulation
Absolute value instruction method G90
G91 Instruction method of incremental value
G92 Zero part adjustment
G98 Return to a fixed loop in the initial point
G99 Fixed cycle returns to r point
2. Code functions M commonly used
M00 program break
Conditional program stops M01
The M02 program ends
Spindle rotation m03
Reversion of the M04 pin
M05 pin stop
M06 tool exchange
M08 cools
M09 Cooling
M18 Liberation of spindle orientation
M19 spindle orientation
M29 rigid noise
M30 The program ends and returns to the program header
M98 calling for the sub-program
The M99 sub-program finishes the return / repetition execution
3. Currently used arithmetic
Addition: # i = # J + # K
Subtraction: # i = # j- # k
Multiplication: # i = # j * # k
Division: # I = # J / # K
Sinus: # i = sin[#j]
Anti-Sine: # I = Asin[#j]
Cosinus: # i = cos[#j]
Reverse cosine: # i = acos[#j]
Tangent: # i = tan[#j]
Arctangent: # I = Atan[#j]
Root square: # i = sqrt[#j]
Absolute value: # I = ABS[#j]
Rounded: # i = round[#j]
Rounded: # i = fix[#j]
Arrondissement: # I = FUP[#j]
Natural logarithm: # i = ln[#j]
Exponential function: # i = exp[#j]
或 : # i = # Jor # K
Xor: # i = # jxor # k
与 : # i = # and # k
Convert from BCD to BAC: # I = BAC[#j]
Convert BAC to BCD: # I = BCD[#j]
4. Logical operators
EQ: equal to
Ne: not equal to
GT: More than
GE: greater than or equal to
LT: Small
The: less than or equal to
5. Transfer and program loop
Unconditional transfer: Goto
Conditional transfer: if [条件表达式]
IF [条件表达式] Goto n, if the condition is satisfied, go to the program of program n
IF [条件表达式] So, like: if [#I=#J] Then # k = 0
6.
WHILE [条件表达式] DOM (M = 1.2 ,, 3)
…
END
If the condition is satisfied, the program between Dom and Endm will be executed (until the condition is not satisfied), otherwise the program after Endm will be in the place.
Daguang focuses on providing solutions such as precision CNC machining services (3-axis, 4-axis, 5-axis machining), CNC milling, 3D printing and rapid prototyping services.


















