kaan
Posts: 16
Joined: Thu Sep 04, 2014 11:25 pm

Re: Autolevelling integration for Robo 3D R1

I've quickly checked Matter Control's Gcode (the machine and setup is in the attic) - it indeed does other things in the background

Manually moves to the bed points and runs 3 G30's instead of a G29 (it might be replacing the G29 with those commands as it's Robo 3D integration)

I'm guessing replicating those commands will solve the issue, I will try tomorrow
BaudR8
Posts: 183
Joined: Fri Aug 29, 2014 9:59 am

Re: Autolevelling integration for Robo 3D R1

If MatterControl is using the G30 command, it is indeed replacing the G29 command.

G30 probes single points on the bed at the tool head's current X Y position. I believe the tool head must be told where to go on the X/Y plane, and then sent a G30 command to probe at that exact position.

I did a search on Robo3D bed leveling, and it seems like there are a few different variations and forks of the Marlin firmware which users have modified to enable the bed probing. If you look at the master branch of the Marlin firmware's configuration.h file, you will see at line 383 the beginning of the bed leveling information.

Code: Select all

https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/Configuration.h
The master branch of the Marlin Firmware shows you where the G29 probes, and if the command is not probing at the 3 specified locations as shown above, the firmware you have loaded may be old (those commands not implemented yet) or a fork (whoever forked it modified the G29 probe points).
kaan
Posts: 16
Joined: Thu Sep 04, 2014 11:25 pm

Re: Autolevelling integration for Robo 3D R1

Thanks for the information BaudR8

From the G code, It's clear that there is no G29 command with MatterControl, however the G29 on the machine probes at 9 points as in the Marlin firmware
I'm using the default firmware that comes with the device, I'm guessing it's Robo 3D's modification of the Marlin firmware, the firmware is something like Robo3DR1AutoLevelV1, excuse me for not quoting exactly

I wish I could have access to the firmware on the device, however my search's were fruitless, the Robo 3D website/forums doesn't seem to have links to the firmware, however it seems that they used to

I've tested the G30 sequence as a starter sequence at Simplify3D, I've skipped the initial G21-like commands, however I tried to include as much initial commands as I can, tested 2 subsequences

with MatterControl, the device probes the initial corner 3 times, once before heating the extruder, as far as I remember, 2-3 after heating the extruder, the initial difference was this, with Simplify3D, the G-code didn't do this

Anyway, long story short, the G30 sequence probed the bed at 3 points similar to MatterControl, however, the autoleveling was off, it still started carving the bed after the auto leveling is done

I'm guessing the MatterControl's G-Code might be using a Z-offset in the G-commands and the initial layer, which might explain the behaviour

But this doesn't explain the probing difference of the initial point

Another long story short, my initial trial have failed, I will try again and this time dive deeper into the G/M commands / what they do
BaudR8
Posts: 183
Joined: Fri Aug 29, 2014 9:59 am

Re: Autolevelling integration for Robo 3D R1

kaan wrote:Thanks for the information BaudR8

From the G code, It's clear that there is no G29 command with MatterControl, however the G29 on the machine probes at 9 points as in the Marlin firmware
I'm using the default firmware that comes with the device, I'm guessing it's Robo 3D's modification of the Marlin firmware, the firmware is something like Robo3DR1AutoLevelV1, excuse me for not quoting exactly

I wish I could have access to the firmware on the device, however my search's were fruitless, the Robo 3D website/forums doesn't seem to have links to the firmware, however it seems that they used to

I've tested the G30 sequence as a starter sequence at Simplify3D, I've skipped the initial G21-like commands, however I tried to include as much initial commands as I can, tested 2 subsequences

with MatterControl, the device probes the initial corner 3 times, once before heating the extruder, as far as I remember, 2-3 after heating the extruder, the initial difference was this, with Simplify3D, the G-code didn't do this

Anyway, long story short, the G30 sequence probed the bed at 3 points similar to MatterControl, however, the autoleveling was off, it still started carving the bed after the auto leveling is done

I'm guessing the MatterControl's G-Code might be using a Z-offset in the G-commands and the initial layer, which might explain the behaviour

But this doesn't explain the probing difference of the initial point

Another long story short, my initial trial have failed, I will try again and this time dive deeper into the G/M commands / what they do
If you post the G-Codes sent by Matter Control I'm sure a few users on the forum will be able to look it over and give good suggestions on what starting script to do. I don't have a Robo3D or use Matter Control, so I don't have access to the Gcode Matter Control is using
kaan
Posts: 16
Joined: Thu Sep 04, 2014 11:25 pm

Re: Autolevelling integration for Robo 3D R1

BaudR8 wrote: If you post the G-Codes sent by Matter Control I'm sure a few users on the forum will be able to look it over and give good suggestions on what starting script to do. I don't have a Robo3D or use Matter Control, so I don't have access to the Gcode Matter Control is using
You are right, finally logged into the forum from the attic laptop

The firmware is: RoBo3DR1AUTOV1

Here is the .stl: http://www.thingiverse.com/thing:24238/#files

And here are the first lines of the G-code

Code: Select all

