Fabian has already given good advice.
I'm not very familiar with the Lumen setup. If Z values are in the positive range, where they are normally in the negative range, then this might be coming from how the homing is done. Most dual nozzle machines home their nozzles in the balanced position, either by powering off the motors and letting springs pull them there, then powering motors back on an resetting the Z coordinate, or by using a homing switch that engages when the nozzles are (more or less) balanced.
It seems Lumen does it differently: touches one nozzle down until
it hits a defined surface using stepper driver stall sensing. That
would give you positive coordinates. The second nozzle would then
have to have an offset in a ReferenceMappedAxis
to be at the same Z, numerically.
That positive Z setup is theoretically admissible in OpenPnP, but it has practical caveats:
https://github.com/openpnp/openpnp/wiki/Machine-Axes#a-word-about-z-coordinates
If you want to change that, you need to manually edit your HOME_COMMAND, so that after touch-homing
it moves back up using G0 Z30
assuming for example it takes 30mm until the nozzles are balanced
(you would have to measure or try&error that Z offset). Then
use G92 Z0 to reset the Z
coordinate to be 0 at that balanced
position. Maybe you can also roll this into one command as some
controllers allow you to home to a specific coordinate, something
like G28 Z-30 this time you need to
specify the negative offset, as it is at minus 30mm after homing.
Then you have to redo all the Z related I&S stuff. Maybe it
is easier/safer to start from scratch (but backup your custom HOME_COMMAND).
If this works, please publish here, it will perhaps help the next
guy.
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/e6d21c73-0718-47d0-9483-a36689226855n%40googlegroups.com.
It just occurred to me, when I said...
> The second nozzle would then have to have an offset in a ReferenceMappedAxis to be at the same Z
.. it was likely not done there, but simply as a nozzle Z offset
on the nozzle itself.
Wherever it is: you need to remove that offset when you fix it at
the HOME_COMMAND level.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/6688dffb-563e-4b0a-9e79-fadd81e6b235n%40googlegroups.com.
Hi Nicholas
thanks for documenting this!
Can you elaborate how this works now?
If the last description of the machine hardware is still true (homing N2 to Z max), then I think this is not yet quite right.
Logic would dictate it should read like this:
1. GcodeDriver | Default | HOME_COMMAND:
M204 T2000 ; Sets
acceleration for homing
G28 X ; Initial X home for first boot
G28 Y ; Initial Y home for first boot
G28 ; Home all axes
G1 Z31.5 ; Move to new Z home (absolute move)
G92 Z0 ; Establish new Z home position as 0
I also suggest the green line for safety: if the machine is
in-deed homing to N2 Z Max, then it would be dangerous before the
head is in its corner, where the N2 can go up all the way and
therefore the N1 all the way down without collision.
Or maybe I'm missing something?
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/438558ed-8122-456f-9aea-56b532573f19n%40googlegroups.com.
Ah, so they configured Marlin for a Z retract of 31.5mm, that's another way to do it.
Note the proposed line (below) would still work, it would just
not move (thanks to absolute coordinates).
G1 Z31.5 ; Move to new Z home (absolute move)
But I still recommend you add it, as it allows you to adjust the balance point without recompiling the Marlin firmware, so for instance if you set it to Z31.75 after having carefully balanced the nozzles, it would still be effective!
You also had this line, which is syntactically wrong, it is missing the axis letter:
G1 0 ; Move to new Z home (absolute move)
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/9d93c7aa-4fe2-4737-a54e-b65e91bd5e04n%40googlegroups.com.