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 > Machine Problems, Solutions , Wireless DNC, serial port


Machine Problems, Solutions , Wireless DNC, serial port Need help with your Machine or need a Machining solutions for , Serial Port, Cable problems between PC and all others DNC problems disucss them here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-31-2007, 06:59 PM
 
Join Date: Feb 2005
Location: USA
Posts: 51
Egar Twins is on a distinguished road
Serial Port Issues

Gentlemen,
I am working with two Bavelloni CNC stone working machines equipped with NUM controllers. All are connected directly to a PC via Null modem serial cables RS232, one at 200' and the other at 50'. We recently upgraded our engineering room to an XP PC up from 2000 Pro and now we are having communication problems. I have toyed with and even turned off the FIFO buffer as per the manufacturers suggestions to know avail. Initially, a program would attempt to send, and stop, displaying a message on the NC " program exists do you wish to overwrite" to which I would key yes and then the program would continue sending. No matter, the end result would still be a serial line error being displayed or a program 0 ( not the number I sent) being displayed with nothing in it but a jarbled mess. After toying with the FIFO ( and then turinging it off) I can now get the machine(s) to recieve the programs in one continuous shot however, the result is still the same(serial line error or jumbled mess in "0")....If I reconnect the machines to the older computer ( switching nothing but the cables between PC's) the programs sends fine with no errors. All settings in the transfer software on the two machines is identical. The only two differences between the two PC's is that the older one has two serial ports that are wired directly to the motherboard ( OEM) and has windows 2000. The new one possess PCI card serial ports (both on the same card) and runs XP.....PLEASE HELP....the older machine is dying and I need to keep my engineering room rolling at full steam!!!!!!!!!

your friend in technology,
Jimbo
Reply With Quote

  #2   Ban this user!
Old 05-31-2007, 07:49 PM
 
Join Date: Nov 2004
Location: usa
Posts: 53
debco99 is on a distinguished road

I use XP all the time on Num controls as we are an OEM with Num.
What control?? 1040 series? and are you using com1 or Ser 1?
I would slow the baud down to 4800 and try it.

Otherwise you may have to dump the computer you are using.

Regards
Reply With Quote

  #3   Ban this user!
Old 06-01-2007, 04:52 AM
 
Join Date: Feb 2005
Location: USA
Posts: 51
Egar Twins is on a distinguished road

Debco....it is a 1040 on both machines. We have tried slowing to 4800 with no luck....Both machines are setup on the serial line.... I am going to try com1 at the NC today however I jsut dont understand why it works fine on the old computer and there are errors on the new?
Reply With Quote

  #4   Ban this user!
Old 06-01-2007, 07:08 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070601-0653 EST USA

Egar:

I know nothing about your CNC, but I have some questions.

1. Is there any difference if the new computer is connected thru the short cable to the short cable CNC?
2. Are you using software handshake, meaning XON/XOFF?
3. Can you take the new computer to the machine, and run a short RS232 cable to the CNC?
If this is possible, then connect the safety ground pin of your 3 prong AC plug with a #16 wire to the metallic chassis of the CNC and see if this makes any difference.

Do run with the FIFO disabled.

In general I suggest 7 data bits, even parity, and 1 stop bit. Both ends must be exactly the same except for a few strange machines where apparently the parity is not check in the UART.

.
Reply With Quote

  #5   Ban this user!
Old 06-01-2007, 04:38 PM
 
Join Date: Feb 2005
Location: USA
Posts: 51
Egar Twins is on a distinguished road

Gar,
Thank you for your attentive response!!!!
To answer your questions:
1. There is a difference in result between the long and short cables on the new computer. On the short cable I recieve an actual " Serial Line Error Block N0" with no info at all being sent. On the long cable I do not recieve any error messages, however I get the " Program exists do you wish to overwrite?" message which I must clear a few times before for the program coming from the PC to be completely sent. However, the only thing I get on the long cable is a jumbled mess.
2. The protocol in the software ithat is working on the old computer is RTS, I do not believe there is any software hand shake being used
3. I will take the new PC down to the NC and see if a super short cable makes a difference on Monday as I did not get your post until late. Is it possile we are having a grounding issue? I am not sure how the cables are grounded they were purchased on line before I began with this company.

Thank you so much in advance for your help!
Jimbo
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 06-01-2007, 07:08 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070601-1831 EST USA

Egar:

That you are not using software handshake, but are using hardware, RTS/CTS, means you must run at least 5 wires between the computer and the CNC. You may also need to jumper pins 6, 8, and 20 together at the CNC 25 pin connector. For reference: on HAAS controls 6, 8, and 20 are do not care, but on Fanuc are required and maybe under some circumstances have to also handshake with the computer.

See my web site www.beta-a2.com for some wiring information on the E232 Photo page. This may or may not apply in your particular case. The schematic is not for computer to CNC, but it and the description give you broad background information.

Do study the information on grounding and noise.

If you are using hardware handshake at your CNC, then you must use hardware handshake at the computer. And this means at least 5 wires. But I believe you have other problems, like noise, and I think the short cable test and solid ground at the CNC chassis may help prove this. The common wire, pin 7 in the 25 pin connector, pin 5 in a 9 pin connector, is inadequate to reduce a ground voltage difference when there is an external ground difference with high current capability.

Your answer 1 is confusing. But I believe you are saying with the new computer you can not get any transfer with the long cable, but with the short cable you get error messages and after many tries may get the program to load.

Relative to your answer 3. By NEC (National Electrical Code) code your CNC should get a safety ground connection from the chassis of the CNC (meaning conductive, metallic, material on on the CNC) back to the service entrance from where power is supplied. This conductor must be as large as a power conducting wire. Similar requirement from the wall outlet where your computer is connected back to its main power panel. These safety ground wires are a much lower impedance than the signal common wire in your RS232 cable.

If when the computer is near the CNC you still have problems call me. The phone number is on the web site. I am in the eastern time zone.

.
Reply With Quote

  #7   Ban this user!
Old 06-01-2007, 07:24 PM
 
Join Date: Feb 2005
Location: USA
Posts: 51
Egar Twins is on a distinguished road

Gar,
Thanks so much for the input...answer 1: short cable(50') gives serial line error. Long cable....I recieve no error but the program gets stuck and comes through in pieces...when i open the program on the NC ( long cable) it is nothing but garbage.
thanks Jimbo!



ps do...you know of any reason why the old PC still sends ok...but the new one does not?
Reply With Quote

  #8   Ban this user!
Old 06-01-2007, 07:43 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070601-1936 EST USA

Egar:

If the RS232 board has less output swing or a defective output driver, then this might expalin the problem.

On the 9 pin computer connector pin 3 is the output and at rest, a logic 1, no data being sent should be present. Older RS232 drivers have a voltage of about -9 to -12 V relative to pin 5, or the computer chassis. Newer drivers may be nearer -5 V which will reduce the noise margin. Also a driver might not swing equally between equal +/- voltages.

.
Reply With Quote

  #9   Ban this user!
Old 06-01-2007, 08:01 PM
 
Join Date: Jan 2007
Location: USA
Posts: 355
Eurisko is on a distinguished road

Egar,

Try a different PCI serial card.

I agree with Gar, the problems you are having can be caused by low voltage levels on the serial lines. The fact that you are experiencing different problems with different lengths of cable is a dead giveaway.
Reply With Quote

  #10   Ban this user!
Old 06-01-2007, 08:56 PM
 
Join Date: Feb 2005
Location: USA
Posts: 51
Egar Twins is on a distinguished road

gentlemen,
thank you for the as always prompt responses.
Would it be accurate to say that because i have a twin port card the voltages is being split between the two ports thus rendering rendering each individual transmission in adequate because of the split voltage. Would single cards, each on its on pci slot drawing its own voltage remedy this?
It make sense....! Good deal
thank you all for your help
Jiimbo
i will try two single cards monday
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 06-01-2007, 09:38 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

070601-2139 EST USA

Egar:

Twin portness should have nothing to do with your problem.

Two, 10 or whatever number of ports does not split voltage. The voltage is set by the circuit design.

.
Reply With Quote

  #12   Ban this user!
Old 06-01-2007, 09:42 PM
 
Join Date: Jan 2007
Location: Hamilton,Oh
Posts: 331
bborb is on a distinguished road

The PCI bus does not support -12 volts as the older ISA bus did. If you have an available ISA slot in your XP machine, get an ISA card with a serial port. Don't buy another PCI card.
I'd put a new powersupply in your 2000 computer and clone the harddrive to a new harddrive, replace the CPU fan (and any others), then use the 2000 machine for another 5-7 years.
Reply With Quote

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EMC2 Serial Port? willhrt LinuxCNC (formerly EMC2) 8 02-12-2012 12:55 PM
Serial Port Issues with GE Fanuc OT-C keystoneprec Fanuc 7 04-05-2007 09:39 AM
USB to serial port stampman Machine Problems, Solutions , Wireless DNC, serial port 7 12-30-2006 01:17 PM
VK45 serial port TJ in CT Mazak, Mitsubishi, Mazatrol 16 11-07-2005 09:52 AM
Using A Laptop Without Serial Port mtech Computers and Networking 6 08-17-2003 08:58 AM




All times are GMT -5. The time now is 08:30 AM.





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