
> When you power on PNP, openpnp does not know the position of your nozzle, so it cannot move the z-axis motor in the correct direction according to the current position of the nozzle.
I'm afraid this is not correct 😉
Firstly, it is not OpenPnP's, but entirely the controller's
responsibility (or more specifically the firmware's) to do it.
OpenPnP is just giving it a completely abstract homing
command, it has no notion of how to achieve the homing,
whatsoever.
Secondly, if you build the hardware right, the controller
does know which way to move after power-on.
The first ingredient to support this is to have a switch, that engages all the way when one nozzle is down. It is easy to build such a hardware, just make sure the switch is pressed by a bar that goes all the way, when the nozzle is going down:

(footage credits: Mike Menci)
The second ingredient is a controller firmware that supports this scenario, i.e., it must support moving to the right side, if the switch is found to be engages initially. In case of Smoothieware, you need my modified firmware, as Satya already mentioned.
https://makr.zone/smoothieware-new-firmware-for-pnp/500/
If you have hardware that just momentarily engages the
switch when the nozzles are balanced, then this will not work. One
solution is to use springs, and to unpower the motors (there are
usually G-code commands to achieve this) to let them snap back to
balance. Even if that is not an accurate initial positioning, it
is a safe position, i.e., you can then do a deterministic
homing cycle from there, i.e. first move to one side a bit, then
move back slowly until the switch engages to get a precise
position. Again, this is ultimately done by the controller, not by
OpenPnP, but you can customize the G-code to do so.
_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/0f78df66-879e-4d25-958c-54e80a9d520bn%40googlegroups.com.

Please show picture of the mechanism. There might be some easier waya
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/a6c05d3e-7187-4672-a843-8e9753726d6fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAC%2BEaohJ9emd3k9prqK24LFC-_FHqNAoWZZ2eYhG07%2Be7-xpPw%40mail.gmail.com.
