Message 1 of 13
Bar-puller positioning
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, fairly new user here. I'm working on trying to get our bar puller to work in the Post Processor instead of manually adding the code each time. I've found quite a bit of useful information on here using search but, I've stumped myself. It seems that most bar pullers people are using, feed onto the part in Z... ours feeds on in X. It's the right angled one pictured here. I've got a functioning code generator now and using a parameter from stock transfer to pull the bar. What I would like to do is rapid to an x position relative to the part or the stock diameter and pull off to that value as well (in the following example, it's the 1.25 value). Another issue I'm having is that my xOutput values are posting at 2x whatever I have in the code.
This was adapted from an apparently very popular bar pulling tutorial on the web. Any assistance would be greatly appreciated.
Thanks,
Mark
function onCycle() {
switch (cycleType) {
case "stock-transfer":
// will use this for bar puller, xOutput values are half actual output
writeBlock(gFormat.format(28)); //machine zero
writeBlock(mFormat.format(5), mFormat.format(9)); //spindle stop coolant off
writeBlock("T" + toolFormat.format(1212)); //tool change
writeBlock(gFormat.format(54), gFormat.format(98));
writeBlock(gMotionModal.format(0), xOutput.format(1.25), zOutput.format(-cycle.eject)); //rapid bar-puller into position by cycle.eject amount
writeBlock(gMotionModal.format(1), xOutput.format(0.05), feedOutput.format(toPreciseUnit(100,IN))); //grip bar
writeBlock(mFormat.format(11)); //open chuck
writeBlock(gFormat.format(4), pOutput.format(1)); //dwell
writeBlock(gFormat.format(98), gMotionModal.format(1), zOutput.format(0)); // pull out to 0
writeBlock(mFormat.format(10)); //close chuck
writeBlock(gFormat.format(4), pOutput.format(1)); //dwell
writeBlock(gMotionModal.format(1), xOutput.format(1.25)); //pull off bar puller
writeBlock(gFormat.format(99), gFormat.format(28));
return;
}
}This was adapted from an apparently very popular bar pulling tutorial on the web. Any assistance would be greatly appreciated.
Thanks,
Mark