Move Z to safe before moving X, Y

94 views
Skip to first unread message

Sairfan

unread,
Jul 3, 2025, 11:45:32 PM7/3/25
to OpenPnP
When i move my machine to home Z location set to 0.00 but on status bar it shows 30.5 that acctually it should be, here is the log, please advise what went wrong setting up Z axis

ReferenceHead DEBUG: H1.moveToSafeZ(1.0)
AbstractHeadMountable DEBUG: N1.moveToSafeZ(1.0)
AbstractHeadMountable DEBUG: N2.moveToSafeZ(1.0)
AbstractHeadMountable DEBUG: UpperCamera.moveToSafeZ(1.0)
AbstractHeadMountable DEBUG: N1.moveTo((-23.000000, -62.500000, 30.500000, 0.000000 mm), 1.0)
GcodeDriver DEBUG: [GcodeDriver:COM10] >> G1   Z0.0000   F1000.00; move to target, 40000
GcodeDriver$ReaderThread TRACE: [GcodeDriver:COM10] << ok
GcodeDriver TRACE: [GcodeDriver:COM10] confirmed G1   Z0.0000   F1000.00; move to target
GcodeDriver DEBUG: [GcodeDriver:COM10] >> M400; Wait for moves to complete before returning, 40000
GcodeDriver$ReaderThread TRACE: [GcodeDriver:COM10] << echo:busy: processing
GcodeDriver$ReaderThread TRACE: [GcodeDriver:COM10] << ok
GcodeDriver TRACE: [GcodeDriver:COM10] confirmed M400; Wait for moves to complete before returning
AbstractMachine TRACE: Machine entering idle state.



tonyl...@gmail.com

unread,
Jul 4, 2025, 10:53:38 AM7/4/25
to OpenPnP
Please attach the entire log file and your machine.xml file.

Sairfan

unread,
Jul 4, 2025, 4:34:21 PM7/4/25
to ope...@googlegroups.com
machine.xml and log files are attached.
Thanks

--
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 visit https://groups.google.com/d/msgid/openpnp/2ff92103-41e3-4553-b16c-96cb33628106n%40googlegroups.com.
machine.xml
OpenPnP.0.log

tonyl...@gmail.com

unread,
Jul 5, 2025, 12:07:03 PM7/5/25
to OpenPnP
Are you using Issues & Solutions to setup your machine? It says, "Nozzles N1 and N2 have the same Z axis assigned." You should change N2 to use Z2.

You haven't stated exactly how your machine physically homes the Z axis. It looks like you are trying to home with one nozzle all the way down and the other all the way up. How are you going to prevent the nozzle that is lowering from crashing into something?

Sairfan

unread,
Jul 5, 2025, 12:38:37 PM7/5/25
to ope...@googlegroups.com
I  was monkeying around and set N2 to Z1 if N2 is set to Z2 i get same result

 How are you going to prevent the nozzle that is lowering from crashing into something?

That is what Im looking for I want to move Z to save zone 30.5mm before any move but it moves to 0mm I do not know how can i move z to safe zone before any move. I set Z Home/Safe to 30.5 but it does not work I was looking at Wiki it does not describe clearly how z axis can be moved to safe zone

If you see above log that i copied in my first email, you can see N1moveTo Z30.5 but in gcode command you can see G1 Z0.000 that is what i cant understand when N1 is asking to move Z to 30.5 why gcode is moving to Z0.00 

tonyl...@gmail.com

unread,
Jul 5, 2025, 1:38:16 PM7/5/25
to OpenPnP
One way is to have springs that return both nozzles to the "neutral" position when the Z motor is un-powered. Then as part of the homing command, power-off the Z motor, pause for a few seconds to wait for the springs to do their job, and then power-on the motor. Then you can safely home X and Y and when that is done have the machine move to somewhere safe to do the actual Z homing.

Another way is to mount the homing switch so that it is closed when N1 is anywhere below the "neutral" position and open when N2 is anywhere below the "neutral" position. That way, the controller can tell which way to move the motor to get both nozzles to the "neutral" position.

Carson reeds

unread,
Jul 7, 2025, 7:47:16 PM7/7/25
to OpenPnP
great
Reply all
Reply to author
Forward
0 new messages