CODE128编码方式.doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CODE128编码方式

CODE 128 SYMBOLOGY CODE 128 BACKGROUND INFORMATION Code 128 is a very effective, high-density symbology which permits the encoding of alphanumeric data. The symbology includes a checksum digit for verification, and the barcode may also be verified character-by-character verifying the parity of each data byte. This symbology has been widely implemented in many applications where a relatively large amount of data must be encoded in a relatively small amount of space. Its specific structure also allows numeric data to be encoded at, effectively, double-density. An example of alphanumeric encoding in a single Code 128 barcode is: COMPUTING THE CHECKSUM DIGIT Before a Code 128 symbol may be encoded, the software must compute the correct checksum digit which will be included in the barcode. The checksum digit is based on a modulo 103 calculation based on the weighted sum of the values of each of the digits in the message that is being encoded, including the start character. The steps for calculating the check digit are as follows: Take the value of the start character (103, 104, or 105) and make that the starting value of the running checksum. Starting with the first data character following the start character, take the value of the character (between 0 and 102, inclusive) multiply it by its character position (1) and add that to the running checksum. Take each additional character in the message, take its value, and multiply it by its character position, and add the total to the running checksum. Divide the resulting running checksum by 103. The remainder becomes the checksum digit which is added to the end of the message. The stop character is appended after the checksum digit. This is easier to understand with an example. Lets calculate the checksum digit for the sample barcode above, HI345678. The checksum digit is included in all Code 128 barcodes, but it isnt printed as part of the text below the barcode symbol (as is the case with UPC and EAN symbols). B

文档评论(0)

xjj2017 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档