<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>

[{'answer_id': 10574, 'author': 'Trish', 'author_id': 8884, 'author_profile': 'https://3dprinting.stackexchange.com/users/8884', 'pm_score': 5, 'selected': True, 'text': '<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>\n<h1>Step 1: Connection with USB</h1>\n<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>\n<p><a href="https://i.stack.imgur.com/e76LF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e76LF.png" alt="Windows Device Manager" /></a></p>\n<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>\n<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>\n<h1>Step 2: Using the COM-port</h1>\n<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>\n<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>\n<h2>Ultimaker Cura</h2>\n<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>\n<p><a href="https://i.stack.imgur.com/q9L10.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q9L10.png" alt="Cura GUI: Top toolbar" /></a></p>\n<p>After switching to <code>Monitor</code>, it will automatically connect to the Printer via the COM port, in my case 4.</p>\n<p><a href="https://i.stack.imgur.com/f7wtl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f7wtl.png" alt="Cura GUI: Monitor Interface" /></a></p>\n<p>Once more we test the connection via Home <a href="https://i.stack.imgur.com/h2eaI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h2eaI.png" alt="Home Cura" /></a> and then use the Send G-Code prompt, confirming lines via <code>Enter</code>.</p>\n<p><a href="https://i.stack.imgur.com/gKgaI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gKgaI.png" alt="Cura GUI: G-code Prompt" /></a></p>\n<h2>Repetier Host</h2>\n<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:\n<a href="https://i.stack.imgur.com/ONkso.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ONkso.png" alt="Repetier GUI: Connection Tab" /></a> <a href="https://i.stack.imgur.com/l7srk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l7srk.png" alt="Repetier GUI: Printer Tab" /></a><a href="https://i.stack.imgur.com/CT8kE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CT8kE.png" alt="Repetier GUI: Extruder Tab" /></a><a href="https://i.stack.imgur.com/e9ATK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e9ATK.png" alt="Repetier GUI: Printer Shape Tab" /></a></p>\n<p>Ok, we made our settings and saved via <code>OK</code>.</p>\n<p>Now, we press the Connect button on the left side of the menu:</p>\n<p><a href="https://i.stack.imgur.com/VOyRF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VOyRF.png" alt="Repetier GUI: Disconnected left side menu" /></a></p>\n<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>\n<p><a href="https://i.stack.imgur.com/3jkbn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3jkbn.png" alt="Repetier Host GUI: Connected left side menu" /></a>\n<a href="https://i.stack.imgur.com/EFNtD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EFNtD.png" alt="Repetier Host Log snipped - very detailed" /></a></p>\n<p>On the right side, we now can choose the Tab <code>Manual Control</code>\n<a href="https://i.stack.imgur.com/zqhoY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zqhoY.png" alt="Repetier Host: Right side of Interface" /></a></p>\n<p>Before sending any commands, it is a good idea to press the Home <a href="https://i.stack.imgur.com/yXA1h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/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>\n<p><a href="https://i.stack.imgur.com/uwa5V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uwa5V.png" alt="send G-Code line" /></a>\n<a href="https://i.stack.imgur.com/iZr7R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iZr7R.png" alt="Repetier Log" /></a></p>\n<h2>Pronterface</h2>\n<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>\n<p><a href="https://i.stack.imgur.com/8qefc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8qefc.png" alt="Pronterface GUI extract: connect button" /></a></p>\n<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>\n<p><a href="https://i.stack.imgur.com/GhATh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GhATh.png" alt="Pronterface GUI extract: after connecting" /></a>\n<a href="https://i.stack.imgur.com/qxxUI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qxxUI.png" alt="Pronterace Log" /></a></p>\n<p>Below the log, we find the input for commands, and if we send a command, we get a log entry of it:</p>\n<p><a href="https://i.stack.imgur.com/LMwp9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LMwp9.png" alt="Pronterface Lower Right Command Prompt" /></a></p>\n'}, {'answer_id': 10582, 'author': '0scar', 'author_id': 5740, 'author_profile': 'https://3dprinting.stackexchange.com/users/5740', 'pm_score': 3, 'selected': False, 'text': '<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>\n\n<h2>OctoPrint</h2>\n\n<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>\n\n<p><a href="https://i.stack.imgur.com/8X5EO.png" rel="noreferrer" title="OctoPrint terminal interface"><img src="https://i.stack.imgur.com/8X5EO.png" alt="OctoPrint terminal interface" title="OctoPrint terminal interface"></a></p>\n'}]
['https://3dprinting.stackexchange.com/questions/10573', 'https://3dprinting.stackexchange.com', 'https://3dprinting.stackexchange.com/users/5740/']