134135136137138139140141142143144
//pre job stuff state = JobState.Running; fireJobStateChanged(); try { head.home(); Nozzle nozzle = head.getNozzles().get(0); Location l = new Location(LengthUnit.Millimeters, 5.0, 20.0, 1.0, 0.0); nozzle.moveTo(l, 1.0); } catch (Exception e) {
274275276277278279280281282283284
//post job clean up state = JobState.Stopped; fireJobStateChanged(); //park try { head.home(); Nozzle nozzle = head.getNozzles().get(0); Location l = new Location(LengthUnit.Millimeters, 0.0, 0.0, 8.5, 0.0); nozzle.moveTo(l, 1.0); } catch (Exception e) {