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
  #13   Ban this user!
Old 02-02-2008, 01:23 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080202-1214 EST USA

Hu:

If you do not use Xmodem but simply use the simple 1 bit parity check that is available in modren UARTs, then you will never detect a loss of a whole character or characters. The 1 bit parity check applies only to an odd number of bits in error within a character. If precisely a whole character is lost, then there are no bits and nothing to be checked. Therefore no error.

The Wikipedia discussion is good, but lacking in detail.

The basic original Xmodem uses a data block of 128 bytes of data, and attached to this block are a header and trailer. This entire group is called a packet. Errors are detected by use of a checksum. Correction is by a request to resend a packet.

The checksum method has problems as does simple parity.

First consider a 1 bit parity check. For example the number 5 is stored in ASCII as 35h (hex) or 00110101b (binary) (an 8 bit word). The modulo 2 sum of these bits is 0 so the parity bit is 0. What is actually transmitted by the UART in an asynchronous communication with 8 data bits, parity, and 1 stop bit is
Code:
 111111111111111 the rest state no data being transmitted.
 0 the start bit
 1 the least significant bit.
 0
 1
 0
 1
 1
 0
 0
 0 the parity bit (assuming we are using even parity, 
                        it would be 1 for odd parity)
 1 the stop bit
 at this point a new word (character) could start
If after the binary word (character --- a number of bits are called a word, and an 8 bit word can represent 256 different items --- in this case we are representing characters by these binary words) leaves the UART some noise produces an error in one or an odd number of bit locations, then at the destination the calculated checksum will be 1 and this is compared with 0 and we have an error.

Now consider the use of a checksum. Here all the bytes in the packet are added together modulo 256 (because we have an 8 bit word and this can represent 256 items). Many kinds of 1 bit errors or multiple bit errors per character can occur and cause the checksum to be in error. However, a few kinds of 1 bit errors can occur that a parity check would catch but the checksum will not. For example: two bytes are 5 and 4 (00110101 parity bit is 0 and 00110100 parity bit is 1) the sum of the two is 9 (00111001). Produce just the right 1 bit error in each of these such that 5 becomes 4 and 4 becomes 5, then there will be a parity error on each of these, but the checksum is still 9 so no checksum error. You must keep in mind the relative probablity of errors of certain types determines which method is better.

Since in general with the correct interconnect equipment from one RS232 port to another, such as our I232 System, there are virtually no bit errors in 100s of millions of bytes sent it means that Xmodem can be a very effective error detector. In addition Xmodem has the ability recover from an error that the simple parity check can not. But the single bit parity check combined with Xmodem can be even better.

For those that do not understand what I said ask questions.

.

Last edited by gar; 02-02-2008 at 03:02 PM.
Reply With Quote

  #14   Ban this user!
Old 02-02-2008, 01:44 PM
Donkey Hotey's Avatar  
Join Date: Nov 2007
Location: USA
Posts: 1,636
Donkey Hotey is on a distinguished road

I think this is a great discussion. Can a mod prune this bit out and into a new thread? I'd hate for the information to be lost under an unrelated topic.
__________________
Greg
Reply With Quote

  #15   Ban this user!
Old 02-02-2008, 05:07 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080202-1806 EST USA

How many of you know what I meant when I used the word modulo?

.
Reply With Quote

Sponsored Links
  #16  
Old 02-02-2008, 05:40 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

I only became acquainted with the term modulo in the last few years. In school we called it 'the remainder'. Its still kind of foreign to me though.

Maybe I need to sue some jackass in the school system for protecting me from that nasty, foreign sounding word Oh, that's right, they're all dead now, I'm that old
__________________
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

  #17   Ban this user!
Old 02-02-2008, 07:56 PM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080202-2029 EST USA

From
The American Heritage® Science Dictionary

modulus
A number by which two given numbers can be divided and produce the same remainder.


From
The American Heritage® Dictionary of the English Language, Fourth Edition

modulo
Mathematics With respect to a specified modulus: 18 is congruent to 42 modulo 12 because both 18 and 42 leave 6 as a remainder when divided by 12

and
mod
abbr. Mathematics modulus

