Need Help! Okuma Macro Variable value Driven Variable


Results 1 to 5 of 5

Thread: Okuma Macro Variable value Driven Variable

  1. #1
    Member
    Join Date
    Jun 2004
    Location
    United Kingdom
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Okuma Macro Variable value Driven Variable

    Hi All,

    Sorry folks not even sure how to explain this one.
    The following is dummy code to try and solve an issue I have.

    I'm trying to refer to a variable using a different variables value to set the variable name.

    POS1=20
    VC20=123.4

    PXM=VC[POS1]


    Does PXM Equal 123.4?

    in Fanuc you use ##

    Thanks

    Similar Threads:


  2. #2
    Member broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    822
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro Variable value Driven Variable

    Quote Originally Posted by ablackwell View Post
    Hi All,

    Sorry folks not even sure how to explain this one.
    The following is dummy code to try and solve an issue I have.

    I'm trying to refer to a variable using a different variables value to set the variable name.

    POS1=20
    VC20=123.4

    PXM=VC[POS1]


    Does PXM Equal 123.4?

    in Fanuc you use ##

    Thanks
    Short answer is YES!
    expanding the line PXM=VC[POS1] becomes PXM=VC20



  3. #3
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro Variable value Driven Variable

    Hy ablackwell, that little code is too simple for your experience; if i may, sometimes, is faster to test, rather than asking for help

    trial testing is key and a huge time saver

    i dont know what you are trying to do, but you take it step by step : ifsyntax, file asignment, variables with arguments, etc

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  4. #4
    Member broby's Avatar
    Join Date
    Apr 2006
    Location
    Australia
    Posts
    822
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro Variable value Driven Variable

    Quote Originally Posted by deadlykitten View Post
    Hy ablackwell, that little code is too simple for your experience; if i may, sometimes, is faster to test, rather than asking for help

    trial testing is key and a huge time saver

    i dont know what you are trying to do, but you take it step by step : ifsyntax, file asignment, variables with arguments, etc

    Well Kitty, Asking a simple question can often save lots of time in testing!
    Maybe he didn't have access to the machine for testing?
    Anyway, not always necessary to know what the person is ultimately trying to achieve, a quick, simple reply is all this person asked for and that is what I provided.
    YOU have asked plenty of questions in the past.
    Cheers
    Brian.



  5. #5
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default Re: Okuma Macro Variable value Driven Variable

    you are correct i am not saying that there has to be a single approach, but after writing a code, less keystrokes are required to test it, rather then whatever else

    timing is key, and osp has the capability to allow dense testing by using network,etc ... other brands require a too long keychain, that simply delays testing, and somehow may discourage someone, like using that crowded fanuc keyboard, or the ';' , etc

    such things may make someone to imagine that what he learned is the only way, while osp is so much more

    very few people ask the questions that he does, in such a short time window, thus there is experience, but there is no speed ...

    is not needed to be near a cnc to test an okuma macro, as long as there are no system variables

    and in some cases , having acces to data logs, leads to useless discusions, that otherwise wouldnt happen if monitoring tools wouldnt have been used / kindly

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Okuma Macro Variable value Driven Variable

Okuma Macro Variable value Driven Variable