G2 board: how to set the nozzle offset (M212 thing) [SOLVED]

G2 board: how to set the nozzle offset (M212 thing) [SOLVED]

Postby Barafu Albino » 2017-Apr-Tue-17-Apr

Subj. How to set the Z difference between the probe and the nozzle? G2 does not support M212 and fiddling with G5X commands seems to break tram calculations. Who has it working, please explain me.
  • 0

Last edited by Barafu Albino on 2017-Apr-Thu-10-Apr, edited 1 time in total.
Barafu Albino
Waiting to connect to printer...
 
Posts: 7
Joined: 2017-Apr-Sun-11-Apr
Reputation: 0

G2 board: how to set the nozzle offset (M212 thing) [SOLVED]

Sponsor

Sponsor
 

Re: G2 board: how to set the nozzle offset (M212 thing)

Postby Barafu Albino » 2017-Apr-Thu-10-Apr

I have contacted the developer and they explained it to me.
Quoting:

We recommend using the G55 offsets to handle this. This has a few advantages, some of which will be realized once we have the settings saving in flash.

So, at the top of the file, put an M100.1 that sets the G55 Z offset. Then put a G55 after the tram command (which is in the G29, so after that). From then on the G55 offsets will be applied to all incoming commands.

So, to show what that looks like (in Marlin flavor gcode):
Code: Select all
M100.1 ({g55z:-0.8})
; temperature commands here
; homing commands here
G29        ; run auto bed leveling
G55        ; apply offsets
; temperature waits here


One additional note, if you're entering this into Cura (and maybe other senders, test to find out), you'll need to double the { and } so it keeps them intact. So a more complete example for Cura would look like this:

Code: Select all
M100.1 ({{g55z:-1.85}})
M140 S{material_bed_temperature}
M104 S{material_print_temperature}
G21              ; metric values
G90              ; absolute positioning
M82              ; set extruder to absolute mode
M106             ; start with the fan on for filament cooling
G28 X0 Y0        ; move X/Y to min endstops
G28 Z0           ; move Z to min endstops
G29              ; run auto bed leveling
G55              ; apply offsets
G1 Z15.0 F9000   ; move the platform to Z=15mm
M190 S{material_bed_temperature}
M109 S{material_print_temperature}
G92 E0           ; zero the extruded length
G1 F200 E10      ; extrude 10mm of feed stock
G92 E0           ; zero the extruded length again


The {material_bed_temperature} will be replaced by Cura to be that setting. The M100.1 ({{g55z:-1.85}}) will be replaced to be M100.1 ({g55z:-1.85}) in the output gcode.

Hopefully this helps.
  • 0

Barafu Albino
Waiting to connect to printer...
 
Posts: 7
Joined: 2017-Apr-Sun-11-Apr
Reputation: 0

Re: G2 board: how to set the nozzle offset (M212 thing) [SOL

Postby Mooselake » 2017-Apr-Thu-10-Apr

Cool! TinyG includes workspace support, glad to see they carried it along instead of the z offset kludge.

Workspaces, you say? If you care, Google and the reference section of LinuxCNC.com are a good starting point. Workspaces (more than one at a time are possible) are often used to set zero at the top of the workpiece, the chunk of whatever you're about to attack with spinny sharp cutting tools. Gosh, we're getting closer to real g code

Kirk
  • 0

Modified KickStarter Classic Plus 7/2012
KS Thingybot Delta Pro 10/31/16
User avatar
Mooselake
My next printer is...
 
Posts: 3509
Joined: 2011-Dec-Tue-23-Dec
Location: Moose Swamp, Upper Michigan, USA
Reputation: 170

Re: G2 board: how to set the nozzle offset (M212 thing) [SOL

Postby Barafu Albino » 2017-Apr-Thu-18-Apr

I know about this stuff. The problem was that I tried to use G28.3 or G10 or G92 instead, and while all of them did shift coordinates system, all of them also cancelled out the tram compensation. The M100.1 ({g55z:-0.8}); G55 is the only working way for now that I am aware of.
  • 0

Barafu Albino
Waiting to connect to printer...
 
Posts: 7
Joined: 2017-Apr-Sun-11-Apr
Reputation: 0


Return to Simple talk (hardware)

Who is online

Users browsing this forum: No registered users and 2 guests

cron