Skip to content

Commit

Permalink
move to origin at begin and at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
arkypita committed Jan 8, 2017
1 parent 9757f44 commit 2d35a60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LaserGRBL/GrblFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void LoadImagePotrace(Bitmap bmp, string filename, int oX, int oY, int ma

list.Add(new GrblCommand("G90"));
list.Add(new GrblCommand(String.Format("F{0}", travelSpeed)));
list.Add(new GrblCommand("G0 X0 Y0")); //move fast to origin
list.Add(new GrblCommand(String.Format("G0 X{0} Y{1}", formatnumber(oX), formatnumber(oY)))); //move fast to offset
list.Add(new GrblCommand(String.Format("M5 S{0}", maxPower))); //laser off and power to maxPower
list.Add(new GrblCommand(String.Format("G1 F{0}", markSpeed)));
Expand All @@ -172,6 +173,7 @@ public void LoadImagePotrace(Bitmap bmp, string filename, int oX, int oY, int ma


list.Add(new GrblCommand(lOff));
list.Add(new GrblCommand("G0 X0 Y0")); //move fast to origin
list.Add(new GrblCommand("G90"));

Analyze();
Expand Down

0 comments on commit 2d35a60

Please sign in to comment.