- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The current post processor i have is for a funuc control and for a threading cycle, it using a g92. My machine (mazak) does not use g92, but instead uses a g76.
i have the post process outputing the code correctly, however it keeps repeating. its calling the onCyclePoint until it reaches the min x value. anyway to stop this? i just need this line once...
N23 G76 X2.617 Z-0.435 K0.04 D4 F15.999999999999998
N24 G76 X2.609 Z-0.435 K0.04 D4 F15.999999999999998
N25 G76 X2.601 Z-0.435 K0.04 D4 F15.999999999999998
N26 G76 X2.593 Z-0.435 K0.04 D4 F15.999999999999998
-----------------
switch (cycleType)
{
case "thread-turning":
var minDepthCut = Math.ceil(getParameter("operation:threadDepth")*1000/(getParameter("operation:numberOfStepdowns")));
var threadPass = getParameter("operation:threadDepth") / 100;
var inverted = (toolingData.toolPost == REAR) ? 1 : -1;
//var r = -cycle.incrementalX * inverted; // positive if taper goes down - delta radius
var threadsPerInch = 1.0/cycle.pitch; // per mm for metric
//var f = 1/threadsPerInch;
xOutput.reset(); // at least one axis is required
zOutput.reset();
writeBlock(
gFormat.format(76),
xOutput.format(x),
zOutput.format(z),
"K" + getParameter("operation:threadDepth"),
"D" + minDepthCut,
"F" + getParameter("operation:threadPitch")
);
// break;
//debug("The value of x is " + x);
return;
}
Solved! Go to Solution.