Cal steps after nozzle tip change

19 views
Skip to first unread message

Common Spotted Cuscus

unread,
Nov 8, 2025, 3:36:29 PM (13 days ago) Nov 8
to OpenPnP
Hi People,

Another issue with my wet noodles machine, is the toolchanger (and the whole z axis) is a bit sketch.
What I'd like to do after a nozzle swap is:

-Home Z only
-Go to Z park
-Visual home X/Y
-Z cal
-Nozzle tip cal over bottom cam

The last two steps are happening via available options. For the rest I suspect I could write a script for, which I have never done in openpnp. 
Can someone verify if this is a sane path to take and maybe point me to what's the best entry point to get this implemented? (E.g. are there an example script or something built in that I can look at, and it acts on some similar event doing similar tasks.)

Thanks!

Common Spotted Cuscus

unread,
Nov 8, 2025, 6:38:53 PM (13 days ago) Nov 8
to OpenPnP
Sorry for the unnecessary monologue. This was a lot simpler than I expected.
At least it seems to be working. 

For anyone who cares or wants to point out anything wrong in it:

Made a dummy actuator that has the homing gcode in it on actuation.
Then put this script in the scripts/Events folder as NozzleTip.Loaded.*.py 
from org.openpnp.util.UiUtils import submitUiMachineTask

homer = head.getActuatorByName("HomeZ")
submitUiMachineTask(lambda: homer.actuate(True))
submitUiMachineTask(lambda: head.moveToSafeZ())
submitUiMachineTask(lambda: head.visualHome(machine, True))
submitUiMachineTask(lambda: nozzle.calibrateZ(nozzle.getNozzleTip()))
submitUiMachineTask(lambda: nozzle.calibrate())



Reply all
Reply to author
Forward
0 new messages