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 01-14-2012, 03:47 PM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road
Losing Data on RS-232 transfer, Yasnac MX-1

I've got an '82 Matsuura MC-500 in my garage. I've got it wired up with an RS232 cable (actual serial port on my PC). I will often find that it is missing end of blocks, or even dropping a J0. I read that running it too close to wiring, or fluorescent lights can cause this, so I rerouted the wire as best as I could. Still does it. Also, on long files, it will just drop the last half of it, it seems.

Baud rate was originally set to 1200. It did it then. So, I jumped it up to 2400, still did it.......
Reply With Quote

  #2   Ban this user!
Old 01-15-2012, 02:12 AM
dcoupar's Avatar  
Join Date: Mar 2003
Location: USA
Posts: 2,312
dcoupar is on a distinguished road

Is your cable shielded? Is the shield connected to pin 1 of the CNC end?
Reply With Quote

  #3   Ban this user!
Old 01-15-2012, 02:17 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by gearsoup View Post
I've got an '82 Matsuura MC-500 in my garage. I've got it wired up with an RS232 cable (actual serial port on my PC). I will often find that it is missing end of blocks, or even dropping a J0. I read that running it too close to wiring, or fluorescent lights can cause this, so I rerouted the wire as best as I could. Still does it. Also, on long files, it will just drop the last half of it, it seems.

Baud rate was originally set to 1200. It did it then. So, I jumped it up to 2400, still did it.......
I gave a preliminary answer to your question in that other Forum, but at least you have stated the control and model this time around.

Please, post:
1. the cable configuration being used
2. the Handshake method being used
3. the data transfer software being used

Regards,

Bill
Reply With Quote

  #4   Ban this user!
Old 01-15-2012, 06:46 AM
 
Join Date: Feb 2006
Location: USA
Age: 32
Posts: 197
gearsoup is on a distinguished road

The cable config...I called up my local machine dealer and asked for an RS-232 cable, about 36 ft long. I've bought cables through them before without issues.
Yes, it's shielded.
Baud: 2400
Parity: Even
Data Bits: 7
Stop Bits: 1
Handshake: Both

Software is NCNet-Lite. Why, because it was free, and I've used it before without issues, granted on much newer equipment
Reply With Quote

  #5   Ban this user!
Old 01-15-2012, 07:43 AM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road
RS232

