1. The meaning of the letter in the CNC program
O: Program number, define the program number
N: Program segment number, define the program clock number
G: preparation function
X / y / z: size character, movement of the tree of the tree
A / B / C / U / V / W: add mobile tree instructions
A: Arc radius
I / J / K: coordinates of the Arc Center (Vector)
F: give it, define the supply volume
S: Speed speed, adjust the pin speed
T: the function of the knife, define the knife set
M: auxiliary function, control / control control function
H / D: The knife is a partial number, define the partial number of the knife
P / X: Delay, define the delay time
P: Instruction of the program number, define the basement number (such as the sub-program call: M98P1000)
L: Repeat, define the repetition number of the sub-program or the fixed cycle (such as: M98 P1000 L2, omittilize the representative L1)
P / W / R / Q: Settings, parameters used in the fixed cycle (such as: G98 / (G99) G84 X_ Y_ Z_ P_F_)
2. Explanation of the common common code
G00: Positioning or quickly move G01: Right insert G02: Arc interture / spiral line Insert CWG03: Arc interture / Spiral line Insert CCWG04: Stay or delay time such as: G04 X1000 (or G04 x1. 0) G04 P1000 means stay for 1 second G09: Stop or stop precisely to check with precision (check if it is in the target range) G10: programmable data input G17: Select the Xpyp XP: X -axis or its parallel axis plan G18: Select the ZPXP YP YP: Y -axis or parallel axis plan G19: Select the YPZP ZP Plan: Z axis or its parallel axis G20: INCH INCH G21: Entrance MM G28: Return to the Detection format of reference point: G91 / (G90) G28 X__ Y____ Y_ Z__ Return to the reference point (Absolute value / added Instruction of value) G29: Return to G91 / (G90) G29 X______ from the starting point to the target point x__ y___ / Add a value instruction)
G30 returns the reference point 2, 3, 4 G91 / (G90) G30 P2 X__ Y_____; Y__ Z__; Back to the 4th reference point X__ Y_____: After the position of the central point (absolute value / value instruction value) G40: radius of the compensation knife of G41) G42: Rest right on the right side (along the direction From the direction of the direction of the direction is to the right) G43: Compensation for tool length + direction G44: Length of the tool direction G49: Cancel the length of the length of the length of the length of the G50 knife: Cancel the proportional zoom G51: proportional zoom, format format, format: on g51 x_ y_ z_ p_; G54-G59 tool coordinating system: Select the coordinate system for part 1-6G60: unilateral positioning, eliminate the transmission gap (replace G00), then return to the target position after passing the target position
G61: Stop stop inspection method, slow down and check the G62 position tolerance range when cutting the target position. : G17: G68 X_ Y_ R_G18: G68 x_ R_G19: G68 Y_ Z_G69 Rotation of rotation rotation of the coordinates G73: Multi-stage diamond buckle G74: Cancel the lead round g76: fuel diamorceau (Eccentric direction) G80: Cancel the fixed cycle cycle G81: Diamor loop G82: unique diamond loop (make the bottom of the hole or the bottom of the hole or the bottom of the hole or the bottom of the hole or the bottom of the pore delay) G83: multi -drilling cycle -Niveaux G84: attack on the right rotary net G85: 镗 Cutting cycle G86: 镗 Cutting cycle G87: Anti – 镗 Cycle G88: 镗 Cutting cycle: Set the coordinate system of the part G98: return the starting point G99 When the fixed cycle is removed: the return point when the fixed cycle is retired (point R is set in the fixed cycle)
3. Explanation of the common common code
M00: Unconditional Stop M01 program: Condition of the Stop M02 program: End of the M03 program: Subdivie is in front M04: Inverse special axis M05: STOP of substitute M08: Open outside the cold M09: All cooling M26: Open the Cold inside M30: The ends of the program and returned to the Cold to the Start M84 program: Check the tray 1m95: Check the tray 2m98: Sub -Program M99: Return to the main program M135: Rigid tooth attack M417: Tip of the machine 1 Check M418: Machine advice 2 exam M419: The machine tool tank is finished M433: Transmission of the tray number
4. Common arithmetic
Add the method: #i = # J + # K Subtraction: #i = # J- # K Multiplication method: #i = # J * # K except the method: #i = # J / # K Sine: #I = sin[#j]Anti -hoin: #i = Asin[#j]Yu Xian: #i = cos[#j]Anti -Yu Xian: #i = Acos[#j]Positive cut: #i = tan[#j]Anyway: #i = Atan[#j]Root square: #i = sqrt[#j]Absolute value: #i = ABS[#j]Given: #i = round[#j]Object: #i = fix[#j]Step Rectification: #I = FUP[#j]Natural pair: #i = Ln[#j]Index function: #I = Exp[#j]Or: #i = # Jor # K different or: #i = # jxor # k and: #i = # and # k from bcd to bin: #i = bin[#j]Pass from BCD tank: #i = BCD[#j]
5. Logical operator
EQ: equal to not: not equal GT: greater than GE: greater than the equal of LT: less than the equal of LT: lower than
6. Transfer and cycle of the program
Condition transfer: Goto condition transfer: if [条件表达式]IF [条件表达式] Goto n, if the condition is filled, the jump to the section of the NIF program [条件表达式] So, like: if [#I=#J] Then #K = 0 7. Cycle instruction
WHILE [条件表达式] DOM (M = 1.2, 3) … Endm If the condition is met, run the program between the DOM in FINM (until the condition is not filled), otherwise it will be executed to execute the program behind endm
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.


















