Git Product home page Git Product logo

gcode-to-abb's Introduction

GCode-to-ABB

A python implementation for transforming a GCode file to a ABB robot specific movements.

ABB robot drawing.gif
Result of the script

Introduction

This repository contains a Python script that generates the points and movement commands for ABB robots from a GCode of a 2D object.

How to use

Open a terminal and run the python script with the file you want to convert with the -i option. You can also change the output file names with the -o option.

python GCode_to_Robtargets.py -i inputfile
python GCode_to_Robtargets.py -i inputfile -o outputfile

As a result you will obtain two files containing all the points and the lineal movements that will be performed by the robot. You just should load these lines to your ABB robot´s program and call them.

You can also specify the rotation and configuration of the robot axis with the -r and -c options respectively.

python GCode_to_Robtargets.py -i inputfile -r [-1,0,0,0]
python GCode_to_Robtargets.py -i inputfile -c [-1,0,1,0]

Future functionalities

In the current version, the script only parses G00 and G01 (linear movements). In future releases I would like to add more GCode commands (such as G02, G03 (arc movements) and G04 (dwell)).

Requirements

You should install the following:

  • Python
  • Matplotlib
  • Numpy
  • Pandas
  • Mpl_toolkits

For Developers and coders!

I am aware that some parts could be optimized or are redundant for such small program. However I decided to make it as easy and simple as possible for anybody who is new to programming.

gcode-to-abb's People

Contributors

daguirreag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.