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:

Work Offsets


specv
 Share

Recommended Posts

I am wondering what to change in the post processor so that i dont have the same work offset for every operation(if there are 5 operations for one endmill and they are all using g54) how can i change it so that the work offset only gets called up once, until it switches to a new work offset? same goes for the comment line

thanks in advance

Pete

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Change this;

force_wcs : yes #Force WCS output at every toolchange?

 

To This;

force_wcs : no #Force WCS output at every toolchange?

 

HTH

Link to comment
Share on other sites
Guest CNC Apps Guy 1

You won't get a change. If you need this capability you'll need ot build some logic like if the previous WCS is equal to the WCS then go to another section in the post or else output the WCS.

 

HTH

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Like I said, you'll need to build some logic to check what the previous value of WCS, compare it to the current WCS value and output WCS only if there is a change.

Link to comment
Share on other sites

i guess that is what i was asking,i know what i need to do now but how to do it is another story. i have made a lot of post edits but ive never changed anything like this, so what i need to know is what are the variables for the wcs and previous wcs

 

[ 06-26-2003, 04:50 PM: Message edited by: specv ]

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Let's see...

 

I believe previous values are automatically stored if memory serves. So you would need something like this in ptlchg0;

 

ptlchg0 #Call from NCI null tool change (tool number repeats)

pcuttype

pcom_moveb

c_mmlt #Multiple tool subprogram call

comment

pcan

result = newfs(15, feed) #Reset the output format for 'feed'

pbld, n, sgplane, e

pspindchng

pbld, n, scoolant, e

if mi1 > one & workofs <> prv_workofs,

[

sav_absinc = absinc

absinc = zero

pbld, n, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e

pe_inc_calc

ps_inc_calc

absinc = sav_absinc

]

else,

[

sav_absinc = absinc

absinc = zero

pbld, n, sgabsinc, pfxout, pfyout, pfzout, pfcout, e

pe_inc_calc

ps_inc_calc

absinc = sav_absinc

[

if cuttype = zero, ppos_cax_lin

if gcode = one, plinout

else, prapidout

pcom_movea

c_msng #Single tool subprogram call

 

Hope the formatting comes out.

 

I believe this will do what you want. You may need ot strip out some stuff depending on how your post is configured.

 

HTH

 

[ 06-26-2003, 05:35 PM: Message edited by: James Meyette ]

Link to comment
Share on other sites

Thanks James

for some reason when we got our post this code all had ## in front of it. I cant think of any reason why, can you?

 

if mi1 > one & workofs <> prv_workofs,

[

sav_absinc = absinc

absinc = zero

pbld, n, sgabsinc, pwcs, pfxout, pfyout, pfzout, pfcout, e

pe_inc_calc

ps_inc_calc

absinc = sav_absinc

]

 

[ 06-27-2003, 09:04 AM: Message edited by: specv ]

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