544,151 active members*
1,617 visitors online*
Register for free
Login
IndustryArena Forum > MetalWorking Machines > Okuma > Okuma Macro Variable value Driven Variable
Results 1 to 5 of 5
  1. #1
    Registered
    Join Date
    Jun 2004
    Posts
    6

    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

  2. #2
    Registered
    Join Date
    Apr 2006
    Posts
    779

    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
    Join Date
    Jun 2015
    Posts
    3310

    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
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  4. #4
    Registered
    Join Date
    Apr 2006
    Posts
    779

    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
    Join Date
    Jun 2015
    Posts
    3310

    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
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

Similar Threads

  1. Looking for the macro variable no. For.....
    By gavintwopies in forum Daewoo/Doosan
    Replies: 3
    Last Post: 10-31-2020, 03:20 PM
  2. Macro variable name
    By positiverake in forum Fanuc
    Replies: 3
    Last Post: 10-27-2020, 06:32 PM
  3. Assigning post variable to Vbscript variable
    By vfsi in forum BobCad Post Processors
    Replies: 6
    Last Post: 10-18-2016, 01:30 PM
  4. macro b local variable
    By samu in forum Fanuc
    Replies: 4
    Last Post: 12-19-2010, 12:55 AM
  5. EMC2 variable pitch / variable diameter threading.
    By samco in forum General MetalWork Discussion
    Replies: 0
    Last Post: 03-09-2008, 07:40 PM

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
  •