How to configure conveyor

232 views
Skip to first unread message

cncmachineguy

unread,
May 21, 2021, 7:00:19 AM5/21/21
to OpenPnP

Quick question about my conveyor. It has width and belt that run as X/Y from a second controller. Any ideas how to configure this? I can send Gcode from console to move them, but will we call the conveyor a second head to get jog controls?
I assume I could give them strange axis names and do it that way, but then I don't get jog buttons. For now I don't need things to be automatic, I am quite happy manually controlling it.

Later I will work out a load and unload script that will do things automatically.

ma...@makr.zone

unread,
May 21, 2021, 7:50:57 AM5/21/21
to ope...@googlegroups.com

I started configuring mine as a second head and then an actuator on it.

Works nicely. But: mine is not endless.

No job related positioning automation yet.

https://makr.zone/planning-the-work-area/117/

_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 view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/f87cacfd-4566-49c2-8dbb-79a40e1fdb36n%40googlegroups.com.

bert shivaan

unread,
May 21, 2021, 8:18:06 AM5/21/21
to OpenPnP
Thanks Mark, that is what I will do then. Configure it as another head.
My belt is endless, but there is a stop pin to stop the board..
In the original use case, when you hit the load button it would:
1) adjust the width (if needed) based on the width of the PCB in the job setup
2) extend the conveyor
3)extend the stop pin
4) turn the belt on
5) watch for the PCB to cross a switch indicating it is at the pin
6)stop the belt
7) side clamp
8) bottom clamp
9) retract conveyor and stop pin

Unloading of course is just unclamp everything and extend conveyor, then turn belt on in direction of desired unload end.

Maybe one day I will get a script to do all of that for me, but for now I will be happy to adjust width with jog button, then jog the PCB into position.

All the other functions work from an actuator (well they did on my earlier install) I suppose they will now also in V2. :)

bert shivaan

unread,
May 22, 2021, 8:11:13 AM5/22/21
to OpenPnP
How do I add a second head?
There seems to be NO + button?

ma...@makr.zone

unread,
May 22, 2021, 8:43:35 AM5/22/21
to ope...@googlegroups.com

I must have done it in the machine.xml

  • Exit OpenPnP
  • Open machine.xml
  • Search </head>
  • After that paste this:
            <head class="org.openpnp.machine.reference.ReferenceHead" id="H2" name="H2" ></head>
  • Save Exit
  • Restart OpenPnP

_Mark

bert shivaan

unread,
May 22, 2021, 9:17:37 AM5/22/21
to OpenPnP
Trouble findine machine.xml on debian :(


ma...@makr.zone

unread,
May 22, 2021, 10:36:34 AM5/22/21
to ope...@googlegroups.com

$home directory /.openpnp2

bert shivaan

unread,
May 22, 2021, 10:39:56 AM5/22/21
to OpenPnP
I have another question for you:
Do you know why when I send a mcode from a boolean actuator 5000 is added to the end of the command?
so my actuator command looks like this:
{True:M721.1}{False:M721.0}
and what is sent is:
M721.1, 5000

ma...@makr.zone

unread,
May 22, 2021, 11:23:53 AM5/22/21
to ope...@googlegroups.com

This is not added to the text that is sent to the controller, it is just the timeout argument (milleseconds) with which the command is sent, being logged in the log.

_Mark

bert shivaan

unread,
May 22, 2021, 1:22:54 PM5/22/21
to OpenPnP
ok, thanks :)

bert shivaan

unread,
May 25, 2021, 2:29:22 PM5/25/21
to OpenPnP
It seems I am too -nix dumb to find home/.openpnp2

I even did a search from the top level (I think) in the file system for machine.xml. I found the startup file (the one used for new install) but not mine.
Any thoughts anyone?

Ian Arkver

unread,
May 25, 2021, 4:13:50 PM5/25/21
to OpenPnP
It'll be in /home/bert or whatever your user name is. You could do something like this in a terminal window...

cd ~/.openpnp2
pwd

Regards,
Ian

bert shivaan

unread,
May 25, 2021, 4:46:20 PM5/25/21
to OpenPnP
Thanks Ian,
I will have another look in the morning.
Do I need to do anything special like show hidden or something?

You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/Wr3LhIL1Ujg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/aa5d8671-e8a9-4991-bbed-4190eb67fba6n%40googlegroups.com.

Ian Arkver

unread,
May 25, 2021, 4:59:24 PM5/25/21
to ope...@googlegroups.com
Possibly. Files and dirs beginning with a dot may be hidden in file
explorers by default.

CU,
Ian
>> * Exit OpenPnP
>> * Open machine.xml
>> * Search </head>
>> * After that paste this:
>>         <head
>> class="org.openpnp.machine.reference.ReferenceHead"
>> id="H2" name="H2" ></head>
>> * Save Exit
>> * Restart OpenPnP
>>> Works nicely. But: mine is *not
>>> *endless.
>>>
>>> No job related positioning automation
>>> /yet/.
>>>
>>> https://makr.zone/planning-the-work-area/117/
>>>> <https://groups.google.com/d/msgid/openpnp/f87cacfd-4566-49c2-8dbb-79a40e1fdb36n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> --
>>> 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/75498a42-a8f6-9eca-775d-b43b2ad2edde%40makr.zone
>>> <https://groups.google.com/d/msgid/openpnp/75498a42-a8f6-9eca-775d-b43b2ad2edde%40makr.zone?utm_medium=email&utm_source=footer>.
>>>
>>> --
>>> 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/CA%2BKNHNz_3AH_Efrx6reQGeoiXeFdPPCp80F6Jq0LgTVKRvYcWw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/openpnp/CA%2BKNHNz_3AH_Efrx6reQGeoiXeFdPPCp80F6Jq0LgTVKRvYcWw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> --
>> 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/d4a8d335-34ef-f798-60c9-7f7b83108e2d%40makr.zone
>> <https://groups.google.com/d/msgid/openpnp/d4a8d335-34ef-f798-60c9-7f7b83108e2d%40makr.zone?utm_medium=email&utm_source=footer>.
>>
>> --
>> 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/CA%2BKNHNwAzSCHEBszi8q854r3pFSEWDYyzPmGC2vEW0%2BCBYT6sA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/openpnp/CA%2BKNHNwAzSCHEBszi8q854r3pFSEWDYyzPmGC2vEW0%2BCBYT6sA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> --
> 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/852524a9-e3d9-9bae-02eb-16a2c345aa3c%40makr.zone
> <https://groups.google.com/d/msgid/openpnp/852524a9-e3d9-9bae-02eb-16a2c345aa3c%40makr.zone?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "OpenPnP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/openpnp/Wr3LhIL1Ujg/unsubscribe
> <https://groups.google.com/d/topic/openpnp/Wr3LhIL1Ujg/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> openpnp+u...@googlegroups.com
> <mailto:openpnp+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openpnp/aa5d8671-e8a9-4991-bbed-4190eb67fba6n%40googlegroups.com
> <https://groups.google.com/d/msgid/openpnp/aa5d8671-e8a9-4991-bbed-4190eb67fba6n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "OpenPnP" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/openpnp/Wr3LhIL1Ujg/unsubscribe
> <https://groups.google.com/d/topic/openpnp/Wr3LhIL1Ujg/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> openpnp+u...@googlegroups.com
> <mailto:openpnp+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openpnp/CA%2BKNHNwUn-qMjT7%2BtBQ3wY8dNS%2BKOnR%3Dyuf4oic%3Dd47rFaW-cg%40mail.gmail.com
> <https://groups.google.com/d/msgid/openpnp/CA%2BKNHNwUn-qMjT7%2BtBQ3wY8dNS%2BKOnR%3Dyuf4oic%3Dd47rFaW-cg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

bert shivaan

unread,
May 26, 2021, 5:38:40 AM5/26/21
to OpenPnP
Found it!!!
Need to have hidden files checked in the view options.
Also
cd ~/.openpnp2
works from terminal.


bert shivaan

unread,
May 26, 2021, 6:18:29 AM5/26/21
to OpenPnP
Ok,
Finally I have a second head set up.
Conveyor width moves from jog buttons
Belt moves from jog buttons.

How do I send incremental moves? For the width this is not a big deal, but for the belt it would be nice. I can work around this if that is what I must do, but thought I would check here first.

I tried the Dumb thing like add G91 to my move to command, but of course That fails. openPNP just sends the position it wants to be as an incremental move - FAIL

Maybe I simply use the actuator I have made for the belt, and jog buttons for width. Although it would be nicer if I could enter the width desired somewhere and openPNP moved to that. Like grab the pcb width from the board file.
Reply all
Reply to author
Forward
0 new messages