From 175656431a7c70ecc6c8f3e00dbd0291cd5510dd Mon Sep 17 00:00:00 2001 From: Adrian Bowyer Date: Fri, 14 Jun 2013 22:30:06 +0100 Subject: Exploited new Push() and Pop() functions in reprap.htm and the homeing code. --- SD-image/www/reprap.htm | 5 ++++- SD-image/www/reprap.htm~ | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'SD-image/www') diff --git a/SD-image/www/reprap.htm b/SD-image/www/reprap.htm index 964fa844..13008f49 100644 --- a/SD-image/www/reprap.htm +++ b/SD-image/www/reprap.htm @@ -296,7 +296,10 @@ function viewModel() self.sendJog = function(axis, d, data, event) { - $.get('/rr_gcode', {gcode: "G91\nG1 " + axis + d + "\nG90\nM83"}, self.dummy); + var feed = " F2000"; + if(axis == 'Z') + feed = " F200"; + $.get('/rr_gcode', {gcode: "M120\nG91\nG1 " + axis + d + feed + "\nM121"}, self.dummy); }; self.actionOnFile = function(file) diff --git a/SD-image/www/reprap.htm~ b/SD-image/www/reprap.htm~ index 964fa844..13008f49 100644 --- a/SD-image/www/reprap.htm~ +++ b/SD-image/www/reprap.htm~ @@ -296,7 +296,10 @@ function viewModel() self.sendJog = function(axis, d, data, event) { - $.get('/rr_gcode', {gcode: "G91\nG1 " + axis + d + "\nG90\nM83"}, self.dummy); + var feed = " F2000"; + if(axis == 'Z') + feed = " F200"; + $.get('/rr_gcode', {gcode: "M120\nG91\nG1 " + axis + d + feed + "\nM121"}, self.dummy); }; self.actionOnFile = function(file) -- cgit v1.2.3