LaserWeb4 to MakeBlock LaserBot running Marlin 1.0.2

LaserWeb information

On the About page, I see that I have:

Frontend: 4.0.999
Backend: 4.0.138

My settings are:

{
  "documents": [
    {
      "id": "66c4feb2-3b13-400e-a1d0-b937f4089099",
      "type": "document",
      "name": "washer inkscape3.svg",
      "mimeType": "",
      "isRoot": true,
      "children": ["1bd3a8e0-985f-4279-9a64-0faccd9ef7b1"],
      "selected": false,
      "visible": true,
      "transform2d": null,
      "rawPaths": null,
      "strokeColor": null,
      "fillColor": null,
      "dataURL": "",
      "originalPixels": null,
      "originalSize": null
    },
    {
      "id": "1bd3a8e0-985f-4279-9a64-0faccd9ef7b1",
      "type": "g",
      "name": "g: g24",
      "mimeType": "",
      "isRoot": false,
      "children": [
        "840a18db-9955-4642-a445-dfa1a9034956",
        "3a40ad7d-967b-4958-b1b7-60b7ccae498c"
      ],
      "selected": false,
      "visible": true,
      "transform2d": null,
      "rawPaths": null,
      "strokeColor": null,
      "fillColor": null,
      "dataURL": "",
      "originalPixels": null,
      "originalSize": null
    },
    {
      "id": "840a18db-9955-4642-a445-dfa1a9034956",
      "type": "ellipse",
      "name": "ellipse: path32",
      "mimeType": "",
      "isRoot": false,
      "children": [],
      "selected": false,
      "visible": true,
      "transform2d": [1, 0, 0, 1, 0, 0],
      "rawPaths": [
        [
          1.5249999449687088,
          9.743046575609796,
          1.5249999449687088,
          9.743046575609792,
          1.5289835990321345,
          9.479315081912006,
          1.5409309264098523,
          9.2158242250765,
          1.560831025980814,
          8.952814422399506,
          1.5886657402621072,
          8.690525652247475,
          1.6244096719765184,
          8.429197235092792,
          1.6680302072259734,
          8.169067615149903,
          1.7194875452496772,
          7.910374142810886,
          1.7787347347398172,
          7.653352858079133,
          1.8457177166816878,
          7.398238275198713,
          1.9203753736791576,
          7.14526316867582,
          2.002639585720434,
          6.894658360887792,
          2.09243529233329,
          6.6466525114732065,
          2.189680561073003,
          6.4014719086954415,
          2.2942866622758693,
          6.15934026298028,
          2.406158150032165,
          5.920478502765233,
          2.5251929492628036,
          5.68510457294653,
          2.6512824488598636,
          5.453433236009959,
          2.7843116007872553,
          5.225675876074851,
          2.9241590250546556,
          5.002040306020586,
          3.070697120468905,
          4.782730577871693,
          3.2237921810618224,
          4.567946796614532,
          3.38330451808821,
          4.357884937615374,
          3.549088587482702,
          4.152736667806554,
          3.7209931226591864,
          3.9526891708038185,
          3.8988612725316,
          3.757924976114431,
          4.082530744630199,
          3.568621792591852,
          4.2718339531716865,
          3.384952346299322,
          4.466598172002451,
          3.2070842228778886,
          4.666645692167936,
          3.0351797146688178,
          4.871793984070412,
          2.8693956726225167,
          5.081855864014944,
          2.7098833631833017,
          5.296639665001825,
          2.5567883302696757,
          5.515949411609697,
          2.410250262476069,
          5.73958499880975,
          2.2704028656171182,
          5.967342374547886,
          2.1373737407308333,
          6.199013725928163,
          2.011284267652048,
          6.434387668827764,
          1.8922494942621562,
          6.673249440770375,
          1.7803780315164381,
          6.915381096882045,
          1.6757719543445688,
          7.160561708741406,
          1.578526708518325,
          7.40856756599054,
          1.48873102355277,
          7.659172380424929,
          1.4064668317599498,
          7.912147492475838,
          1.3318091934871177,
          8.167262079846116,
          1.2648262286297935,
          8.424283368119264,
          1.2055790544774467,
          8.682976843149637,
          1.1541217299485709,
          8.94310646504003,
          1.1105012062659725,
          9.204434883511354,
          1.0747572841173216,
          9.466723654467911,
          1.046922577340034,
          9.729733457560704,
          1.0270224831635808,
          9.993224314550247,
          1.0150751590364742,
          10.256955808269623,
          1.011091506058925,
          10.256955808269621,
          1.011091506058925,
          10.520687301989005,
          1.0150751590364742,
          10.78417815897855,
          1.0270224831635844,
          11.047187962071346,
          1.046922577340034,
          11.309476733027898,
          1.0747572841173216,
          11.570805151499217,
          1.1105012062659725,
          11.830934773389613,
          1.1541217299485709,
          12.089628248419986,
          1.2055790544774503,
          12.346649536693132,
          1.2648262286297935,
          12.60176412406341,
          1.3318091934871212,
          12.85473923611432,
          1.4064668317599498,
          13.105344050548705,
          1.48873102355277,
          13.353349907797842,
          1.578526708518325,
          13.5985305196572,
          1.6757719543445688,
          13.840662175768871,
          1.7803780315164381,
          14.079523947711479,
          1.8922494942621562,
          14.31489789061108,
          2.011284267652048,
          14.546569241991355,
          2.1373737407308333,
          14.774326617729487,
          2.2704028656171147,
          14.997962204929546,
          2.410250262476069,
          15.217271951537416,
          2.5567883302696757,
          15.432055752524297,
          2.709883363183291,
          15.642117632468825,
          2.869395672622506,
          15.847265924371301,
          3.035179714668814,
          16.047313444536787,
          3.207084222877885,
          16.242077663367553,
          3.384952346299322,
          16.43138087190904,
          3.5686217925918484,
          16.61505034400764,
          3.7579249761144276,
          16.792918493880055,
          3.952689170803815,
          16.96482302905654,
          4.152736667806549,
          17.130607098451033,
          4.3578849376153705,
          17.29011943547742,
          4.56794679661453,
          17.443214496070336,
          4.782730577871689,
          17.58975259148459,
          5.002040306020579,
          17.729600015751988,
          5.225675876074847,
          17.86262916767938,
          5.45343323600996,
          17.988718667276444,
          5.68510457294653,
          18.10775346650708,
          5.920478502765235,
          18.219624954263377,
          6.15934026298028,
          18.324231055466242,
          6.401471908695447,
          18.421476324205955,
          6.646652511473212,
          18.511272030818812,
          6.894658360887798,
          18.593536242860086,
          7.145263168675825,
          18.66819389985756,
          7.398238275198715,
          18.73517688179943,
          7.653352858079144,
          18.79442407128957,
          7.9103741428108965,
          18.84588140931327,
          8.169067615149912,
          18.889501944562728,
          8.429197235092806,
          18.92524587627714,
          8.690525652247484,
          18.953080590558432,
          8.95281442239952,
          18.972980690129397,
          9.21582422507651,
          18.984928017507112,
          9.479315081912024,
          18.988911671570538,
          9.743046575609796,
          18.988911671570534,
          9.743046575609796,
          18.98492801750711,
          10.006778069307579,
          18.97298069012939,
          10.270268926143089,
          18.95308059055843,
          10.53327872882008,
          18.92524587627714,
          10.795567498972114,
          18.889501944562724,
          11.056895916126795,
          18.84588140931327,
          11.317025536069686,
          18.794424071289566,
          11.575719008408704,
          18.73517688179943,
          11.832740293140452,
          18.66819389985756,
          12.08785487602088,
          18.593536242860086,
          12.340829982543768,
          18.511272030818812,
          12.591434790331796,
          18.421476324205955,
          12.839440639746382,
          18.324231055466242,
          13.084621242524147,
          18.219624954263377,
          13.326752888239312,
          18.10775346650708,
          13.565614648454359,
          17.988718667276444,
          13.80098857827306,
          17.86262916767938,
          14.032659915209628,
          17.729600015751988,
          14.26041727514474,
          17.58975259148459,
          14.48405284519901,
          17.44321449607034,
          14.703362573347896,
          17.290119435477422,
          14.918146354605057,
          17.130607098451033,
          15.128208213604216,
          16.964823029056543,
          15.333356483413036,
          16.792918493880062,
          15.53340398041577,
          16.615050344007642,
          15.72816817510516,
          16.431380871909045,
          15.917471358627736,
          16.242077663367557,
          16.101140804920266,
          16.047313444536794,
          16.2790089283417,
          15.847265924371305,
          16.45091343655077,
          15.642117632468826,
          16.61669747859708,
          15.432055752524299,
          16.776209788036294,
          15.217271951537418,
          16.929304820949913,
          14.99796220492955,
          17.075842888743516,
          14.774326617729493,
          17.21569028560247,
          14.546569241991358,
          17.348719410488755,
          14.314897890611082,
          17.47480888356754,
          14.079523947711479,
          17.593843656957436,
          13.840662175768871,
          17.70571511970315,
          13.5985305196572,
          17.81032119687502,
          13.353349907797842,
          17.907566442701267,
          13.1053440505487,
          17.997362127666822,
          12.854739236114316,
          18.079626319459642,
          12.601764124063406,
          18.15428395773247,
          12.346649536693128,
          18.221266922589795,
          12.08962824841998,
          18.280514096742145,
          11.830934773389608,
          18.33197142127102,
          11.57080515149921,
          18.37559194495362,
          11.309476733027891,
          18.41133586710227,
          11.047187962071336,
          18.439170573879558,
          10.784178158978541,
          18.459070668056007,
          10.520687301988994,
          18.471017992183118,
          10.256955808269623,
          18.475001645160667,
          10.256955808269623,
          18.475001645160667,
          9.993224314550236,
          18.471017992183118,
          9.729733457560693,
          18.459070668056007,
          9.4667236544679,
          18.439170573879558,
          9.204434883511347,
          18.411335867102267,
          8.943106465040024,
          18.375591944953616,
          8.682976843149632,
          18.33197142127102,
          8.424283368119257,
          18.28051409674214,
          8.167262079846113,
          18.221266922589795,
          7.912147492475835,
          18.15428395773247,
          7.659172380424927,
          18.079626319459642,
          7.4085675659905394,
          17.997362127666822,
          7.160561708741404,
          17.907566442701267,
          6.915381096882045,
          17.81032119687502,
          6.673249440770375,
          17.70571511970315,
          6.434387668827767,
          17.593843656957436,
          6.199013725928166,
          17.474808883567544,
          5.96734237454789,
          17.348719410488755,
          5.739584998809756,
          17.215690285602474,
          5.515949411609697,
          17.075842888743516,
          5.296639665001831,
          16.929304820949916,
          5.08185586401495,
          16.776209788036297,
          4.871793984070419,
          16.61669747859708,
          4.666645692167942,
          16.450913436550778,
          4.466598172002457,
          16.279008928341707,
          4.271833953171691,
          16.10114080492027,
          4.082530744630204,
          15.917471358627742,
          3.8988612725316076,
          15.728168175105164,
          3.720993122659188,
          15.533403980415773,
          3.5490885874827067,
          15.333356483413041,
          3.383304518088215,
          15.128208213604221,
          3.2237921810618246,
          14.91814635460506,
          3.0706971204689077,
          14.703362573347901,
          2.9241590250546574,
          14.48405284519901,
          2.7843116007872553,
          14.26041727514474,
          2.6512824488598636,
          14.03265991520963,
          2.5251929492628036,
          13.80098857827306,
          2.406158150032165,
          13.565614648454359,
          2.2942866622758715,
          13.326752888239314,
          2.189680561073003,
          13.084621242524147,
          2.09243529233329,
          12.839440639746382,
          2.0026395857204333,
          12.591434790331794,
          1.9203753736791553,
          12.340829982543765,
          1.8457177166816878,
          12.087854876020877,
          1.7787347347398155,
          11.832740293140448,
          1.7194875452496772,
          11.575719008408695,
          1.6680302072259712,
          11.317025536069675,
          1.6244096719765166,
          11.056895916126784,
          1.5886657402621054,
          10.795567498972103,
          1.560831025980814,
          10.533278728820072,
          1.5409309264098503,
          10.270268926143078,
          1.5289835990321328,
          10.006778069307572,
          1.5249999449687088,
          9.743046575609796
        ]
      ],
      "strokeColor": [0, 0, 0, 1],
      "fillColor": [0, 0, 0, 0],
      "dataURL": "",
      "originalPixels": null,
      "originalSize": null
    },
    {
      "id": "3a40ad7d-967b-4958-b1b7-60b7ccae498c",
      "type": "ellipse",
      "name": "ellipse: path32-0",
      "mimeType": "",
      "isRoot": false,
      "children": [],
      "selected": false,
      "visible": true,
      "transform2d": [1, 0, 0, 1, 0, 0],
      "rawPaths": [
        [
          8.025001566396233,
          9.737236854454348,
          8.025001566396233,
          9.737236854454348,
          8.041320797888437,
          9.467490305239489,
          8.090040300186406,
          9.201678473931743,
          8.170449000351654,
          8.943678540715377,
          8.281373390973659,
          8.697253489017676,
          8.421194775769974,
          8.465997110647779,
          8.587873024376817,
          8.253281566199268,
          8.778976470354749,
          8.062208231028304,
          8.991717527865609,
          7.895562517337357,
          9.222993457545675,
          7.755773372458904,
          9.46943165792332,
          7.6448780174072954,
          9.727438864827398,
          7.564492387840112,
          9.99325351576351,
          7.515787720221011,
          10.263000479438094,
          7.499473605800549,
          10.263000479438098,
          7.499473605800549,
          10.263000479438094,
          7.499473605800549,
          10.532747443112681,
          7.515787720221011,
          10.798562094048794,
          7.56449238784011,
          11.056569300952875,
          7.6448780174072954,
          11.30300750133052,
          7.755773372458904,
          11.534283431010584,
          7.895562517337355,
          11.747024488521443,
          8.062208231028302,
          11.938127934499377,
          8.253281566199266,
          12.10480618310622,
          8.465997110647777,
          12.244627567902535,
          8.697253489017674,
          12.35555195852454,
          8.943678540715377,
          12.435960658689789,
          9.20167847393174,
          12.484680160987757,
          9.467490305239487,
          12.500999392479963,
          9.737236854454347,
          12.500999392479963,
          9.737236854454348,
          12.500999392479963,
          9.737236854454348,
          12.484680160987757,
          10.006983403669208,
          12.435960658689789,
          10.272795234976954,
          12.35555195852454,
          10.530795168193318,
          12.244627567902535,
          10.77722021989102,
          12.10480618310622,
          11.008476598260916,
          11.938127934499377,
          11.221192142709429,
          11.747024488521445,
          11.412265477880393,
          11.534283431010586,
          11.578911191571342,
          11.303007501330521,
          11.71870033644979,
          11.056569300952878,
          11.8295956915014,
          10.7985620940488,
          11.909981321068585,
          10.532747443112685,
          11.958685988687684,
          10.263000479438098,
          11.975000103108147,
          10.263000479438098,
          11.975000103108147,
          10.263000479438098,
          11.975000103108147,
          9.99325351576351,
          11.958685988687684,
          9.727438864827398,
          11.909981321068585,
          9.46943165792332,
          11.8295956915014,
          9.222993457545675,
          11.71870033644979,
          8.99171752786561,
          11.578911191571342,
          8.778976470354749,
          11.412265477880393,
          8.58787302437682,
          11.221192142709429,
          8.421194775769974,
          11.00847659826092,
          8.281373390973663,
          10.777220219891024,
          8.170449000351654,
          10.530795168193318,
          8.090040300186406,
          10.272795234976954,
          8.041320797888437,
          10.006983403669208,
          8.025001566396233,
          9.73723685445435,
          8.025001566396233,
          9.737236854454348
        ]
      ],
      "strokeColor": [0, 0, 0, 1],
      "fillColor": [0, 0, 0, 0],
      "dataURL": "",
      "originalPixels": null,
      "originalSize": null
    }
  ],
  "operations": [
    {
      "id": "3dd4d6a9-354e-4469-aca9-66b193c18b98",
      "name": "",
      "enabled": true,
      "documents": ["66c4feb2-3b13-400e-a1d0-b937f4089099"],
      "tabDocuments": [],
      "expanded": false,
      "type": "Laser Cut",
      "filterFillColor": null,
      "filterStrokeColor": null,
      "direction": "Conventional",
      "laserPower": 100,
      "laserPowerRange": {"min": 0, "max": 100},
      "laserDiameter": 0.2,
      "toolDiameter": 0,
      "lineDistance": 0,
      "lineAngle": 0,
      "margin": 0,
      "passes": 1,
      "cutWidth": 0,
      "toolSpeed": 0,
      "stepOver": 40,
      "passDepth": 0,
      "startHeight": "",
      "millRapidZ": 0,
      "millStartZ": 0,
      "millEndZ": 0,
      "segmentLength": 0,
      "tabDepth": 0,
      "plungeRate": 0,
      "cutRate": 400,
      "overScan": 0,
      "toolAngle": 0,
      "ramp": false,
      "useA": false,
      "aAxisDiameter": 0,
      "useBlower": false,
      "smoothing": false,
      "brightness": 0,
      "contrast": 0,
      "gamma": 0,
      "grayscale": "none",
      "shadesOfGray": 256,
      "invertColor": false,
      "trimLine": true,
      "joinPixel": true,
      "burnWhite": true,
      "verboseGcode": false,
      "diagonal": false,
      "dithering": false,
      "latheToolBackSide": false,
      "latheRapidToDiameter": 0,
      "latheRapidToZ": 0,
      "latheStartZ": 0,
      "latheRoughingFeed": 0,
      "latheRoughingDepth": 0,
      "latheFinishFeed": 0,
      "latheFinishDepth": 0,
      "latheFinishExtraPasses": 0,
      "latheFace": true,
      "latheFaceEndDiameter": 0,
      "latheTurns": [],
      "_docs_visible": true,
      "hookOperationStart": "",
      "hookOperationEnd": "",
      "hookPassStart": "",
      "hookPassEnd": ""
    }
  ],
  "currentOperation": "3dd4d6a9-354e-4469-aca9-66b193c18b98",
  "settings": {"toolFeedUnits": "mm/min"}
}

