autodesk xyz post processor

autodesk xyz post processor

javelinjim
Participant Participant
1,033 Views
6 Replies
Message 1 of 7

autodesk xyz post processor

javelinjim
Participant
Participant

is it possible to alter the autodesk xyz post processor to add a GOTO/ before each coordinate line and change the separator to a comma and then save the post as a .apt to work with my machine?

0 Likes
1,034 Views
6 Replies
Replies (6)
Message 2 of 7

seth.madore
Community Manager
Community Manager

This post processor?
https://cam.autodesk.com/hsmposts?p=xyz


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 3 of 7

javelinjim
Participant
Participant

yes that is the post . i need to add GOTO/ to each coordinate line. 

 

GOTO/51.111252, 50.793751, 150.

0 Likes
Message 4 of 7

BWENGUK
Advocate
Advocate

If you open the post processor to edit it, this would be a relatively easy change.

 

 

 

function onOpen() {
  setWordSeparator(";");

 

would change to 
 

 

function onOpen() {
  setWordSeparator(",");

 

 
and then:
 

 

function onRapid(_x, _y, _z) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);
  if (x || y || z) {
    writeBlock(x, y, z);
  }
}

 

would change to:
 

 

function onRapid(_x, _y, _z) {
  var x = xOutput.format(_x);
  var y = yOutput.format(_y);
  var z = zOutput.format(_z);
  if (x || y || z) {
    writeBlock("GOTO/", x, y, z);
  }
}

 

 
Or there abouts anyway!
0 Likes
Message 5 of 7

javelinjim
Participant
Participant

the write block moves the x,y,z to y ,z ,i when i look at the data on the machine editor

0 Likes
Message 6 of 7

javelinjim
Participant
Participant

is there a way to get xyz values from set up zero instead of the point locations?

0 Likes
Message 7 of 7

javelinjim
Participant
Participant
function onRapid(_x, _y, _z) {
var x = xOutput.format(_x);
var y = yOutput.format(_y);
var z = zOutput.format(_z);
if (x || y || z) {
writeBlock("GOTO/" +x, y, z);

when adding the goto with a comma separating it it moved my data to Y,Z, I , so i added the + instead and it worked great.