Skip to content
/ gcode-vm Public

G-code virtual machine and post-processing DSL

License

Notifications You must be signed in to change notification settings

jtran/gcode-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-code VM

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

Requirements

  • Ruby v3.0 to v3.3

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_axis
    from: B
    to: 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

License

Stars

Watchers

Forks

Packages

No packages published