Coder Social home page Coder Social logo

rcode's Introduction

Rcode

Readable Gcode

Rcode is a (thus far incomplete) human readable layer on top of standard Gcode, written in Ruby. Programs are written using standard Rcode methods and the converted to Gcode via the context menu. For those that manually write Gcode, this should be a simple and convenient way to generate those programs. All standard Ruby scripting is also supported, so one could build sub-programs by creating a Ruby method.

Basic Use

Use the Rcode methods to create your desired tool path. Then:

  • Save file as>filename.rb
  • Right-click>Send To>Convert to Gcode

example:

program(1) #Square

#Square sub-program
def square
  feed(2.0)
  move(y:1.1875)
  move(x:1.1875)
  move(y:0.3125)
  move(x:0.3125)
end

#Square program
home
abs
clear
tool(1)
#origin (missing)
#tool geometry (missing)
speed(2000)
rapid(x:0., y:0., z:0.1)
rapid(x:0.3125, y:0.3125)
coolant("on")
cut(z:-0.11, f:0.5)
square
cut(z:-0.22, f:0.5)
square
cut(z:-0.33, f:0.5)
square
cut(z:-0.44, f:0.5)
square
rapid(z:2.0)
coolant("off")
home
abs
clear
stop

Current Rcode Methods

All codes will have detailed docstrings and examples.

Preparatory Codes

  • program(number)
  • home
  • abs
  • inc
  • clear
  • done
  • coolant(state)

Spindle/Speeds/Feeds

  • tool(number)
  • speed(rpm)
  • stop
  • feed(ipm)

Movement

  • dwell(seconds)
  • rapid(x:0, y:0, z:0)
  • move(x:0, y:0, z:0)
  • cut(z:0, f:0)

Installation

The easiest method to install Rcode is with the installer located in the dist folder

  • Install Ruby (if you do not have it already)
  • Run the rcode.msi program from the dist folder

TODO

Add more methods

Credits

This software was developed by Spencer Kuzara while attending Sheridan College Machine Tool Program.

rcode's People

Contributors

kodaxx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

4mypal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.