Nozzle calibrations work not corectly

350 views
Skip to first unread message

bacrua

unread,
Jan 29, 2021, 8:32:53 AM1/29/21
to OpenPnP
Hello. Initially set to calibrate injectors after driving home. If an error occurs during calibration, you need to go home again, as manual calibration is not possible due to the "houming" setting. If I switch to "manual" mode, I will not be able to calibrate either, since the changes will take effect after restarting the program.
Output:
   Ideally, regardless of the selected mode, manual calibration was always performed by pressing the "manual calibration" command (this is logical, since choosing a mode only saves you unnecessary trouble, and not how you should not block the work manually if such a situation arises).
Change the program code so that the selection of the “manual”, “houming” mode takes effect without restarting the program.
Since it is very annoying when the calibration error occurs several times in a row.
Безымянный.png

ma...@makr.zone

unread,
Jan 29, 2021, 11:54:21 AM1/29/21
to ope...@googlegroups.com

> Change the program code so that the selection of the “manual”, “houming” mode takes effect without restarting the program.

Sorry I don't understand. I need a longer explanation how it should behave in what case.

However, I feel that the real problem is the pipeline. You need to make it more robust, so that failures almost never happen. I'm confident this can be achieved. 

I consider calibration as part of homing a very good practice and failure should also fail the homing cycle. That's sort of a pre-flight check for the machine and vision in particular, same as visual homing.

If you "postpone" the vision problem it will instead fail in the middle of a job where it is much more inconvenient, or could even lead to spoiled parts/boards.

_Mark

Безымянный.png --
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/b0ebf4e8-7c6b-479b-b37e-4603f0b06eb0n%40googlegroups.com.

ozzy_sv

unread,
Jan 29, 2021, 12:12:11 PM1/29/21
to OpenPnP
I do not see a problem in this, maybe it is worth adjusting the pipeline more precisely so that there are no errors during calibration


пятница, 29 января 2021 г. в 19:54:21 UTC+3, ma...@makr.zone:

bacrua

unread,
Jan 29, 2021, 1:27:06 PM1/29/21
to OpenPnP


1 Run the program, change the nozzle calibration mode "MachinHoume" and apply the changes.
2. restart the program and start up the machine.
3. When performing a calibration, close the nozzle to cause the program to generate an error.
4. Click on the "Calibration" button. (a dialog appears that the "MachinHoume" mode is set). And it should work. Since the "MachinHoume" mode is not a blocking of the "manual mode", but a mode for convenience and getting rid of unnecessary fuss.
5. Click OK in the dialog box.
6. Change the calibration mode "manually" and apply the changes.
7 Click on the "Calibration" button (a dialog will appear that the "MachinHoume" mode is set). And it should work. Since we set the mode to "manual". The manual mode will only take effect if you restart the program.
8. Now we restart the program, restart the machine, the manual mode has taken effect.
PS. My visualisation is lost due to camera position and lighting. I turn on the lighting and the flashlight shines directly into the camera. (this is such an inconvenience of mine) But still the manual mode should not be blocked. He is to immediately correct the situation. And was not block. For example: the autopilot of an aircraft is disabled when the pilot takes the helm, immediately, without restarting and unnecessary actions. (Our situation is different. To fix it, you need to turn it on, turn it off, restart, wait and if it happens again, start over).
Example 2: The automatic traffic control light is working, but if necessary, the traffic controller comes out and does not turn off the traffic light, but manually corrects the situation.
Well, I explained as I could. THANK YOU VERY MUCH FOR YOUR WORK, WITHOUT YOU I WOULD BE WEAK.
пятница, 29 января 2021 г. в 19:12:11 UTC+2, ozzy_sv:

ma...@makr.zone

unread,
Jan 29, 2021, 2:34:18 PM1/29/21
to ope...@googlegroups.com

After 6 you could home again. No need to restart the program.

Maybe I'm still missing something?

_Mark

bacrua

unread,
Jan 29, 2021, 3:26:21 PM1/29/21
to OpenPnP
Why lock the calibration button? Instead of just pressing a button to calibrate, you need to drive the car? Actually, I set the calibration to "homeming". the calibration softkey is locked. WHAT FOR? WHAT DOES IT GIVE? If it works fine, I will not look there.
Why, instead of making it easier, you need to make difficulties, and then overcome them.
 What are the problems. I can park "home" 50 times in a row. And remake the machine, and do not turn on the lighting, and arrange it at random, and then correct it with tweezers. The question is different. FOR HOW MUCH CONVENIENT TO USE.
2. If I change the mode from "homeming" to "manual" then the changes should take effect after pressing the "apply" button. But not after restarting the program.
P.S. Or am I somehow not correct. Why the obvious things that I would do in one click, YOU do in a few or the most time consuming.
What is your age?

пятница, 29 января 2021 г. в 21:34:18 UTC+2, ma...@makr.zone:

tony...@att.net

