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:

post editing help please


westerfieldc
 Share

Recommended Posts

This is what I have:

 

 

pmisc1$ #Canned Misc #1 Cycle

pdrlcommonb

pbld, n$, "M05", e$

pbld, n$, "M19", e$

pbld, n$, *pfxout, e$

pdld, n$, *pfspindleout, e$

pbld, n$, *tosz_a, e$

 

pcan1, pbld, n$, *sgdrlref, *sgdrill, *pdrlxy, pfzout, pcout, pindexdrl,

prdrlout, shftdrl$, [if dwell$, *dwell$], *feed, strcantext, e$

pcom_movea

 

What I need to do is adjust the *pfxout by the amount stored in shftdrl and out put that value.

 

Any ideas would be greatly appreciated.

Link to comment
Share on other sites

Dig what you need outa this;

code:

      if drillcyc$ = 19, # back boring cycle

[

savdrl_gcode = gcode$

pdrlcommonb

temp2_1 = shftdrl$

temp2_2 = feed * 4

n$, pdrlxy, e$

n$, refht$, e$

n$, "Y", no_spc$, *temp2_1, e$

n$, *depth$, e$

n$, *yabs, e$

n$, *speed, pspindle2, e$

n$, *sg01, tosz$, *feed, e$

if dwell$ <> 0, n$, sg04, *dwell$, e$

n$, *sm05, e$

n$, "M19", e$

n$, "Y", no_spc$, *temp2_1, "F", no_spc$, *temp2_2, e$

n$, *sg00, *refht$, e$

pcom_movea

]

Link to comment
Share on other sites

I use temp variables so I don't have to have 2000 different named ones. Well maybe not 2000 but you get the idea...

 

You can copy this and past it with your other formats;

 

code:

fmt     2   temp2_1     #temp number format 2 -- Decimal, absolute, 4/3 place

fmt 2 temp2_2 #temp number format 2 -- Decimal, absolute, 4/3 place

fmt 2 temp2_3 #temp number format 2 -- Decimal, absolute, 4/3 place

fmt 2 temp2_4 #temp number format 2 -- Decimal, absolute, 4/3 place

fmt 2 temp2_5 #temp number format 2 -- Decimal, absolute, 4/3 place

fmt 4 temp4_1 #temp number format 4 -- Integer, not leading

fmt 4 temp4_2 #temp number format 4 -- Integer, not leading

fmt 4 temp4_3 #temp number format 4 -- Integer, not leading

fmt 4 temp4_4 #temp number format 4 -- Integer, not leading

fmt 4 temp4_5 #temp number format 4 -- Integer, not leading

fmt 4 temp4_6 #temp number format 4 -- Integer, not leading

fmt 4 temp4_7 #temp number format 4 -- Integer, not leading

fmt 4 temp4_8 #temp number format 4 -- Integer, not leading

fmt 4 temp4_9 #temp number format 4 -- Integer, not leading

fmt 4 temp4_10 #temp number format 4 -- Integer, not leading

It's more than you need but after using them you may decide you'll want more.

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