diff --git a/js/cam/Machine.js b/js/cam/Machine.js index b7ff24407ee77cef53e5e17486803afaab740db2..1a6a90342ca4981cb625dcf82b2ab928c7af3595 100644 --- a/js/cam/Machine.js +++ b/js/cam/Machine.js @@ -317,11 +317,12 @@ God.prototype._moveAxis = function(startingPos, target, axis, speed, callback){ God.prototype._postPickUpStock = function(exporter, stockPosition, rapidHeight, wcs, safeHeight){ var data = ""; + data += exporter.rapidZ(stockPosition.z-wcs.z+safeHeight); data += exporter.moveZ(stockPosition.z-wcs.z); return data; }; -God.prototype._postReleaseStock = function(cellPosicell, exporter, rapidHeight, wcs, safeHeight){ +God.prototype._postReleaseStock = function(cellPosition, cell, exporter, rapidHeight, wcs, safeHeight){ var data = ""; var cellPosition = cell.getPosition(); data += exporter.rapidXY(cellPosition.x-wcs.x, cellPosition.y-wcs.y);