Code128

Code 128是ISO/IEC 15417:2007定义的条形码规范。

Code 128条码可以对全部128个ASCII字符（包括数字、大小写字母、符号和控制符）进行编码。

 构成 
替代="Code 128 sections"|右|缩略图|400x400像素|条形码编码 (Code 128B). 1:空白区域, 2:起始标记, 3:数据区, 4:校验符, 5:终止符
一个Code 128条形码由7部分组成。

 空白区域
 起始标记
 数据区
 檢查符號（必填欄位）
 终止符
 最後一條條碼（有的時候，這第六項會視為第五項——終止符的一部分）
 空白区域

 数据区 
Code 128条码指定相互间隔的3个条形和3个空白代表一个字符（symbol），每个字符由一个条开始，以一个空结束。每個字符由不同寬度的黑色條和白色空組成，所有寬度都是基本「模組」（module）的倍數。每個條和每個空的寬度為1至4個模組，字符的寬度固定：3個條和3個空的寬度總和為11個模組。在条形码字体中，最后一个条形通常与终止符一起组合成一个更宽的终止符。

Code 128左右兩側空白区域的最小寬度為10x，其中x為模組的最小寬度。條碼左右兩側的空白区域是必要的。

下表详细说明了每个字符之中條与空的宽度关系，每个条的宽度可以为1,2,3,4个模組。例如字母“A”可以被表示为图案10100011000，或者表示为宽度111323。

+Code 128值128A128B128C字符集编号条码图案编号Latin-1字符图案宽度0空格space0032 or 194 / 212 / 252␣ or Â / Ô / ü110110011002122221!!0133!110011011002221222""0234"110011001102222213##0335#100100110001212234$$0436$100100011001213225%%0537%100010011001312226&&0638&100110010001222137''0739'100110001001223128((0840(100011001001322129))0941)1100100100022121310**1042*1100100010022131211 + +1143 +1100010010023121212,,1244,1011001110011223213 - -1345 -1001101110012213214..1446.1001100111012223115//1547/101110011001132221600164801001110110012312217111749110011100110123221182218502110011100102232111933195131100101110022113220442052411001001110221231215521535110111001002132122266225461100111010022311223772355711101101110312131248824568111010011003112222599255791110010110032112226 : :2658 :1110010011032122127;;2759;1110110010031221228<<2860<1110011010032211229==2961=1110011001032221130>>3062>1101101100021212331??3163?1101100011021232132@@3264@1100011011023212133AA3365A1010001100011132334BB3466B1000101100013112335CC3567C1000100011013132136DD3668D1011000100011231337EE3769E1000110100013211338FF3870F1000110001013231139GG3971G1101000100021131340HH4072H1100010100023111341II4173I1100010001023131142JJ4274J1011011100011213343KK4375K1011000111011233144LL4476L1000110111013213145MM4577M1011101100011312346NN4678N1011100011011332147OO4779O1000111011013312148PP4880P1110111011031312149QQ4981Q1101000111021133150RR5082R1100010111023113151SS5183S1101110100021311352TT5284T1101110001021331153UU5385U1101110111021313154VV5486V1110101100031112355WW5587W1110100011031132156XX5688X1110001011033112157YY5789Y1110110100031211358ZZ5890Z1110110001031231159[[5991[1110001101033211160\\6092\1110111101031411161]]6193]1100100001022141162^^6294^1111000101043111163__6395_1010011000011122464NUL`6496`1010000110011142265SOHa6597a1001011000012112466STXb6698b1001000011012142167ETXc6799c1000010110014112268EOTd68100d1000010011014122169ENQe69101e1011001000011221470ACKf70102f1011000010011241271BELg71103g1001101000012211472BSh72104h1001100001012241173HTi73105i1000011010014211274LFj74106j1000011001014221175VTk75107k1100001001024121176FFl76108l1100101000022111477CRm77109m1111011101041311178SOn78110n1100001010024111279SIo79111o1000111101013411180DLEp80112p1010011110011124281DC1q81113q1001011110012114282DC2r82114r1001001111012124183DC3s83115s1011110010011421284DC4t84116t1001111010012411285NAKu85117u1001111001012421186SYNv86118v1111010010041121287ETBw87119w1111001010042111288CANx88120x1111001001042121189EMy89121y1101101111021214190SUBz90122z1101111011021412191ESC{91123{1111011011041212192FS|92124|1010111100011114393GS }93125 }1010001111011134194RS~94126~1000101111013114195USDEL95195 / 200 / 240Ã / È / ð1011110100011411396FNC 3FNC 396196 / 201 / 241Ä / É / ñ1011110001011431197FNC 2FNC 297197 / 202 / 242Å / Ê / ò1111010100041111398Shift BShift A98198 / 203 / 243Æ / Ë / ó1111010001041131199Code CCode C99199 / 204 / 244Ç / Ì / ô10111011110113141100Code BFNC 4Code B200 / 205 / 245È / Í / õ10111101110114131101FNC 4Code ACode A201 / 206 / 246É / Î / ö11101011110311141102FNC 1FNC 1FNC 1202 / 207 / 247Ê / Ï / ÷11110101110411131103Start Code A203 / 208 / 248Ë / Ð / ø11010000100211412104Start Code B204 / 209 / 249Ì / Ñ / ù11010010000211214105Start Code C205 / 210 / 250Í / Ò / ú11010011100211232106Stop——11000111010233111—Reverse Stop——11010111000211133—Stop pattern (7 bars/spaces)206 / 211 / 251Î / Ó / û  1100011101011 2331112

 參考文獻 

Category:条码