Code to drive a CNC machine via a PC LPT port lookalike 25 pin 'D', experiment in 'PC/Mach3' replacement. Designed to compile and run on mbed LPC1768, Freescale KL25Z and Freescale KL46Z. Proved on LPC1768 and KL25Z, problem with serial port on KL46Z. Reads subset of 'G Codes' through usb/serial port and drives 3 stepper/servo drives for X, Y and Z, also similar Step/Dir outputs for spindle motor control. Emulates PC LPT, outputs 'charge pump', proved driving Seig KX3 CNC mill

Dependencies:   MODSERIAL mbed

History

CNC Machine driver, emulates PC LPT port, docs are wip default tip

2014-03-14, by JonFreeman [Fri, 14 Mar 2014 14:14:55 +0000] rev 3

CNC Machine driver, emulates PC LPT port, docs are wip


As used to produce Lissajous patterns for EiM articles. XYZ axis good, Axis A not implemented, spindle 'S' working. Using MODSERIAL, therefore no longer compatible with KL46Z, good for KL25Z and Mbed LPC1768

2014-02-20, by JonFreeman [Thu, 20 Feb 2014 09:27:18 +0000] rev 2

As used to produce Lissajous patterns for EiM articles. XYZ axis good, Axis A not implemented, spindle 'S' working. Using MODSERIAL, therefore no longer compatible with KL46Z, good for KL25Z and Mbed LPC1768


Currently creates 3 sets of Step and Dir signals for stepper motor drivers. Accepts via putty etc, as yet minimal set of 'G Codes' for CNC - G0, G1, G2 and G3. Still wip.

2014-02-06, by JonFreeman [Thu, 06 Feb 2014 08:45:02 +0000] rev 1

Currently creates 3 sets of Step and Dir signals for stepper motor drivers. Accepts via putty etc, as yet minimal set of 'G Codes' for CNC - G0, G1, G2 and G3. Still wip.


First wip, tested on KL25 and KL46

2014-01-31, by JonFreeman [Fri, 31 Jan 2014 11:16:21 +0000] rev 0

First wip, tested on KL25 and KL46