
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have added setup notes to my post, but it is posting as one long run on sentence..
Is there a way to add line breaks/ carriage returns so that it is not one long line in the post code?
var notes = getGlobalParameter("job-notes"); writeComment("SETUP NOTES - "+ notes);
When I type notes like
.250 MIN STICKOUT ABOVE VICE JAWS
X ZERO LEFT OF STOCK
Y ZERO FIXED JAW
Z ZERO TOP OF STOCK
It posts out as
.250 MIN STICKOUT ABOVE VICE JAWSX ZERO LEFT OF STOCKY ZERO FIXED JAWZ ZERO TOP OF STOCK
Also, I decided adding stock size would be beneficial to our operators as well. I was able to get the stock size to post by adding the following,
// Add Stock size to top of program
var stockSize = getGlobalParameter("stock");
writeComment("STOCK SIZE - "+ stockSize);
Which in this case results with,
; STOCK SIZE - 0, -120.65, -9.525, 152.4, 0, 0
Can you help me in converting this to display as Inch / Imperial rather than metric? Also, if we could do away with the minus symbols and the 3 zeros which are not needed that would be great.
What happens is these programs get saved to our server and sometimes left on the CNC controls and the job might come back a year or two later and if we had material in stock that was not the same exact size as last time it can cause tools to rapid plunge into stock that maybe did not exist last time the job was run. I just feel as though the more information I can have in the program itself, the more the operator can double check before running the parts.
Solved! Go to Solution.