Code 128条码的最大长度 [英] Maximum length of a Code 128 barcode

查看:2279
本文介绍了Code 128条码的最大长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个最大为44个字符的Code 128条形码. Code 128条码格式最多支持多少个字符?

I need to create a Code 128 barcode with a maximum of 44 characters. What is the maximum number of characters supported by the Code 128 barcode format?

我知道Code 128可以对ASCII的所有128个字符进行编码,但是我无法确定它支持的最大字符数.

I came to know that Code 128 can encode all 128 characters of ASCII, but I cannot determine the maximum number of characters it supports.

推荐答案

代码128(ISO/IEC 15417)的规范保留了未定义的最大长度,并指出这是任何派生的应用程序都应定义的内容 [*] 标准:

The specification for Code 128 (ISO/IEC 15417) leaves the maximum length undefined and states that this is something that should be defined by any derivative application[*] standard:

4.7.1符号系统和数据特征

应用程序规范应考虑以下参数.

Application specifications should consider the following parameters.

b)符号中数据字符的数量,该数量可以是固定的, 变量或变量,直到定义的最大值.

b) The number of data characters in the symbol, which may be fixed, variable or variable up to a defined maximum.

例如,GS1通用规范定义GS1-128(代码128在供应链行业中的正式应用)的每个符号限制为48个字符:

For example the GS1 General Specification define that GS1-128 (the formal application of Code 128 to the supply chain industry) has a limits of 48 characters per symbol:

5.4.1 GS1-128条形码符号大小特征:

GS1-128符号体系的特征是:

The characteristics of the GS1-128 Symbology are:

  • GS1-128条形码符号尺寸特征:

  • GS1-128 Bar Code Symbol size characteristics:

  • 单个符号中数据字符的最大数量为48.

实际上,应该将字符数限制为适合扫描仪视野的任何数量.这将取决于设备的类型和型号,例如手持式vs固定式,激光vs CCD,高端vs预算等.在不受控制或开放的环境中,应该对高度公差进行预算.

Practically one should restrict the number of characters to whatever fits comfortably in a scanner's field of view. This will vary depending on the type and model of the device, e.g. handheld vs fixed, laser vs CCD, high-end vs budget, etc. In uncontrolled or open environments a high degree of tolerance should be budgeted for.

尤其值得注意的是,Code 128支持数字数据的双密度压缩(模式C"),这使得对长数字串的编码更加有效.

It is especially worth noting that Code 128 supports double-density compression of numeric data ("mode C") which makes encoding long strings of digits much more efficient.

这里是包含12345678901234567890123456789012345678901234的44位代码128:

Here is a 44-digit Code 128 containing 12345678901234567890123456789012345678901234:

此尺寸适合大多数实际应用.

This is appropriately sized for most practical applications.

但是,这一次是相同的代码128,其中包含44个字母字符ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCD:

However, here is the same Code 128 this time containing 44 alpha characters ABCDEFGHIJABCDEFGHIJABCDEFGHIJABCDEFGHIJABCD:

这种大小的条形码在许多应用中将无用,因为要可靠地读取条形码,将需要具有高分辨率和宽视场的扫描仪.

A barcode of this size will not be useful in as many applications since reading this reliably would require a scanner with a high resolution and wide field-of-view.

因此,最终Code 128的最大长度不仅取决于应用程序的实际限制,而且取决于要编码的数据的类型.

So ultimately the maximum length of a Code 128 is dependant not only on the practical constraints of the application but also the type of data to be encoded.

[*]应用程序是行业术语,指的是使用条形码系统的环境和过程,而不是任何特定的软件应用程序.

[*] Application is the industry term referring to the environment and processes in which the barcode system is to be used, rather than any specific software application.

这篇关于Code 128条码的最大长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