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:

How to force code?


Bugzpulverizer
 Share

Recommended Posts

I am programming for two old G & L machines, one is a 25VS VMC, and the other is a 18U lathe. They need all codes on every arc line. It will not default x, y, i, j, or k, in arc movements. Is there a way to change the generic Mastercam post to force it to post those codes when executed? It's really a pain when doing roughing cycles on the lathe when fillet radii are involved. Thanks in advance.

Link to comment
Share on other sites

code:

fmt  X  2   xabs        #X position output

fmt Y 2 yabs #Y position output

fmt Z 2 zabs #Z position output

XYZ's use a format type to control their output. In this case they are using format type 2.

 

code:

fs2 1   0.7 0.6     #Decimal, absolute, 7 place, default for initialize (

fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place

fs2 3 0.4 0.3d #Decimal, delta, 4/3 place

Format type 2 would be a 4 place (inch) decimal number.

 

If you added a character to the format 2 type you can make it non-modal.

 

Set the format to look like this:

fs2 2 0.4 0.3n #Decimal, absolute, 4/3 place

 

The 'n' will make all variables that use format type 2 to non-modal.

Link to comment
Share on other sites

a quick, dirty way to force the G-codes out is to use the post variable force out symbol. In your rapid, line and arc output sections force the sgcode variable. Example with the line output section:

code:

plinout         #Output to NC of linear movement - feed                    

pcan1, pbld, n$, sgfeed, sgplane, *sgcode, sgabsinc, pccdia,

pxout, pyout, pzout, pcout, feed, strcantext, scoolant, e$

The * on the sgcode variable will force it out every time.

Link to comment
Share on other sites

That worked great also. thank you much!! I've got one more. In the beginning of my programs I want it to give a tool list. I've got my post to list the tool numbers in the order they are called, but I can't get it to put the comment for the tool next to ( T01= ???). I want it to appear where I put the question marks. Here's what I get:

(A6503 )

(P/N:)

(BOGLINO - DATE:)

(********************)

( T11= )

( T12= )

( T09= )

( T01= )

(********************)

I think I have tried nearly every manipulation in my small aresenal of knowledge of editing .pst files. Here's hoping you are three for three today.

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...