Adding "Frontside Stock Offset" to post processor

Adding "Frontside Stock Offset" to post processor

Anonymous
Not applicable
801 Views
4 Replies
Message 1 of 5

Adding "Frontside Stock Offset" to post processor

Anonymous
Not applicable

I'm trying to get the parameter "Frontside Stock Offset" from the CAM (lathe), to be printed through the post processor. This dimension represents the distance between the highest z-dimension of the part and the highest z-dimension of the stock material.

 

It seems like the parameter should be "stockZHigh", when looking at the dump-file.

 

I've tried "writeComment(stockZHigh);" and "writeComment(job_stockOffsetFront);", but with no success. Do you have any tips on how I should proceed?

 

0 Likes
Accepted solutions (1)
802 Views
4 Replies
Replies (4)
Message 2 of 5

AchimN
Community Manager
Community Manager

Please try this:

if (hasParameter("operation:stockZHigh")) {
  writeComment(getParameter("operation:stockZHigh"));
}


Achim.N
Principal Technology Consultant
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you for the answer.

 

It seems like I don't have the parameter stockZHigh. The post processor is not entering the if-function.

0 Likes
Message 4 of 5

AchimN
Community Manager
Community Manager
Accepted solution

You are right, this should work instead:

 

if (hasGlobalParameter("operation:stockZHigh")) {
  writeComment(getGlobalParameter("operation:stockZHigh"));
}

 



Achim.N
Principal Technology Consultant
Message 5 of 5

Anonymous
Not applicable

Have been really busy for a few days and not checked for replies. Tried your solution now and it works perfect!

 

Thank you very much:)

0 Likes