- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok I would like the HURCO post to allow me to put 54,55.....58, 59 in the job setup instead of 1,2.....5, 6, to ge 54-59.
NEXTGEN did one for our HAAS in 2012 and I tried to copy paste the code that works in my HAAS post but doesn't work in the HURCO.
any Ideas?
// wcs
var workOffsetWords = "";
var workOffset = currentSection.workOffset;
if (workOffset == 0) {
warningOnce(localize("Work offset has not been specified. Using G54 as WCS."), WARNING_WORK_OFFSET);
workOffset = 54;
}
if (workOffset > 0) {
if (workOffset > 129 || (workOffset > 59 && workOffset < 110)) {
error(localize("Work must use 54-59 and 110-129."));
return;
}
if (workOffset != currentWorkOffset) {
//writeBlock(gFormat.format(workOffset));
workOffsetWords = formatWords(gFormat.format(workOffset));
currentWorkOffset = workOffset;
}
}
Solved! Go to Solution.