Comments (6)
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.
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.
well, I have not developed that. What kind of file format do you envision?
from webgcode.
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.
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.
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)
- G28 HOT 1
- Login does not work for http://nraynaud.github.io/webgcode/webapp/visucamTest.html#/ HOT 2
- Automatic line numbering? HOT 1
- added to the Alternativeto.net
- [Question] Octoprint-Plugin?
- Feature to upload files? HOT 2
- Does not understand G53 HOT 4
- Doesn't understand G28
- Add "Upload file" button
- Cannot zoom with mouse wheel
- Feature Request: Support for Marlin G5 Cubic Bezier Spline HOT 3
- Timeout loading js libraries HOT 1
- Add toolchange options HOT 1
- Great job on G2 HOT 1
- Dual-license: how does it work? HOT 1
- Chrome blocks Workers HOT 1
- Load Gcode
- Feature Request: Support for G2/G3 full circles with P codes
- Offline version of g-code simulator HOT 2
- Fails with '%' in comment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webgcode.