Views:

Product: LABELVIEW, CODESOFT

Version: All Versions

 

OVERVIEW
A VoiceCode is a 4 digit number computed using the GTIN, Lot and optional Date from a PTI. For help creating a Voice Pick code, please see this article: How do I create a Voice Pick code?


This computation if performed as follow:

  1. Compute Plain Text
    a. Plain Text is the 14 digit GTIN appended by the Lot Code and the Date (when present)
    b. Do not include the application identifier, prefixes or parantheses
    c. There are no spaces between the GTIN, Lot and Date fields
    d. Date, if present, is represented as YYMMDD with zero padding and no "/" characters
  2. Compute ANSI CRC-16 Hash of the PlainText ASCII bytes using the standard ANSI CRC-16 Hash with the polynominal of X16+X15+X2+1
  3. Compute the VoiceCode by from the Hash by taking the 4 least significant digits in decimal form (Has mod 10000)

Example:
GTIN = (01) 10850510002011
Lot = (10) 46587443HG234
PlainText = 1085051000201146587443HG234
VoiceCode = 6359
Large Digits = 59
Small Digits = 63


Examples:

VoiceCode(«string», «string», «string»): 

VoiceCode("10850510002011", "46587443HG234") = 6359
VoiceCode("65457886676767", "2", "100126") = 5836