Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Lathe post edit


Tony35
 Share

Recommended Posts

still tweaking the lathe post for our okumas and im almost there but i want to tweak the tool comments at the top of the post

 

sample code

 

%

(TOOL NO. - 3 - 80 DEG ROUGH TURN - OFFSET - 3 - INSERT - CNMG-432 - HOLDER - DCLNR - 164D)<<<<<<<<<

(TOOL NO. - 1 - 55 DEG FINISH TURN - OFFSET - 1 - INSERT - DNMG-431 - HOLDER - DDQNR - 164C)<<<<<<<<<

(TOOL NO. - 4 - .055 RAD ROUGH FORM TOOL - OFFSET - 4 - INSERT - .055 RAD .410 LONG ROUGH - HOLDER - FORM TOOL)<<<<<<

(TOOL NO. - 5 - .055 RAD FINISH FORM TOOL - OFFSET - 5 - INSERT - .055 RAD .410 LONG FINISH - HOLDER - FORM TOOL)<<<<<

 

 

( * MACHINE TOOL : OKUMA LB-15 )

( * PART NUMBER - 7000132 CURL TOOL TEST )

( * PROGRAMMER - )

( * REV LEVEL - )

( * DATE - 12 / 08 / 10 )

 

N10 CLEAR

N20 DEF WORK

N30 PS LC,[0,0],[0,0],2

N40 END

N50 DRAW

N60 M59

 

(ROUGH TURN +.01)

NAT03

N70 G0 X20. Z20.

N80 G50 S2000

N90 G0 G95 X20. Z20. G96 S500 M42

 

 

where is the tool comments getting pulled from so i can adjust what gets output

thanks for any help :)

Link to comment
Share on other sites

All depends on what post you are using. The ptoolcomment in many of the CNC Posts are used to build the entire output line and then output it. But when doing tool lists at the beginning of the NC file you need to incorporate the use of the PWRTT postblocks and processing so the NCI file can be scanned and tool lists can be built.

 

Then you can call ptoolcomment from multiple postblocks to build the lines and output at different locations in the NCI -tool list at the top of the file, or tool comment at the tool change, etc.

 

Try using the debugger to follow the postblock flow and output build and then you will know where it is coming from in YOUR post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...