Hi Marius
in my opinion:
1. use the Z-probe on both heads. Save the two Z values.
2. If the delta between the two Z values is larger than a certain amount, you know that one or two nozzle tips are not mounted.
3. If one or two nozzle tips not mounted: Tell the user, abort the homing.
4. If both tips are mounted: move to the mid-point between the two Z values. Let Z be zero (home Z à G92 Z0).
Cons:
· You would have to use a custom homing script, I guess. Or add the capability to OpenPNP.
Pros:
· You could use the newest unmodified Smoothieware and benefit from present and future upgrades.
· You get Z probing in picking and placing.
· No manual precision part height data entry needed.
· No problems with feeder Z height inaccuracies.
· No problems with varying nozzle tip lengths.
_Mark
> Hello Mark
> Can you explain - link to this -;
> You could use the newest unmodified Smoothieware and benefit from present and future upgrades.
As far as I know, the modified firmware for mid-Z-switch homing is more than two years old (June 2016).
https://groups.google.com/d/msg/openpnp/j-M0oRjt-Uk/KSOboB3eAwAJ
There have been important changes in the Smoothieware since.
Unfortunately the patch by Jason (that was not integrated) is not compatible anymore.
https://github.com/openpnp/Smoothieware/commit/5de985c2a51398c59202e47eb462e57847197f84
Smoothieware seems to have changed a lot since underneath. It seems that some (or all) of the 6-axis support, and the new end-stops syntax was added later.
One could still try to re-implement it, of course.
> You get Z probing in picking and placing.
> No manual precision part height data entry needed.
Mike, I think we already talked about this. J
Adding Z-probing on each pick and each place makes the machine and parts and feeders much simpler to setup, more tolerant to mechanical inadequacies, therefore more reliable.
See the last discussion:
https://groups.google.com/d/msg/openpnp/OCEScmV4mic/H7LkRfgSAwAJ
See the result:
https://makr.zone/pick-place-machine-first-simulated-small-test-run/66/
Note that all credit for the mechanical Liteplacer Z-Probing system that I use must go to Juha!
https://www.liteplacer.com/the-machine/assembly-instructions/pnp-head-step-13-pnp-head-assembly/
I’m sure there are more sophisticated solutions like your hall sensor, piezo etc.
https://groups.google.com/d/msg/openpnp/S7pDpZGIjmk/Soa8hZSqAAAJ
_Mark
You may have to adjust the z offset after homing.
If you have spring loaded nozzles there is a bit of forgiveness if a part height is not set 100% correct.
Hello Gents,
I have no problem sharing my approach on height sensing and I do hope many of readers will go for it.
Mike
Hi Mike
I would not worry about the config file template version you used. The firmware (.bin) is the important part.
Even if you update the firmware afterwards your config file should still work well. All reasonable firmwares will use benign default values for new settings and features. Even if the config syntax itself changes, the old syntax is usually still supported. I know from browsing the source code that Smoothieware does this extensively and well.
Example:
Endstop config old style:
http://smoothieware.org/endstops-options
Endstop config new 6axis style:
http://smoothieware.org/6axis#using-additional-axes
Just don’t mix them J
As long as everything still works after a firmware update, don’t worry! J
_Mark
Hi Mike
Sorry I confused you. Just wanted to make my answers correct for all eventualities, but I see now that this is confusing.
Trying to make it simpler:
· You have more than 5 axis?
à need to compile your own Smoothieware (I could help).
· You have a “Peter’s Head” or similar two-nozzle head with mid-axis homing switch?
à need to take Jason’s modified 2016 firmware.
· Otherwise
à just take the latest edge firmware from the link named here:
http://smoothieware.org/flashing-smoothie-firmware
Also:
· Don’t worry about the confix.txt template version you originally used, it ought to be compatible with newer firmware.
· Don’t worry about the bug I described, as it is not relevant for normal OpenPNP use.
_Mark
-----Ursprüngliche Nachricht-----
Von: ope...@googlegroups.com [mailto:ope...@googlegroups.com] Im Auftrag von Mike Menci
Gesendet: Freitag, 2. November 2018 13:15
An: OpenPnP
Betreff: AW: [OpenPnP] Z homing options
--
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 post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d9048c03-b27e-4259-9d68-fa5816b0bff0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/62edce15-0cda-46ed-9f09-e6206c3d6594%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> Marius Liebenberg:
> Mark
> Just to be clear. I have a Peter style dual head but going to use probing on both heads. I will fit only one Z homing switch and use the normal Smoothie 5 Axis firmware?
Marius
Yes and no. J
Sorry it’s complicated: There’s a bold and a safe way to proceed. Luckily, both ways can be combined J
Yes, with the Z probe homing procedure I described earlier (repeated below), you can go forward with the 5-axis off-the-shelf edge firmware. If you have the Z-probes in place on both nozzles, there is no use for a separate Z homing switch and it is not supported by the edge firmware.
No, if you want to play it safe, then add a mid-Z homing switch, but add it so it triggers when the nozzles are precisely at the same height. You then need to use Jason’s 2016 firmware. I doubt this firmware already supports Z-probing as the zprobe Wiki page was only introduced in Jan. 2017.
Note that both Z probes must share the same “normally closed” end-stop circuit (open collector) and the same pin on the Smoothieboard, because Smoothieware does only support one Z-probe (as far as I know). However you’d need a separate end-stop circuit for the mid-Z homing switch.
If you add both ways physically you can always switch between the two homing methods. Switching the firmware is very quick and easy but it might require separate config.txt and separate machine.xml. You would be veeery future proof this way and you could safely start with the conventional miz-Z homing method (2016 firmware) for now.
Be aware, that the new Z-probing homing procedure would need a script. I can help with the Z probing G code but I never wrote a script yet (it seems simple, though).
Homing procedure:
1. use the Z-probe on both heads. Save the two Z values.
2. If the delta between the two Z values is larger than a certain amount, you know that one or two nozzle tips are not mounted.
3. If one or two nozzle tips are not mounted: Tell the user, abort the homing.
4. If both tips are mounted: move to the mid-point between the two Z values. Let Z be zero (home Z à G92 Z0).
Caveat: As the Z probing homing does not work if nozzle tips are not mounted, you would need to manually mount the tips to begin with and possibly have to edit machine.xml to tell OpenPNP that the tips are mounted (and which one where). Then also never switch off your machine with tips currently unloaded J.
In the future perhaps the mid-Z homing can be reintroduced in the new firmware so the nozzle tips can be loaded normally.
The best future solution would be Z-probing before changing nozzles (off and on). This makes sense for all machines (single nozzle machines too) as brutal collisions with the nozzle tip changer are the most serious “machine breaking” problem in my limited experience. Even tiny errors in Z position will snag the nozzle tip on the changer and very nasty physical things happen! I wasted a nozzle tip holder already and at one time whacked the machine so hard, I had to redo the squaring and lost all coordinate setups in the course (ouch in deed!).
I’m planning to add that to OpenPNP but no promises as to when I find the time.
_Mark
> Mark please reply to this above - I replace .bin with .bin on Smoothie SD card only ? Correct?
> Mike
First, best make a backup of your current firmware.cur and your config.txt.
Then go forward as described here:
http://smoothieware.org/flashing-smoothie-firmware#copy
You copy the firmware.bin to the card but after it has been flashed to the controller it is renamed firmware.cur
So if you later need to go back, rename a copy of your backed up firmware.cur to firmware.bin and repeat.
_Mark
> Marius Liebenberg:
> Does this make sense?
Hmmm… if you want to hardcode the half travel distance between the two Z probe points then yes. It allows you to go without a script, just G code needed then.
NOTE It only works if you don’t have a nozzle tip changer of course, otherwise it would trigger as soon as you unload a tip J
If you still want to calculate the mid-point from the actual two Z-probe values then it’s unnecessary, really. When you calculate the distance you can also easily check if the nozzle tips are mounted.
Do you actually plan to add a nozzle tip changer, later? Then you’d probably want to support starting the machine without tips.
_Mark
Sorry, Mike, I don’t understand what is your intent with that mail.
I think you can’t have negative values. See documentation here:
„gamma_homing_retract_mm … Distance to retract the alpha actuator ( Z axis or gamma tower ) once the endstop is first hit, before re-homing at a slower speed.”
http://smoothieware.org/endstops#configuration
_Mark
Mike Mencinger
> Sorry my mistake..
> Earlier with old firmware it was "homing" -horizontal-both nozzles - with new Firmware I get this homing - see picture
> Seams I need to play with value in the configuration file "Gamma-homing retract" to get it beck to home even - horizontal both nozzles
Mike
I think you missed the important fact, that as long as you still want to use the mid-Z-homing switch you cannot upgrade the firmware!
You must understand that while one of your nozzles is down, the homing switch signal is constantly engaged. When you switch on your machine and this is the case, Smoothieware cannot home. Jason’s change specifically addressed exactly this issue by first moving out of the switch and only then do the actual homing.
If you want to upgrade the firmware, you need to change your homing to the Z probe procedure or something similar.
Sorry, I thought I made this very clear, as I wrote:
> You have a “Peter’s Head” or similar two-nozzle head with mid-axis homing switch?
à need to take Jason’s modified 2016 firmware.
Well as I am writing this, I have a new (old) idea.
What happens is you configure your mid-Z-homing switch as a Z probe for now.
See here:
http://smoothieware.org/zprobe#configuration
Then using a terminal (Pronterface) issue
G38.4 Z-40 ; get out of probe signal by max. 40mm
G38.2 Z+40 ; probe Z by max 40mm
G28 Z0 ; set this as home
G28 X0 Y0 ; home X and Y
Perhaps you need to reverse the signs (both together) and change the maximum distance.
_Mark
Sorry a mistake in my G code:
G38.4 Z-40 ; get out of probe signal by max. 40mm
G38.2 Z+40 ; probe Z by max 40mm
G92 Z0 ; set this as home
G28 X0 Y0 ; home X and Y
_______________
--
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 post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/018b01d472d8%242538aa40%246fa9fec0%24%40makr.zone.
Hi Mike
> Hello Mark
> No problem - I don not need those changes - I am fine tuning in 0.2mm already with adjusting gamma_homing_retract to + value
> this works for me...
Hope you are right. But I have my doubts.
1. Unpower your machine (or just the motors).
2. Move nozzles to random power-up position by hand
3. Power machine
4. Home
Do this a few times with different random power-up positions both left- and right-leaning.
Homing still accurate?
I can image it works if your power-up position is always either left- or always right-leaning. But not both ways.
> Thanks for your help
You’re welcome! J
_Mark
G38.4 Z-40 ; get out of probe signal by max. 40mm
G38.2 Z+40 ; probe Z by max 40mm
G92 Z0 ; set this as home
G28 X0 Y0 ; home X and Y
> I do not have 40 mm stroke on Z (only 20 mm )
This is just the maximum distance it probes for the switch to engage. It should actually never be exhausted, so it doesn’t matter if it is too much.
The maximum given here will only limit the distance it probes if the stepper or the switch is disconnected or the nozzle is blocked etc.
Have you configured the probe? It won’t work otherwise.
_Mark
Hi Mike
Z-probe config is here:
http://smoothieware.org/zprobe#configuration-options
There are three possibilities:
1. With the new firmware and Z-probe configured: you can connect your mid-Z homing switch as the probe, then you should be able to home using Z-probe G code, see my previous email (below). But no probing on pick&place! It’s just a way to use the new firmware for other benefits than probing.
2. With the new firmware and Z-probe configured: you can connect both your hall sensors as Z-probes. Then use a left/right-probing script to calculate the mid-point and to set Z=0 home. See my description earlier in this thread.
3. With the old firmware: as before with the mid-z homing switch.
Hope this helps (have limited time).
_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 post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/21ba5116-33fc-4334-a01a-a2c91ecac4b1%40googlegroups.com.
Hi Mike
Z-probe config is here:
http://smoothieware.org/zprobe#configuration-options
There are three possibilities:
1. With the new firmware and Z-probe configured: you can connect your mid-Z homing switch as the probe, then you should be able to home using Z-probe G code, see my previous email (below). But no probing on pick&place! It’s just a way to use the new firmware for other benefits than probing.
2. With the new firmware and Z-probe configured: you can connect both your hall sensors as Z-probes. Then use a left/right-probing script to calculate the mid-point and to set Z=0 home. See my description earlier in this thread.
3. With the old firmware: as before with the mid-z homing switch.
Hope this helps (have limited time).
_Mark
Von: ope...@googlegroups.com [mailto:ope...@googlegroups.com] Im Auftrag von Mike Menci
Marius,
first let me remind you, that I don’t have a dual head, so all this is pure theory for me. J
I think your method would be the best if you have separate Z actuators that can lower each nozzle independently of the other(s). Then it would actually be brilliant!
If however you have shared Z axes (lowering one nozzle will rise the other) then your method would probably create some problems with safe Z.
If you calibrate your nozzles individually (like you said in your mail), then safe Z will not necessarily correspond to the same raw i.e. translated Z value for both axes. The nozzles will likely wiggle back and forth, as both Z axes are repeatedly driven to safe Z by OpenPNP. This might also slow down your machine.
You could perhaps adjust safe Z each time after your calibration, to reflect the new mid-point. Or we could change OpenPNP to only drive a nozzle to safe Z if it is currently lower than safe Z.
Anyway you’d need a script or change OpenPNP code for your calibration.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8b4f102d-f384-489f-8dcb-e6b5b1877e37%40googlegroups.com.
By mistake....
mike
Hi AllI have a Peter Betz type dual head. I am looking at the best option for homing the Z axis.My thoughts are:1: Put a limit switch on one of the heads and us that in the usual cnc manner to home the Z axis. Dont know how to get the second head homed? Maybe a calculated offset?2: Put a probe on the machine (there is one anyway) and probe each of the two heads.What happens if there are no nozzles in the heads? What other problems could there be?Any suggestions please?