<p>In addition to <a href="https://3dprinting.stackexchange.com/a/10574/5740">this answer</a>, the OctoPrint 3D print server software contains a terminal which you can use to send G-code commands from a browser:</p>

<h2>OctoPrint</h2>

<p>In the bottom string input box (under the check mark items) you put in a G-code command, which will be send to the printer when you hit the <em>Send</em> button. If the printer gives a reply to that command, it will be displayed in the log window above the check mark interface items.</p>

<p><a href="https://i.sstatic.net/8X5EO.png" rel="noreferrer" title="OctoPrint terminal interface"><img src="https://i.sstatic.net/8X5EO.png" alt="OctoPrint terminal interface" title="OctoPrint terminal interface"></a></p>

CC BY-SA 4.0
2019-07-14T02:09:09.880Z
2019-07-14T02:09:09.880Z
0scar
<p>There are several programs that could serve as a console to connect to a printer, put let's start somewhere: the USB connection.</p>
<h1>Step 1: Connection with USB</h1>
<p>When connecting the printer via USB for the first time, we will get a notification that some unknown item is connected. If we use windows we can learn what device it decided we now have via the <code>device manager</code> (<code>Windows Key</code> then typing in <code>manager</code> and <code>Enter</code>). It should be a COM Port as this picture shows.</p>
<p><a href="https://i.sstatic.net/e76LF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e76LF.png" alt="Windows Device Manager" /></a></p>
<p>In this case, we have connected to <strong><code>COM4</code></strong>. To change the COM port, we can do so via a <code>Rightclick</code>-&gt;<code>properties</code>, then the <code>connection settings</code> and <code>advanced</code>. In the new window, we can change the COM port number to anything from 1 to 256, but it is recommended to keep the number somewhat low.</p>
<p>Make sure you run the printer's power supply <strong>and</strong> the connection via USB, as you can't use motor control commands if you have the power supply for the printer off.</p>
<h1>Step 2: Using the COM-port</h1>
<p>Now, we need a program that can use the COM port to connect to the printer. There are, as said, several out there. One such is <strong><a href="https://www.repetier.com/" rel="nofollow noreferrer">Repetier Host</a></strong>, which comes with slicer and a good graphical interface. Another is <strong><a href="https://ultimaker.com/software/ultimaker-cura" rel="nofollow noreferrer">Ultimaker Cura</a></strong>, which has the same capacities but lacks logging of all the commands exchanged. Because many are familiar with it as a slicer, I will look at it first. As a third option, I will take a look at <strong><a href="https://www.pronterface.com/" rel="nofollow noreferrer">Pronterface</a></strong>.</p>
<p>CAVEAT: Only <strong>one</strong> program that actively uses the COM port can be properly run at the same time, as the first program accessing the port will claim all uses for the COM port till it is shut down - any program or even other instances of the same program trying to access the port after that will have no control of the port.</p>
<h2>Ultimaker Cura</h2>
<p>After launching Ultimaker Cura, choose your printer. many printers are available as presets by now, so just import the printer you use or make a custom profile. At the moment the latest version of Cura is 4.1.0, and will look like this:</p>
<p><a href="https://i.sstatic.net/q9L10.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/q9L10.png" alt="Cura GUI: Top toolbar" /></a></p>
<p>After switching to <code>Monitor</code>, it will automatically connect to the Printer via the COM port, in my case 4.</p>
<p><a href="https://i.sstatic.net/f7wtl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/f7wtl.png" alt="Cura GUI: Monitor Interface" /></a></p>
<p>Once more we test the connection via Home <a href="https://i.sstatic.net/h2eaI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/h2eaI.png" alt="Home Cura" /></a> and then use the Send G-Code prompt, confirming lines via <code>Enter</code>.</p>
<p><a href="https://i.sstatic.net/gKgaI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gKgaI.png" alt="Cura GUI: G-code Prompt" /></a></p>
<h2>Repetier Host</h2>
<p>After running Repetier Host the first time, you need to configure your printer. <code>Ctrl</code>+<code>P</code> opens the config window for the printer. We need to know the Baud Rate of our printer, so I looked up the documentation of my Ender3, which told me 115200 is the right setting. Most printers seem to run on this setting. The other tabs decide the speeds, extruder number and limits and the bed shape. The rest isn't needed for this. My settings for the Ender3 are these:
<a href="https://i.sstatic.net/ONkso.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ONkso.png" alt="Repetier GUI: Connection Tab" /></a> <a href="https://i.sstatic.net/l7srk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/l7srk.png" alt="Repetier GUI: Printer Tab" /></a><a href="https://i.sstatic.net/CT8kE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/CT8kE.png" alt="Repetier GUI: Extruder Tab" /></a><a href="https://i.sstatic.net/e9ATK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e9ATK.png" alt="Repetier GUI: Printer Shape Tab" /></a></p>
<p>Ok, we made our settings and saved via <code>OK</code>.</p>
<p>Now, we press the Connect button on the left side of the menu:</p>
<p><a href="https://i.sstatic.net/VOyRF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/VOyRF.png" alt="Repetier GUI: Disconnected left side menu" /></a></p>
<p>It should change to the blue Disconnect button and display other parts of the print now, showing that we have connected. Note that at the bottom of the screen a log is filled with all the commands and exchanges.</p>
<p><a href="https://i.sstatic.net/3jkbn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3jkbn.png" alt="Repetier Host GUI: Connected left side menu" /></a>
<a href="https://i.sstatic.net/EFNtD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EFNtD.png" alt="Repetier Host Log snipped - very detailed" /></a></p>
<p>On the right side, we now can choose the Tab <code>Manual Control</code>
<a href="https://i.sstatic.net/zqhoY.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zqhoY.png" alt="Repetier Host: Right side of Interface" /></a></p>
<p>Before sending any commands, it is a good idea to press the Home <a href="https://i.sstatic.net/yXA1h.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yXA1h.png" alt="Home" /></a> button. This also serves as an extra test to see if the printer is connected correctly. Now we can use the Prompt G-Code to send our commands. The commands will be put into the log below.</p>
<p><a href="https://i.sstatic.net/uwa5V.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/uwa5V.png" alt="send G-Code line" /></a>
<a href="https://i.sstatic.net/iZr7R.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iZr7R.png" alt="Repetier Log" /></a></p>
<h2>Pronterface</h2>
<p>This is the first time that I used <a href="https://www.pronterface.com/" rel="nofollow noreferrer">Pronterface</a>. The first thing to do after downloading the Printrun package and running the Pronterface application is to press <code>Port</code>, then set the right Baudrate (115200 seems to work for many machines) and press <code>connect</code>.</p>
<p><a href="https://i.sstatic.net/8qefc.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/8qefc.png" alt="Pronterface GUI extract: connect button" /></a></p>
<p>The GUI will saturate and the right log will show lots of things tested in connection. Note that in the lower right of the GUI, there is a temperature curve log, which can be very handy for troubleshooting, as it shows the change over a little time.</p>
<p><a href="https://i.sstatic.net/GhATh.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GhATh.png" alt="Pronterface GUI extract: after connecting" /></a>
<a href="https://i.sstatic.net/qxxUI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qxxUI.png" alt="Pronterace Log" /></a></p>
<p>Below the log, we find the input for commands, and if we send a command, we get a log entry of it:</p>
<p><a href="https://i.sstatic.net/LMwp9.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LMwp9.png" alt="Pronterface Lower Right Command Prompt" /></a></p>

