This commit is contained in:
ChK
2026-03-17 08:14:48 +01:00
parent 3ce269e4e9
commit 566d3894c4
2 changed files with 4 additions and 2 deletions

View File

@@ -89,6 +89,8 @@ class GCode{
if(g == undefined) return;
console.log("GCode: Empfange GCode: " + g);
var multipleCommands = g.split(" G");
var doProcessRest = false;
if(multipleCommands.length > 1){
@@ -104,6 +106,7 @@ class GCode{
if(g[0] == "G90") {robot.moveRelative = false; calculateNew = false;}
else if(g[0] == "G91") {robot.moveRelative = true; calculateNew = false;}
// G28 - Move to Home Position
else if(g[0] == "G28") {
robot.x = 0;
robot.y = robot.l1 + robot.l2 + robot.l3;