atomiced New Member
Joined: 07 Apr 2008 Posts: 2 Location: Holloman AFB, New Mexico
|
Posted: Thu Apr 17, 2008 8:15 am Post subject: DPRINT example on Fanuc 18iM |
|
|
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. |
|