So if you do arithmetic base 10 MOD 16, then the only possible numbers are the integers 0 thru 15. When you add 1 to 15 that is 16, or 0 (MOD 16). 15 plus 22 is 37 or 5 (MOD 16). 37(2*16) = 32 + 5. Some times this is called clock arithmetic.


What is neat in binary arithmetic is MOD 256 is the least significant 8 bits of a number. To create a one byte (8 bits) checksum we simply initiallize an 8 bit register to 0, then add to that register and ignore the carries.


.
Reply With Quote

  #18  
Old 02-03-2008, 09:51 PM
HuFlungDung's Avatar
Moderator
 
Join Date: Mar 2003
Location: Canada
Posts: 4,825
HuFlungDung is on a distinguished road

What is neat in binary arithmetic is MOD 256 is the least significant 8 bits of a number. To create a one byte (8 bits) checksum we simply initiallize an 8 bit register to 0, then add to that register and ignore the carries.
Okay, I'm seeing a glimmer here Can you give a longhand example in binary of what the above quote would entail?
__________________
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

  #19   Ban this user!
Old 02-04-2008, 07:35 AM
gar gar is offline
 
Join Date: Mar 2005
Location: USA
Posts: 1,498
gar is on a distinguished road

080204-0815 EST USA

Hu:

Suppose we have a register CX that is 16 bits wide and we use the INC and AND functions as follows:

INC CX
AND CX, 00FFh ; 00FFh = 255 decimal = 0000000011111111 binary

If CX contains 00FF before increment, then it is 0100 after INC.
The AND function, which could be called a mask here, will cause CX to contain 0000h after its execution. Thus, with these two instructions we have created a modulo 256 decimal counter.

This can be useful in a circular buffer application where the buffer size is 256 decimal. The value in CX would be combined with a base address to point into the buffer.

On a production line I use a MOD 1024 counter (10 bits --- 3Fh for the mask) to provide a number that is not too large, but considerably larger than the maybe 80 parts within the line. Thus when we want to track a part down the line the operator can write a relatively simple number on the part.

(edit)
In the case of the 8 bit register, suppose we increment AX, but only use the results in AL, then with only one instruction I have done the same operation as with two instructions above. But normally you would not use AX as a counter. Continuing to increment AX above 255 puts stuff into AH but we ignore this by just looking at AL.
(end edit)

.
Reply With Quote

  #20   Ban this user!
Old 02-15-2008, 10:37 PM
 
Join Date: Aug 2006
Location: USA
Posts: 66
locash is on a distinguished road

Originally Posted by serviceman View Post
you can really only do it on the older processors that have sockets unless you are good at soldering surface mount chips.
I'm good at soldering surface mount components, where and what would I put on this thing to add more memory? I have a 2006 VF2, and I'm getting really annoyed at running out of my 1 meg of ram. We all know that memory is pennies on the dollar these days..
Reply With Quote

Sponsored Links
  #21   Ban this user!
Old 02-16-2008, 03:18 PM
serviceman's Avatar  
Join Date: Apr 2007
Location: usa
Posts: 178
serviceman is on a distinguished road

i don't know about pennies but if you look at the processor you will see a bunch of open solder joints for memory usually on the top left of the board you will notice the bank of chips they are all the same they are your memory chips 256k chips maybe take the number off the chip and do a web search you will usually come up with a hit a did it not too long ago for a quote and the chips were readily available but i decided against the job because of magnifying glass and real close solder didn't want to chance recking the board and if i did i would be buying a new one upwards of $2500.00
__________________
REYTECH Machine Service Corp. CNC repair NY, NJ
http://www.reytechmachine.com
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
HAAS SL20 and HAAS VF2 ProE Posts? CNC_student Post Processor Files 5 07-10-2008 02:46 PM
need more memory rob2424 Machine Problems, Solutions , Wireless DNC, serial port 1 01-28-2008 05:04 AM
M-2 Memory newguy81 Mazak, Mitsubishi, Mazatrol 2 09-05-2007 01:13 AM
Extended memory for a Haas VF3 bob1112 Haas Mills 0 05-03-2007 02:41 PM
88 Memory ? Bear Fadal 2 09-01-2006 06:26 AM




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