DPRNT for manual probing (FANUC 30i)


Results 1 to 3 of 3

Thread: DPRNT for manual probing (FANUC 30i)

  1. #1
    Doc_Johnson's Avatar
    Join Date
    Sep 2019
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default DPRNT for manual probing (FANUC 30i)

    Hi

    I made a small macro that I will use to probe and set up parts on my machine using a 3d probe.
    I jog the machine to different positions around my parts and run this macro and have it output the current tip position. In the macro below I have all this set and it works good.
    It outputs as follows:

    14500.000 3400.000 -2000.000

    %
    O1234
    G4X1.
    #101=PRM[12318]
    #135=#5001
    #136=#5002
    #137=#5003
    #138=#137-#101
    POPEN
    DPRNT[#135[53]*#136[43]*#138[43]]
    PCLOS
    G4X1.
    M30
    %

    The problem I am having is it outputs a PRNT0000.DAT (if PRM6019 bit 3 (OFN) is set to 0) file for each position I run the macro at or it just overwrites the MCR_PRNT.TXT (if PRM6019 bit 3 (OFN) is set to ) file with the last position the macro was run at. Is there a way to output multiple positions in one MCR_PRNT.TXT/PRNT0000.DAT file?

    Example:

    14500.000 3400.000 -2000.000
    14000.500 3000.500 -1500.000
    13500.000 2500.000 -1000.500

    Any help or advise will be much appreciated



  2. #2
    Doc_Johnson's Avatar
    Join Date
    Sep 2019
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default

    So I have written a Python script to run in the background taking data from MCR_PRNT.TXT and writing it into a new file "Probed_Data.TXT". This runs continuously as a loop. Whenever MCR_PRNT.TXT is modified it will append the data into Probed_Data.TXT



  3. #3

    Default Re: DPRNT for manual probing (FANUC 30i)

    Every time you PCLOS it makes a new file. To keep your subcall process you would remove POPEN and PCLOS from the sub and move it outside the loop.

    Code:
    POPEN
    WHILE [your condition is true] DO1
    M98 O1234
    END1
    PCLOS




Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

DPRNT for manual probing (FANUC 30i)

DPRNT for manual probing (FANUC 30i)