# Rcode - gcode layer 2

**URL:** <https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310>\
**Category:** Software\
**Created:** [April 12, 2018, 4:15pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310 "2018-04-12T16:15:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodaxx](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/kodaxx/32/4722_2.png) [@kodaxx](https://forums.maslowcnc.com/u/kodaxx)\
**Post date:** [April 12, 2018, 4:15pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/1 "2018-04-12T16:15:17Z")

</div>

I realize this has no practical application - but when I went back to college recently we were manually writing lots of gcode and I created a very simple interpreter in Ruby to take methods I wrote and convert them over to gcode

> <https://github.com/kodaxx/Rcode/blob/master/README.md>

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [April 12, 2018, 4:36pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/2 "2018-04-12T16:36:36Z")

</div>

That’s very clean. There was some interest a while back in having an option in GroundControl to view the current gcode file in more human-friendly format, sort of the reverse of what you have here. Something along the lines of [this](https://www.warrensbrain.com/gcode-to-english-translator.html).

---

<div class="post-metadata">

**Author:** ![kodaxx](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/kodaxx/32/4722_2.png) [@kodaxx](https://forums.maslowcnc.com/u/kodaxx)\
**Post date:** [April 12, 2018, 4:43pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/3 "2018-04-12T16:43:38Z")

</div>

It probably wouldn’t be very challenging to do the reverse of what I have done here. To parse gcode and have it spit out something human friendly would be pretty easy I think

edit: in fact… here is a quick jsfiddle showing how simple it _could_ be: [https://jsfiddle.net/g1pcsbv1/30/](https://jsfiddle.net/g1pcsbv1/30/)  
Obviously you’d need to add support for more codes and do a few more checks, but this is totally possible.

As an example, type `G00 X2.5 Y1.67` into the box. It’s obviously assuming positive numbers and inches, but like I said…a few more checks and it could work.

---

<div class="post-metadata">

**Author:** ![mrfugu](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mrfugu/32/22_2.png) [@mrfugu](https://forums.maslowcnc.com/u/mrfugu)\
**Post date:** [April 12, 2018, 6:31pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/4 "2018-04-12T18:31:50Z")

</div>

go for it! not-enough-chars

---

<div class="post-metadata">

**Author:** ![kodaxx](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/kodaxx/32/4722_2.png) [@kodaxx](https://forums.maslowcnc.com/u/kodaxx)\
**Post date:** [April 12, 2018, 6:44pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/5 "2018-04-12T18:44:10Z")

</div>

I assume that `not-enough-chars` is an error you have received somewhere? If it is using Rcode, I’ll need more specifics. If it is using the jsfiddle - I’m not surprised lol. It’s in no way comprehensive or complete, nor is it intended to be

---

<div class="post-metadata">

**Author:** ![mrfugu](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mrfugu/32/22_2.png) [@mrfugu](https://forums.maslowcnc.com/u/mrfugu)\
**Post date:** [April 12, 2018, 6:48pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/6 "2018-04-12T18:48:56Z")

</div>

the forum requires 20 chars minimum to post.

---

<div class="post-metadata">

**Author:** ![jwolter](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jwolter/32/30787_2.png) [@jwolter](https://forums.maslowcnc.com/u/jwolter)\
**Post date:** [April 14, 2018, 1:25pm UTC](https://forums.maslowcnc.com/t/rcode-gcode-layer-2/3310/7 "2018-04-14T13:25:55Z")

</div>

As I discovered recently ([OnShape scripts to add features](https://forums.maslowcnc.com/t/onshape-scripts-to-add-features/3115/3?u=jwolter)), there are sneaky ways around the 20-character limit.
