ReadBarcode関数またはReadBarcodeEx関数でバーコードを読み取った時に返されるバーコードのコードIDの定義は次のとおりです。

コードID

 ReadBarcode関数は、barcode構造体idメンバーに下表に示すコードIDを返します。
 ReadBarcodeEx関数は、barcodeEx構造体idメンバーに下表に示すコードIDを返します。

(注意)

  • ReadBarcodeEx関数は、ReadBarcode関数とは異なるコードIDを返すので注意してください。
  • ReadBarcode関数でEANコードを読み取ると、EANコードの国コードの値に従って次のようにコードIDを変換します。
    国コードが"49"または"45"の場合:
    変換前 変換後
    EAN13 JAN13
    EAN13_2 JAN13_2
    EAN13_5 JAN13_5
    EAN8 JAN8
    EAN8_2 JAN8_2
    EAN8_5 JAN8_5
    国コードが"1x"または"2x"(xは任意の数字)の場合:
    変換前 変換後
    EAN13 INSTORE13
    EAN13_2 INSTORE13_2
    EAN13_5 INSTORE13_5
    EAN8 INSTORE8
    EAN8_2 INSTORE8_2
    EAN8_5 INSTORE8_5
  • ReadBarcodeEx関数では上記のコードIDの変換は行わず、EANコード用に定義された変換前のコードIDをそのまま出力します。
  • コードIDの値はSDKに含まれるlib.hで定義されています。

コードIDバーコードの種別ReadBarcodeEx関数
EAN13EAN13桁
EAN13_2EAN13桁+ADDON2桁
EAN13_5EAN13桁+ADDON5桁
EAN8EAN8桁
EAN8_2EAN8桁+ADDON2桁
EAN8_5EAN8桁+ADDON5桁
JAN13JAN13桁出力しません
JAN13_2JAN13桁+ADDON2桁出力しません
JAN13_5JAN13桁+ADDON5桁出力しません
JAN8JAN8桁出力しません
JAN8_2JAN8桁+ADDON2桁出力しません
JAN8_5JAN8桁+ADDON5桁出力しません
INSTORE13Instore Code 13桁出力しません
INSTORE13_2Instore Code 13桁+ADDON2桁出力しません
INSTORE13_5Instore Code 13桁+ADDON5桁出力しません
INSTORE8Instore Code 8桁出力しません
INSTORE8_2Instore Code 8桁+ADDON2桁出力しません
INSTORE8_5Instore Code 8桁+ADDON5桁出力しません
UPCAUPC-A
UPCA_2UPC-A+ADDON2桁
UPCA_5UPC-A+ADDON5桁
UPCEUPCE
UPCE_2UPC-E+ADDON2桁
UPCE_5UPC-E+ADDON5桁
Code 39CODE39
CODABARCodabar (NW-7)
D2OF5Industrial 2 of 5
I2OF5Interleaved 2 of 5
CODE93Code 93
CODE128Code 128
MSI_PLESSEYMSI/Plessey
IATAIATA
UK_PLESSEYUK/Plessey
TELEPENTelepen
M2OF5Matrix 2 of 5
CHINESE_POSTChinese Post Matrix 2 of 5
NW7_ABCNW-7 ABC Code
NW7_CXNW-7 CX Code
SCODES-Code
LAETUSLAETUS
Tri/Optic
C39_FACode 39 Full Ascii
C39_ITCode 39 It. Pharmaceutical
EAN128EAN-128
RSS_14RSS-14(GS1 Databar)
RSS-Limited(GS1 Databar Limited)
RSS-Expanded(GS1 Databar Expanded)
PDF417PDF417
MICRO_PDF417MicroPDF417
CODE11Code 11
MENU_CODEMenu-Code
CODE3OF5Korean Postal Authority
INTELLIGENT_MAILIntelligent Mail
POSTNETPostnet
JAPANESE_POSTALJapanese postal
CODABLOCK_FCodablockF
DATA_MATRIX_ECC200Data Matrix (ECC200)
AZTEC_CODEAztec code
Aztec runes
CHINESE_SENSIBLE_CODEChinese Sensible code
QR_CODEQR code
MICRO_QR_CODEMicroQR
MAXI_CODEMaxi code
COMPOSITE_GS1DATABARComposite on GS1Databar
Composite on UPC / EAN
EAN128 COMPOSITE
PLANETPLANET
NETHERLANDS_KIXNetherlands KIX Code
UK_POSTALUK Postal (Royal Mail)
AUSTRALIAN_POSTALAustralian Postal
0x0Machine Readable Passports
Machine Readable Visas-A
Machine Readable Visas-B
Official Travel Documents 1
Official Travel Documents 2

OPTICON コードID

 ReadBarcode関数は、barcode構造体opticonIDメンバーに下表に示すコードIDの文字コードを返します。
 ReadBarcodeEx関数は、barcodeEx構造体opticonIDメンバーに下表に示すコードIDの文字コードを返します。

