Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DPRINT example on Fanuc 18iM

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Fanuc
View previous topic :: View next topic  
Author Message
atomiced
New Member


Joined: 07 Apr 2008
Posts: 2
Location: Holloman AFB, New Mexico

PostPosted: Thu Apr 17, 2008 8:15 am    Post subject: DPRINT example on Fanuc 18iM Reply with quote

Your machine must have the User Macro option turned on to use DPRINT. I don't believe there's any special M code required.

The following example is from the Fanuc 18iM Operator's Manual (Mill):
Code:
#2=128.47398
#5=-91.2
#30=123.456
POPEN
DPRNT[X#2[53]Y#5[53]T#30[20]]
PCLOS

Note: [53], [53], [20] are paired: the 1st # is the number of significant digits in the integer part, and the 2nd # is the number of significant digits in the decimal part.

If prm 6001 bit 1 (PRT) = 1, the above DPRNT command should output the following to the active RS232 port:

X128.474Y-91.200T23;

The POPEN can be commanded anywhere prior to the DPRNT and the PCLOS can be commanded anywhere after. Just be sure they're matching pairs.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Fanuc All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group