I started to look at this for you, but my weekend has started now. I am going to drink beer.
I have two situations, after each tool I like to go to a G30 position (just clear of the part) to index the turret and at he end of the program go to the G28 (Home) position to change the part. How do I add a P2 to the post when I select G30 in the Misc. Interger section. I am using Mastercam X6 and the post is a MLFAN.
I started to look at this for you, but my weekend has started now. I am going to drink beer.
http://www.kirkcon.com/
Figured it out!!
if ref_ret = one, pcan1, pbld, n$, *sg28ref, "U0.", "W0.", "P2",
pnullstop, strcantext, e$
else,
pbld, n$, *sg28ref, "U0.", "W0.",