コードコードID コードコードID
UPC-A C Code 11 b
UPC-A Addon2 F Code 128 T
UPC-A Addon5 G GS1-128
UPC-E D GS1 DataBar y
UPC-E Addon2 H CC-A m
UPC-E Addon5 I CC-B n
EAN-13 B CC-C l
EAN-13 Addon2 L Korean Postal Authority c
EAN-13 Addon5 M Intelligent Mail 0
EAN-8 A Postal-TNT, KIX 1
EAN-8 Addon2 J Japan postal 2
EAN-8 Addon5 K Postnet 3
Code 39 V Australia postal code 4
Code 39 Full ASCII W US Planet 6
Italian Pharmaceutical Y UK Postal (Royal mail) 7
NW-7 (Codabar) R 4-state Mailmark barcode 8
Codabar ABC S Codablock F E
Codabar CX f Data Matrix t
Industrial 2 of 5 O Aztec o
Interleaved 2 of 5 N Aztec Runes
S-Code g Chinese Sensible Code e
Matrix 2 of 5 Q QR Code u
Chinese Post w Micro QR Code j
Code 93 U Maxi Code v
IATA P PDF417 r
MSI/Plessey Z MicroPDF417 s
Telepen d ICAO Travel Documents (OCR) 9
UK/Plessey a ISBN and Other OCR Font B z

AIM/ISO15424 コードID

 ReadBarcodeEx関数は、barcodeEx構造体aimIDメンバーに下表に示すAIM/ISO15424 コードIDの文字列を返します。
コードコードID コードコードID
UPC-A ]E0 Telepen ]B*
UPC-A Addon2 ]E3 UK/Pleseey ]P0
UPC-A Addon5 ]E3 Code 128 ]C0
UPC-E ]E0 GS1-128 ]C1
UPC-E Addon2 ]E3 Code 93 ]G0
UPC-E Addon5 ]E3 Code 11 ]H*
EAN-13 ]E0 ]X0
EAN-13 Addon2 ]E3 Korean Postal Authority ]X0
EAN-13 Addon5 ]E3 Intelligent Mail Barcode ]X0
EAN-8 ]E4 POSTNET ]X0
EAN-8 Addon2 ]E7 GS1 Databar ]e0
EAN-8 Addon5 ]E7 CC-A ]e1
Code 39 ]A* CC-B ]e1
Code 39 Full ASCII ]A* CC-C ]e1
Tri-Optic ]X0 GS1 DataBar with CC-A ]e0
Code 39 It. Phatmaceutical ]X0 GS1 DataBar with CC-B ]e0
NW-7 (Codabar) ]F* GS1 DataBar with CC-C ]e0
Codabar ABC ]F* Codabock F ]O*
Codabar CX ]X0 DataMatrix ]d*
Industrial 2 of 5 ]S0 Aztec ]z*
Interleaved 2 of 5 ]I* ]X0
S-Code ]X0 QR Code ]Q*
Matix 2 of 5 ]X0 Micro QR Code ]Q*
Chinese Post ]X0 Maxi Code ]U*
IATA ]R* PDF417 ]L0
MSI/Plessey ]M* MicroPDF417 ]L0
]X0 OCR ]X0

Code 39 option AIM/ISO15424 Code ID : ]A*

Code optionコードID
D5 (Normal Code 39)]A0
C1 (Not check CD)
D9 (Transmit CD)
D5 (Normal Code 39)]A1
C0 (Check CD)
D9 (Transmit CD)
D5 (Normal Code 39)]A2
C1 (Not check CD)
D8 (Not transmit CD)
D5 (Normal Code 39)]A3
C0 (Check CD)
D8 (Not transmit CD)
D4 (Full ASCII Code 39) または +K (Full ASCII Code 39 if possible)]A4
C1 (Not check CD)
D9 (Transmit CD)
D4 (Full ASCII Code 39) または +K (Full ASCII Code 39 if possible)]A5
C0 (Check CD)
D9 (Transmit CD)
D4 (Full ASCII Code 39) または +K (Full ASCII Code 39 if possible)]A6
C1 (Not check CD)
D8 (Not transmit CD)
D4 (Full ASCII Code 39) または +K (Full ASCII Code 39 if possible)]A7
C0 (Check CD)
D8 (Not transmit CD)

Codabar option AIM/ISO15424 Code ID : ]F*

Code optionコードID
HA (Codabar normal mode)]F0
H7 (Not check CD)
H8 (Transmit CD)
H4 または H3 (Codabar ABC)]F1
H7 (Not check CD)
H8 (Transmit CD)
HA (Codabar normal mode)]F2
H6 (Check CD)
H8 (Transmit CD)
H4 または H3 (Codabar ABC)]F3
H6 (Check CD)
H8 (Transmit CD)
HA (Codabar normal mode)]F4
H7 (Not check CD)
H9 (Not transmit CD)
H4 または H3 (Codabar ABC)]F5
H7 (Not check CD)
H9 (Not transmit CD)
HA (Codabar normal mode)]F6
H6 (Check CD)
H9 (Not transmit CD)
H4 または H3 (Codabar ABC)]F7
H6 (Check CD)
H9 (Not transmit CD)

Interleaved 2 of 5 option AIM/ISO15424 Code ID : ]I*

