0
0
CNC Programmingscripting~10 mins

Post-processor and G-code output 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 the G-code program with the correct command.

CNC Programming
write_line('[1]')  # Start of G-code program
Drag options to blanks, or click blank then click option'
AM30
BG00
CG90
DG21
Attempts:
3 left
💡 Hint
Common Mistakes
Using M30 which ends the program instead of starting it.
Using G00 which is a rapid move command, not a setup command.
2fill in blank
medium

Complete the code to output a rapid move to X=10, Y=20.

CNC Programming
write_line('G00 X[1] Y20')
Drag options to blanks, or click blank then click option'
A10
B20
C30
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing X and Y values.
Using zero instead of the correct coordinate.
3fill in blank
hard

Fix the error in the code to output a spindle start command at 1000 RPM.

CNC Programming
write_line('M03 S[1]')
Drag options to blanks, or click blank then click option'
A500
B1500
C1000
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using zero speed which stops the spindle.
Using a speed different from 1000 RPM.
4fill in blank
hard

Fill both blanks to output a linear move to X=50 and feedrate of 1500.

CNC Programming
write_line('G01 X[1] F[2]')
Drag options to blanks, or click blank then click option'
A50
B1500
C1000
D25
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up feedrate and coordinate values.
Using incorrect feedrate values.
5fill in blank
hard

Fill all three blanks to output a program end with spindle stop and coolant off.

CNC Programming
write_line('[1]')
write_line('[2]')
write_line('[3]')
Drag options to blanks, or click blank then click option'
AM05
BM09
CM30
DM03
Attempts:
3 left
💡 Hint
Common Mistakes
Using M03 which starts the spindle instead of stopping it.
Ending program before stopping spindle and coolant.