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:

Misc. Integer Help


Recommended Posts

Hi,

I am having issues with the use of a misc. integer in my post.

what I need to do is add a

N1590 #[600+#4120]=XXX (xxx = misc.integer 3 amount set in tool path)

N1600 M98P7000

at the end of the tool before the next tool.

I think I have almost got it but when i post is is out putting the integer amount set for the next tool not the current one. and it post no amount on the late tool ext:

N1590 #[600+#4120]= (Should be misc. integer amount set in tool path)

N1600 M98P7000

This is what I have done

 

sav_mi3 : 0

 

fmt "" 4 mi3$

 

In the pretract #End of tool path, toolchange i added

sav_mi3 = mi3$

if mi3$ >=1, ## Daniel

[

pbld, n$, "#[600+#4120]=",mi3$, e$ ## Daniel

pbld, n$, "M98P7000", e$ ## Daniel

]

 

Please help

Thank you,

Link to comment
Share on other sites

In pretract, all of the active information is for the next toolpath. You should put sav_mi3 = mi3$ in psof, ptlchg, and ptlchg0. This will capture the value of mi3$ for each toolpath.

 

Then, change this:

 

if mi3$ >=1, ## Daniel

[

pbld, n$, "#[600+#4120]=",mi3$, e$ ## Daniel

 

To this:

 

if sav_mi3 >=1, ## Daniel

[

pbld, n$, "#[600+#4120]=", *sav_mi3, e$ ## Daniel

  • Like 1
Link to comment
Share on other sites

ok so it dose work sort of...

say I have three tool path with 3 different Tools

all with misc. integer set to 10

it will post :

N1590 #[600+#4120]=10

N1600 M98P7000

on the first tool and

on the next two

N1590 #[600+#4120]=

N1600 M98P7000

this only happens if the misc integer is the same amount as a tool before it.

But if the are set

T1 misc. integer 10

T2 misc. integer 5

T3 misc. integer 10

it post with no issuse

how do I fix this?

Thank you,

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