NCNET-LITE (cadem.com) is a great program, but if I use their connection literature, you have not configured the same (stop bit and handshaking). You might also want to check the cable pinout per diagram to double check.
Attached Files
File Type: pdf yasnac-mx1[1].pdf‎ (32.5 KB, 24 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-15-2012, 08:30 AM
 
Join Date: Sep 2010
Location: usa
Posts: 838
mike_Kilroy is on a distinguished road
Buy me a Beer?

Originally Posted by gearsoup View Post
The cable config...I called up my local machine dealer and asked for an RS-232 cable, about 36 ft long. I've bought cables through them before without issues.
Yes, it's shielded.
Have you tried a shielded cable only 2 foot or so long? does it have same problem or not? very good diagnositic tool to do this;

if no prob then u have noise picked up on the 36ft cable.

either change shielding around to find better way or shorten it or bite the bullet and buy a couple rs232-422 converters and put on on both ends and send rs 422 across the 36ft (as it should be) instead.

rule of thumb is often dont go over about 6-10' max on rs232 in noisy environment (any with servo/spindle motors/drives).

sometimes you can squeek by with changing shielding..... someone asked if shield tied to pin 1 - i did not see answer. worth try if not. is shield soldered to the metal db9 shell on one end? both ends? try cutting pvc off outside jacket of cable at one then other end and use tie wrap to tie wrap the exposed shield directly to the chassis of the computer case and other end metal case/ground. is the computer chassis tied to good ground with a wire? the other end tied to machine and or ground? see? there are a LOT of things you can try - ONE AT A TIME - to try to find a happy point.
__________________
Mike (at) KilroyWasHere.com -- machine tool servo repair, retrofit
Reply With Quote

  #7   Ban this user!
Old 01-15-2012, 08:51 AM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

Originally Posted by gearsoup View Post
The cable config...I called up my local machine dealer and asked for an RS-232 cable, about 36 ft long. I've bought cables through them before without issues.
Yes, it's shielded.
Baud: 2400
Parity: Even
Data Bits: 7
Stop Bits: 1
Handshake: Both

Software is NCNet-Lite. Why, because it was free, and I've used it before without issues, granted on much newer equipment
gearsoup,
Your cable length of 36 feet will give you no issues. RS232 standard is explicit with regards to cable length, with the Standard originally being based on 50 feet, and later on, a capacitance of 2500pF to allow maximum communication speed of 19200 to occur. Therefore, cable having a capacitance of 50pF/ft would give a maximum length of 50 feet. If speed is reduced by a factor 2 or 4, the maximum length increases dramatically, as shown in figures obtained by test done by Texas Instruments years ago.

Using a cable with low capacitance allows you to span longer distances without going beyond the limitations of the standard. For example, a cable with a capacitance of 17 pF/ft will allow a maximum cable length of 147 feet (2500pF/17) at maximum speed.

Baud Rate ---- Cable Length
19200 ---------- 50
9600 ------------ 500
4800 ------------ 1000
2400 ------------ 3000


Make sure the cable you're using is low capacitance, no greater than 50pF/ft and that it is Shielded.

The cable configuration for Xon Xoff Handshaking is as follows:

Machine Side -------------------------------------- PC Side
DB25 Male Connecter ---------------- DB25 Female ------- DB9 Female
1 ----- Cable Shield ------------------ Not Connected ----- Not Connected
2 -------------------------------------------- 3 -------------------- 2
3 -------------------------------------------- 2 -------------------- 3
4
| Bridged
5

6
|
8 All bridged
|
20

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

Check the following machine parameters are set thus:
6000 - Set Bit 7 to 1 (ISO format)
6003 - Set Bit 1 and 5 to 1
6021 - Set 1,4,5,6 to 0
6022 - Set Bit 0 and 1 to 1
6026 - Baud Rate 00011000 (2400 baud) Starting point
6028 - Baud Rate 00011000 (2400 baud) Starting point

Set the PC software as follows:
Handshake method = Xon Xoff (Software)
Baud Rate = 2400 (Starting point)
Parity Bit = Even
Data Bits = 7
Stop Bits = 2

I note that you have been using 1 Stop Bit. This will not stop communication from occurring, but it is more usual to use 2 Stop Bits when communicating with machine tools, where a noisy (electrical noise) environment is often the case. The stop bit identifying the end of a data frame can have different lengths. Actually, it is not a real bit but a minimum period of time the line must be idle (mark state) at the end of each word. On PC's this period can have three lengths: the time equal to 1, 1.5 or 2 bits. 1.5 bits is only used with data words of 5 bits length and 2 only for longer words. A stop bit length of 1 bit is possible for all data word sizes. Accordingly, 1 or 2 Stop Bits will work, but 2 Stop Bits is preferred.

Grounding the Shield at both ends (both devices) is not such a good idea unless you can be sure that both devices seek Ground at the same place, and can lead to Ground Loops if not. A Ground Loop can occur when any two devices are grounded in Different Places, or if one device is not grounded well enough. For example, you may experience a ground loop when you connect a PC and a CNC control together with a serial data cable, if the CNC machine has a ground stake driven through the shop floor, and your Personal Computer is grounded to the AC wall socket, or if one device is not grounded well enough. The Ground Loop occurs when there is a different electrical potential between the Grounds of the two devices. This results in an electrical current being conducted through the data cable, and can burn out the IC chips that send and receive the RS232 serial signals if the difference in potential is greater than about 30 volts. Accordingly, unless good grounding to the same ground can be assured for both devices, its recommended to ground the shield at one end only; usually the machine end.

For a test, connect the PC to the control with the data cable just laying on the floor well away from any electrical cables. If you really have to cross over or under any power cables, ensure that you do so at 90 degrees.

The software you're using should be OK. If you still have problem, try using another PC, or install another Serial Port to the existing PC. Install a Serial expansion card in preference to a USB to Serial adapter. It will be cheaper and less likely to give you problems.

Regards,

Bill

Last edited by angelw; 01-15-2012 at 06:29 PM.
Reply With Quote

  #8   Ban this user!
Old 01-16-2012, 01:47 PM
 
Join Date: Sep 2010
Location: usa
Posts: 838
mike_Kilroy is on a distinguished road
Buy me a Beer?

gearsoup, you've gotten more ideas and suggestions and comments....

It would be mighty good of you to let us all know how you are coming along; especially in light of some disagreement over the basic usability of RS232 in this type of environment.
__________________
Mike (at) KilroyWasHere.com -- machine tool servo repair, retrofit
Reply With Quote

  #9   Ban this user!
Old 01-16-2012, 02:06 PM
 
Join Date: Apr 2005
Location: Canada
Posts: 114
John Bennett is on a distinguished road
RS232

Also under Port Settings for Com port go to advanced setting and try turning off the "FIFO buffers" might help
Reply With Quote

  #10   Ban this user!
Old 01-16-2012, 03:09 PM
 
Join Date: Sep 2010
Location: Australia
Posts: 733
angelw is on a distinguished road

gearsoup,
The suggestions made are to eliminate causes of possible problems, and is how one would go about establishing Comms in the first instance. But the fact that you lose the complete second half of a long program is not typical of EM interference issues, cable length, or any of the other suggestions made.

1. You haven't stated if you get any alarm being raised; likely if you're getting a buffer overflow, but this issue would be highly unlikely at the baud rate you're using.
or,
2. that at the end of the transmission of a long program by the PC program, does the control behave as if its received the EOF, notwithstanding that the whole of the second half of the program has been lost, or does the control seem like its waiting for more data?

Regards,

Bill

Last edited by angelw; 01-17-2012 at 02:53 AM.
Reply With Quote

Sponsored Links
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
Need Help!- Portable CNC data transfer Box xyzer Machine Problems, Solutions , Wireless DNC, serial port 1 07-21-2011 12:53 AM
Need Help!- DATA TRANSFER FROM SCRATCH 99bluemoon General CNC (Mill and Lathe) Control Software (NC) 1 06-19-2011 05:37 PM
SKT210SY Data Transfer? AdamAnC Hyundai Kia machine 9 08-17-2010 06:15 AM
Best way for data transfer? pontiacg5 Mazak, Mitsubishi, Mazatrol 6 06-24-2010 01:32 AM
losing program lines on transfer DareBee Fadal 13 11-18-2009 06:04 PM




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