Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
g1 [2017/01/25 18:35]
arthur
g1 [2019/05/13 21:04]
arthur [Parameters]
Line 17: Line 17:
 The command is used as such :  The command is used as such : 
  
-[[code]]+<code>
 G1 X10 Y20 F30 G1 X10 Y20 F30
-[[/code]]+</code>
  
 Which means : move to X position 10, Y position 20, at a speed of 30 millimeters/​minute Which means : move to X position 10, Y position 20, at a speed of 30 millimeters/​minute
Line 35: Line 35:
 || <​kbd>​F</​kbd>​ || Move at this speed in millimeters/​minute || G1 Z10 F100 || || <​kbd>​F</​kbd>​ || Move at this speed in millimeters/​minute || G1 Z10 F100 ||
 || <​kbd>​S</​kbd>​ || Laser power, <​kbd>​S1</​kbd>​ is 100%, <​kbd>​S0</​kbd>​ is 0% || G1 X10 S0.5 || || <​kbd>​S</​kbd>​ || Laser power, <​kbd>​S1</​kbd>​ is 100%, <​kbd>​S0</​kbd>​ is 0% || G1 X10 S0.5 ||
 +
 +<callout type="​warning"​ icon="​true"​ title="​Extruder moves and scientific notation">​
 +
 +If you write this Gcode :
 +
 +<​code>​ G1X100E100 </​code>​
 +
 +You want Smoothie to interpret it as : 
 +
 +<​code> ​
 +G1 : move ...
 +X10 : ... by 10mm in the X direction ...
 +E10 : ... while also feeding the extruder 10mm of extrusion
 +</​code>​
 +
 +However Smoothie is going to interpret this as 
 +
 +<​code> ​
 +G1 : move ...
 +X10E10 : ... in the X direction by 10E10, which is also 10 to the power of 10, or 10000000000.
 +</​code>​
 +
 +The lesson here is : use spaces.
 +</​callout>​
  
 === Feedrate === Feedrate
Line 42: Line 66:
 This means if you do :  This means if you do : 
  
-[[code]]+<code>
 G1 X10 F100 G1 X10 F100
 G1 X20 G1 X20
 G1 X30 F200 G1 X30 F200
 G1 X40 G1 X40
-[[/code]]+</code>
  
 The first two moves will happen at 100 mm/minute, and the last two moves will happen at 200mm/​minute. The first two moves will happen at 100 mm/minute, and the last two moves will happen at 200mm/​minute.
Line 56: Line 80:
 This means if you do : This means if you do :
  
-[[code]]+<code>
 G0 X10 F100 G0 X10 F100
 G1 X20 F200 G1 X20 F200
 G0 X30 G0 X30
-[[/code]]+</code>
  
 The third move will actually move at 100 mm/minute as that is the latest feedrate set for G0 moves. The third move will actually move at 100 mm/minute as that is the latest feedrate set for G0 moves.
Line 77: Line 101:
 This means if you do :  This means if you do : 
  
-[[code]]+<code>
 G1 X10 G1 X10
  X20  X20
  Y10  Y10
-[[/code]]+</code>
  
 It is the same as doing :  It is the same as doing : 
  
-[[code]]+<code>
 G1 X10 G1 X10
 G1 X20 G1 X20
 G1 Y10 G1 Y10
-[[/code]]+</code>
  
 Note the space character before each modal line, without that space, Smoothie will not know this is a modal command. Note the space character before each modal line, without that space, Smoothie will not know this is a modal command.
Line 107: Line 131:
 This means if you do :  This means if you do : 
  
-[[code]]+<code>
 G90 G90
 G1 X10 G1 X10
 G1 X20 G1 X20
-[[/code]]+</code>
  
 Smoothie will move to the X position 10, then move to the X position 20, relative to the origin. Smoothie will move to the X position 10, then move to the X position 20, relative to the origin.
Line 117: Line 141:
 But if you do :  But if you do : 
  
-[[code]]+<code>
 G91 G91
 G1 X10 G1 X10
 G1 X20 G1 X20
-[[/code]]+</code>
  
 Smoothie will move 10 millimeters relative to the current position, then move 20 millimeters further away from that new position ( moving 30 millimeters total ). Smoothie will move 10 millimeters relative to the current position, then move 20 millimeters further away from that new position ( moving 30 millimeters total ).