Serial Timeout

434 views
Skip to first unread message

Hartmut Eger

unread,
Dec 23, 2021, 6:19:16 AM12/23/21
to OpenPnP
What is causing a serial timeout?
Is there a solution for this?Serial Timeout.jpg

mark maker

unread,
Dec 23, 2021, 8:29:14 AM12/23/21
to ope...@googlegroups.com

Look at the log at trace level.

_Mark

On 23.12.21 12:19, Hartmut Eger wrote:
What is causing a serial timeout?
Is there a solution for this?Serial Timeout.jpg --
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/977b7f83-9550-4a34-bbd6-b55628258d06n%40googlegroups.com.

Hartmut Eger

unread,
Dec 23, 2021, 8:55:03 AM12/23/21
to OpenPnP
Thanks, I'll check the log next time if the error message comes back ...

Hartmut Eger

unread,
Dec 23, 2021, 9:36:10 AM12/23/21
to OpenPnP
attached the error message for serial timeout

2021-12-23 15:32:31.261 AbstractMachine TRACE: Exception caught, executing pending motion: java.lang.Exception: serial://COM8 timeout waiting for response to M801
        at org.openpnp.machine.reference.driver.GcodeDriver.waitForConfirmation(GcodeDriver.java:1093)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendCommand(GcodeDriver.java:1074)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendGcode(GcodeDriver.java:1041)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendGcode(GcodeDriver.java:1023)
        at org.openpnp.machine.reference.driver.GcodeDriver.actuate(GcodeDriver.java:899)
        at org.openpnp.machine.reference.ReferenceActuator.driveActuation(ReferenceActuator.java:270)
        at org.openpnp.machine.reference.ReferenceActuator.actuate(ReferenceActuator.java:260)
        at org.openpnp.spi.base.AbstractActuator.actuate(AbstractActuator.java:318)
        at org.openpnp.gui.ActuatorControlDialog$1.lambda$actionPerformed$0(ActuatorControlDialog.java:85)
        at org.openpnp.util.UiUtils.lambda$submitUiMachineTask$0(UiUtils.java:38)
        at org.openpnp.spi.base.AbstractMachine$1.call(AbstractMachine.java:571)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2021-12-23 15:32:31.261 MessageBoxes DEBUG: Error: java.lang.Exception: serial://COM8 timeout waiting for response to M801
