CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Fanuc


Fanuc Discuss Fanuc controllers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 01-03-2007, 05:49 AM
 
Join Date: Oct 2003
Location: Wales UK
Posts: 34
RLMTS is on a distinguished road
Question DPRINT Command 18Mi

Can anyone advise me on how to correctly implement the Dprint command using an 18Mi
Regards Rich.
Reply With Quote

  #2   Ban this user!
Old 01-03-2007, 06:10 AM
 
Join Date: May 2006
Location: USA
Age: 42
Posts: 82
lgreeves is on a distinguished road

My machine has an "M" code to prepare CNC for communication then a "POPEN" to start communication flow. All information is contained in brackets "[" "]" then a "PCLOS" to stop communication. A "DPRINT" is on every line of code. Example DPRINT [ MOVE Xx Yx ZX]. Finally an "M" code to finish. The "M" code is M70 but I am sure tha was designated by the manufacturer.
Reply With Quote

  #3   Ban this user!
Old 01-03-2007, 06:36 AM
 
Join Date: Oct 2003
Location: Wales UK
Posts: 34
RLMTS is on a distinguished road
DPRINT Command - Fanuc 18Mi

Hi 'Igreeves'
Thanks for your reply.

There is obviously more to this than I imagined.

I am a self-employed machine tool engineer, mainly service, and a customer has asked me if I can advise in some way. They had previously contacted Hitachi Seiki who could not advise them?

Do you know if there is a manual available somewhere, or some instuctions on the programming syntax?

Obviously, if an M-Code is used to prepare, then we must get back to the MTB and pressurise them for information!?

Can you type me an example of how it would appear in the prog?

Regards Rich.
Reply With Quote

  #4   Ban this user!
Old 01-06-2007, 03:30 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

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):

#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.

Hope this helps.

Dave
Reply With Quote

  #5   Ban this user!
Old 01-11-2007, 02:56 PM
 
Join Date: Oct 2003
Location: Wales UK
Posts: 34
RLMTS is on a distinguished road
18Mi DPRINT

Thanks "Igreeves" and thanks "Dcoupar" You have both been very helpful.
ATB Richard
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-21-2009, 04:29 AM
 
Join Date: Aug 2008
Location: india
Posts: 4
harinct is on a distinguished road

could some one suggest how to use drpnt command for following need

1. job count (i hope we can store the part count in macro b variable) and send to pc
2. unused M code to run specific sub programs (where we can store the dprnt command like machine breakdown reason). so that we can use in MDI mode to run this M code to get detail on computer.
3. DETAIL on macro b variable storage and retrieve thro DPRNT.
Reply With Quote

  #7   Ban this user!
Old 12-22-2009, 06:03 PM
MysticMonkey's Avatar  
Join Date: Mar 2009
Location: Australia
Posts: 366
MysticMonkey is on a distinguished road

I think this will work

1.
O0001;(PARTS COUNT OUTPUT)
POPEN
DPRNT[PROGRAM-#4115[50]]
DPRNT[DATE-#3011[80]]
DPRNT[TIME-#3012[60]]
DPRNT[PARTSCOUNT-#3901[90]OF#3902[90]]
PCLOS
M2

2
Parameter 6070 = 69
M69 runs program O9009

O9009
{Output of alarms is not possible}
{ADD DPRNT data here}

M02


3.
Because of the limitations of the DPRNT command this has to be written longhand

O0001;(VARIABLE OUTPUT)
;(FOR VARIABLES 1 TO 149)
POPEN
DPRNT[VARIABLES-1-TO-149]
DPRNT[VARIABLE1-#1[99]]
DPRNT[VARIABLE2-#2[99]]
DPRNT[VARIABLE3-#3[99]]
~
DPRNT[VARIABLE149-#149[99]]
PCLOS
;(OUTPUT G53 SETTINGS)
POPEN
DPRNT[G53]
DPRNT[X#5201[94]]
DPRNT[Y#5202[94]]
DPRNT[Z#5203[94]]
PCLOS
;(OUTPUT G54 SETTINGS)
POPEN
DPRNT[G54]
DPRNT[X#5221[94]]
DPRNT[Y#5222[94]]
DPRNT[Z#5223[94]]
PCLOS
M02
__________________
***********************************************************
*~~Darwinian Man, though well-behaved, At best is only a monkey shaved!~~*
***********************************************************
*__________If you feel inclined to pay for the support you receive__________*
*_______Please give to charity http://www.oxfam.org/en/getinvolved_______*
***********************************************************
Reply With Quote

  #8   Ban this user!
Old 11-09-2011, 11:34 AM
metlshpr's Avatar  
Join Date: Dec 2006
Location: usa
Posts: 103
metlshpr is on a distinguished road

I know that I am digging this thread up, but i am at a place where I would like the common variable to be printed out from the control.

Here is what is going on:
I'm using a probe to do a first article on a part, then having the operator write down the numbers created on our inspection sheets.

Here is what I want to happen:
Probe to do first article and error out if part is out of tolerance.(I will write the macros as needed).
Then the control to print out the dimensions so the operator will attach that information to the inspection sheet.

So... How can that happen using the dprnt command?
__________________
WANNA GO FASTER
Reply With Quote

  #9   Ban this user!
Old 11-09-2011, 01:35 PM
beege's Avatar  
Join Date: Feb 2008
Location: USA
Posts: 518
beege is on a distinguished road

I don't know how your customer(s) feel about this, but I believe that if you want to use your machine as a verification (measuring) tool, then you have to have it calibrated just like all of your off-line measuring tools, at regular intervals before you start using its results in your verification documentation.
Reply With Quote

  #10   Ban this user!
Old 11-09-2011, 03:15 PM
metlshpr's Avatar  
Join Date: Dec 2006
Location: usa
Posts: 103
metlshpr is on a distinguished road
Wink

Originally Posted by beege View Post
I don't know how your customer(s) feel about this, but I believe that if you want to use your machine as a verification (measuring) tool, then you have to have it calibrated just like all of your off-line measuring tools, at regular intervals before you start using its results in your verification documentation.
Probe is ran thru a calibration routine before each run.
__________________
WANNA GO FASTER
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 01:34 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361