# Editing GCode on the fly

**URL:** <https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820>\
**Category:** Original/PRO Series (Buildbotics) (Gen 1)\
**Created:** [August 8, 2023, 11:55pm UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820 "2023-08-08T23:55:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cluksha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cluksha/32/24935_2.png) [@cluksha](https://forum.onefinitycnc.com/u/cluksha)\
**Post date:** [August 8, 2023, 11:55pm UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/1 "2023-08-08T23:55:35Z")

</div>

Is there a way to break into the controller software and allow the use of more than just the onefinity dashboard?

Second and really much more important to me right now - is there a way to pause and edit GCode on the fly during a carve ? For example if the feed rate is too low - instead of starting all over again from scratch, I would prefer to be able to pause the process, change the feed rate and continue on. Otherwise I need to pause, take not of what line I am on, go back to my original file on my computer, edit the file to change the speed, remove all the lines already processed, transfer the file via usb for a third time, then load the file and run. Crazy process.

Now if I could at least edit the file on the controller then I wouldn’t have to go back to my house to edit all the info. Did I mention my design computer is in the house two blocks away and the cnc in a garage that I have to drive to from the house? Now maybe you can see why I would want to do this 🙂  
Thanks all.

Blessings,  
Chris

---

<div class="post-metadata">

**Author:** ![OnefinityCNC](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/onefinitycnc/32/7_2.png) [@OnefinityCNC](https://forum.onefinitycnc.com/u/OnefinityCNC)\
**Post date:** [August 9, 2023, 12:27am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/2 "2023-08-09T00:27:40Z")

</div>

No. But the elite machines with the masso controller would allow you to do this.

---

<div class="post-metadata">

**Author:** ![cluksha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cluksha/32/24935_2.png) [@cluksha](https://forum.onefinitycnc.com/u/cluksha)\
**Post date:** [August 9, 2023, 12:47am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/3 "2023-08-09T00:47:22Z")

</div>

Thank you. Maybe someone will come up with a work around 😉 It would cost less to build a new controller I guess.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [August 9, 2023, 5:05am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/4 "2023-08-09T05:05:23Z")

</div>

Hey Chris,

I think changing feed rate on the fly is the most-missed capability on the Onefinity Original Series Controller / Buildbotics Controller.

You can, however, operate the Onefinity Original Series Controller from a remote location. The User Interface is a web page that you can control from any web browser on a computer connected remotely, and you can ssh into the controller to control the system from remote.

Most users connect a remote computer via an Ethernet cable or via WiFi locally, but of course there exist possibilities to export the ports for the UI and the ssh to the internet so that you can reach it from anywhere in the world. It’s a question of how to allow remote access on your internet router (you need some kind of internet access in your workshop of course).

This is the advantage over the Elite/Masso.

---

<div class="post-metadata">

**Author:** ![cluksha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cluksha/32/24935_2.png) [@cluksha](https://forum.onefinitycnc.com/u/cluksha)\
**Post date:** [August 9, 2023, 11:23am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/5 "2023-08-09T11:23:02Z")

</div>

Maybe someone with more technically ability will someday crack it open and show us all how to make it work.

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [August 9, 2023, 11:32am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/6 "2023-08-09T11:32:25Z")

</div>

Hey Chris,

> [@cluksha](#):
>
> Maybe someone with more technically ability will someday crack it open and show us all how to make it work.

you mean changing feedrate on the fly? Someone with more technically ability is not the problem. What would be needed is that someone **wants** to do it, someone that has a reason to do this work. The creators of the Buildbotics Controller [seem not to do it soon](https://forum.buildbotics.com/viewtopic.php?f=9&t=170&p=829&hilit=feed+rate#p384)..

I would not wait for it on the Onefinity/Buildbotics Controller. It may be…

> [@Change feed rate on the fly](https://forum.onefinitycnc.com/t/change-feed-rate-on-the-fly/19698/2):
>
> …so popular, this request ([#894](https://forum.onefinitycnc.com/t/a-way-to-increase-speed/894), [#1014](https://forum.onefinitycnc.com/t/adjustable-feedrate-and-spindle-speed/1014), [#6972](https://forum.onefinitycnc.com/t/ability-to-control-speed-while-cutting/6972), [#15007](https://forum.onefinitycnc.com/t/increasing-ipm-on-the-fly/15007), [#19353](https://forum.onefinitycnc.com/t/feed-rate-change-on-the-fly/19353) and now [#19698](https://forum.onefinitycnc.com/t/change-feed-rate-on-the-fly/19698))! 🙂 And very understandable as so many CNC controllers support it.
> 
> Unfortunately the lack of this capability is [inherited from upstream](https://forum.buildbotics.com/viewtopic.php?f=9&t=170&p=829&hilit=feed+rate#p384) ☹
> 
> > [@Feed rate change on the fly](https://forum.onefinitycnc.com/t/feed-rate-change-on-the-fly/19353/2):
> >
> > The new Onefinity Elite Series with [Masso G3 Touch Controller](https://www.masso.com.au/product/masso-touch-mill-router-cnc-controller/) have this feature.
> 
> However [changing spindle speed](https://forum.onefinitycnc.com/t/hitachi-vfd-connection/7328/29#temporarily-overriding-modbus-control-on-omron-and-hitachi-vfds-1) in the middle of a program is possible with some VFDs

> [@349iq2345](#):
>
> For me, there is no reason to use the Onefinity Controller (or the [Buildbotics](https://buildbotics.com/) Controller, from which it is a hardware and software [fork](https://en.wikipedia.org/wiki/Fork_(software_development))) because there is [LinuxCNC](https://www.linuxcnc.org) and I know how to build PCs.
> 
> LinuxCNC is very evolved and powerful nowadays. It evolved from the [NIST](https://en.wikipedia.org/wiki/National_Institute_of_Standards_and_Technology)’s [Enhanced Machine Controller](https://web.archive.org/web/20101020051846/http://www.isd.mel.nist.gov/projects/_emc/) (EMC) project (See [EMC History](http://linuxcnc.org/docs/html/common/emc-history.html))

---

<div class="post-metadata">

**Author:** ![cluksha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cluksha/32/24935_2.png) [@cluksha](https://forum.onefinitycnc.com/u/cluksha)\
**Post date:** [August 9, 2023, 11:59am UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/7 "2023-08-09T11:59:47Z")

</div>

8 am not a very proficient Linux user but I will certainly look it up. Maybe it will help keep my mind from going feeble as I get older 😁

---

<div class="post-metadata">

**Author:** ![349iq2345](https://avatars.discourse-cdn.com/v4/letter/3/bb73d2/32.png) [@349iq2345](https://forum.onefinitycnc.com/u/349iq2345)\
**Post date:** [August 9, 2023, 12:39pm UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/8 "2023-08-09T12:39:33Z")

</div>

Hey Chris,

> [@cluksha](#):
>
> Now if I could at least edit the file on the controller then I wouldn’t have to go back to my house to edit all the info.

besides remote control of UI and ssh login via Ethernet or WiFi, the Onefinity/Buildbotics Controller also allows to open a terminal window by typing Ctrl-T Ctrl-C on the UI (you need to attach a USB keyboard to type this). You can exit this shell with “exit”. In this terminal window, you can become root with the command `"sudo -i"` and then you can use the “[nano](https://en.wikipedia.org/wiki/GNU_nano)” text editor which is installed. With this text editor, you can edit your g-code file in the machine and re-run it from the UI again then.

The g-code files reside in `/var/lib/bbctrl/upload`

Alternatively, you could have a laptop with your CAD/CAM software with you in the workshop, and a short ethernet cable, and run the Onefinity UI on this laptop too (by visiting [http://onefinity.local](http://onefinity.local) in the laptop’s web browser). You could then adjust the g-code file on your CAD/CAM software (if you don’t like editing raw g-code with a text editor). When using the UI in a web browser on the laptop, you don’t need a USB drive for uploading of a file into the Onefinity Controller, you simply choose the upload button on the UI and a file dialog which shows your laptop’s filesystem opens, where you can select your g-code file.

Running the Onefinity UI on a computer connected via WiFi or Ethernet also has the advantage that you can see the **3D toolpath simulation** , which you don’t see on the touch display on the machine:

> [@I need a shopping list for ordering my first CNC](https://forum.onefinitycnc.com/t/i-need-a-shopping-list-for-ordering-my-first-cnc/19705/6):
>
> But you can **get by completely without connecting a monitor directly to the Onefinity controller** and **skip buying** the touch monitor, since the User Interface can be controlled completely from any **remote computer**. This even has the advantage that you can see the [CAMotics.org](http://CAMotics.org) 3D toolpath simulation that is not available on a monitor directly connected to the Onefinity controller, as the internal Raspberry Pi 3 has no 3D graphics acceleration package installed. In the case you use a remote computer, you need no USB drive since you can simply click the open file button and you will be able to select a file from your computer.
> 
> ![Flattening_File](https://us1.discourse-cdn.com/flex022/uploads/onefinitycnc/original/3X/5/4/54649f2849eb7c62768c93b8061174d46e432213.png)
> 
> Image: The 3D toolpath simulation when viewed on a remote computer.

Welcome to the forum!

---

<div class="post-metadata">

**Author:** ![cluksha](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.onefinitycnc.com/cluksha/32/24935_2.png) [@cluksha](https://forum.onefinitycnc.com/u/cluksha)\
**Post date:** [August 10, 2023, 6:50pm UTC](https://forum.onefinitycnc.com/t/editing-gcode-on-the-fly/21820/9 "2023-08-10T18:50:20Z")

</div>

Thank you for the extra added info. I am so new to this but trying to jump in both feet and not break my legs 🙂 So far its an interesting ride.
