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:

Another Okuma Question; High Speed Look Ahead


danielm
 Share

Recommended Posts

Well it turns out that   VOPRB[2]=VOPRB[2] EOR 128   is just a toggle switch that change the state of the HSLA buffer from off to on  or on to off....depending on its initial state.

VOPRB[2]=VOPRB[2] OR 128   Turns the HSLA buffer off no matter what

There has got to be a similar string that turns the HSLA buffer on no matter what.  I've been through the manuals and I cant find it.

 

Anyone run into this?

 

Thanks in advance for any help.

 

 

 

 

Link to comment
Share on other sites

VOPRB[2] is an 8 bit (0-7) parameter. Bit seven determines whether or not buffering is on. For buffering to on, bit seven needs to be a 0. To always set it to be on you will need to do some logic checking. 

IF [VOPRB[2] LT 128] NSKP1

VOPRB[2]=VOPRB[2]-128

NSKP1

Also, for reference, you can check the VDIN variable to act as a one line look ahead limit in a program. VDIN[****] (where **** = 1000-1004) are system clocks for days, hours, minutes, seconds, milsec. If you write any one of those values to a variable the NC will not process that line of code until it reaches it in actual execution. This will act as a look ahead buffer. 

Example; 

TIME=VDIN[1001]

  • Like 1
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...