- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm running a Sharp 2412 with a Fanuc control. Using a modified Fanuc post. I want to add a conditional dwell of 6 seconds at the end on any tool with 6000 or more rpm spindle speed. (over 6000 rpms the spindle is still spinning too much for a tool change and it alarms out, if I dwell 6 sec after the spindle stop command the tool change works without a problem. I have figured out how to add a dwell to all the tool changes but can't seem to get to the current spindle speed at the end of a tool path. Below the M08 in the post on a given tool, it thinks the spindle speed is the next tool's speed. If I put an IF statement in to write the dwell line if the spindle speed is over 6000, it looks at the next tool's speed rather than the current tool's speed (the tool that just stopped). If I add a "write Block (spindle speed)" it writes the next tool's speed, If I add "write Block (s Output .format (spindle speed)", it writes the current tool's speed which is the one I want to use.
Can someone explain how I can get the If statement to query the current spindle speed of the tool that just ended and not the next tool up? Been messing with this a couple of weeks and think it's time for some expert help.
Thanks,
Clay
Solved! Go to Solution.