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 11-21-2010, 05:37 PM
 
Join Date: Jun 2007
Location: USA
Posts: 72
Smrtman5 is on a distinguished road
087 Alarm on Wasino Lathe

Trying to download a program from a dos based program onto a Wasino lathe with a 21i-T fanuc control, but I keep getting a 087 buffer overflow alarm. I dont know what that means or how to troubleshoot it. (And i dont have the manuals)

Using:
Windows XP computer with dos based NC program
USB to 9pin to 25pin cable
bit rate: 4800
bit length:7
parity: E
stop bit: 1

i dont know much about connecting to CNC machines, so any information would be useful.
Reply With Quote

  #2   Ban this user!
Old 11-21-2010, 06:41 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

When the Fanuc buffer gets close to full, it sends out a DC code to tell the PC to pause sending. If the PC sends more than 10 characters, you'll get a "buffer overflow".

I would go into Windows Control Panel in the System - Device Manager - Hardware tab, click Device Manager and expand Ports (COM & LPT). Right click on the COM port that you are using, and click Properties. On the Port Settings tab, click on Advanced. There should be sliders for Receive Buffer and Transmit Buffer. Slide them both to the left and then check the Do Not use Fifo Buffers radio button. Click OK all the way back to the Control Panel, then you'll have to restart the PC.
Reply With Quote

  #3   Ban this user!
Old 11-21-2010, 08:06 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Also look at parameter #102 to see what Input/Output device is set. Set to 0 will use DC1 to DC4 characters;these characters are used in software handshaking (Xon Xoff). If your PC software is set for Xon Xoff and the Input/Output device is set to 4 (do not use DC1 to DC4) then you will have the problem you describe. Similarly, if 0 is set at #102, your PC software needs to be set to Xon Xoff if your data cable is only configured for software handshaking. If the PC software is set to None for handshaking, the PC's Uart will ignore all control characters being sent by the machine and you will suffer Buffer Overflow. Similarly, if the cable is configured for software handshaking with the hardware pins bridged, and with the software using RTS/CTS as handshaking, the software will see the condition as always clear to send and again you will get a Buffer Overflow at the machine.

Regards,

Bill
Reply With Quote

  #4   Ban this user!
Old 11-22-2010, 11:32 AM
 
Join Date: Jun 2007
Location: USA
Posts: 72
Smrtman5 is on a distinguished road

Got some new information on the problem.

I tried slowing down the send/receive buffer, but it didnt help.

Parameter #102 is set to 1 (cassette reader), which i dont understand. I changed it to 0 (RS 232), with no result, then changed it back to 1.

I can transfer programs out of the machine with no issues, which leads me to think the machines are communicating correctly.
I can transfer the same program out of them machine then back into it successfully, however it does give me the same 087 alarm.

The transfer always alarms out at the same point in the program. The line read "(t0505 #32 drill)" I deleted the "#" and the program stopped at "3"

There are 82,000 characters left, plenty for the new program. However, i tried deleting an existing program to make room. Still, same alarm.

At this point, i think im out of ideas.
Reply With Quote

  #5   Ban this user!
Old 11-22-2010, 03:57 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

It's not memory you're out of, it's buffer space, so don't delete any more programs.

Change #102 back to 0.

What software are you using to send/receive? How is your cable wired?

I've had problems with some USB to Serial adapters with XON/XOFF. Does your PC have a serial port you could try instead? If not, you can get a PCI serial board (SIIG makes them) to eliminate the USB-Serial adapter.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-22-2010, 05:31 PM
 
Join Date: Jun 2007
Location: USA
Posts: 72
Smrtman5 is on a distinguished road

Its working now.

The USB adapter was eliminated. And added to the beginning of the program was:
%
O1234

Parameter 102 is still at 1. I cant explain why that works.

We are uploading a .txt file, not an .nc file. Again idk why, it doesnt make sense to me. Maybe if it were an .nc file the "% O1234" wouldnt be needed? But it works.

The program is a simple dos program, i think its called usecom.exe. Looks kinda homemade.

Not sure about the cable type.
Reply With Quote

  #7   Ban this user!
Old 11-22-2010, 05:41 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Smrtman5 View Post
Got some new information on the problem.

I tried slowing down the send/receive buffer, but it didnt help.

Parameter #102 is set to 1 (cassette reader), which i dont understand. I changed it to 0 (RS 232), with no result, then changed it back to 1.

I can transfer programs out of the machine with no issues, which leads me to think the machines are communicating correctly.
I can transfer the same program out of them machine then back into it successfully, however it does give me the same 087 alarm.

