531,909 active members*
2,861 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Sep 2019
    Posts
    2

    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 1 ) 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
    Last edited by Doc_Johnson; 09-04-2019 at 08:57 PM.

  2. #2
    Member
    Join Date
    Sep 2019
    Posts
    2
    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
    Last edited by Doc_Johnson; 09-04-2019 at 05:08 AM.

  3. #3
    Member
    Join Date
    Jul 2016
    Posts
    21

    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
  •