Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Fanuc 310 DPRINT Function


Recommended Posts

Guest CNC Apps Guy 1

quote:

Dprnt outputs to the serial port only I think.

DPRINT can go to ANY connected device. RS-232, Dataserver, or FlashCard. biggrin.gifwink.gif

 

I've not been able to specify a file. I asked one of our FANUC guys and he said no. But I'm going to ask The FANUC guru I know. Marty in the SoCal office. He'll know.

 

Will reply when I hear from him.

Link to comment
Share on other sites
  • 1 month later...
  • 4 months later...
Guest CNC Apps Guy 1

I specify by I/O Channel on the Settings page.

 

You can actually change the I/O Channel on the fly.

 

Below will change the I/O Channel on 16/18/21/ and 0i Controls.

 

%

O7777(16/18/21 AND 0i DPRINT TEST)

G90G10L50

N20R4

G11

G4X1.

 

#500=10

#501=1

#502=2

#503=3

#504=4

#505=5

 

N0400POPEN

N0450DPRNT[VARIABLE*500*VALUE*IS*#500[44]]

N0450DPRNT[VARIABLE*501*VALUE*IS*#501[44]]

N0450DPRNT[VARIABLE*502*VALUE*IS*#502[44]]

N0450DPRNT[VARIABLE*503*VALUE*IS*#503[44]]

N0450DPRNT[VARIABLE*504*VALUE*IS*#504[44]]

N0450DPRNT[VARIABLE*505*VALUE*IS*#505[44]]

N0470PCLOS

G10L50

N20R5

G11

 

#500=0

#501=0

#502=0

#503=0

#504=0

#505=0

 

M30

%

Below will change the I/O Channel on 30/31/32i Controls.

 

%

O7777(31i SERIES CONTROL DPRINT TEST)

G90G10L52

N20R4(CHANGE TO FLASH CARD)

G11

 

(DATA CAPTURED IMMEDIATELY AFTER PROBING)

(THIS IS DATA CAPRUTED WHAT A PROBING CYCLE IS RUN)

#135=5.8895 (X POSITION)

#136=.0003 (Y POSITION)

#137=.0 (Z POSITION)

#138=1.7507 (SIZE)

#139=.0 (X SURFACE ANGLE/4TH ANGLE/ANGLE)

#140=.0005 (X ERROR)

#141=.0007 (Y ERROR)

#142=.0 (Z ERROR/Y SURF ANGLE)

#143=.0007 (SIZE ERROR)

#144=.0 (X ANGLE ERROR/ERROR)

#145=.00172 (TRUE POS. ERROR)

#146=0. (METAL CONDITION)

#147=0. (DIRECTION INDICATOR)

#148=0. (OUT OF TOLERANCE FLAG 1-7)

#149=0. (PROBE ERROR FLAG)

 

(PROGRAM TO FORMAT AND OUTPUT CAPTURED DATA)

( * IS TREATED AS A SPACE)

(24 IS FORMATTING NUMERICAL THE OUTPUT - )

( - 2 PLACES BEEFORE THE DECIMAL AND 4 PLACES AFTER)

N100 POPEN (OPEN COMM CHANNEL)

N135 DPRNT[X*POSITION*IS*#135[24]]

N136 DPRNT[Y*POSITION*IS*#136[24]]

N137 DPRNT[Z*POSITION*#137[24]]

N138 DPRNT[DIAMETER/SIZE*#138[24]]

N139 DPRNT[X*SURFACE*ANGLE/4TH*ANGLE/ANGLE*#139[24]]

N140 DPRNT[X*ERROR*#140[24]]

N141 DPRNT[Y*ERROR*#141[24]]

N142 DPRNT[Z*ERROR/Y*SURF*ANGLE*#142[24]]

N143 DPRNT[size*ERROR*#143[24]]

N144 DPRNT[X*ANGLE*ERROR/ERROR*#144[24]]

N145 DPRNT[TRUE*POS.*ERROR*#145[24]]

N146 DPRNT[METAL*CONDITION*#146[24]]

N147 DPRNT[DIRECTION*INDICATOR*#147[24]]

N148 DPRNT[OUT*OF*TOLERANCE*FLAG*1-7*#148[24]]

N149 DPRNT[PROBE*ERROR*FLAG*0-2*#149[24]]

N200 PCLOS (CLOSE COMM CHANNEL)

 

G90G10L52

N20R5(CHANGE IO TO DATASERVER)

G11

G4X1.

 

M30

%

 

 

R0/R1 = RS-232

R4 = Flash Card

R5 = Dataserver

 

Obviously there's some extra stuff on the second example but that will give yo ua great sample to get it going as for setting up formatting etc... for DPRINT.

 

HTH

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...