Post Sequence Number at the Start of each Toolpath for Lathe

Post Sequence Number at the Start of each Toolpath for Lathe

Anonymous
Not applicable
2,388 Views
10 Replies
Message 1 of 11

Post Sequence Number at the Start of each Toolpath for Lathe

Anonymous
Not applicable

I have been playing around with my post to try and get the sequence N numbers just at the beginning of each toolpath.  I found a similar post and downloaded the example posts but only work for miling, I tried copying and pasting the sequence number by operation lines on a test post edit for a generic fanuc turning post and i cant seem to get it to work correctly.

 

I want it to post like this.

 

N1
(FACE1)
T0101
G54
M8
G99

 

Can someone help with this? 

 

thanks 

 

0 Likes
Accepted solutions (1)
2,389 Views
10 Replies
Replies (10)
Message 2 of 11

s.noke71
Collaborator
Collaborator

Has the post options been set to use # check the post options like this picture.

Sequence number increment

0 Likes
Message 3 of 11

Anonymous
Not applicable

In the general Fanuc Turning post there isnt an option to turn on/off the sequence numbers on tool change.  

0 Likes
Message 4 of 11

tony
Enthusiast
Enthusiast

Has there been any update on this?  I have been trying to get the sequence numbers to work only on toolchange and I can't get it to work with the generic fanuc lathe post either.

0 Likes
Message 5 of 11

seth.madore
Community Manager
Community Manager

There are two Fanuc flavored posts in the Library that support N numbers on tool changes:
https://cam.autodesk.com/hsmposts?p=samsung_mill-turn_fanuc

https://cam.autodesk.com/hsmposts?p=nakamura_mill-turn_fanuc

 

You can take a look at one of those to see what is needed to get your post to behave the same 🙂


Seth Madore
Customer Advocacy Manager - Manufacturing


0 Likes
Message 6 of 11

tony
Enthusiast
Enthusiast

I managed to get the sequence number to post correctly after each tool change. 

now I’m trying to figure out how to add the tool descriptions as well as time and date to the nc file after I save it. 

0 Likes
Message 7 of 11

boopathi.sivakumar
Autodesk
Autodesk

@tony 

While posting you have an option to write the tool list, Set it to yes it will post the tool list in the top

Tool_List.png

 

If you want to get Date and time at the post then add the codes in the onOpen section 

 var d = new Date(); // output current date and time
 writeln("("+ localize("Date") +": "+ d.toLocaleDateString() +", "+ d.toLocaleTimeString()+")");

and save the file it will post the time and date in the top

 


Boopathi Sivakumar
Principal Technology Consultant

0 Likes
Message 8 of 11

Anonymous
Not applicable
Tony would you be willing to share the post you are using with me?
0 Likes
Message 9 of 11

tony
Enthusiast
Enthusiast
Accepted solution

Sure I can share my post. I am still working on it a bit and doing some tests on my machine. I'm running Fanuc 21t controller. I have hard coded in my starting sequence to have my touch off tool come down to set my part. You would probably have to remove that, as about 80% of the parts I run on my machine have that in the start of the program. When I finish up with my tests I'll post a copy. 

0 Likes
Message 10 of 11

Anonymous
Not applicable
Thank you Sir!!!
0 Likes
Message 11 of 11

tony
Enthusiast
Enthusiast

Here is the post I modified, it's for my Fanuc 21T 2axis lathe, please use at your own risk. I added a hard position tool change of X3.0 Z6.0 as well as my touch off tool position on tool 1 of X10, Z10. This may not be ok for other controls or machine setups. I have not been able to figure out how to tell the software to go to a  tool change location. If someone knows how to do that I would appreciate it, as I would prefer to have the ability to change those numbers depending on the program or type of tool. 

 

Let me know if it works, I am running this with HSM works for Solidworks so the newer functionality that was released in Fusion 360 of canned cycles is not available in this post. 

0 Likes