Bird
0
0
CNC Programmingscripting~10 mins

G-code program structure in CNC Programming - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a G-code program with the correct program number.

CNC Programming
O[1] (Start of program)
Drag options to blanks, or click blank then click option'
A1001
BG01
CM30
DG90
Attempts:
3 left
💡 Hint
Common Mistakes
Using G-codes or M-codes instead of a program number.
Omitting the program number after 'O'.
2fill in blank
medium

Complete the code to set the machine to absolute positioning mode.

CNC Programming
[1] (Set absolute positioning)
Drag options to blanks, or click blank then click option'
AG91
BG90
CM03
DG00
Attempts:
3 left
💡 Hint
Common Mistakes
Using G91 which is relative positioning.
Confusing spindle start codes with positioning codes.
3fill in blank
hard

Fix the error in the code to properly end the program.

CNC Programming
M[1] (End of program)
Drag options to blanks, or click blank then click option'
A00
B03
C30
D05
Attempts:
3 left
💡 Hint
Common Mistakes
Using M00 which pauses but does not end the program.
Using spindle start codes like M03 instead of end codes.
4fill in blank
hard

Fill both blanks to move the tool rapidly to X=50 and Y=25.

CNC Programming
G[1] X[2] Y25
Drag options to blanks, or click blank then click option'
A00
B01
C50
D25
Attempts:
3 left
💡 Hint
Common Mistakes
Using G01 which is linear feed move instead of rapid.
Mixing up coordinate values for X and Y.
5fill in blank
hard

Fill all three blanks to set spindle speed to 1200 RPM and start clockwise rotation.

CNC Programming
S[1] M[2]
Drag options to blanks, or click blank then click option'
AM03
B1200
C30
DM05
Attempts:
3 left
💡 Hint
Common Mistakes
Using M05 which stops spindle instead of starting it.
Confusing spindle speed with feed rate codes.