Skip to Main Content
Cognex 지원 허브
LogoLogo

How to Calculate SEMI OCR Checksum and Pass/Fail Judgment

Instructions on how to calculate the checksum for OCR in Wafer ID

2024. 09. 14.

Question

How do I calculate the checksum of SEMI OCR?

Answer

  • Let's take a string of 12 characters, where the string is arranged as a A1,A2,A3,A4...A12.
  • 1)First, subtract 20H from the ASCII code HEX for each string, and then decimal.
  • If it is "0", it is 30H, so it is 30H-20H=10H, and it is 16 in decimal.
  • 2)When N is the number of characters, the value of each character obtained in 1) is calculated by the following equation. 
    (A1x (N-1 power of 8)) + (A2x (N-2 power of 8)) + (A3x (N-3))+...(A12x of 8 (N-12 power of 8))
  • 3)The result obtained in 2) is divided by 59, and the result passes if the remainder is 0. If there is a remainder, the checksum is rejected. 

관련 자원