Results 1 to 4 of 4

Thread: create text file in macro

  1. #1
    Registered
    Join Date
    Jul 2005
    Location
    Turkiye
    Posts
    50
    Downloads
    0
    Uploads
    0

    create text file in macro

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


  2. #2
    Registered
    Join Date
    May 2007
    Location
    US
    Posts
    779
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Jul 2005
    Location
    Turkiye
    Posts
    50
    Downloads
    0
    Uploads
    0

    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
    Last edited by Selimsalim; 07-11-2008 at 05:10 AM.


  4. #4
    Registered padobranac's Avatar
    Join Date
    Mar 2006
    Location
    Croatia
    Posts
    107
    Downloads
    0
    Uploads
    0
    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-26-2008, 08:32 PM
  2. Text macro
    By paptep in forum Haas Mills
    Replies: 18
    Last Post: 04-19-2007, 07:48 AM
  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, 03:45 PM
  4. HOWTO: Create text in Radius
    By Gujustud in forum BobCad-Cam
    Replies: 1
    Last Post: 03-22-2005, 11:04 AM
  5. Saving a Text file?
    By Scott V in forum BobCad-Cam
    Replies: 4
    Last Post: 11-23-2004, 09:27 PM

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.