Generating GCODE with PHP

Recently I discovered a passion for machining and a craving for something analog, so I managed to clear a space in the garage and now have become the proud owner of a SIEG Lathe and Milling machine along with lots of tooling and other greasy parts. But now it is time to turn the SIEG Milling machine into a CNC Milling machine this means building stepper motor tentacles for the computer and installing LinuxCNC!

LinuxCNC rocks harder than a granny in a rocking chair but LinuxCNC likes GCode! and what is GCode ? it must be cool because it has Code in the name and it starts with G!

GCODE is the common name for the most widely used numerical control (NC) programming language. It is used mainly in computer-aided manufacturing to control automated machine tools. GCode is a language in which LinuxCNC is going to tell the stepper motor tentacles how to make something. The "how" is defined by instructions on where to move, how fast to move, and what path to move.

The first four general codes

G00 Rapid positioning
G01 Linear interpolation
G02 Circular interpolation, clockwise
G03 Circular interpolation, counterclockwise

But I would like to just type drawCircle with a few arguments ?

You can find the PHP GCode class in the Fabrication project

In steps PHP!

Output GCode

GCode is the Original G!

YouTube Twitter GitHub