2021-12-23 15:32:35.311 ReferenceActuator DEBUG: Top Light.actuate(false)
2021-12-23 15:32:35.312 GcodeDriver DEBUG: [serial://COM8] >> M800, 15000
2021-12-23 15:32:50.315 AbstractMachine TRACE: Exception caught, executing pending motion: java.lang.Exception: serial://COM8 timeout waiting for response to M800
        at org.openpnp.machine.reference.driver.GcodeDriver.waitForConfirmation(GcodeDriver.java:1093)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendCommand(GcodeDriver.java:1074)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendGcode(GcodeDriver.java:1041)
        at org.openpnp.machine.reference.driver.GcodeDriver.sendGcode(GcodeDriver.java:1023)
        at org.openpnp.machine.reference.driver.GcodeDriver.actuate(GcodeDriver.java:899)
        at org.openpnp.machine.reference.ReferenceActuator.driveActuation(ReferenceActuator.java:270)
        at org.openpnp.machine.reference.ReferenceActuator.actuate(ReferenceActuator.java:260)
        at org.openpnp.spi.base.AbstractActuator.actuate(AbstractActuator.java:318)
        at org.openpnp.gui.ActuatorControlDialog$2.lambda$actionPerformed$0(ActuatorControlDialog.java:96)
        at org.openpnp.util.UiUtils.lambda$submitUiMachineTask$0(UiUtils.java:38)
        at org.openpnp.spi.base.AbstractMachine$1.call(AbstractMachine.java:571)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2021-12-23 15:32:50.315 MessageBoxes DEBUG: Error: java.lang.Exception: serial://COM8 timeout waiting for response to M800


Hartmut

mark maker

unread,
Dec 23, 2021, 9:39:08 AM12/23/21
to ope...@googlegroups.com

you need to attach the whole log, to see where it comes from.

Hartmut Eger

unread,
Dec 23, 2021, 9:47:31 AM12/23/21
to OpenPnP
attached the entire log

Hartmut
Log01_HEger_202112231544.txt

mark maker

unread,
Dec 23, 2021, 9:57:45 AM12/23/21
to ope...@googlegroups.com

There is nothing suspicious there. The controller simply seems to not respond, or the serial connection is lost.

All I can tell you is to check cabling and grounding issues.

I always recommend using an USB isolator on the controller, and to make sure the camera PCBs are not grounded to the machine.

https://makr.zone/grounding-the-machine/283/

What controller are you using again?

_Mark

Hartmut Eger

unread,
Dec 23, 2021, 10:32:36 AM12/23/21
to OpenPnP
All I can tell you is to check cabling and grounding issues.
Grounding has already been implemented based on your instructions.
I only have no connection to the circuit board because I don't know exactly where to connect the ground for the circuit board. I still check myself. (In your link is the ground from the power supply connected to negative (-) on the circuit board?)

I always recommend using an USB isolator on the controller
I don't have a USB isolator for the controller but I can get it.

to make sure the camera PCBs are not grounded to the machine.
Both cameras are in a 3D printed housing without a conductive connection to the machine

What controller are you using again?
Smoothieware Smoothieboard 5XC V1.1 32 bit (China Clone)

mark maker

unread,
Dec 23, 2021, 11:15:46 AM12/23/21
to ope...@googlegroups.com

>Smoothieware Smoothieboard 5XC V1.1 32 bit (China Clone)

Ahh... cr*p!

These boards are known to not work reliably.  They use inferior/counterfeit components. Somehow this leads to them not working reliably with OpenPnP (typically after moving the machine in a rapid sequence).



I'll restate, what I said to others:

I will not spend my spare time trying to support a board from a manufacturer that is known to be a bad parasite of Open Source projects and uses sup-par components to save a few cents, knowing it will cause problems down the road.

I assume you didn't know when you bought it and you are now a victim too. I'm sorry about this. But please buy one of the products adhering to Open Source principles. These principles are very important to me, they are the only thing that "pay" for my efforts here.

I hope others learn something from it.

_Mark

Hartmut Eger

unread,
Dec 23, 2021, 4:24:19 PM12/23/21
to OpenPnP
Hi Mark,

I hope that I will buy an original now.
Sorry for your efforts, but I didn't know until I found out that it was a clone and not an original smoothie board.

Hartmut Eger

unread,
Jan 1, 2022, 4:22:17 PM1/1/22
to OpenPnP

Hi Mark,

all the best in the new year 2022.

I have now installed an original Smmothie Board but the timeout problem has not been solved.
attached my log file.

Hartmut
Log01_HEger_202201012217.txt

mark maker

unread,
Jan 2, 2022, 4:29:36 AM1/2/22
to ope...@googlegroups.com

Hi Hartmut,

All the very best in 2022 to you too!

> I have now installed an original Smmothie Board but the timeout problem has not been solved.

Well, that is unexpected. 🙁

A few approaches:

  1. Just to exclude an OpenPnP related effect, can you please do the same using Pronterface or similar?
  2. What is the welcome message of Smoothie in Pronterface?
  3. What is the response to M115?
  4. Does any of the M8xx commands actuate something that might create large electrical interference? The pump perhaps? Does it help to leave out that command?
  5. Have you mounted a flyback diode on the pump and valve?
  6. Do you use an USB isolator on the controller?
    https://www.adafruit.com/product/2107
  7. Alternatively, can you use a notebook that is not earthed (two-pin power plug), or running on batteries?
  8. Sad question: How sure are you that the German dealer has provided you with a genuine board?

_Mark

Hartmut Eger

unread,
Jan 2, 2022, 8:30:30 AM1/2/22
to OpenPnP
Hi Mark,

1.        Just to exclude an OpenPnP related effect, can you please do the same using Pronterface or similar?
I will test and write to you as soon as I have a result

2.        What is the welcome message of Smoothie in Pronterface?
Connecting...
Printer is now online.

3.        What is the response to M115?
>>> M115
SENDING:M115
FIRMWARE_NAME:Smoothieware, FIRMWARE_URL:http%3A//smoothieware.org, X-SOURCE_CODE_URL:https%3A//github.com/markmaker/Smoothieware/tree/feature/best-for-pnp, FIRMWARE_VERSION:feature/best-for-pnp-23a1f0db, X-FIRMWARE_BUILD_DATE:Feb 15 2021 20:34:17, X-SYSTEM_CLOCK:120MHz, X-AXES:5, X-PAXES:5, X-GRBL_MODE:0, X-CNC:0, X-MSD:1

4.        Does any of the M8xx commands actuate something that might create large electrical interference? The pump perhaps? Does it help to leave out that command?
M800 Top LED off
M801 Top LED on
M802 Up LED off
M803 Up LED on
M804 Vacc. Pump off
M805 Vacc. Pump on
M810 switch.vacnoozleleft off
M811 switch.vacnoozleleft on
M812 switch.vacnoozleright off
M813 switch.vacnoozleright on

5.        Have you mounted a flyback diode on the pump and valve?
Yes on the vacuum pump and on the two STNC TM-06 24V valves. I installed Vishay BYV27-200-TAP flyback diodes

6.        Do you use an USB isolator on the controller?
I am currently using a USB cable with a ferrite core on both connectors. I will probably have to get a USB isolator

7.        Alternatively, can you use a notebook that is not earthed (two-pin power plug), or running on batteries?
I will test once whether it brings an improvement.

8.        Sad question: How sure are you that the German dealer has provided you with a genuine board?
Now I'm pretty sure that all of the points in this link are correct.
I also checked all the chips again using Arthur Wolf's parts list.

Can there be any improvement if I control the machine via a TCP connection?

Thank you for your support
Hartmut

Hartmut Eger

unread,
Jan 2, 2022, 9:06:32 AM1/2/22
to OpenPnP
1.        Just to exclude an OpenPnP related effect, can you please do the same using Pronterface or similar?
All M and G commands tested in Pronterface no problems I don't get a timout error. all movements of G28, G0 X480 Y450, M800-M813 no problems

mark maker

unread,
Jan 2, 2022, 10:27:23 AM1/2/22
to ope...@googlegroups.com

> Can there be any improvement if I control the machine via a TCP connection?

It would help with isolation, but unfortunately TCP is way too slow on the Smoothie.

> All M and G commands tested in Pronterface no problems I don't get a timout error. all movements of G28, G0 X480 Y450, M800-M813 no problems

To make this more realistic, please write all the same commands your OpenPnP would send into a file. You can enable Gcode logging on the Driver to automatically create such a file. Then "play" the file using Pronterface, so the serial exchange would probably be as seamless as with OpenPnP. Specifically, the electrical noise or ground bounce that is created by actuating something would overlap with the next serial/USB packet being sent immediately.

Just to be sure: did you accept Issues & Solutions suggestions, like for serial flow control? Any other serial settings that might be different?

This is really getting strange.

_Mark

Hartmut Eger

unread,
Jan 4, 2022, 8:33:03 AM1/4/22
to OpenPnP
Hello Mark,

attached is the link to the video that I made using the GCODE files.


There were no problems with the timeout.

One thing I noticed is that some M commands have a time switch of 5 seconds and this also seems to provoke a timeout if the command sequence is too fast.
When the machine is switched off via the open pnp software, there are also timeouts for the following M commands:
M804
M810
M800
M812
M802

I hope you can do something with this information.

rgds
Hartmut
log5366753802695175539.g

mark maker

unread,
Jan 4, 2022, 8:51:37 AM1/4/22
to ope...@googlegroups.com

> M commands have a time switch of 5 seconds and this also seems to provoke a timeout if the command sequence is too fast.

I don't understand that sentence, but it somehow sounds suspicious.

_Mark

Hartmut Eger

unread,
Jan 4, 2022, 9:11:06 AM1/4/22
to OpenPnP
attached is the log file of the open pnp software

2022-01-03 22:31:43.821 GcodeDriver DEBUG: [serial://COM4] >> M802, 5000
2022-01-03 22:31:48.822 GcodeDriverConsole DEBUG: Gcode console error: java.lang.Exception: serial://COM4 timeout waiting for response to M802
OpenPnP.0.log

mark maker

unread,
Jan 4, 2022, 9:38:05 AM1/4/22
to ope...@googlegroups.com

I'm really at a loss here.

I wrote:

> Just to be sure: did you accept Issues & Solutions suggestions, like for serial flow control? Any other serial settings that might be different?

This question is still open, or have I missed something?

_Mark

mark maker

unread,
Jan 4, 2022, 9:41:11 AM1/4/22
to ope...@googlegroups.com

I just re-watched your video. The machine speed is very "conservative" 😉.

It is well possible that it takes more than 5 seconds for some of these  moves. Please simply try with a higher timeout value.

_Mark

mark maker

unread,
Jan 4, 2022, 9:44:21 AM1/4/22
to ope...@googlegroups.com

Or better yet, crank up the speed. I'd really love to watch this nice-looking machine at three, four, five times the speed, I'm sure it can take it, if my cr** Liteplacer can.

https://makr.zone/pick-place-machine-first-simulated-small-test-run/66/

_Mark

Hartmut Eger

unread,
Jan 6, 2022, 4:12:03 PM1/6/22
to OpenPnP
Hi Mark,

is the speed better now?


The time-out problems have subsided since 2 days.
I fixed 3 contact errors, maybe this was the solution.
Everything will be fine.
Now I have to write about my problems with the configuration of the open pnp machine and the associated software. I just have too little idea to understand what is required of me, even with Issues & Solutions I don't really get to my goal.
Enclosed the problem with Dynamic Safe Z or Fixed Safe Z I can't decide which is right.
The same applies to the remaining points.

Thanks and regards
Hartmut

06-01-_2022_22-08-23.jpg

mark maker

unread,
Jan 6, 2022, 4:29:58 PM1/6/22
to ope...@googlegroups.com

I recommend Dynamic Safe Z and then setting Safe Z as low as possible for each of the nozzles. This will minimize the Z movements and speed up operations. Given your machine has a large Z headroom, you'll get a large Safe Z zone, which means you nozzles will move around quite lopsided. When the nozzle is switched, you'll have see-saw movement. This is normal and much more efficient. And cool-looking, if you ask me.

The other things I can't explain "auf Vorrat". You need to ask more specifically. Be sure to have read the Wiki linked by the blue [i] buttons.

_Mark

Hartmut Eger

unread,
Jan 6, 2022, 5:09:12 PM1/6/22
to OpenPnP
Thanks Mark,

I think I understand how Issues & Solutions works.
I will now work through the open points.

Hartmut Eger

unread,
Jan 9, 2022, 5:06:15 PM1/9/22
to OpenPnP
Hi Mark,

can you please give me some help with the kinematic settigs for the Z-axis.
I do not fully understand in which context SoftLimitLow, SafeZoneLow, SafeZoneHigh and SoftLimitHigh.
09-01-_2022_22-55-41.jpg
Since there is always a conflict with:
OpenPnPCaptureCamera Up Camera
09-01-_2022_23-05-12.jpg

Hartmut Eger

unread,
Jan 9, 2022, 5:45:48 PM1/9/22
to OpenPnP
Hi Mark,

Thanks was done, I found the solution.

Hartmut Eger

unread,
Jan 9, 2022, 5:57:35 PM1/9/22
to OpenPnP

Hi Mark,
Unfortunately the OpenPnP Capture Camera Up camera does not work.
The error message "Subject not found."
Can you tell me how to work around this mistake?
09-01-_2022_23-55-14.jpg

mark maker

unread,
Jan 10, 2022, 3:55:57 AM1/10/22
to ope...@googlegroups.com

Hi Hartmut,

You should optimize Nozzle Safe Z handling & Zone using Issues & Solutions. You'll get more optimized performance.

_Mark

mark maker

unread,
Jan 10, 2022, 3:58:53 AM1/10/22
to ope...@googlegroups.com

Hi Hartmut,

The red indicator looks like a ellipse. It seems you might have Units per Pixel set (manually?) on the bottom camera, that are completely uneven.

If in doubt, set the X/Y Units per Pixel on the bottom camera to zero and retry the Issues & Solutions step you have in your screen-shot.

_Mark

Hartmut Eger

unread,
Jan 11, 2022, 4:26:00 AM1/11/22
to OpenPnP
Hi Mark,

Attached is the link to my video on the Issues & Solutions point OpenPnPCaptureCamera Up Camera.
I have been solving this problem for 2 days now, but I still haven't found the point how it could work.


Here are my up camera settings.
11-01-_2022_10-25-11.jpg

mark maker

unread,
Jan 11, 2022, 5:41:45 AM1/11/22
to ope...@googlegroups.com

WTF! (sorry, but this is really a case for the F word)

At 0:33 you see what looks like an Auto-Focus movement. But Auto-Focus Vision starts only at 0:38.

Frankly, I don't know how this is even possible.

The first thought is that there is something wrong with your flow control (OpenPnP does not wait for the motion to complete). But then it would be reversed, i.e. vision would come too early (not waiting for the machine), not too late.

But then you get a second Auto-Focus move at 1:01. And I know for a fact, there is only supposed to be one, and this code is really a simple multi-pass loop! These are also Machine tasks; there is a central entity queuing tasks, so even if you press the Accept button twice, it should just do it twice, one after the other, not somehow "interleave" it.

WTF!

Please send the machine.xml

_Mark

Hartmut Eger

unread,
Jan 11, 2022, 6:16:56 AM1/11/22
to OpenPnP
Hi Mark,

here my machine.xml
machine.xml

Hartmut Eger

unread,
Jan 11, 2022, 8:14:59 AM1/11/22
to OpenPnP

Hi Mark,

would it make sense to reset my configuration of the PnP machine and start all over again?
I'm not sure if I really did everything right at the beginning of the configuration.

Thanks and regards
Hartmut

mark maker

unread,
Jan 11, 2022, 9:24:51 AM1/11/22
to ope...@googlegroups.com

Hi Hartmut,

You need to deal with these Issues & Solutions that you dismissed and/or left open, or that are useful (I mean the ones selected in the screen-shot below):

NOTEs:

The create nozzles for this head issue will create the vacuum valve actuators for you, so the two warnings (orange) further below will vanish. Furthermore, it should likewise solve the Nozzles N1 and N2 have the same Z axis error (red) for you.

The most important one is the MOVE_TO_COMPLETE_COMMAND suggested issue. You should really not "dismiss and forget" important commands like these 😭 This command is responsible for OpenPnP to wait for motion to complete, if you remove it, nothing will work.

The suggestions further below about the camera preview FPS etc. might in-deed create the strange delayed vision feedback. Your cameras have a whopping 30 FPS preview set, and are not suspended during tasks, so they might create frames faster than what the GUI can handle and perhaps create the strange effect that vision frames from the task appear long after the preview frames (the task being starved out of capture frames), the effect perhaps being amplified in the exotic combination with a missing  MOVE_TO_COMPLETE_COMMAND!

In the future, please do not dismiss Issues & Solutions unless you really, really know what you are doing. You have a Smoothieboard, so you can trust Issues & Solutions to generate good and extensive solutions for you. Ask here, if unsure. Please open new discussion threads for each of them.

_Mark

mark maker

unread,
Jan 11, 2022, 9:32:57 AM1/11/22
to ope...@googlegroups.com

No, just see the mail I sent you.

Note, for the most part, Issues & Solutions keeps its eyes on your configuration during the whole life-time of your machine. So if things are not good, they are reported, even after having manually (mis-) configured them.

... unless you dismiss them, of course 😭

There are exceptions from this rule. Things that Issues & Solutions cannot safely propose for you, will be reported as missing is empty, but as soon as it or you filled in something, Issues & Solutions is happy. Like the CONNECT_COMMAND, HOME_COMMAND. You can empty them to get a proposal. For Actuator read and actuate commands, you are on your own, as these can be highly individual.

Other solutions can be re-opened, like the calibration steps.

Just switch on the Include Dismissed and Include Solved switches in the Issues & Solutions tab.

_Mark

Hartmut Eger

unread,
Jan 11, 2022, 5:05:35 PM1/11/22
to OpenPnP
Hi Mark,

thank you for your support.
The first success has already set in.
Open PnPCaptureCamera Up Camera is completely processed and done.
11-01-_2022_22-56-52.jpg

so now I am struggling with the error message GcodeDriver GcodeAsyncDriver.
the info from Issues & Solutions links to Smoothieware but I really can't find a solution.
11-01-_2022_22-58-52.jpg

mark maker

unread,
Jan 12, 2022, 2:10:15 AM1/12/22
to ope...@googlegroups.com

Read here, starting from...

"Please make sure your Smoothieware is configured to use true axes, i.e. A B C, not extruders..."

https://github.com/openpnp/openpnp/wiki/Motion-Controller-Firmwares#smoothieware

_Mark

Hartmut Eger

unread,
Jan 12, 2022, 2:01:58 PM1/12/22
to OpenPnP
Hi Mark,

I hope that the error messages are less and less.
At the moment it is "FIDUCIAL-HOME no matches found"
This message comes after switching on the Open PnP machine and carrying out the reference run. At the end, the error message is displayed.
as soon as I want to switch off the machine, I get the timeout error message for M800, M802, M804, M810 and M812 again.
12-01-_2022_19-32-02.jpg
attached is the link to the video.

On the other hand, Issues & Solutions looks very good.
I have attached my machine.xml

12-01-_2022_19-46-28.jpg
machine.xml

mark maker

unread,
Jan 13, 2022, 2:20:20 AM1/13/22
to ope...@googlegroups.com

I need a log. I don't understand what the video is supposed to show, frankly.

_Mark

Hartmut Eger

unread,
Jan 13, 2022, 2:26:15 AM1/13/22
to OpenPnP
attached the log data
log188286726393009549.g
OpenPnP.0.log
log3458305447311279816.g
OpenPnP.log
log6217055741172657499.g

mark maker

unread,
Jan 13, 2022, 2:53:12 AM1/13/22
to ope...@googlegroups.com

Hi Hartmut,

WARNING: I assume your machine is still fresh, and you have not yet captured many locations or your visual homing has never worked before, i.e. your homing fiducial can still be defined. If this is not true, please do not proceed, and report back.

  1. Upgrade to the newest OpenPnP 2.0 testing version (while we're at this, you can learn about and help test the new Vision Settings feature):
    https://openpnp.org/test-downloads/
  2. Go to the Head and switch Homing Method to None. Press Apply.
  3. Go to Issues & Solutions and press Find Issues & Solutions.
  4. There should be an entry "Enable Visual Homing":
  5. Follow the instructions carefully.
  6. This will automatically create/modify a FIDUCIAL-HOME Package and Part and assign the no-tuning DetectCircularSymmetry stage/pipeline, which so far has worked very well. For background, you can read about the DetectCircularSymmetry and that specific pipeline in the Wiki, but the idea is that users no longer need to care about this.
  7. You can go to the FIDUCIAL-HOME Part and see, how the Fiducial Vision Setting were assigned. Please send a screen-shot, you'll help the testing effort that way 😁.
  8. Exit OpenPnP, power cycle the machine, and re-start and re-home. Report back if everything went well.

_Mark

Hartmut Eger

unread,
Jan 13, 2022, 1:53:04 PM1/13/22
to OpenPnP
Hi Mark,

all 8 points carried out conscientiously but no improvement.
After I turn the machine back on and click on the yellow house in the jog, it works exactly like in the previous video.
Here is the openpnp software info:
13-01-_2022_19-40-15.jpg

Here is the error message after the reference run
13-01-_2022_19-37-17.jpg


Here the settings Heads/ReferenceHead H1
13-01-_2022_19-45-40.jpg
OpenPnP.1.log
log1642092616246939800.g
OpenPnP.0.log

mark maker

unread,
Jan 14, 2022, 12:55:18 AM1/14/22
to ope...@googlegroups.com

Please send the machine.xml

Hartmut Eger

unread,
Jan 14, 2022, 2:56:50 AM1/14/22
to OpenPnP
Hi Mark,

Attached is the machine.xml
machine.xml

mark maker

unread,
Jan 14, 2022, 5:06:13 AM1/14/22
to ope...@googlegroups.com

Ahh, and I forgot: send the new vision-settings.xml too, please.

Hartmut Eger

unread,
Jan 14, 2022, 5:08:04 AM1/14/22
to OpenPnP
you are welcome ;-)
vision-settings.xml

mark maker

unread,
Jan 14, 2022, 5:12:13 AM1/14/22
to ope...@googlegroups.com

Ahh, sorry, and I need the packages.xml and parts.xml too.

_Mark

Hartmut Eger

unread,
Jan 14, 2022, 5:43:51 AM1/14/22
to OpenPnP
Everything will be fine
parts.xml
packages.xml

mark maker

unread,
Jan 14, 2022, 6:13:24 AM1/14/22
to ope...@googlegroups.com
Do this carefully:
  1. Go to the cameras and make sure Auto is off on Exposure. Then set the Exposure manually.
  2. Reading this section can also help understand and get the camera settings right:
    https://github.com/openpnp/openpnp/wiki/Camera-White-Balance#prepare-the-device-settings
    (you can also read the hole Wiki page and get the White Balance done too)
  3. Go to your lighting actuators and switch off coordination Before Actuate, and keep After Actuate switched on. This will switch your lights on earlier and give the camera more time to adapt (even if you switch off all Auto settings, I believe that some adaptation to changed lighting still takes place in most camera models).
  4. After homing fails, go to the Head and press Visual Test. Does it nail the fiducial reliably?
  5. Jog around a bit and try at different distances, it should still work from a few Millimeters away.
  6. If it still does not work, have a look at Camera Settling:
    https://github.com/openpnp/openpnp/wiki/Camera-Settling
  7. If your manual camera Exposure settings is higher that -9 on an ELP camera, it means the LED light may be rather weak, which means the exposure may take longer and require a longer settle time and make the machine slower. You might need to improve lighting. Read this:
    https://makr.zone/camera-fps-cpu-load-and-lighting-exposure/519/

_Mark


Am 14.01.2022 um 11:08 schrieb Hartmut Eger:

Hartmut Eger

unread,
Jan 16, 2022, 8:46:10 AM1/16/22
to OpenPnP

Hi Mark,

here are my answers to the 7 points.

1. done

2. doen

3. done

4. after the reference run, the head moves over the fixed fiducial and displays the error message "FIDUCIAL-HOME no matches found".
The Nozzle 2 stays at -20. With a click on (1) the two nozzles move back into the neutral position.

14-01-_2022_21-24-51.jpg

5. Done. Works very well and no error messages.

6. I'm missing the Vision tab in the openpnp software under the point listed in your link.
so I don't really know how to proceed.

14-01-_2022_22-28-39.jpg

14-01-_2022_23-20-27.jpg

Hartmut Eger

unread,
Jan 16, 2022, 9:26:35 AM1/16/22
to OpenPnP
Hi Mark,

I had spent the last two days dealing intensively with my machine and the open PnP software.
The problem arises as soon as I open the Issues & solutions item "ReferenceHead H1" "Enable Visual Homing." perform and accept.
Then the homing method is set to "ResetToFiducialLocation" (1) under Maschine Setup-Heads-ReferenceHead H1 and from then on my machine goes crazy.
16-01-_2022_14-57-45.jpg
If I now click on Homing (1), the head moves to the 0 positions of X and Y and Z. Then the head moves to the position of the fixed fiducial, switches on the top light and sets the Nozzle N2 to Z 20. Then comes the error message
16-01-_2022_15-04-48.jpg

packages.xml
machine.xml
vision-settings.xml
parts.xml

mark maker

unread,
Jan 16, 2022, 11:29:17 AM1/16/22
to ope...@googlegroups.com

Hi Hartmut

No offense, but could it be that this is a language problem? Unfamiliar terms like "reference run" keep reappearing, we seem to keep misunderstanding each other... 😭 so I suspect you are using translation software. Right?

Darum ausnahmsweise in Deutsch... ich hoffe das kommt dir jetzt nicht in den falschen Hals, es ist konstruktiv gemeint.

Ich sehe Einstellungen in deiner machine.xml die ich beim besten Willen nicht nachvollziehen kann. Es sei denn, du verstehst die Anweisungen von Issues & Solutions (und im Wiki) auf Englisch nicht?

Benutzst du Übersetzungssoftware? Welche? Ich empfehle DeepL, das kommt noch am ehesten sinnvoll raus. Du müsstest aber immer noch kontrollieren, ob zum Beispiel keine falschen Negationen reingerutscht sind. Zum Beispiel wundere ich mich schon sehr, warum du in diesem Screenshot alles auf Auto gesetzt hast, nachdem ich dir doch geschrieben (und eine Wiki Seite angegeben habe), alles NICHT auf Auto zu stellen:

14-01-_2022_22-28-39.jpg

Ein anderes Beispiel: du hast die Soft Limits (Begrenzung des Bewegungsbereiches) der Z Achse und die Safe Zone (Bereich, wo die Z Achse auf sicherer Höhe zurückgezogen ist) auf denselben Werten. Selbstverständlich kann so überhaupt nichts funktionieren. Ich kann mir aber kaum vorstellen, wie man so was falsch machen kann, es sei denn, du hast die Issues & Solutions Anweisungen (in Englisch) nicht verstanden...?

Tipp für die Zukunft: man kann die Text-Blöcke in den Issues & Solutions mit der rechten Maustaste anklicken, sie blinken dann schnell auf Grau, als Zeichen, dass sie in die Zwischenablage kopiert wurden. Dann kannst du sie DeepL füttern.


Zu deiner Konfig:

Der schlimmste Bock ist in der Kamera. Du hast die reguläre Z Achse zugewiesen, statt die Virtuelle Z Achse. Komischerweise moniert das Issues & Solutions bisher nicht (war eigentlich überzeugt, dass es dies tut). Ich habe das nun hinzugefügt, kommt in einer nächsten Version.

> I'm missing the Vision tab in the openpnp software under the point listed in your link.

Bitte benutze die Testing Version von hier:

https://openpnp.org/test-downloads/

_Mark

Hartmut Eger

unread,
Jan 16, 2022, 2:53:51 PM1/16/22
to OpenPnP
Hi Mark,

partly I use the translation database TEX-L from Autodesk to understand the connections better.  Yes, my English is certainly not excellent, but somehow I get to my goal.
For better understanding I will make my contributions now bilingual so that there are no more misunderstandings.
The "reference run" comes from my CNC milling machine and is the control around the X Y Z zero point.

As for my camera settings, the picture was a mistake on my part, I briefly set everything to auto and then disabled again. Real the settings look like this:

zum Teil nutze ich die Übersetzungsdatenbank TEX-L von Autodesk um die zusammenhänge besser zu verstehen. Ja mein Englisch ist sicher nicht ausgezeichnet, aber irgendwie komme ich schon an mein Ziel.
Zur besseren Verständniss werde ich meine Beiträge  jetzt zweisprachig gestalten damit es zu keinen Missverständnissen mehr kommt.
Die "Referenzfahrt" kommt von meiner CNC Fräsmaschine und ist die Kontrolle um den X Y Z Null-Punkt.

Was meine Kameraeinstellungen angeht war das Bild ein Fehler von meiner Seite, ich habe kurz alles auf Auto gestellt und danach wieder deaktiviert. Real sehen die Einstellungen so aus:
16-01-_2022_20-33-28.jpg16-01-_2022_20-34-10.jpg
I have already adjusted the kinematics settings. 
was die Kinematik Einstellungen angeht habe ich dies schon angepasst.
 16-01-_2022_20-38-50.jpg
I had set up the virtual Z-axis for the top camera, but probably forgot to apply this setting to the top camera.
die Vituelle Z-Achse für die Top Kamera hatte ich Eingerichtet habe wohl vergessen diese Einstellung auf die top Kamera anzuwenden.
16-01-_2022_20-40-33.jpg
The error "FIDUCIAL-HOME" no match found. has been resolved. The solution was probably the change of the Z axis at the TOP-Camera from real Z to virtual Z.
Der Fehler "FIDUCIAL-HOME" no match found. hat sich erledigt. Die Lösung war wohl die Änderung der Z Achse an der TOP-Kamera von real Z auf virtuell Z.
16-01-_2022_15-04-48.jpg

Thank you very much for your excellent support.

Hartmut
Reply all
Reply to author
Forward
0 new messages