Thanks! I followed your tutorial on how to rebuilding the .jar file. I installed Java JDK 8, Maven, and Eclipse on my mack book and was able to rebuild. Our actual PNP machine runs on a Windows computer. I deleted the old .jar file and replaced it with the new openpnp-gui-0.0.1-alpha-SNAPSHOT.jar file. It seemed to work kind of. Nozzle 1 worked great using the pick and place buttons in the jog control window. When Nozzle 2 was selected, it would pick once ant then become unresponsive to the place button. Also when I tried to load an old job, it gave me an error saying something about the dimension of the board? Sorry I didn't jot that down. The changes to the code were kept simple as shown below. I edited the pick() and place() functions simply not call the exhaust function. I reverted back by updating Open PNP and everything worked normal.
public void pick(ReferenceNozzle nozzle) throws Exception {
if (((ReferenceNozzle) nozzle).getName().equals("N1")) {
pump(true);
//n1Exhaust(false);
n1Vacuum(true);
n1Picked = true;
}
else {
pump(true);
//n2Exhaust(false);
n2Vacuum(true);
n2Picked = true;
}
}
@Override
public void place(ReferenceNozzle nozzle) throws Exception {
if (((ReferenceNozzle) nozzle).getName().equals("N1")) {
n1Picked = false;
if (!n1Picked && !n2Picked) {
pump(false);
}
n1Vacuum(false);
//n1Exhaust(true);
Thread.sleep(100); // Changed from (500) to (100)
//n1Exhaust(false);
}
else {
n2Picked = false;
if (!n1Picked && !n2Picked) {
pump(false);
}
//n2Vacuum(false);
//n2Exhaust(true);
Thread.sleep(100); // Changed from (500) to (100)
//n2Exhaust(false);
}
}