586,070 active members*
3,390 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Do G54 macro variables work for Fanuc 0i MD ?
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2012
    Posts
    0

    Do G54 macro variables work for Fanuc 0i MD ?

    In Fanuc 0i MC I was able to read #5221-#5223 variables meaning G54 offset values. It doesn't seem working anymore with Model D. These variables are zeros in spite of G54 workpiece offset being set. Can anyone guide me where I can find new variables for that. Any other solutions are welcomed.

  2. #2
    Join Date
    Aug 2011
    Posts
    2517
    do you have the G54-G59 workshift option on your Model D machine?
    And Macro option?
    The 0i Model D manual shows the same values so nothing has changed.....
    #5221 - #5225 : G54 Workpiece Origin Offset Value for axis number 1 to 5

    to test, in MDI type....
    #5221=123.456 [END OF BLOCK] [INSERT]
    press start and your G54 X should be set to 123.456
    to see the number view your Workshift Offset screen.

    if it doesn't work you are missing options.

  3. #3
    Join Date
    Oct 2012
    Posts
    0
    Quote Originally Posted by fordav11 View Post
    #5221=123.456 [END OF BLOCK] [INSERT]
    press start and your G54 X should be set to 123.456
    to see the number view your Workshift Offset screen.

    if it doesn't work you are missing options.
    should these variables also read the values entered straight in the offset table?

  4. #4
    Join Date
    Jan 2012
    Posts
    0
    NEED HELP!Have a fanuc ot b controller with alarm 601 ram parity error. this turns off and on on parameter 905.4. have changed to new pmc board, new master board, still comes up. any suggestions?

  5. #5
    Join Date
    Oct 2012
    Posts
    21
    Fordav11 is writing to G54.

    To read the values set in G54 (X) to variable 500:

    #500 = #5221

    or if you want to be fancy:

    #500 = [#_WZG54[1]]

    Do you get any alarms when you try to read?

    I agree with Fordav, it doesn't sound turned on, but thats odd for the 0i-D. Does the CNC display the macro variable page and the work offset page?

    Quote Originally Posted by gurgen2012 View Post
    should these variables also read the values entered straight in the offset table?
    Ben
    http://www.cncapplications.co.uk

  6. #6
    Join Date
    Aug 2011
    Posts
    2517
    Quote Originally Posted by gurgen2012 View Post
    should these variables also read the values entered straight in the offset table?
    these numbers are read/write so yes, you can read the values too.
    i.e.
    #1 = #5221

    This sets macro variable #1 to the G54 X value that has been pre-set in the offset screen.

Similar Threads

  1. Bar Code MACRO Variables????
    By Ziegler in forum NCPlot G-Code editor / backplotter
    Replies: 6
    Last Post: 08-22-2018, 05:59 PM
  2. Macro Variables
    By donwatt in forum Controller & Computer Solutions
    Replies: 0
    Last Post: 06-25-2010, 06:30 PM
  3. macro variables
    By sinha_nsit in forum Fanuc
    Replies: 5
    Last Post: 01-15-2008, 10:42 AM
  4. Variables/Macro uses....
    By theemudracer in forum Fanuc
    Replies: 12
    Last Post: 12-13-2006, 08:45 PM
  5. Variables/Macro use ????
    By theemudracer in forum G-Code Programing
    Replies: 2
    Last Post: 12-11-2006, 04:47 PM

Posting Permissions

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