587,560 active members*
3,488 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    54

    create text file in macro

    how can we create text file which includes some variables, with macro on cnc ?

  2. #2
    Join Date
    May 2007
    Posts
    781
    If you mean to create a text file on a computer that contains data from the CNC control. The only (standard) way, standard being relative, is to have the computer connected to the control thru the serial port. And have a program running on the computer that will take input from the serial port and put it in a file. Then on the control you use the POPEN, BPRNT or DPRNT, and PCLOSE commands to output the data.

    In the days of DOS the computer could be told to accept any input from the serial port as if it were coming from the keyboard in which case you would not need a program running on the computer, but I would have to dig deep to figure out how to do that, something with the mode command I think.

  3. #3
    Join Date
    Jul 2005
    Posts
    54

    thank you Andre' B

    Thank you very much for interesting
    I have Solved
    Problem is [54]

    Who bady know What is the meaning [54]

    Correct writing for me

    :7777
    #500=#3901
    #501=#3011
    #502=#3012
    #503=#4115
    POPEN

    DPRNT[#500[54]]
    PCLOS

    M30

    My Control is Fanuc 21 i TB

    Thank you very much

  4. #4
    Join Date
    Mar 2006
    Posts
    107
    Quote Originally Posted by Osmanselim View Post
    Thank you very much for interesting
    I have Solved
    Problem is [54]

    Who bady know What is the meaning [54]


    Correct writing for me

    :7777
    #500=#3901
    #501=#3011
    #502=#3012
    #503=#4115
    POPEN

    DPRNT[#500[54]]
    PCLOS

    M30

    My Control is Fanuc 21 i TB

    Thank you very much
    [54] means that there will be punched out 5 characters befor decimal point and 4 characters after decimal point

    So if you have in variable 123456789.123456789
    youl will get out 56789.1234
    Sorry for bad english

Similar Threads

  1. How do I create a DFX file
    By Blacksunshine in forum DIY CNC Router Table Machines
    Replies: 7
    Last Post: 06-27-2008, 01:32 AM
  2. Text macro
    By paptep in forum Haas Mills
    Replies: 18
    Last Post: 04-19-2007, 12:48 PM
  3. Text file with NC code - what's needed so that Mazak can run this?
    By kevotron in forum Mazak, Mitsubishi, Mazatrol
    Replies: 3
    Last Post: 03-08-2007, 09:45 PM
  4. HOWTO: Create text in Radius
    By Gujustud in forum BobCad-Cam
    Replies: 1
    Last Post: 03-22-2005, 05:04 PM
  5. Saving a Text file?
    By Scott V in forum BobCad-Cam
    Replies: 4
    Last Post: 11-24-2004, 03:27 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
  •