585,762 active members*
4,247 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Macro Variables Punch through a Program Or M Code ?
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2008
    Posts
    157

    Question Macro Variables Punch through a Program Or M Code ?

    Is it possible to automatically output the Macro variable values into a program without physically using the softkey (which is the regular practice) ?

    Any help from the Guru's is highly appreciated

    Cheers
    yaji

  2. #2
    Join Date
    Feb 2006
    Posts
    338

    Re: Macro Variables Punch through a Program Or M Code ?

    Yea as long as you have the macro B option. I think most fanuc controls in the last 20 years usually have it turned on.

    Make a macro program and assign it a G or M code.

    Something like:

    Code:
    #1=500 (starting variable number to output)
    #2=599 (ending variable number)
    POPEN 
    WHILE [#1 LE #2] DO1
    DPRNT[VARIABLE*#1*#[#1][44]]  
    #1=#1=1
    END1
    M99

  3. #3
    Join Date
    May 2008
    Posts
    157

    Re: Macro Variables Punch through a Program Or M Code ?

    I' am looking for a solution to punch the variables as a file and not through RS-232 DPRINT. Sorry that I was not specific.

    My requirement is wanting to punch out the variables as a file into the computer Or into the CF Card or into the Dataserver (this is anyways based on what channel is being used for I/O)


    Quote Originally Posted by dpuch View Post
    Yea as long as you have the macro B option. I think most fanuc controls in the last 20 years usually have it turned on.

    Make a macro program and assign it a G or M code.

    Something like:

    Code:
    #1=500 (starting variable number to output)
    #2=599 (ending variable number)
    POPEN 
    WHILE [#1 LE #2] DO1
    DPRNT[VARIABLE*#1*#[#1][44]]  
    #1=#1=1
    END1
    M99

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. Replies: 12
    Last Post: 09-04-2015, 10:55 AM
  3. how to open the p code macro compiler program
    By rajesh.s in forum Tormach Personal CNC Mill
    Replies: 0
    Last Post: 05-23-2013, 10:09 AM
  4. macro variables
    By sinha_nsit in forum Fanuc
    Replies: 5
    Last Post: 01-15-2008, 10:42 AM
  5. Variables/Macro use ????
    By theemudracer in forum G-Code Programing
    Replies: 2
    Last Post: 12-11-2006, 04:47 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
  •