Gcode interpreter and demultiplexer