Originally Posted by
jaximus1
Hi, I have been editing my code for about 8 years and loosing time doing so with each new program. I am using a HAAS VF-2 3 axis mill and would really like to avoid having to make the adjustments in the code each time!!
What I have to do is remove the block numbers and change the finishing X position at the end of the program. Also I have to change the program # every time. Mastercam does not let me change it in the tool settings tab -always goes back to 0.
Any help would be greatly appreciated.
Thanks.
There is no need to modify your post, the changes lay in different areas
- Sequence number output is in the Control Definition file...... ( tool setting tab control finished with v9 )
- Oxxxx ( program # ) , R-click in the Op manager, select the Change Program Number & change it to the number required
( if you transfer using RS232, check to see how to alter the program number at the same time when receiving into the control )
- a finishing X position is the only post mod you need
look into your post for a section called PEOF$, it will look something like
Code:
peof$ #End of file for non-zero tool
pretract
comment$
if stagetool = 1 & stagetltype = 2, pbld, n$, *first_tool$, e$
pbld, n$, "G91 G28 Y0.", e$
pbld, n$, "G90", e$
n$, "M30", e$
mergesub$
clearsub$
mergeaux$
clearaux$
"%", e$
It has to be seen to suggest the proper codes to go in there.... I'm thinking a "G53 Xxx." to be placed after the G90 string (xx. is your required value )