unread,
Jan 29, 2021, 4:19:31 PM1/29/21
to OpenPnP
Ok, I think I understand the problem.  I've tried on my machine and I can switch nozzle tip calibration back and forth between MachineHome and Manual with just the Apply button.  And the Calibrate button is available either way.  Now if I have it set to MachineHome and the calibration fails after homing, the machine is in the not homed state (the home button is yellow).  So if I press the Calibrate button at that point, I get an Error dialog "Machine not yet homed, nozzle tip calibration request aborted."  At that point I can change to Manual and recover by pressing the Home button again to home the machine.  After which I can run calibration manually.  No restart of OpenPnP necessary.  But I think the real point is that the machine should be in the homed state whether nozzle tip calibration passes or not - after all, the homing really was successful, why not be in the homed state? 

Tony

bacrua

unread,
Jan 29, 2021, 5:40:21 PM1/29/21
to OpenPnP
You perform a home when a mechanical problem occurs or when starting the machine. I did not calibrate the injectors after replacement (I have no such opportunity), but I think that the calibration after replacing the injectors is not tied to the "home movement". What I mean. When replacing nozzle, the mschine does not go home. Moreover, I just moved my head and then wanted to direct the nozzle towards the camera. To do this, I pressed the "nozzle above the camera" button. It now displays correctly above the camera. But I cannot calibrate. Once again, what do you get, what are the benefits of locking the calibration button? If in manual mode I do the same thing as in the " MachineHome ". And the "MachineHome" mode performs a set of movement commands for me. But after doing my actions for me, I no longer have access.
In manual mode
1.turn on the machine
2 Automatic or manual transition to "home"
3 choose a nozzle
4 press the button to move the attachment to the camera
5 press calibrate.
if not calibrated, I press calibration, if not calibrated again, then change the parameters and press calibration again.
What does the program do automatically?
Repeats points 1-5 for me. This is the whole function of this mode. But in this function, point 5 is blocked by the " MachineHome " mode, and I cannot repeat the calibration as many times as necessary for a successful calibration. What are the benefits and need for blocking? In my case, this leads to the uselessness of this mode. Since this leads to unnecessary movements and wasting time on clicks, movements, restarts. But with automation, it's silly not to use it.
It makes no sense to use programs and equipment that should make the task easier.
пятница, 29 января 2021 г. в 23:19:31 UTC+2, tony...@att.net:

ma...@makr.zone

unread,
Jan 30, 2021, 6:25:25 AM1/30/21
to ope...@googlegroups.com

Hi Tony

We could create a new calibration setting called "FirstNozzleUse". It could postpone calibration to the first use of the nozzle/tip that matters, e.g. before the first pick or before the first nozzle tip unload.

But I'd like to keep the MachineHome the way it is.

I wrote this logic and my intention was to make the calibration a part of the homing cycle. I have 0.2mm run-out on that nozzle tip holder*, I guess you can see that running the machine that way is a no-go. Before the nozzle is calibrated, the machine is simply not considered homed.

The same applies to visual homing. Only the homing fiducial is stable on my machine, the Liteplacer has the end-switches mounted with only one screw plus they are in harms way when a crash happens, so you can never rely on end-switches on a Liteplacer. So if visual homing fails, I equally consider the machine unhomed.

Like I wrote earlier, this extended homing cycle is sort of a pre-flight check for the machine. If it does not work due to pipeline problems, it is a good thing the machine would not continue. You then need to solve the pipeline problem before anything else.

Many things get tested through a successful vision cycle. From basic motion, to light, to camera settling etc. This is also essential for testing during development. It has saved my machine from crashes many times already.

_Mark

*) Yes, I have a replacement nozzle tip holder that I should mount, but that's beside the point.

bacrua

unread,
Jan 30, 2021, 7:17:27 AM1/30/21
to OpenPnP
Good day and thank you.
It does not interfere. Stopping the machine and work in case of failure YES. But why block the ability to fix manually? After all, in the end, after a failure, everything is done under the control of the machine operator. The machine operator makes the decision. As a result, the machine operator will return to the same action, but through unnecessary actions. If the decision is made by the machine operator, why block his actions.
There is no need to add "FirstNozzleUse", this is an unnecessary clutter of the program code and does not add any improvements. In an extreme case, just make the application of the modes without restarting the program. (changes take effect after clicking "apply"). If you think that machine operator access is not top priority.
суббота, 30 января 2021 г. в 13:25:25 UTC+2, ma...@makr.zone:

ma...@makr.zone

unread,
Jan 30, 2021, 7:52:49 AM1/30/21
to ope...@googlegroups.com

> But why block the ability to fix manually?

First of all, you can't calibrate when the machine is not at least mechanically and/or visually homed. Otherwise, the Machine does not yet know how far and which way to move to the bottom camera.

So to support what you propose, we would have to store multiple states "Mechanically homed", "Visually homed", "Homed and Nozzle tip calibrated", etc. and for each homing related calibration we'd need to add one new state. And then you'd have to start assigning "minimal homing states" to the various user functions. That's becoming very complex for something that is IMHO really not a true problem.

