Results 1 to 2 of 2

Thread: Set variable values in Fanuc

  1. #1
    Registered
    Join Date
    Sep 2011
    Location
    Norway
    Posts
    1
    Downloads
    0
    Uploads
    0

    Question Set variable values in Fanuc

    Hi.

    I am programming by hand in an Fanuc 18i and I really need to make some variable values to increase an value for each time the program runs.
    And the value needs to be set in instead of an Z or X value.

    Also need to make an limit for the value so if the value gets to big the program jumps out. Equal or bigger than limits.

    Used IF and OR finctions on an Okuma OSP controller some years ago but I haven't found out yet how to make variable values on a Fanuc.

    I think it is something like this, but I am not sure :
    #1000 (variable)
    and you set this to an ammount, like #1000 = 10
    Am I on the ringht or wrong track here??

    Thanks for all help.

    aknap, norway


  2. #2
    Registered christinandavid's Avatar
    Join Date
    Aug 2009
    Location
    New Zealand
    Posts
    654
    Downloads
    0
    Uploads
    0
    You need to find out if your control has Macro B capability to use that kind of programming notation. Custom macro variables on your control could range from #100-#199 and may have #500-#599 (even up to #999). Don't use any higher numbers unless you want to overwrite a system variable...

    DP


Similar Threads

  1. Common Variable values output into a program
    By yaji63 in forum G-Code Programing
    Replies: 4
    Last Post: 05-17-2012, 01:17 AM
  2. Need Help!- Outputting Common variable values into a program
    By yaji63 in forum Fanuc
    Replies: 20
    Last Post: 11-14-2011, 08:41 AM
  3. Need Help!- Fanuc m15 how do I reset limit(s) values?
    By stoney459 in forum Fanuc
    Replies: 7
    Last Post: 01-08-2011, 07:15 AM
  4. Replies: 0
    Last Post: 12-27-2010, 03:55 AM
  5. Displaying variable values onscreen?
    By facegarden in forum Haas Mills
    Replies: 15
    Last Post: 04-25-2009, 04:04 AM

Posting Permissions


 


About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.