Difference between revisions of "Gcode"

From Hyrel3D
Jump to: navigation, search
(Movement)
(Movement Commands)
Line 16: Line 16:
 
G0 is a rapid positioning move. It is not a ''working'' move, meaning that your equipment will not be printing, milling, lasering, or doing any other active work during a G0 move. G0 is intended to move your tool to a new position, where the work will happen. Accordingly, G0 movement speeds are set in your configuration settings, rather than being specified in your gcode file. A G0 command will not make use of an F (feed rate, or movement speed) value, even if specified.  
 
G0 is a rapid positioning move. It is not a ''working'' move, meaning that your equipment will not be printing, milling, lasering, or doing any other active work during a G0 move. G0 is intended to move your tool to a new position, where the work will happen. Accordingly, G0 movement speeds are set in your configuration settings, rather than being specified in your gcode file. A G0 command will not make use of an F (feed rate, or movement speed) value, even if specified.  
  
 +
=== G1 ===
 +
 +
G1 is a working move, during which you may be printing, milling, lasering, or doing other active work (provided an E (extrude) value is given). G1 moves are made at the rate indicated by the F (feed rate) value; if no F value is specified, the last F value set will be used. Small non-working moves are often generated by a G1 move with no E value; these will use the specified (or inherited) F value, rather than using the G0 speed.
 
=== M203 ===
 
=== M203 ===
  
 
M203 will redesignate the rate at which G0 movements are executed. If undeclared, the values stored in Repetrel for your equipment will be used. These can be changed under Settings > Printer, on the Printer tab. The values set on your unit are set based on testing; exceed them at your own risk.
 
M203 will redesignate the rate at which G0 movements are executed. If undeclared, the values stored in Repetrel for your equipment will be used. These can be changed under Settings > Printer, on the Printer tab. The values set on your unit are set based on testing; exceed them at your own risk.
  
=== G1 ===
 
 
G1 is a working move, during which you may be printing, milling, lasering, or doing other active work (provided an E (extrude) value is given). G1 moves are made at the rate indicated by the F (feed rate) value; if no F value is specified, the last F value set will be used. Small non-working moves are often generated by a G1 move with no E value; these will use the specified (or inherited) F value, rather than using the G0 speed.
 
  
 
=== Examples ===
 
=== Examples ===
Line 35: Line 35:
 
| Makes a (rapid) non-printing move from the current position to X50, Y50, Z10 at the rate specified in your settings.
 
| Makes a (rapid) non-printing move from the current position to X50, Y50, Z10 at the rate specified in your settings.
 
| These can be absolute or relative distances, depending on your environment. Use G90 to use absolute distances; use G91 to use relative distances. G0 may have X, Y and/or Z values for the new position; undeclared values will not change (ex: if no Z value provided, no Z movement executed).
 
| These can be absolute or relative distances, depending on your environment. Use G90 to use absolute distances; use G91 to use relative distances. G0 may have X, Y and/or Z values for the new position; undeclared values will not change (ex: if no Z value provided, no Z movement executed).
 +
|-
 +
! G1 X50 Y50 E1 F1800
 +
| Makes a working (printing) move from the current position to X50, Y50 at 1800 mm/min while extruding material.
 +
| See "Flow Commands" below for details on flow calculation. If no F value, last declared F value is used. If no E value, this would be a non-printing move.
 
|-
 
|-
 
! M203 X2000 Y2000
 
! M203 X2000 Y2000
 
| Specifies G0 speed of 2000 mm/min in both Y and X axes. Subsequent moves will be made at the newly specified rate.
 
| Specifies G0 speed of 2000 mm/min in both Y and X axes. Subsequent moves will be made at the newly specified rate.
 
| The values set on your unit are set based on testing; exceed them at your own risk.
 
| The values set on your unit are set based on testing; exceed them at your own risk.
|-
 
! G1 X50 Y50 E1 F1800
 
| Makes...
 
| Note...
 
 
|}
 
|}

Revision as of 20:36, 17 November 2016

Everything your Hyrel 3D Printer does is done by executing GCode, whether you are aware of it or not.

Below, I will explain those gcodes about which we get the most questions.

Movement Commands

There are two primary movement commands: G0 and G1, and are thus explained:

G0

G0 is a rapid positioning move. It is not a working move, meaning that your equipment will not be printing, milling, lasering, or doing any other active work during a G0 move. G0 is intended to move your tool to a new position, where the work will happen. Accordingly, G0 movement speeds are set in your configuration settings, rather than being specified in your gcode file. A G0 command will not make use of an F (feed rate, or movement speed) value, even if specified.

G1

G1 is a working move, during which you may be printing, milling, lasering, or doing other active work (provided an E (extrude) value is given). G1 moves are made at the rate indicated by the F (feed rate) value; if no F value is specified, the last F value set will be used. Small non-working moves are often generated by a G1 move with no E value; these will use the specified (or inherited) F value, rather than using the G0 speed.

M203

M203 will redesignate the rate at which G0 movements are executed. If undeclared, the values stored in Repetrel for your equipment will be used. These can be changed under Settings > Printer, on the Printer tab. The values set on your unit are set based on testing; exceed them at your own risk.


Examples

Movement Commands
Actual Code Behavior Notes
G0 X50 Y50 Z10 Makes a (rapid) non-printing move from the current position to X50, Y50, Z10 at the rate specified in your settings. These can be absolute or relative distances, depending on your environment. Use G90 to use absolute distances; use G91 to use relative distances. G0 may have X, Y and/or Z values for the new position; undeclared values will not change (ex: if no Z value provided, no Z movement executed).
G1 X50 Y50 E1 F1800 Makes a working (printing) move from the current position to X50, Y50 at 1800 mm/min while extruding material. See "Flow Commands" below for details on flow calculation. If no F value, last declared F value is used. If no E value, this would be a non-printing move.
M203 X2000 Y2000 Specifies G0 speed of 2000 mm/min in both Y and X axes. Subsequent moves will be made at the newly specified rate. The values set on your unit are set based on testing; exceed them at your own risk.