Like I said: Set to Manual. Home. Fix the pipeline. Set to MachineHome. Problem gone for good.

_Mark

bacrua

unread,
Jan 30, 2021, 8:35:11 AM1/30/21
to OpenPnP


Then just switch modes, the changes took effect immediately after clicking "apply"
суббота, 30 января 2021 г. в 14:52:49 UTC+2, ma...@makr.zone:

james.edwa...@gmail.com

unread,
Jan 30, 2021, 9:50:48 AM1/30/21
to ope...@googlegroups.com

Hi, Mark. I would like to interject a “use case”. I never switch nozzles, I always use a 3cm diameter bellows. When I calibrate the nozzle I set the pipeline to see the brass fitting in the middle and calibrate, and all is OK. But if I want to calibrate the camera, then the nozzle is moved so far away that the camera can’t see the fitting, and the calibration fails. To calibrate the camera I have to switch to a very small nozzle so I can have a pipeline that can calibrate both the nozzle and the camera. It would be good (for me) if there were separate pipelines for calibrating the nozzle step and calibrating the camera step.

By the way your comments about the camera “learning” the shape were very interesting. I could see that would be very useful.

Best, Jim

--

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/b0ebf4e8-7c6b-479b-b37e-4603f0b06eb0n%40googlegroups.com.

--
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.

--
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/2842aa0d-d7e4-425e-b6a7-6f3a297cf9d2n%40googlegroups.com.

--
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.

tony...@att.net

unread,
Jan 30, 2021, 11:35:39 AM1/30/21
to OpenPnP
Hi Mark,

First I want to say that I think this is a pretty minor issue as you said, "Just change the setting, home the machine, and fix the pipeline...."

However, just to pick at this a bit more:

If homing is truly not complete, then IMHO we shouldn't even be trying to move the nozzle around to begin the nozzle tip calibration.   I agree that if visual homing fails, the machine is not homed but if both mechanical and visual succeed, then in my book, the machine is homed.  It doesn't seem consistent to me that if the setting is Manual, that the machine can get to the homed state and the nozzle tip be uncalibrated; but, if the setting is MachineHome, the machine can't get to the homed state if the nozzle tip is uncalibrated.  I think the setting really should be "AfterHoming" and the operator should still get a dialog box when the nozzle tip calibration fails so they can make the decision as to how to proceed.

Tony

tony...@att.net

unread,
Jan 30, 2021, 11:43:57 AM1/30/21
to OpenPnP
James,

When I get some time I plan to move camera calibration out of nozzle tip calibration and put in the camera setup where it belongs.  At that point it will have its own pipeline.

Tony

ma...@makr.zone

unread,
Jan 30, 2021, 12:31:16 PM1/30/21
to ope...@googlegroups.com

Hi James

I don't understand why having a separate pipeline will help, if the brass fitting is not seen by the camera. Can you explain?

Also, calibrating your camera should more or less be a "one-time" thing. It should not be needed routinely, so changing the nozzle tip a few times seems acceptable to me.  Or is there something special about your machine that requires frequent recalibration?

@Tony, I agree that the camera calibration belongs into the camera, but why a new pipeline? Are you using the nozzle tip to calibrate? If yes, isn't it OK then to reuse the pipeline that this nozzle tip defines?

_Mark

tony...@att.net

unread,
Jan 30, 2021, 1:32:36 PM1/30/21
to OpenPnP
>> but why a new pipeline?

Well I haven't spent a lot of time thinking about it, but I know the top camera can't use a nozzle tip for calibration so it will need its own pipeline.  Nozzle tip calibration tends to only use the central part of the camera's FOV but for camera calibration (especially lens calibration), we want to look over almost all of the camera's FOV so it's possible they may need different pipelines.   I guess for bottom cameras they could use the same as nozzle tip calibration (maybe that's the default) but until I figure out exactly what we need to do for calibration I don't want to commit to that being the only option.

Tony

ma...@makr.zone

unread,
Jan 30, 2021, 1:46:51 PM1/30/21
to ope...@googlegroups.com

> but I know the top camera can't use a nozzle tip for calibration so it will need its own pipeline.

Just use a fiducial (part), like visual homing. This way we have all the functionality in place and if that functionality evolves (which is likely, see the discussion in the group right now), so will the calibration.  The fewer "reinvented wheel" pipelines we have, the better. ;-)

_Mark

james.edwa...@gmail.com

unread,
Jan 30, 2021, 3:04:09 PM1/30/21
to ope...@googlegroups.com

The brass fixture is about 1.5cm deep inside the bellows. So when the nozzle is not exactly over the camera the brass fitting is obscured by the bellows rubber of the nozzle.  No, there is nothing too special about my machine. I have been changing the optics (like changing the camera-part distance or focal length of the lens and when I do, I have to recalibrate. I agree, it is not a big deal. I actually threw this question out there because I thought I might be missing an already existing feature of Openpnp.

Reply all
Reply to author
Forward
0 new messages