0.0.2 • Published 5 months ago
@nebulaglitch/gcode v0.0.2
gcode
gcode is a library designed to help you programmatically generate command sequences for gcode CNC machines. It provides a set of classes representing various gcode commands, along with utility classes like CmdGroup for organizing commands and gcodePrinter for outputting the final command sequence in a format suitable for the machine.
Available Commands
Below is a list of the available commands. These can be found in the ./src/commands directory.
CommentCutCircleCutCircleCenterCutGCircleFileLoadPartFileInputJog2Jog3Jog4JogAJogBJogSpeedJogXJogYJogZMove2Move3Move5MoveBMoveSetSpeedMoveXMoveYMoveZPauseSetAbsoluteSetContinuousMovementSetOutputSwitchValAxisValCommValuesCutterParametersValuesDisplaySettingsZeroAZeroB
import { CmdGroup, GcodePrinter, MoveZ } from '@nebulaglitch/gcode';
const group = new CmdGroup('Test');
group.push(new MoveZ(0.332425334));
const output = GcodePrinter.print(group);
console.log('\n\' Test\nG1 Z0.3324\n');