CC BY-SA 4.0
2019-07-13T16:10:42.957Z
2022-01-11T14:18:56.710Z
2022-01-11T14:18:56.710Z
Trish
<p>I read that G-code commands can be sent through a console/terminal over USB. What is a console/terminal and how do you use that?</p>

<g-code><software><knowledgebase><usb>
What is a printer console/terminal?
0scar
# What is a printer console/terminal?

(Asked by: username_0 on 2019-07-13)

I read that G-code commands can be sent through a console/terminal over USB. What is a console/terminal and how do you use that?

**Tags:** g-code, software, knowledgebase, usb

---

## 2 answers

### Answer by username_1 on 2019-07-13. Score: 14 | Accepted answer

There are several programs that could serve as a console to connect to a printer, put let's start somewhere: the USB connection.

# Step 1: Connection with USB

When connecting the printer via USB for the first time, we will get a notification that some unknown item is connected. If we use windows we can learn what device it decided we now have via the `device manager` (`Windows Key` then typing in `manager` and `Enter`). It should be a COM Port as this picture shows.

[![Windows Device Manager](https://i.sstatic.net/e76LF.png)](https://i.sstatic.net/e76LF.png)

In this case, we have connected to **`COM4`**. To change the COM port, we can do so via a `Rightclick`->`properties`, then the `connection settings` and `advanced`. In the new window, we can change the COM port number to anything from 1 to 256, but it is recommended to keep the number somewhat low.

Make sure you run the printer's power supply **and** the connection via USB, as you can't use motor control commands if you have the power supply for the printer off.

# Step 2: Using the COM-port

Now, we need a program that can use the COM port to connect to the printer. There are, as said, several out there. One such is **[Repetier Host](https://www.repetier.com/)**, which comes with slicer and a good graphical interface. Another is **[Ultimaker Cura](https://ultimaker.com/software/ultimaker-cura)**, which has the same capacities but lacks logging of all the commands exchanged. Because many are familiar with it as a slicer, I will look at it first. As a third option, I will take a look at **[Pronterface](https://www.pronterface.com/)**.

CAVEAT: Only **one** program that actively uses the COM port can be properly run at the same time, as the first program accessing the port will claim all uses for the COM port till it is shut down - any program or even other instances of the same program trying to access the port after that will have no control of the port.

## Ultimaker Cura

After launching Ultimaker Cura, choose your printer. many printers are available as presets by now, so just import the printer you use or make a custom profile. At the moment the latest version of Cura is 4.1.0, and will look like this:

[![Cura GUI: Top toolbar](https://i.sstatic.net/q9L10.png)](https://i.sstatic.net/q9L10.png)

After switching to `Monitor`, it will automatically connect to the Printer via the COM port, in my case 4.

[![Cura GUI: Monitor Interface](https://i.sstatic.net/f7wtl.png)](https://i.sstatic.net/f7wtl.png)

Once more we test the connection via Home [![Home Cura](https://i.sstatic.net/h2eaI.png)](https://i.sstatic.net/h2eaI.png) and then use the Send G-Code prompt, confirming lines via `Enter`.

[![Cura GUI: G-code Prompt](https://i.sstatic.net/gKgaI.png)](https://i.sstatic.net/gKgaI.png)

## Repetier Host

After running Repetier Host the first time, you need to configure your printer. `Ctrl`+`P` opens the config window for the printer. We need to know the Baud Rate of our printer, so I looked up the documentation of my Ender3, which told me 115200 is the right setting. Most printers seem to run on this setting. The other tabs decide the speeds, extruder number and limits and the bed shape. The rest isn't needed for this. My settings for the Ender3 are these:
[![Repetier GUI: Connection Tab](https://i.sstatic.net/ONkso.png)](https://i.sstatic.net/ONkso.png) [![Repetier GUI: Printer Tab](https://i.sstatic.net/l7srk.png)](https://i.sstatic.net/l7srk.png)[![Repetier GUI: Extruder Tab](https://i.sstatic.net/CT8kE.png)](https://i.sstatic.net/CT8kE.png)[![Repetier GUI: Printer Shape Tab](https://i.sstatic.net/e9ATK.png)](https://i.sstatic.net/e9ATK.png)

Ok, we made our settings and saved via `OK`.

Now, we press the Connect button on the left side of the menu:

[![Repetier GUI: Disconnected left side menu](https://i.sstatic.net/VOyRF.png)](https://i.sstatic.net/VOyRF.png)

It should change to the blue Disconnect button and display other parts of the print now, showing that we have connected. Note that at the bottom of the screen a log is filled with all the commands and exchanges.

[![Repetier Host GUI: Connected left side menu](https://i.sstatic.net/3jkbn.png)](https://i.sstatic.net/3jkbn.png)
[![Repetier Host Log snipped - very detailed](https://i.sstatic.net/EFNtD.png)](https://i.sstatic.net/EFNtD.png)

On the right side, we now can choose the Tab `Manual Control`
[![Repetier Host: Right side of Interface](https://i.sstatic.net/zqhoY.png)](https://i.sstatic.net/zqhoY.png)

Before sending any commands, it is a good idea to press the Home [![Home](https://i.sstatic.net/yXA1h.png)](https://i.sstatic.net/yXA1h.png) button. This also serves as an extra test to see if the printer is connected correctly. Now we can use the Prompt G-Code to send our commands. The commands will be put into the log below.

[![send G-Code line](https://i.sstatic.net/uwa5V.png)](https://i.sstatic.net/uwa5V.png)
[![Repetier Log](https://i.sstatic.net/iZr7R.png)](https://i.sstatic.net/iZr7R.png)

## Pronterface

This is the first time that I used [Pronterface](https://www.pronterface.com/). The first thing to do after downloading the Printrun package and running the Pronterface application is to press `Port`, then set the right Baudrate (115200 seems to work for many machines) and press `connect`.

[![Pronterface GUI extract: connect button](https://i.sstatic.net/8qefc.png)](https://i.sstatic.net/8qefc.png)

The GUI will saturate and the right log will show lots of things tested in connection. Note that in the lower right of the GUI, there is a temperature curve log, which can be very handy for troubleshooting, as it shows the change over a little time.

[![Pronterface GUI extract: after connecting](https://i.sstatic.net/GhATh.png)](https://i.sstatic.net/GhATh.png)
[![Pronterace Log](https://i.sstatic.net/qxxUI.png)](https://i.sstatic.net/qxxUI.png)

Below the log, we find the input for commands, and if we send a command, we get a log entry of it:

[![Pronterface Lower Right Command Prompt](https://i.sstatic.net/LMwp9.png)](https://i.sstatic.net/LMwp9.png)


---

### Answer by username_0 on 2019-07-14. Score: 6

In addition to [this answer](https://3dprinting.stackexchange.com/a/10574/5740), the OctoPrint 3D print server software contains a terminal which you can use to send G-code commands from a browser:

## OctoPrint

In the bottom string input box (under the check mark items) you put in a G-code command, which will be send to the printer when you hit the *Send* button. If the printer gives a reply to that command, it will be displayed in the log window above the check mark interface items.

[![OctoPrint terminal interface](https://i.sstatic.net/8X5EO.png "OctoPrint terminal interface")](https://i.sstatic.net/8X5EO.png "OctoPrint terminal interface")


---

