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! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-24-2005, 09:06 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road
How to use a DB25 serial breakout box

So I'm having some troubles getting an RS232 connection going between my Haas cnc and my PC.

I have successful communications going on with other equipment, so I trust the PC end of things is correct.

So it was suggested that I use a breakout box on the serial port to determine if the datalines and such, were working on the Haas.

Conveniently for me, I found a 25 pin serial breakout box by Global Computer Supplies, on Ebay, cheap. The unit is described as DT-4. I installed a new 9V battery in it and plugged it in. The LED's seem to light up and everything, but other than that, I don't really know what I'm looking for.

Does anyone have some kind of reference material on the usage of such devices?
Attached Thumbnails
Click image for larger version

Name:	BreakoutBox.JPG‎
Views:	182
Size:	142.7 KB
ID:	6552  
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #2  
Old 03-24-2005, 09:13 PM
joecnc2006's Avatar
www.joescnc.com
 
Join Date: Aug 2004
Location: usa
Posts: 3,056
joecnc2006 is on a distinguished road

This makes me think of a question.... how do you use programs that suport serial port output (com1 or 2) and your controller board is setup for parallel port?
Reply With Quote

  #3   Ban this user!
Old 03-24-2005, 09:17 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road

I was looking for such a device last week!

When the signals are flying through that box, the coresponding leds should light up telling you what signal is on which pin #.
You can then ensure your cable pin out matches. I have found it is usually the RXD and TXD that are reversed (null modem cables)
Communicating with devices without a manual is such a pain in the arse! I spent 3 weeks trying to talk to a 1980's robot before process of elimination won out.
__________________
menomana
Reply With Quote

  #4   Ban this user!
Old 03-24-2005, 09:19 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road

Another thought, Does the haas have to be put into a comm mode first? My robots had to be in "teach" mode before rs232 would work. There may also be jumpers or DIP's that need moving on the Hass?
__________________
menomana
Reply With Quote

  #5   Ban this user!
Old 03-24-2005, 09:22 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road

Joe you can get 25pin to 9 pin adapters, or you can build your own cable if you know the pin out.

Google 25pin to 9 pin and you will get many sights with diagrams showing the various methods.
__________________
menomana
Reply With Quote

Sponsored Links
  #6  
Old 03-24-2005, 09:39 PM
joecnc2006's Avatar
www.joescnc.com
 
Join Date: Aug 2004
Location: usa
Posts: 3,056
joecnc2006 is on a distinguished road

I do not think it is that simple just to use an adapter, i'm talking about the signal outputs to the pin numbers each program has, most on parallel port are same like #2 step #3 dir. and so on, but some programs i have seen has it you just select what com port you use., do they also have a pin configuration?
Reply With Quote

  #7  
Old 03-24-2005, 10:12 PM
*Registered*
 
Join Date: Mar 2003
Posts: 45
pmurray is on a distinguished road

Hu. . .

Try this page on the Haas Website - it has a couple of links that talk about RS-232 communication:

http://www.haascnc.com/search.asp?Ac...&Search=Search

Also, I just posted a response trying to help another guy having troubles hooking up an RS-232 plotter - there might be something in there to help you. Here's the link to that thread:

http://www.cnczone.com/forums/showthread.php?t=9392

Not sure about the breakout box - now that I think about it, after 30 years in electronics never had a cause to use one. But I suspect, it should show you which pins on each side of the cable are connected to each other by way of the LED's. When static the LED's are probably solid in one color or another depending on if the connection through the cables are good or broken. When activity is present (TX'ng/RX'ng) they might flutter. I am just guessing. Anyway, what was the brand, GlobalSpec? Try their website and see if they have a .pdf for the instructions on your box.

If you are sure about the computer side then it's probably something in the cable end to the Hass, RS-232 config on the Haas or, as someone has mentioned, an additional setting in the Hass to set for enabling the serial port.

I have a Haas but don't use the RS-232, if I get a chance I will look through my manual and see if I see anything. Also, have never had to call Haas directly but, I hear they are very good (and willing) at helping with these type of problems over the phone.

Another thing to try, is the Hass can also send info over the RS-232. Instead of setting it up to receive, have it send something and look for activity on you breakout box - just a thought, might tell you if the port is at least activated on the Haas side.

Hope this helps,

plm
Reply With Quote

  #8   Ban this user!
Old 03-24-2005, 10:18 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road

Joe this is what I was thinking of...
I suppose you may need software to use with it also?

http://www.sc-systems.com/products/a...l_parallel.htm
__________________
menomana
Reply With Quote

  #9   Ban this user!
Old 03-24-2005, 10:25 PM
 
Join Date: Mar 2004
Location: Canada
Posts: 563
trubleshtr is on a distinguished road

http://www.cncmagazine.com/Answers/Communicate.htm

Hu I came accross this sight, Seems many others have asked this question to Haas.
Apparently pins 11,12,13,14,37 in the Haas have to be set to match your laptop software.
__________________
menomana
Reply With Quote

  #10  
Old 03-24-2005, 11:16 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Hu, To begin with it depends on wether you have the three wire configuration (handshake jumpered) or the full handshake (null modem) cable. e.g. http://www.cadem.com/ncnet/dnc-detai.../haas-mill.pdf
Most serial breakout boxes indicate a low with a red led and high with green, green is usually enabled or ready for that line.
With the TX data & RX data toggling when sending or recieving.
Some PC's do not set the Handshake pins ready until you first send data out the port.
Al
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #11  
Old 03-25-2005, 12:07 AM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

Thanks for the replies, guys, I'll check through this info and report back.

One thing I never mentioned, is the machine is not new, but used, and I have no way of knowing if the previous owner ever used the RS232 or not. Thus far, I've been forced to use the floppy exclusively.

I've heard that if you plug a serial cable between the printer port on the PC and the DB25 on the machine, that you can do some damage. Not that I would , but someone could have at some point. Could this have "blown up" the RS232 port on the machine? There are still some "LED's working" on the breakout box, when I attempt to send or receive, so its not stone dead, but I haven't interpreted what is going on yet.

I'm certain I've got the correct null modem DB9 to DB25 connector cable.
__________________
First you get good, then you get fast. Then grouchiness sets in.

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #12  
Old 03-25-2005, 05:05 AM
*Registered*
 
Join Date: Apr 2004
Location: Norway
Posts: 678
ESjaavik is on a distinguished road

The switches on the box is used to break the connections. First break all connections. Connect both machines. If the LED's left/right both light up when both machines connected and powered up, they indicate this line is output on both machines, do not connect them or damage can result (theoretically, in practice they usually survive).

If TXd and RXd (Pin 2, 3) show such a contention, you need a crossover cable. You can figure out the right connection by using the jumper cables that came with the box. If no crossing needed, just close that switch. If it is needed, use the cables to make it, and test. Sometimes you need pin6 to pin8 and pin20, then use one of the cables with 3 ends. In most cases just the data lines (Pin2 & Pin3) will flicker. The handshake may change state in a slower and seemingly random pattern, just at the beginning/end of transfer, or as the machine is powered up.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My First Router rmtucker DIY-CNC Router Table Machines 136 04-05-2006 12:55 PM
Adding a serial port - please comment DareBee Machine Problems, Solutions , Wireless DNC, serial port 11 03-22-2006 07:26 AM
Torsion box and Skate bearing thought spalm Linear and Rotary Motion 0 06-03-2005 03:19 PM
Buy Xylotex 3axis, need breakout box? PEU DIY-CNC Router Table Machines 1 05-25-2005 09:47 PM
CAD/CAM Serial Control Software AndG General CAM Discussion 2 05-10-2004 07:43 PM




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