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:

buffers ???


bbarron
 Share

Recommended Posts

banghead.gif

Mastercam X3 mill level 3

 

I am looking for some help with buffers, I have searched the fourm and found some information but I either can't grasp it or I need a shove in the right direction. I am using the generic fanuc 4x post that has had some slight modifactions made to it. I want to send the workofs$ variables to a buffer and be able to retireve them at the begining of my post. so far I have tried to set up the buffer and send the prameter over to the buffer here is what I have and it does not work.

wbuf : 1

rbuf : 1

 

fbuf 1 1 10 0

 

preadbuf

 

workofs$ = rbuf (1,0)

 

pwritebuf

workofs$ = wbuf(1, wc1), e$

I have missed it by a mile so any help would be appericated.

Link to comment
Share on other sites

Well, you seem to know that the buffer count starts at 1. Zero is reserved to find the size of buffers that already have data.

WBUF and RBUF are the write and read function names, not the write count and read count.

Change WBUF:1 to WC1:1, and RBUF:1 to RC1:1. The read line should be

workofs$ = rbuf(1, rc1). Be aware that RC1 is incremented automatically on each read. So is WC1. The 10 in FBUF probably should be 1 [wide]. Send me the post if you still have trouble.

You may not need to make a separate subroutine of PREADBUF and PWRITEBUF, but that depends on the structure of the rest of the post.

Link to comment
Share on other sites

Thank you John that worked great! Now if I could pick your brain again, now that I have all that information stored in my buffer how can I read back the workoffset in order and get rid of the duplicates? I have created a look up table which will output my G10 lines but the buffer returns a ton of the same number and in the order it was recieved. Thank you again for the help.

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