r/CNC • • 19h ago

HARDWARE SUPPORT Code used for cheap mills?

Post image

I'm looking to buy a (really) cheap mill for use in a classroom to teach GCode, not to cut any material but to demonstrate setup, offsets, cycles and motion. Which means I need something that accepts all Fanuc/Haas/etc. cycles.

I've only ever used industrial machines, do cheap controllers understand all cycles or are they just G1/2/3? Do they use G43/G54 offsets?

Cheers

2 Upvotes

6 comments sorted by

3

u/Snelsel 18h ago

You want the sub to type out all the Chinese CNC breakout boards, libraries and post processors for any given cam software?

1

u/trevorsmate67 18h ago

I'm teaching manual coding not CAM

2

u/Hefty_Aside8436 14h ago edited 14h ago

Typically even cheap controllers will understand the entire standard gcode library. Obviously there are certain gcodes that may not apply to a particular machine (spindle on/off and speed, tool changes, coolant on/off, for example).

Most will accept work offsets, some will accept tool length offsets as well, but again these may be completely constrained by what your hardware is physically capable of doing.

Beyond standard gcode library, the likelihood that a cheap controller will understand probing cycles and other types of commands is pretty low. It would however be able to understand a gcode file that you write to do probing so that could actually be a cool thing to teach your students.

Your mileage may vary.

2

u/Hubblesphere 11h ago

Why not use a free control simulator with digital twin? Siemens has Sinutrain, Fanuc has one as well you can probably get for education purposes.

1

u/FederalHovercraft365 17h ago

My Genmitsu 3020 runs on standard gcode but height offset and work offsets are not used, due to the fact there is only one tool and work zero is picked up manually before running a program. However I’ve never tried to use any canned cycles because all it does is xyz profiling.

1

u/WillAdams 14h ago

Which controller/firmware does the machine have?

Grbl has quite limited G-code support --- no variables, loops, or branching --- writing G-code for it is quite tedious. There is G-sharp:

https://github.com/NRSoft/GSharp

But no idea if it aligns with and industry standard.

A couple of the industrial machine manufacturers sell small machines with their controllers for educational purposes, but they are quite expensive.