View Single Post
  #10   Ban this user!
Old 06-23-2005, 04:19 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

050623-1513 EST USA

pmurray:

I put this poll under HAAS rather than at a general point, because HAAS since about 1998 has 115.2 kbaud capability.

HAAS provides Xmodem under RS232. This operates as you indicated.

Few people use Xmodem, but it would be better if it was used. Anybody using it please indicate this.

On HAAS if you use Xmodem, then you must select no parity and 8 data bits. I always suggest that you use 1 stop bit unless for some reason an RS232 source or destination requires 2 stop bits.

If you do not use Xmodem, then you should use parity, and 7 data bits. There is no need for 8 data bits. If you use 8 data bits then you transmit about 10% slower than with 7 data bits.

Single bit parity is an error detection method. This is the only type available in standard UARTs. The parity check is done on a byte by byte basis. A single bit parity check will flag any odd number bits in error in a byte. Thus, two bits reversed in a byte will not produce a single bit parity error, but three bits in error cause a parity error. For much analysis in information theory it is assumed that the error rate for two bits is the square of the error rate for one bit. With an error rate of 1 bit 100,000,000 bits you see the error rate is extremely low for two. Usually this is based on the noise being white Gaussian. This is not necessarily true in the industrial environment, but still you expect the two bit error rate to be less than the one bit rate.

If a greater number of parity bits are used, then more complex errors are detectable and some error correction is possible.

Note, Xmodem does not use a parity but rather a checksum over a block of bytes. On detecting an error Xmodem requests a retransmission.

On receipt of data HAAS flags errors it can detect. If parity is on, then this is one type of error.

If you are not doing DNC (meaning drip feed) then a very good error check on data sent to the CNC is to send the file back to the computer and do a file comparison.

I do not believe any HAAS machines provide a means to compare two programs in their memory. So to check a program sent from HAAS to a computer send the program twice and compare the two in the computer. What we normally do is a SEND ALL, then send each individual file. If we find a problem later, then we compare one with the other.

With a suitable interconnect system you can get very low transfer error rates without Xmodem, but Xmodem is better. I do not have a suggestion for an Xmodem program. We may have to write one.

In an environment that is not too noisy we can transfer 115.2 kbaud 4000 ft and actually functioned to 8000 ft, but the signal level is too marginal at that distance and baud rate.

This poll is not a sales pitch, and we will not contact anyone without their request. So we are not probing for names, and therefore feel free to mark all the different rates you use. The names that show up in the poll are useful to indicate multiple baud rate useage. What I want is to try to get a realistic response of what users are doing and why. There are no incorrect answers. The goal is to get relatively unbiased answers.

.
Reply With Quote

Sponsored Links
 

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