Giter Site home page Giter Site logo

Getting Data from G Code about webgcode HOT 6 CLOSED

nraynaud avatar nraynaud commented on July 18, 2024
Getting Data from G Code

from webgcode.

Comments (6)

nraynaud avatar nraynaud commented on July 18, 2024

Thank you. I have troubles understanding your question, could re-formulate it or give me some context please? There is a "Gcode" button in the top left corner of the app, does that answer your question ?

from webgcode.

alexsanjoseph avatar alexsanjoseph commented on July 18, 2024

Hi Raynaud, thanks for the quick reply.

I am looking for a G code data simulator to map G code and actual machine raw data. I see that your app is internally converting it G-Code into the tool path, but how do I get the data out of it? Can I get the data into something like the X, Y, Z coordinates and the Speeds/Feeds/Tool information etc?

from webgcode.

nraynaud avatar nraynaud commented on July 18, 2024

well, I have not developed that. What kind of file format do you envision?

from webgcode.

alexsanjoseph avatar alexsanjoseph commented on July 18, 2024

Please take a look at this.
https://www.npmjs.com/package/gcode-toolpath.

[ { motion: 'G0', v1: { x: 0, y: 0, z: 0 }, v2: { x: 0, y: 0, z: 6.35 } }, { motion: 'G0', v1: { x: 0, y: 0, z: 6.35 }, v2: { x: -12.7, y: 0, z: 0 } }, { motion: 'G0', v1: { x: -12.7, y: 0, z: 0 }, v2: { x: 0, y: 0, z: 2.54 } }, { motion: 'G1', v1: { x: 0, y: 0, z: 2.54 }, v2: { x: 0, y: 0, z: 0 } }, { motion: 'G2', v1: { x: 0, y: 0, z: 0 }, v2: { x: 0, y: 12.7, z: 0 }, v0: { x: 12.7, y: 0, z: 0 } }, { motion: 'G2', v1: { x: 0, y: 12.7, z: 0 }, v2: { x: 12.7, y: 0, z: 0 }, v0: { x: 0, y: 0, z: 0 } }, { motion: 'G2', v1: { x: 12.7, y: 0, z: 0 }, v2: { x: 0, y: -12.7, z: 0 }, v0: { x: 0, y: 0, z: 0 } }, { motion: 'G2', v1: { x: 0, y: -12.7, z: 0 }, v2: { x: -12.7, y: 0, z: 0 }, v0: { x: 0, y: 0, z: 0 } }, { motion: 'G1', v1: { x: -12.7, y: 0, z: 0 }, v2: { x: 0, y: 0, z: 2.54 } }, { motion: 'G0', v1: { x: 0, y: 0, z: 2.54 }, v2: { x: 0, y: 0, z: 6.35 } } ]

But this is fairly basic, unlike your app which can handle complex paths. And it internally has all the information required already. I was wondering if there was an easy way to expose it. Or would you would know another project that does this?

from webgcode.

nraynaud avatar nraynaud commented on July 18, 2024

ok, you want the parsed G-code ?
you can call evaluate() in here: https://github.com/nraynaud/webgcode/blob/gh-pages/webapp/cnc/gcode/parser.js

'text' is the g-code text.

from webgcode.

alexsanjoseph avatar alexsanjoseph commented on July 18, 2024

Thanks. I think that might answer the question, but I need to understand basics of javascript to figure out how to run that. I will get back to you once that is figured out!

from webgcode.

Related Issues (20)

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.