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 > Fagor Automation


Fagor Automation Discuss Fagor Automation products here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-09-2005, 07:11 PM
 
Join Date: Aug 2005
Location: Australia
Posts: 3
cammo is on a distinguished road
Question Fagor RS232 Communication - No Luck

Hi All,

We have recently purchased (for work) a Fagor NVP200MRS Digital Read Out. This display comes with a rs232 output on it however i am having zero luck in getting it to communicate with the computer.

The plan for this is for the tool positions to be transmitted to a VisualBasic program to store in a database.

I have tried with hyperterm and lookRS232 but netither can talk to, or recieve from, the DRO. The documentation supplied by Fagor is minimal (only parity, baudrate, etc.)

If anyone has any ideas on how to get the PC and DRO talking, I would greatly appreciate it.

Thanks,
Cammo
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 08-09-2005, 09:11 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

050809-1944 EST USA

Cammo:

For experimenting set baud rate to 9600, stop bits at 1, no parity, and handshake none. Anything you want to set up as a receiver must be set exactly the same way.

For the first test none of these settings matter.

Test 1. Assume the Fagor RS232 connector is a male 25 pin with pin 7 common. Also pin 1 is probably common. Pin 1 is identified as ground, and pin 7 as signal common. These are usually directly shorted together on many systems. When used pin 1 goes to the cable shield, probably only one end. On HAAS machines pin 7 has a 100 ohm resistor from pin 7 to internal common and machine chassis.

Without sending data measure the voltage at pin 2 ( hopefully TxD, serial output from Fagor ) relative to pin 7. This should be about -9 to -12 volts. If it is not, then check pin 3 relative to 7. If this is -9 to -12 volts, then pin 3 is TxD.

Test 2. Put the meter between common and TxD. Now send data and the meter should read an average near zero ( probably within +/- 1 volt ). If this happens you are sending data.

If Fagor has a 9 pin RS232 connector, then pin 5 is common and either 2 or 3 is TxD.


Pins 2 and 3 on either 9 pin or 25 pin connectors are noarmally always the TxD and RxD pins. If you determine which is TxD by the above test, then the other is RxD. When connecting two devices together you must connect TxD at the source to RxD at the destination, and vice versa. This is based on my above definition of TxD being the transmitter at the end of the connection you are testing.

See what this tells us. If your transmission is very short, then it may appear as a blip on the meter. Then set to baud rate of 110 and try again.

.
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 08-09-2005, 09:19 PM
 
Join Date: Aug 2005
Location: Australia
Posts: 3
cammo is on a distinguished road

I may have found the issue. I am using a standard 9 pin serial cable, and as such the handshaking (RTS,CTS, etc) lines are wired straight through. However, the DRO requires the connection to the PC to be a dumb terminal, ie. DTR shorted to DSR, and RTZS shorted CTS, on the PC side. Will wire up a lead (another trip to the electronics shop, bah) and see how it goes.

Cam
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 08-09-2005, 09:51 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

050809-2041 EST USA

Cammo:

If the hardware handshake lines are properly wired in the cable you should be able to set both ends to hardware handshake ( meaning use RTS to CTS, and RTS to CTS in the opposite direction ) and have successful communication.

If you set both ends to no handshake, you should be able to communicate no matter what is done with the states of CTS unless the circuit and/or software designer did not ignore the CTS input in this no handshake state.

Also the question is whether you can set a no handshake mode at both ends.

(edit ) What is the exact wiring of your cable from end to for all pins? What connectors at each end?
(end edit).
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 08-11-2005, 07:21 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

050811-1820 EST USA

Cammo:

Have you totally solved your problem?

.
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-17-2005, 01:19 AM
 
Join Date: Aug 2005
Location: Australia
Posts: 3
cammo is on a distinguished road
Problem Solved - Kinda

Hi,

Yes, the problem of communicationg with the computer was solved once a new cable was wired up. Now the issue is the fact that the DRO will not allow me to send the displayed data to the computer (just parameters, programs, and tool offsets) and I cannot send a request from the Pc to the DRO. Looks like we'll have to take this one back.

We got this one in the firt place because it, and the Fagor transducer, were a drop in replcaement for the old on. Ahh, the simple solution never is.

Thanks for the help anyways,
Cammo
Tweet this Post!Share on Facebook
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





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