585,996 active members*
4,636 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > outputting variables to a program
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Posts
    26

    outputting variables to a program

    Is it possible to output a variable to a program from mdi.I am trying to simulate a playback or digitizing feature.So, lets say it's something like this.
    In mdi or from a program I stop at an xy coordinate and my program looks something like this.
    #100=#5021 (x coordinate)
    #101=#5022 (y coordinate)
    Is there a way to output this from one program and insert it into another program so that the absolute coordinates are showing into the desired program.I realise the system variables I used are probably wrong, I'm just using them as an example.Any help is appreciated.

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Don't think you can output it to a program in the Fanuc. If you have a PC hooked up to the RS-232 port, you can DPRNT the variables to a text file.

  3. #3
    Join Date
    Sep 2005
    Posts
    26
    Something similar to the dprnt feature is exactly what I was hoping for.I guess they wouldn't make any money off the playback feature if you could do it.I don't have a pc hooked up to that port, so I'm probably out of luck.Thanks for the reply.

  4. #4
    Join Date
    May 2009
    Posts
    393

    Cool Yes u can

    Say for instance, if u copy a current machine in MDI to #100 & #101, then u can use it in a different program by commanding -

    G01 X#100 Y#101 F1000;

    PM me if need further clarification..

    Ash

  5. #5
    Join Date
    Sep 2005
    Posts
    26
    Thanks, I thought of doing that but what I want at the end of it all is to have a complete set of coordinates all in one program.The numbers that made it into the desired programs would be actual coordinates and not variables.We do a lot of programming right off the prints in our area and import programs for the other half.I think I might be able to do as dcoupar suggested and dprnt to that computer now that I think of it.I didn't think of it before because it's not at the mill but at another location in the shop.

Similar Threads

  1. heidenhain sub program variables help?
    By 750iow in forum Uncategorised MetalWorking Machines
    Replies: 1
    Last Post: 12-29-2016, 08:18 AM
  2. heidenhain sub program variables help?
    By 750iow in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 0
    Last Post: 04-17-2009, 06:31 PM
  3. Possible to write variables to a program?
    By Heavy D in forum G-Code Programing
    Replies: 2
    Last Post: 08-22-2006, 05:08 AM
  4. Sinumerik program variables on screen
    By cosmikdebris in forum G-Code Programing
    Replies: 0
    Last Post: 03-17-2006, 02:55 PM
  5. Use of user cycles and variables in a techology program
    By Grom1 in forum DeskCNC Controller Board
    Replies: 0
    Last Post: 09-27-2005, 08:18 AM

Posting Permissions

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