Un known G-code

Ive been using Fusion for my cad design and cam toolchain for a Genmitsu 4030 router. I am also using G-code Sender for my control software with GRBL G-code version. I have also been using VS code to view my .nc files. in every post that I have created I have several g-codes that Gcode sender does not recognize, and I have not been able to find out what the G-code represents
1007_2_2D Contour1_T4.nc (7.1 KB)

as a reference : (1002)
G90 (G94)
G17
G20
(Contour1)
T12
(CHANGE TO T12)
M3 S2050
G17 G90 (G94)
G54
What is G94, I commented it out because it causes an alarm. Also the spindle was not coming on, so I changed " S2050 M3" to ’ M3 S2050’…

You will need to use a post-processor which limits the G-code output to that which is supported by your machine’s firmware.

Parentheses mark (comments).

G90 --- Switch to absolute distance mode 
G17 --- Select the XY plane (for arcs) 
G20 --- units will be in inches 
T12 --- select tool #12
M3 --- spindle direction clockwise
S2050 --- at speed 2,05 RPM
G54 ---  first user Work Coordinate System (G53 is machine coordinates)

G94 is “Set units per minute feed rate mode”

For more on G-code see:

2 Likes

Thank you sir.
Also at the end of each file an M30 : delete file is implemented.. I commented this out as well. It pays to look at your .nc files before you try to use them. VS code has an extension for Marlin G-code flavor which is very close to GRBL G-code flavor..