603,834 active members*
3,073 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > I need some help with the DPRNT (DPRINT) command. Anyone out there using it?
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Posts
    19

    I need some help with the DPRNT (DPRINT) command. Anyone out there using it?

    This snippet is in exact parallel to the sample in the manual. It is for testing purposes, to get the hang of using the command:
    %
    O2233(SAMPLE DPRINT)
    POPEN
    DPRNT[C**X#502[3]Z#503[3]]
    PCLOS
    M30
    %
    It outputs the C and the X then raises "FORMAT ERROR IN MACRO". I know some of these manuals (the one I am using is FANUC B-63524EN/01, 16i-TB,18i-TB, 160i-TB, 180i-TB, pp 333,334 ) sometimes contain errors. If you have DPRINT commands that work could you post or send them to me along with the output they generate?

  2. #2
    Join Date
    Mar 2003
    Posts
    2932
    Quote Originally Posted by arobustus View Post
    This snippet is in exact parallel to the sample in the manual. It is for testing purposes, to get the hang of using the command:
    %
    O2233(SAMPLE DPRINT)
    POPEN
    DPRNT[C** X #502 [3] Z #503 [3]]
    PCLOS
    M30
    %
    It outputs the C and the X then raises "FORMAT ERROR IN MACRO". I know some of these manuals (the one I am using is FANUC B-63524EN/01, 16i-TB,18i-TB, 160i-TB, 180i-TB, pp 333,334 ) sometimes contain errors. If you have DPRINT commands that work could you post or send them to me along with the output they generate?
    Have you tried spacing out the characters in the block (as per the example in the manual)?

  3. #3
    Join Date
    Feb 2006
    Posts
    1792
    Quote Originally Posted by arobustus View Post
    DPRNT[C**X#502[3]Z#503[3]]
    Replace [3] by [53] which means five integer and three decimal digits.

    Sinha

  4. #4
    Join Date
    May 2004
    Posts
    97
    I was going to suggest the same:

    You need 2 digits in the square brackets:
    DPRNT[C**X#502[44]Z#503[44]]

    4+4 is the number of characters output where 4 are after the decimal point. If you wanted to output the number as an integer it would be say [40] where you only want the first 4 digits output and no values after the decimal!

    are you printing your probe offsets by chance?

  5. #5
    Join Date
    Mar 2003
    Posts
    2932
    Oops. I was looking at the BPRNT not the DPRNT.

Similar Threads

  1. DPRINT Command 18Mi
    By RLMTS in forum Fanuc
    Replies: 9
    Last Post: 11-09-2011, 10:15 PM
  2. DPRINT with EThernet
    By Torsten in forum Fanuc
    Replies: 3
    Last Post: 07-16-2010, 01:30 AM
  3. DPRNT COMMAND
    By harinct in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 12-21-2009, 11:38 AM
  4. # sign using dprint
    By Buddy Swanson in forum Parametric Programing
    Replies: 0
    Last Post: 01-04-2009, 07:45 PM
  5. DPRNT command in Yasnac J100
    By hense in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 09-23-2008, 07:38 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
  •