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! > MetalWorking Machines > Haas Mills


Haas Mills Discuss Haas machinery here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-09-2010, 03:26 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road
RS232 DNC input not working

I have set all the parameters on the computer and the cnc to the same values 1200 Baud, Even Parity 8 bit data, 1 stop, software flow control. The machine is listening and the computer transmits but nothing is recieved.

I hit the MDI DNC button twice and the machine says waiting. I then send the file using Predator CNC editor but nothing has been recieved.

I use the same rs232 cable for my other machines

Any ideas would be great
__________________
www.machmachine.com
Reply With Quote

  #2   Ban this user!
Old 12-09-2010, 03:38 PM
johnohara's Avatar  
Join Date: Aug 2008
Location: www.johnohara.net
Posts: 178
johnohara is on a distinguished road

Does the problem travel with the computer and/or cable?

In other words, if you connect the computer and cable to a different machine does it work?
Reply With Quote

  #3   Ban this user!
Old 12-09-2010, 05:39 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road

So I made another cable based on the Haas pin outs. The one my other machines use has the TX RX crossed. I can now recieve programs from the Hass but cannot transmit to it. Or atleast it does not recieve my signal. I am going to check the cable now and verify the pin
__________________
www.machmachine.com
Reply With Quote

  #4   Ban this user!
Old 12-09-2010, 06:12 PM
johnohara's Avatar  
Join Date: Aug 2008
Location: www.johnohara.net
Posts: 178
johnohara is on a distinguished road

A null modem cable has more than just the TX/RX pairs crossed. Since there is no modem involved the configuration is considered DTE (data terminal equipment) to DTE. Other pins besides 2 and 3 are used to "handshake" the communication between the devices. Here are some links to help you:

RS232 serial null modem cable wiring and tutorial

Serial Port and Modem Cables

Google: "serial null modem"

What kind of port is it? 9-pin or 25-pin?

~John
Reply With Quote

  #5   Ban this user!
Old 12-09-2010, 06:27 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road

Im going from a 9computer side to a 25 cnc side. I was able to transmit to the cnc successfully. I am now getting format errors on the CNC which makes me think that the post I am using is not creating the G code in the right format
__________________
www.machmachine.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-09-2010, 06:29 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road

I get error on the CNC side:

251 Program Data Struct error
212 Program integrity error
__________________
www.machmachine.com
Reply With Quote

  #7   Ban this user!
Old 12-09-2010, 06:37 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road

OK I got it running now. Maybe some one can explain this to me, when I load a program via the rs232 I cannot go through the list Prog button, select all and hit recv232. I get a error message. But when I load via a double press of the MDI/DNC it loads and runs the program
__________________
www.machmachine.com
Reply With Quote

  #8   Ban this user!
Old 12-09-2010, 08:36 PM
 
Join Date: Apr 2010
Location: USA
Posts: 231
dingo0722 is on a distinguished road

now I am back to it not working at all. Neither tx or rx
__________________
www.machmachine.com
Reply With Quote

  #9   Ban this user!
Old 12-09-2010, 09:55 PM
Ashish B's Avatar  
Join Date: May 2009
Location: Alegria
Posts: 368
Ashish B is on a distinguished road

Please refer the attachments & check whether the settings match.

Surely, you should get the work done.

Thanks
Attached Files
File Type: doc Input Output Setting.doc‎ (39.0 KB, 41 views)
File Type: doc Setup of Hyperterminal.doc‎ (184.5 KB, 30 views)
Reply With Quote

  #10   Ban this user!
Old 12-10-2010, 12:09 AM
 
Join Date: Nov 2006
Location: US
Age: 26
Posts: 181
Ydna is on a distinguished road

Program integrity error (along with RS-232 abort) are the errors I get when I don't have the RS-232 cable hooked up. So that might be a sign of a bad connection somewhere.
Do you have a multimeter lying around? You can try testing the pins from one end to the other on your cable to ensure they are still conducting between them. I have found that different serial cables can vary WILDLY from one another, even if they don't have any markings indicating they were made for a special machine.

