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 add sequential block numbers before each operation


Zoffen
 Share

Recommended Posts

nevermind, figured it out.

 

for anyone interested in how i did it:

 

sav_spc = spaces$

spaces$ = 0

pbld, "N",sOpSeqNo, e$

!op_id$

spaces$ = sav_spc

 

really beat my head against a wall for a while until i figured out the spaces$ variable controlled the spaces between stuff. DUH. My brain is fried.

Link to comment
Share on other sites

The NCI & parameter reference and post debugger guide are on the mastercam site under support > downloads. I'm having trouble locating the complete MP Documentation file. It would be nice if it was placed on the top of the forum or with the MPMaster post download part. It is the most essential tool for editing and understanding posts, yet it seems as if it's always been hard to locate the info......

Link to comment
Share on other sites

I have my post so that it only puts out N# at each tool with an M01 and the N# matches the tool number. Makes it real easy to get to certain tools when jumping around. Just type N# cursor down and there I am.

 

+1, plus a saftey line, so no matter where my tool is, I can hit N3 (down arrow), cycle start and the tool will retract, move to position and start tool 3.

Link to comment
Share on other sites

As a Tip for future reference: you can use the 'no_spc$' between output parameters to remove the space character. It is a little easier than saving the current value of 'spaces$', assigning 'spaces$' a value of zero, then reassigning the previous value after you have output your code.

 

Your modified line would look like this:

 

pbld, n$, no_spc$, sOpSeqNo, e$

Link to comment
Share on other sites

As a Tip for future reference: you can use the 'no_spc$' between output parameters to remove the space character. It is a little easier than saving the current value of 'spaces$', assigning 'spaces$' a value of zero, then reassigning the previous value after you have output your code.

 

Your modified line would look like this:

 

pbld, n$, no_spc$, sOpSeqNo, e$

 

YES!

 

thats what i was looking for. i love learning things back assward!

 

thanks!

Link to comment
Share on other sites

Go Colin go! Only been there a month and now you're flying :D

 

We have our post modded (thanks Phill @ 4D in the UK) so it outputs sequentially

N0101 (T1, 1st time called)

N0102 (T1, 2nd time called)

N1001 (T10, 1st time called) etc

 

Obviously we can only go to 99 tools with 99 calls, but heh!

It makes searching and starting mid program (or 1st thing in the morning after switching off overnight) a whole lot easier.

Link to comment
Share on other sites
+1, plus a saftey line, so no matter where my tool is, I can hit N3 (down arrow), cycle start and the tool will retract, move to position and start tool 3.

 

Mic6 what type of safety line? If I stop in the middle of a program I immediately dial up and off the part so I have never had the need for one. I have had this discussion at my new place with one of the guys. At The start of all of their programs they have the lines:

G0G28G91Z0

G0G28G91Y0

G52X0Y0Z0

 

In my opinion wasted moves especially on a large machine with more than 30 inches of travel in both Z and Y. He stated that if he stops in a part he wants his first line to retract Z. I stated under no circumstance would I ever hit the cycle start button with a tool inside a part after stopping. Also this safety line is only at the start of the program so starting down at tool 3 or something it would be useless.

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