Next revision | Previous revision |
technote:modulo43-barcodes [2018/08/10 02:28] – created Scott Cunliffe | technote:modulo43-barcodes [2025/01/21 22:07] (current) – external edit 127.0.0.1 |
---|
=== How it works === | === How it works === |
| |
* Each character of the barcode in turn is looked up in the following string **0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%** | * Each character of the Barcode in turn is looked up in the following string **0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%** |
* When the character is found the offset of that character is added to a running total | * When the character is found the offset of that character is added to a running total |
* At the end of the string the subtotal is divided by 43 | * At the end of the string the subtotal is divided by 43 |
| |
=== Example === | === Example === |
229446L6 | * 229446L6 |
Using the barcode **229446L6**. | * Using the Barcode **229446L6**. |
Substituting the characters for the positional values gives 2 + 2 + 9 + 4 + 4 + 6 + 21 + 6 = 54 | * Substituting the characters for the positional values gives 2 + 2 + 9 + 4 + 4 + 6 + 21 + 6 = 54 |
The subtotal (54) divided by 43 gives a remainder of 11. | * The subtotal (54) divided by 43 gives a remainder of 11. |
Character 11 in the search string is **B**. | * Character 11 in the search string is **B**. |
So a modulo 43 barcode with value **229446L6** would be **229446L6B** | * So a modulo 43 Barcode with value **229446L6** would be **229446L6B** |
| |
=== How TapeTrack caters for Module 43 === | === How TapeTrack caters for Module 43 === |
| |
If your tape library consists only of media volumes that use the Modulo 43 check digit the simplest approach would be to create a barcode definition that says (presuming all of your barcodes have 6 digits) the volume serial portion of the barcode is made up of digits 1-6 of what is scanned. | If your tape library consists only of media volumes that use the Modulo 43 check digit the simplest approach would be to create a Barcode definition that says (presuming all of your Barcodes have 6 digits) the volume serial portion of the Barcode is made up of digits 1-6 of what is scanned. |
| |
In reality things are probably not going to be that simple. So if you have some barcodes with Modulo 43 and some without this is how TapeTrack manages them: | In reality things are probably not going to be that simple. So if you have some Barcodes with Modulo 43 and some without this is how TapeTrack manages them: |
| |
When the [[master:media#options-tab|Media Option]] ''Barcodes Use Modulo43'' to true, all barcodes are treated as Modulo43 barcodes. Any barcode scanned will then confirm the Modulo43 check value is correct before removing this value and inputing the truncated barcode into TapeTrack. | When the [[master:media#options-tab|Media Option]] ''Barcodes Use Modulo43'' to true, all Barcodes are treated as Modulo43 barcodes. Any barcode scanned will then confirm the Modulo43 check value is correct before removing this value and inputing the truncated barcode into TapeTrack. |
| |
For example barcode **229446L6B** will scan, check that **B** is the correct modulo43 check value, trim the **B** off the end of the barcode and input **229446L6** into TapeTrack. | For example, Barcode **229446L6B** will scan, check that **B** is the correct modulo43 check value, trim the **B** off the end of the Barcode and input **229446L6** into TapeTrack. |
| |
When you have a mix of standard and Modulo43 barcodes within your inventory, expanding out the [[master:media#options-tab|Media Option]] ''Barcodes Use Modulo43'' allows barcodes of different lengths to be handled as either a standard or Modulo43 barcode. | When you have a mix of standard and Modulo43 Barcodes within your inventory, expanding out the [[master:media#options-tab|Media Option]] ''Barcodes Use Modulo43'' allows barcodes of different lengths to be handled as either a standard or Modulo43 Barcode. |
| |
Setting ''Barcodes Use Modulo43'' and ''Exclude Length 8'' to true will have the effect of any 8 character barcode [[desktop:scan_window|scanned]] without being handled by Modulo43 input rules. Any other length barcode will be treated as a Modulo43 barcode and handled appropriately. | Setting ''Barcodes Use Modulo43'' and ''Exclude Length 8'' to true will have the effect of any 8 character Barcode [[desktop:scan_window|scanned]] without being handled by Modulo43 input rules. Any other length Barcode will be treated as a Modulo43 Barcode and handled appropriately. |
| |
{{:master:tapemaster_media_options_modulo43_exclude8.png}} | {{:master:tapemaster_media_options_modulo43_exclude8.png}} |
| |
For example barcode **123456L6** will [[desktop:scan_window|scan]] as **123456L6** without alteration, where as **22944L6B** will [[desktop:scan_window|scan]] in as **22944L6**. | For example, Barcode **123456L6** will [[desktop:scan_window|scan]] as **123456L6** without alteration, where as **22944L6B** will [[desktop:scan_window|scan]] in as **22944L6**. |
| |
{{:master:tapemaster_modulo43_scan.png}} | {{:master:tapemaster_modulo43_scan.png}} |
[[barcode-processing|TapeTrack Barcode Parsing]] | [[barcode-processing|TapeTrack Barcode Parsing]] |
| |
| |
| {{tag>technote barcode modulo43 scan update-doco}} |