Skip to content

Repository files navigation

G-code VM

A G-code virtual machine and post-processing DSL.

Requirements

  • Ruby v3.3 to v4.0

Installation

To use this gem, include it in your Gemfile.

gem'gcode-vm',git: 'git@github.com:jtran/gcode-vm.git'

Then install it.

bundle install

Usage

First, make a transform file, my_transform.yml, that specifies how to transform a toolpath.

version: '1'transform:
# Strip line-ending characters.
- chomp# Change all B axis movements to D axis movements.
- name: rename_axisfrom: Bto: D

See examples/demo.yml for more transforms.

Then transform your G-code toolpath using your specification.

transform -t my_transform.yml thing.gcode > thing_transformed.gcode

Testing

rake test

About

G-code virtual machine and post-processing DSL

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages