var nozzle = gui.machineControls.selectedNozzle;
or
var nozzle = machine.defaultHead.defaultNozzle;
Then you can use:
nozzle.pick(part) and nozzle.place();
For actuators, it's similar:
var actuator = machine.defaultHead.getActuator(id);
or
var actuator = machine.defaultHead.getActuatorByName(name);
Followed by:
actuator.actuate(boolean);
or
actuator.actuate(number);
Relevant classes for reference are:
https://github.com/openpnp/openpnp/blob/develop/src/main/java/org/openpnp/spi/Machine.java
https://github.com/openpnp/openpnp/blob/develop/src/main/java/org/openpnp/spi/Head.java
https://github.com/openpnp/openpnp/blob/develop/src/main/java/org/openpnp/spi/Nozzle.java
https://github.com/openpnp/openpnp/blob/develop/src/main/java/org/openpnp/spi/Actuator.java
Hope that helps,
Jason
--
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/d8e3616a-88c4-4ea1-b3cb-7006daed5a74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/d1fdf38f-bb01-4b5f-a761-92ae44fec05b%40googlegroups.com.
I have a script that programms chips using single nozzle to press bottom vision aligned ic against PCB smt pattern to flash microcontrollers using external program for flashing written in bsh without requiring costly programming afapter. You need zxing for reading barcodes and writing data as CSV for using ostermillers utils.
It's a small addition but in you case the RFID reader should be read using java code. Do you want wait until you have the RFID reader you need to test
Or do you want using the programming script or do you make it itself. Using the beanshell script requires recompiling the java code from source. I cannot share mine compiled because the included opencv binding gives always core dumps so I use other bindings installed on the system that you don't have.
--
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/mLOn1WqDEdQ/unsubscribe.
To unsubscribe from this group and all its topics, 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/d1fdf38f-bb01-4b5f-a761-92ae44fec05b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/7286ab8a-7353-4840-8129-cf4ad454c830%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/7e0ab8ff-8532-4957-9156-7cad52f92ba4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/98ab9612-32f6-4c64-ab94-786de025fcf4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/CAJGcfUhk0t-jbuDJqfshQRs1hoUZ_dLJmDEabtcZuJ-_R06udw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/0bfd9b82-9480-42d5-abc1-4a91a87559b0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/cfa01884-ef48-4472-8c24-6fcb0f18220a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Is it possible to use scripting feature to make bottom vision align components in a few iterations and rotate them before performing bottom vision, not after?
--
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/c334efeb-353a-4bd0-b12c-5d88aafe98bd%40googlegroups.com.