Problem description

When I send a jog move I expect one each time but instead the second jog never happens.
No other moves are possible after this.
Before hand, I can get multiple home commands run fine.

This problem is has always happened. But Iā€™m new to laserweb

System description

Here is my configuration (BTW, how do I set 0,0 to be top left?):

{
  "__version": "4.0.999",
  "__selectedProfile": "LaserBot2",
  "__latestRelease": "2019-11-26T10:45:07Z",
  "showMachine": true,
  "machineWidth": 300,
  "machineHeight": 300,
  "machineBeamDiameter": 0.2,
  "machineBottomLeftX": 0,
  "machineBottomLeftY": 0,
  "machineFeedRange": {
    "XY": {"min": 1, "max": 50000},
    "Z": {"min": 1, "max": 50000},
    "A": {"min": 1, "max": 50000},
    "S": {"min": 0, "max": 30000}
  },
  "machineXYProbeOffset": 0,
  "machineZEnabled": false,
  "machineZMatThickness": 0,
  "machineZToolOffset": 0,
  "machineZStartHeight": "",
  "machineZProbeOffset": 0,
  "machineAEnabled": false,
  "machineBlowerEnabled": false,
  "machineBlowerGcodeOn": "",
  "machineBlowerGcodeOff": "",
  "pxPerInch": 96,
  "forcePxPerInch": false,
  "dpiBitmap": 300,
  "toolGridWidth": 500,
  "toolGridHeight": 500,
  "toolGridMinorSpacing": 10,
  "toolGridMajorSpacing": 50,
  "toolSafetyLockDisabled": true,
  "toolCncMode": false,
  "toolImagePosition": "BL",
  "toolUseNumpad": false,
  "toolDisplayCache": false,
  "toolUseGamepad": false,
  "toolCreateEmptyOps": false,
  "toolVideoDevice": null,
  "toolVideoPerspective": {"enabled": false},
  "toolVideoLens": {"a": 1, "b": 1, "F": 1, "scale": 1},
  "toolVideoFov": {"x": 1, "y": 1},
  "toolVideoResolution": "720p(HD)",
  "toolVideoOMR": false,
  "toolVideoOMROffsetX": 0,
  "toolVideoOMROffsetY": 0,
  "toolVideoOMRMarkerSize": 20,
  "toolWebcamUrl": "",
  "toolFeedUnits": "mm/min",
  "toolTestSValue": 1,
  "toolTestDuration": 0,
  "gcodeStart": "G21         ; Set units to mm\r\nG90         ; Absolute positioning\r\n",
  "gcodeEnd": "M5          ; Switch tool offEnd\r\n",
  "gcodeHoming": "G28      ;home both",
  "gcodeGenerator": "marlin",
  "gcodeToolOn": "M3     ;tool on",
  "gcodeToolOff": "M5     ;tool off",
  "gcodeLaserIntensity": "S",
  "gcodeLaserIntensitySeparateLine": true,
  "gcodeSMinValue": 0,
  "gcodeSMaxValue": 1,
  "gcodeCheckSizePower": 0,
  "gcodeToolTestPower": 0,
  "gcodeToolTestDuration": 0,
  "gcodeConcurrency": 2,
  "gcodeCurvePrecision": 0.1,
  "comServerVersion": "4.0.138",
  "comServerIP": "localhost:8000",
  "comServerConnect": false,
  "comInterfaces": ["USB", "ESP8266", "Telnet"],
  "comPorts": [
    {
      "comName": "COM11",
      "manufacturer": "wch.cn",
      "serialNumber": "5&33cee4ba&0&1",
      "pnpId": "USB\\VID_1A86&PID_7523\\5&33CEE4BA&0&1",
      "locationId": "Port_#0001.Hub_#0001",
      "vendorId": "1A86",
      "productId": "7523"
    }
  ],
  "comAccumulatedJobTime": 0,
  "connectVia": "USB",
  "connectPort": "COM11",
  "connectBaud": "115200",
  "connectIP": "",
  "jogStepsize": 100,
  "jogFeedXY": 1800,
  "jogFeedZ": 300,
  "macros": {
    "*GotoXY0": {
      "label": "Goto XY zero",
      "gcode": "G0 X0Y0",
      "keybinding": "ctrl+f1",
      "_locked": false
    },
    "*LaserOff": {
      "label": "LASER OFF",
      "gcode": "M5",
      "keybinding": "ctrl+f2",
      "_locked": false
    }
  },
  "uiFcDrag": {"x": 166.42816894984293, "y": 24.659918976741324}

The easy question first; the the two MACHINE ORIGIN OFFSETS settings near the machine size ones to set your origin wherever you want, try ā€˜x:0, y-300ā€™ to set origin to top-left.

I have no clue about the jogging, but I have no real Marlin experience, nor any FW to test on.
What is displayed in the LW console window (bottom right) when this happens? are any messages, warnings or errors displayed.
Does the machine disconnect and need reconnecting via a connection tab?

PS, There is no need to paste the document details as well as settings, in the unlikely event we need them weā€™ll ask. It tends to make things harder to read. Wrapping copy/pasted text as ā€˜pre-formattedā€™ would also help readability.

1 Like

Sorry about the overpost.
Home can work multiple times, but as soon as a jog command is sent, no replies come back after the first one, and no further moves happen.
Selecting ā€œhome allā€ does the expected home, and the return in the LW console is a ā€œoMGokā€
Selecting example ā€œY+ 10mmā€ produces at the console
jog(y,10,1800)
oMGok
oMGok

Similarly, trying to run a job replies with the two ā€œoMGokā€ after the first move and nothing else.

Any subsequent jog commands sends the jog line, but has no response.

Doing a disconnect/reconnect of the usb-serial on the Comms tab resets it all, and it works again.

Strangely, I can take the generated gcode and feed it to the engraver and get the burn I was needing. It seems some handshaking or something is not working in LaserWeb.

@Mark_Fuller FYI to wrap the text pre-formatted, put three open single quote characters on a line of their own before and after it, like this:

```
raw text goes here
```

@Mark_Fuller, thanks for the extra info, one more thing (isnā€™t there alwaysā€¦ :wink: )ā€¦

What do you see reported in the console when the machine connects, there should be a Firmware XXX Detected: line; what does this say?

Iā€™m wondering if marlin returns a badly formatted firmware string; because this will impact how lw.comm-server sends and processes jog commands.

TL;DR;
Some background: (sorry for people who already know this! Iā€™m deliberately over-explaining things for my own reference, as well as others)

LaserWeb is really made up of two components, there is LaserWeb4 itself, a large web application written in JavaScript and running in a web browser session. This in turn talks to a small ā€˜comm-serverā€™ program that handles the actual communications to the machine via USB or whatever.

Some control commands, such as jogging commands, are not sent as direct gcode by LaserWeb itself. Instead it sends a generic command to the com server saying jog x,y,z by a,b,c. The comm server then selects a pre-scripted gcode command/response processor for the firmware and uses that to complete the command.

  • This is done because some firmwareā€™s handle jogging very differently to others, and rather than have all that complexity in LaserWeb itself, it it passed out to the comm server. Something similar happens for laser testing too.

So; once I know what firmware string is being returned by the controller, I can dig into the lw.comm-server code and see what it believes it should be doing based on the firmware string.

1 Like

Thanks much.
Just after the ā€œMachine connectedā€ (same info I get on PuTTY)
echo:Marlin 1.0.2+
echo: Last Updated: Sep 19 2016 10:05:58 | Author: (none, default config)

and further down is the detection:
Firmware marlin RE_NA detected
echo:Unknown command: ā€œversionā€
echo:Unknown command: ā€œ{fbā€
echo:Unknown command: ā€œn}ā€

I tried a M115 to get firmware version another way:
FIRMWARE_NAME:Marlin 1.0.2+ Development From Archive
SOURCE_CODE_URL: the usual github
PROTOCOL_VERSION:1.0
MACHINE_TYPE:Mendel
EXTRUDER_COUNT:1
UUID:00000000-0000-0000-0000-000000000000

I think your marlin is too old.
As far a I know, Marlin startet to support lasers since version 1.1.x.
See:

That doesnā€™t realy explain why a jog command blocks the machine, but I would try an update :wink:

By the way: itā€™s not normal that you get ā€œoMGokā€ as the response. It should just be ā€œokā€. This might cause laserweb to miss the ok and therefore stop sending further commands.

2 Likes

I suspect the oMGok is a makeblock weirdness. It seems a few commands return just an ok.

http://docs.makeblock.com/diy-platform/en/electronic-modules/main-control-boards/megapi.html

It does use pwm via M4 Pxxx (0-255) to drive the laser.

The old mLaser software they had for this is kind of flaky, which is driving me to try others.

Thankyou @cprezzi for stepping in there, my marlin knowledge is poor.

@Mark_Fuller Looking through the MakeBlock site it looks like they have their own fork of Marlin that they have tied to the mLaser control software. It doesnā€™t appear to be properly open sourced or documented, and it would be hard for LaserWeb to support directly. At the moment it is not even detecting the Firmware properly.

But you are not alone in having troubles:

In that thread there is someone with a fork/port of Marlin 1.1.1 for the makeblock controller; If you are feeling adventurous you could maybe give it a go?

2 Likes

Thanks for that @easytarget

I did some digging through the code and much of it appears to stem from adding support for Lubandiy software (snapmaker?).

In their version of marlin_main.cpp right after #include ā€œMarlin.hā€
//#define USE_LUBANDIY 1//define this to support lubandiy software

Also an example of whatā€™s scattered through:
st_synchronize();
#if USE_LUBANDIY
SERIAL_PROTOCOLPGM(ā€œok\r\nā€);
#else
SERIAL_PROTOCOLPGM(ā€œoMGā€);
#endif

2 Likes