The transfer always alarms out at the same point in the program. The line read "(t0505 #32 drill)" I deleted the "#" and the program stopped at "3"

There are 82,000 characters left, plenty for the new program. However, i tried deleting an existing program to make room. Still, same alarm.

At this point, i think im out of ideas.
Check and set the following parameters:
#0 bit 1=1 (second right most bit)
#20 = 0
#101 bit 0=0 (right most bit) bit 7=1 (left most bit)
#102 =0
#103 =10 for 4800 baud rate

1. Your software needs to be set to match the setup on the machine side. You need to set the handshaking method to Xon Xoff, or software handshaking; depending on what term the software uses to define the handshake method.

2. If the software is set for to software (Xon Xoff) handshaking, then the cable pin out should be as follows:

Machine End-----------------------PC End
DB25 Male Connector---------------DB9 Female Connector
2----------------------------------2
3----------------------------------3
4
| bridged
5

7----------------------------------5

6
|
8 bridged
|
20

If your software does not support software handshaking (unusual), use the following cable configuration and set the software to RTS/CTS, hardware handshaking. The parameters at the machine end will work with RTS/CTS handshaking. The Xon Xoff character sent by the machine will be ignored, or you could set #102 to 4 so as not to use DC1 to DC4 characters.

Machine End-----------------------PC End
DB25 Male Connector---------------DB9 Female Connector
2----------------------------------2
3----------------------------------3
4----------------------------------8
5----------------------------------7
6----------------------------------4
7----------------------------------5
20---------------------------------6

Regards,

Bill
Reply With Quote

  #8   Ban this user!
Old 11-22-2010, 05:51 PM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Fanuc doesn't care what the file extension is. It does, however have to be an ascii text file. You can open these in Notepad or any "text" editor. You can open them in Word, but be -sure that when you save them use File - Save As - File type = .txt file.

The % is not required when READing into the CNC. When PUNCHing out the program, the % will be added automatically to the start and the end of the program.

If you include the Onnnn (i.e. O1234) at the top of the program, when READing into the CNC, it will be stored as program number O1234 on the control. If there's already a program number O1234 you'll usually get an alarm (there's a parameter to select whether to issue an alarm or overwrite the existing program).
Reply With Quote

  #9   Ban this user!
Old 11-22-2010, 06:01 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by Smrtman5 View Post

Parameter 102 is still at 1. I cant explain why that works.

We are uploading a .txt file, not an .nc file. Again idk why, it doesnt make sense to me. Maybe if it were an .nc file the "% O1234" wouldnt be needed? But it works.
If #102 is set to 1 and the transfer works, you will find that #20 is set to a number other than "0". If #20 is set to "1" then the setting of #112 will be used instead of #102. If #20 is set to "2" then the setting of #122 will be used. You will find that the parameter that is associated with the setting of #20 will be set to "0"

A .nc file is a text file, the file extension makes no difference. I think the USB adapter was the reason for the problem, although having a program number at the start of a program for a Fanuc control is good practice, but omitting it would not cause a buffer overflow.

I suggest that you still check out the parameters and the cable pin out so that you have a handle on things should you have problems communicating with the machine in the future. I helps to know this stuff just for the sake of being able to supply information to someone trying to help.

Regards,

Bill
Reply With Quote

  #10   Ban this user!
Old 11-23-2010, 06:37 AM
 
Join Date: Jun 2007
Location: USA
Posts: 72
Smrtman5 is on a distinguished road

If #102 is set to 1 and the transfer works, you will find that #20 is set to a number other than "0". If #20 is set to "1" then the setting of #112 will be used instead of #102. If #20 is set to "2" then the setting of #122 will be used. You will find that the parameter that is associated with the setting of #20 will be set to "0"
Now its obvious changing the settings for the wrong channel wont do anything.

I helps to know this stuff just for the sake of being able to supply information to someone trying to help
I quite agree.

Thanks for all the help!
Reply With Quote

Sponsored Links
Reply

Tags
bit rate, dnc, fanuc, parity, wasino




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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wasino 2nd OP machine Rick 5973 General Metal Working Machines 1 05-30-2010 09:50 AM
Wasino L3-J3 BehrElec General Metal Working Machines 1 05-09-2010 02:40 AM
Problem- Wasino lathe ball screw Rich 72 General Metal Working Machines 2 04-16-2010 10:41 AM
Need Help!- Wasino WMC-3 Fanuc 0 MC DHYSTA Fanuc 0 11-13-2008 10:39 AM
Need Help!- Wasino gang tool lathe W/3T control kz1670 Fanuc 0 10-16-2008 11:06 PM




All times are GMT -5. The time now is 09:30 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