Results 1 to 5 of 5

Thread: outputting variables to a program

  1. #1
    Registered
    Join Date
    Sep 2005
    Location
    canada
    Posts
    26
    Downloads
    0
    Uploads
    0

    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
    Registered dcoupar's Avatar
    Join Date
    Mar 2003
    Location
    USA
    Posts
    2,502
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Sep 2005
    Location
    canada
    Posts
    26
    Downloads
    0
    Uploads
    0
    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
    Registered Ashish B's Avatar
    Join Date
    May 2009
    Location
    India
    Posts
    380
    Downloads
    0
    Uploads
    0

    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
    Registered
    Join Date
    Sep 2005
    Location
    canada
    Posts
    26
    Downloads
    0
    Uploads
    0
    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 General CNC (Mill and Lathe) Control Software (NC)
      Replies: 0
      Last Post: 04-17-2009, 01:31 PM
    2. heidenhain sub program variables help?
      By 750iow in forum General Metal Working Machines
      Replies: 0
      Last Post: 04-17-2009, 01:16 PM
    3. Possible to write variables to a program?
      By Heavy D in forum G-Code Programing
      Replies: 2
      Last Post: 08-22-2006, 12:08 AM
    4. Sinumerik program variables on screen
      By cosmikdebris in forum G-Code Programing
      Replies: 0
      Last Post: 03-17-2006, 08:55 AM
    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, 03:18 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.