Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
3D printing with RepRap Cookbook

You're reading from   3D printing with RepRap Cookbook Over 80 fast-paced recipes to help you create and print 3D models

Arrow left icon
Product type Paperback
Published in Jun 2014
Publisher
ISBN-13 9781782169888
Length 346 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Salinas Salinas
Author Profile Icon Salinas
Salinas
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

3D Printing with RepRap Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with 3D Printing 2. Optimizing the Printing Process FREE CHAPTER 3. Scanning and Printing with a Higher Resolution 4. Modeling and Printing with Precision 5. Manipulating Meshes and Bridges 6. Making the Impossible 7. Texture – the Good and the Bad 8. Troubleshooting Issues in 3D Modeling 9. Troubleshooting Issues in 3D Printing Understanding and Editing Firmware Taking a Closer Look at G-code Filament Options for RepRap Printers Index

Basic G-code commands


Most people do not need to learn G-code. This is why we have a slicer to do all of the work. However, there are a handful of G-code commands that are useful to know. All of these commands are useful while printing and can be entered by way of the host command line. Refer to the following commands:

  • G1: This command designates a controlled move. Here's an example of the G1 command-line syntax: G1 X200 Y200 Z100 F500. The X and Y motors should move the extruder 200 mm from the home position and at 500 mm/min (F500). We'll see shortly how this command is a useful one.

  • M302: This command disables the cold extrusion prevention. This is very useful when testing the extruder movement without heating the filament. This allows the extruder motor to run when the hot end is colder than a firmware-specified temperature.

  • M106: This command turns the cooling fan on. When used with an S parameter between 0-255, the speed can be adjusted. Here's an example of the M106 command-line syntax: M106 S127.

  • M107: This command turns the cooling fan off.

  • M503: This command echoes the current settings from memory (not from EEPROM). This is very useful when you need to see the current calibration settings stored in the firmware.

  • M501: This command echoes the current settings from EEPROM (if you need to reset them after you changed them temporarily).

  • M92: This command sets axis_steps_per_unit to the same parameters as entered in the firmware. This is a good way to tweak the axes and E-motor calibration on the fly. Here's an example of the M92 command-line syntax: M92 X80 Y80 Z3200 E945.

  • M303: This command is the PID autotune. This generates the Proportional, Integral, and Derivative (PID) values for the hot end. Run this test every time you make a temperature change. The variables C = number of cycles to run test and S = target temperature. Here's an example of the M303 command-line syntax: M303 C8 S220. Testing should be started with a cold hot end.

  • M500: This command stores parameters in EEPROM.

More commands can be found at http://reprap.org/wiki/G-code and http://www.thingiverse.com/thing:21546/.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images