Code optionコードID
G0 (Not check CD) ]I0
E0 (Transmit CD)
G1 (Check CD) ]I1
E0 (Transmit CD)
G0 (Not check CD) ]I2
E1 (Not transmit CD)
G1 (Check CD) ]I3
E1 (Not transmit CD)

IATA option AIM/ISO15424 Code ID : ]R*

Code optionコードID
4H (Not check CD) ]R0
4L (Transmit CD)
4I (Check FC and SN only) または 4J (Check CPN, FC and SN) または 4K (Check CPN, AC, FC and SN) ]R1
4L (Transmit CD)
4H (Not check CD) ]R2
4M (Not transmit CD)
4I (Check FC and SN only) または 4J (Check CPN, FC and SN) または 4K (Check CPN, AC, FC and SN) ]R3
Not transmit CD (4M)

MSI/Plessey option AIM/ISO15424 Code ID : ]M*/]X0

Code optionコードID
4B (Check 1CD = MOD 10) ]M0
4E (Transmit CD1)
4B (Check 1CD = MOD 10) ]M1
4G (Not transmit CD)
4B (Check 1CD = MOD 10) ]X0
4F (Transmit CD1 and CD2)
4C (Check 2CDs = MOD 10/MOD 10) ]X0
4E (Transmit CD1) または 4G (Not transmit CD) または 4F (Transmit CD1 and CD2)
4D (Check 2CDs = MOD 10/MOD 11) ]X0
4E (Transmit CD1) または 4G (Not transmit CD) または 4F (Transmit CD1 and CD2)
4R (Check 2CDs = MOD 11/MOD 10) ]X0
4E (Transmit CD1) または 4G (Not transmit CD) または 4F (Transmit CD1 and CD2)

Telepen option AIM/ISO15424 Code ID : ]B*

Code optionコードID
Telepen (numeric or ASCII only):
D3 (ASCII mode) ]B0
D2 (Numeric mode) ]B1
Telepen (ASCII follwed by numeric) (not supported):
D3 (ASCII mode) ]B0
D2 (Numeric mode) ]B2
Telepen (numeric follwed by ASCII):
D3 (ASCII mode) ]B0
D2 (Numeric mode) ]B2

Code 11 option AIM/ISO15424 Code ID : ]H*/]X0

Code optionコードID
BLG (Check 1CD) または BLI (Check auto 1 or 2CDs) ]H0
(length > 12)
BLK (Transmit CD(s))
BLH (Check 2CDs) または BLI (Check auto 1 or 2CDs) ]H1
(length > 12)
BLK (Transmit CD(s))
BLG (Check 1CD) または BLH (Check 2 CDs) または BLI (Check auto 1 or 2CDs) ]H3
(length > 12)
BLJ (Not transmit CD(s))
BLF (Not check CD) ]X0
BLJ (Not transmit CD(s))

Codablock F option AIM/ISO15424 Code ID : ]O*

Code optionコードID
FNC1 not used. ]O4
FNC1 is in 1st position. ]O5

DataMatrix option AIM/ISO15424 Code ID : ]d*

Code optionコードID
ECC200 ]d1
ECC200, FNC1 in 1st or 5th position. ]d2
ECC200, FNC1 in 2nd or 6th position. ]d3
ECC200, supporting ECI protocol. ]d4
ECC200, FNC1 in 1st or 5th position and supporting ECI protocol. ]d5
ECC200, FNC1 in 2nd or 6th position and supporting ECI protocol. ]d6

Aztec option AIM/ISO15424 Code ID : ]z*

Code optionコードID
No structuree/other ]z0
FNC1 preceding 1st message character. ]z1
FNC1 following an initial letter or pair of digits. ]z2
ECI protocol implemented. ]z3
FNC1 preceding 1st message character and ECI protocol implemented. ]z4
FNC1 following an initial letter or pair of digits, ECI protocol implemented. ]z5
Structured append header included. ]z6
Structured append header included and FNC1 preceding 1st message character. ]z7
Structured append header included, FNC1 following an initial letter or pair of digits. ]z8
Structured append header included and ECI protocol implemented. ]z9
Structured append header included, FNC1 preceding 1st message character, ECI protocol implemented. ]zA
Structured append header included, FNC1 following an initial letter or pair of digits, ECI protocol implemented. ]zB
Aztec runes ]zC

QR Code option AIM/ISO15424 Code ID : ]Q*

Code optionコードID
Model 1 ]Q0
Model 2, ECI protocol not implemented. ]Q1
Model 2, ECI protocol implemented. ]Q2
Model 2, ECI protocol not implemented. FNC1 in first position. ]Q3
Model 2, ECI protocol implemented. FNC1 in first position. ]Q4
Model 2, ECI protocol not implemented. FNC1 in second position. ]Q5
Model 2, ECI protocol implemented. FNC1 in second position. ]Q6

Maxi Code option AIM/ISO15424 Code ID : ]U*

Code optionコードID
Symbol in mode 4 of 5. ]U0
Symbol in mode 2 of 3. ]U1
Symbol in mode 4 of 5, ECI protocol implemented. ]U2
Symbol in mode 2 of 3, ECI protocol implemented. ]U3

最終更新日:2020/11/11