Using Marlin for Generic CNC Machine Control

From Open Source Ecology
Revision as of 21:08, 29 November 2019 by Marcin (talk | contribs) (→‎CNC Mill)
Jump to navigation Jump to search

Using Marlin for Machines other than 3D Printers

Marlin is the most common 3D printer firmware in the world.

It is useful to adapt it to other applications so that the toolchain for constructing new civilizations is Degenerate.

Examples

CNC Torch Table

Use Lulzbot Cura - and turn on loads such as spindle with D8, D9, D10. Use M42 for IO pin control - such as M42 P57 S255 for an 8 bit full on for pin 57.

For D10, turn duty cycle to on/off instead of the PWM preset. To do this, comment out PID temperature control to go into bang-bang (on/off) mode:

//#define PIDTEMP

Firmware had to be modified as in - Firmware Modification for CNC Torch Table


Now use:

  1. M106/M107 - turn D9 on/off
  2. M140 S80 - turn bed on to 80C. It should just stay on if there is no thermistor connected, reading 0C

For Pin I/O control - see G Codes in Marlin

Links