I'd suggest making a very brief sample program in order to test the connection (if you haven't been doing it already). Just a few random lines that don't actually do anything will suffice, and it'll load real fast too. You can hammer out the post issues later if there are any.

We only have one Haas machine and one simulator connected via RS-232, but for those machines we use a very simple bridge to complete the connection.
(haas 25 pin) (PC 9 pin)
2--------------2
3--------------3
7--------------5

I cannot tell you if this connection would work in both directions though. I never tried it!
But the alternate jumpered connection won't hurt anything. We have two-way communication between PCs and Fanuc robots using a connection like this...
http://tinyurl.com/23m9scv

When I was originally making the RS-232 adapters for our machines, I tried a few different incarnations and they all worked when downloading from PC to the machine (from the manual, from here on cnczone, and other pinouts too). So I went with the simplest one. I can test out uploading from Haas to PC over the weekend if you haven't figured it out by then. A while back I made a solderless breadboard for testing RS232 adapters, so I can test literally any connection in only a few minutes. But I won't be at the shop until saturday.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-10-2010, 12:19 AM
johnohara's Avatar  
Join Date: Aug 2008
Location: www.johnohara.net
Posts: 178
johnohara is on a distinguished road

Sorry for the delay, I was working on some other things.

I believe your problem lies in one of two places, the cable (90%) or the port settings (10%).

1. Going from 9-pin to 25-pin can be tricky. Plus it has to be null modem. TX/RX is straightforward, and maybe ground, but the others can be a PITA. If you can find a manufactured cable you are confident in from another machine that would help a lot. 9-25 pin null modem adapters used to be available but are hard to find today. Using a known "good" cable will help you resolve the port settings.

2. I'm surprised it's using "even" parity. I assume we are trying to send a text g-code file to the machine. Using even parity is a way of error checking the bit stream. In the old days, it was common for terminals to use "NO" parity and use some form of handshaking to throttle the flow to prevent buffer overruns. Haven't seen even parity in a while and I could be wrong.

Is there a manual available online for this machine? This is an interesting problem and I'd like to help you with it.

~John
Reply With Quote

  #12   Ban this user!
Old 12-10-2010, 12:52 AM
johnohara's Avatar  
Join Date: Aug 2008
Location: www.johnohara.net
Posts: 178
johnohara is on a distinguished road

The image posted by Ydna reads like this:

Do not cross Transmit and Receive. Use pin-to-pin connections. (simple enough)

Jumper pin 4 to pin 5 on the DB25 side, and pin 7 to pin 8 on the DB9 side. Pin 4 and pin 7 are for Request to Send signals. When they go high they immediately tell "themselves" it's Clear to Send. Both the computer and the machine see this as coming from the other side of the cable when in fact it's their own signal. That's what's known as "faking it."

Pin 20 on the DB25 side and pin 4 on the DB9 side are both Data Terminal Ready. Both sides fake it the same way. When pin 20 and pin 4 go high (both devices raise their "ready to go" flags by sending voltage to the pin), this sends voltage to pin 8 (pin 1) that used to indicate a carrier signal from the modem on the other side. It also raises pin 6 (pin 6) which used to mean the modem on the other side is ready to receive.

All this talk of modems is a moot point, but the computer AND the machine still use the protocol because it works.

Pin 7 to pin 5 is signal ground to signal ground.

~John
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
Can't get the RS232 working borne2fly Milltronics 3 10-17-2010 11:05 PM
Working on Design - Looking for Input Jesse B DIY-CNC Router Table Machines 68 03-23-2010 10:55 PM
plugging/unplugging RS232 input cord with power on. Is this ok? MadMax Daewoo/Doosan 5 07-16-2009 12:18 AM
G540 input not working? stoneyreef Gecko Drives 1 05-08-2009 01:52 AM
program input/output with RS232 port on Mitsubishi 50L Chuck Reamer Mazak, Mitsubishi, Mazatrol 3 02-04-2008 02:56 PM




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