G21
G28 X0
G1 X1
G28 Y0
G1 Y1
G28 Z0
M114
G1 X0.01 Y-0.01 Z6.26 F5000
M109 S198
G28 Z0
M565 Z0
M565 Z0
G1 F315
G1 Z10
G1 F3000
G1 X0Y0Z10
G30
G1 F315
G1 Z10
G1 F3000
G1 X220Y0Z10
G30
G1 F315
G1 Z10
G1 F3000
G1 X0Y210Z10
G30
M114
G1 Z1 F300
G90
G92 E0
M82
M106 S255
G1  E-1 F1800
G1 X0 Y0 Z2.16 F9000
G92 E0
G1 X104.9 Y115.81 Z2.23 F9000
G1 X104.9 Y115.81 Z1.73 F9000
G1  E1 F1800
G1 X107.11 Y114.81 Z1.72 E1.254 F1080
G1 X109 Y114.57 Z1.72 E1.453
G1 X119 Y114.57 Z1.7 E2.498
G1 X121.4 Y114.97 Z1.7 E2.752
G1 X123.54 Y116.12 Z1.7 E3.006 F1080
G1 X125.19 Y117.9 Z1.7 E3.26
G1 X126.19 Y120.11 Z1.71 E3.513
G1 X126.43 Y122 Z1.71 E3.712
I've included the commands before the printing instructions as a starter code for simplify 3d, but no luck

Here is the resulting G-code

Code: Select all

G90 ; use absolute coordinates
M82 ; absolute extrusion distances
G21 ; set units to millimeters
M106 S0
M140 S0
M190 S0
M104 S198 T0
M109 S198 T0
G21
G28 X0
G1 X1
G28 Y0
G1 Y1
G28 Z0
M114
G1 X0.01 Y-0.01 Z6.26 F5000
M109 S198
G28 Z0
M565 Z0
M565 Z0
G1 F315
G1 Z10
G1 F3000
G1 X0Y0Z10
G30
G1 F315
G1 Z10
G1 F3000
G1 X220Y0Z10
G30
G1 F315
G1 Z10
G1 F3000
G1 X0Y210Z10
G30
M114
G1 Z1 F300
G90
G92 E0
M82
M106 S255
G1  E-1 F1800
G1 X0 Y0 Z2.16 F9000
G92 E0
G92 E0
G1 E-1 F1800
; layer 1, Z = 0.18
T0
; tool H0.2 W0.4
G0 X109.9 Y96.9 F4800
G0 Z0.18 F1000
G1 E0 F540
G92 E0
G1 X124.1 Y96.9 E0.4251 F1800
G1 X124.1 Y101.9 E0.5747
G1 X129.1 Y101.9 E0.7244
MatterControl somehow applies a Z-offset to the print commands, although it's own autolevel feature is off in the settings
kaan
Posts: 16
Joined: Thu Sep 04, 2014 11:25 pm

Re: Autolevelling integration for Robo 3D R1

Turns out MatterControl enables it's own auto leveling procedure before very print, seems like a plot to cover the printr's lack of autoleveling as advertised, because it doesn't auto level with G29, here is the G-code MatterControl generates without the auto leveling, didn't test printing with it yet

Code: Select all

G21 ; set units to millimeters
G28 ; home all axes
G1 Z5 F5000 ; lift nozzle
M109 S198 ; set the extruder temp and wait
G28 Z0 ; Home Z again in case there was filament on nozzle
M565 Z0
G29 ; probe the bed
G90 ; use absolute coordinates
G92 E0
M82 ; use absolute distances for extrusion
M106 S255
G1 F1800.000 E-1.00000
G1 Z0.900 F9000.000
G92 E0
G1 X97.397 Y108.308 F9000.000
G1 Z0.400 F9000.000
G1 E1.00000 F1800.000
G1 X99.614 Y107.315 E1.25392 F1080.000
G1 X101.500 Y107.072 E1.45261
G1 X106.500 Y107.072 E1.97518
Any ideas? It seems I'm locked into MatterControl
User avatar
Randy
Posts: 2
Joined: Mon Sep 08, 2014 1:57 pm
Location: Tacoma, WA
Contact: Website

Re: Autolevelling integration for Robo 3D R1

Update - after installing the macro that Joey sent, my Robo3D R1 does a perfect 12 point auto-level and I was able to print out the bottom half of the RepRap XXL controller perfectly. Thanks!

G28; home X,Y,Z axis
G1 Z5 F5000; will lift Z axis by 5 mm
M565 Z-1; sets the offset for the auto-leveling mechanism by 1 mm
G29; runs auto-level
kaan
Posts: 16
Joined: Thu Sep 04, 2014 11:25 pm

Re: Autolevelling integration for Robo 3D R1

Thanks for all your help

I did manage to get things working with the starting script too

M565 Z-1.14 is the value that works for me

Setting -1.14 to M565 is like adding an +1.14 Z-offset, If I'm not mistaken, as M565 Z-1 didn't work for me, the extruder was almost carving the tape

I updated the firmware, but I'm guessing things didn't work for me initially as I didn't get the offset/polarity right / was under the impression that the autoleveling routine would take care of that offset too
haimiko
Posts: 16
Joined: Sat Jan 24, 2015 5:54 pm

Re: Autolevelling integration for Robo 3D R1

Randy wrote:Update - after installing the macro that Joey sent, my Robo3D R1 does a perfect 12 point auto-level and I was able to print out the bottom half of the RepRap XXL controller perfectly. Thanks!

G28; home X,Y,Z axis
G1 Z5 F5000; will lift Z axis by 5 mm
M565 Z-1; sets the offset for the auto-leveling mechanism by 1 mm
G29; runs auto-level
What "macro" are you referring to?
Yogi
Posts: 4
Joined: Tue Feb 16, 2016 3:06 pm

Re: Autolevelling integration for Robo 3D R1

I hate to dig this up, but it's a big part of my registering and joining the community is this problem.

I'm running a R1 Plus and am wondering about this macro, I didn't think it through before purchasing that MatterControl is in charge of the autolevel that I sorely miss with Simplify3d.

Any help?

Thanks!

Return to “General Discussion and Tips”