The definition of the barcode code ID returned by the ReadBarcode or ReadBarcodeEx function is as follows.

Code ID

The ReadBarcode function returns the code ID shown in the table below in the id member of the barcode structure.
The ReadBarcodeEx function returns the code ID shown in the table below in the id member of the barcodeEx structure.

Note:

  • Note that the ReadBarcodeEx function returns a different code ID than the ReadBarcode function.
  • When the EAN code is read by the ReadBarcode function, the code ID is converted as follows according to the country code value of the EAN code.
    If the country code is "49" or "45":
    Before conversion After conversion
    EAN13 JAN13
    EAN13_2 JAN13_2
    EAN13_5 JAN13_5
    EAN8 JAN8
    EAN8_2 JAN8_2
    EAN8_5 JAN8_5
    If the country code is "1x" or "2x" (x is any number):
    Before conversion After conversion
    EAN13 INSTORE13
    EAN13_2 INSTORE13_2
    EAN13_5 INSTORE13_5
    EAN8 INSTORE8
    EAN8_2 INSTORE8_2
    EAN8_5 INSTORE8_5
  • The ReadBarcodeEx function does not perform the above conversion, and outputs the code ID before conversion defined for the EAN code as it is.
  • The code ID value is defined in lib.h included in the SDK.

Code IDType of barcodeReadBarcodeEx func.
EAN13EAN13
EAN13_2EAN13 Addon2
EAN13_5EAN13 Addon5
EAN8EAN8
EAN8_2EAN8 Addon2
EAN8_5EAN8 Addon5
JAN13JAN13No output
JAN13_2JAN13 Addon2No output
JAN13_5JAN13 Addon5No output
JAN8JAN8No output
JAN8_2JAN8 Addon2No output
JAN8_5JAN8 Addon5No output
INSTORE13Instore Code 13No output
INSTORE13_2Instore Code 13 Addon2No output
INSTORE13_5Instore Code 13 Addon5No output
INSTORE8Instore Code 8No output
INSTORE8_2Instore Code 8 Addon2No output
INSTORE8_5Instore Code 8 Addon5No output
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 code ID

The ReadBarcode function returns the character code of the code ID shown in the table below to the opticonID member of the barcode structure.
The ReadBarcodeEx function returns the character code of the code ID shown in the table below to the opticonID member of the barcodeEx structure.

CodeCode ID CodeCode 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 code ID

The ReadBarcodeEx function returns the string of the AIM/ISO15424 code ID shown in the table below to the aimID member of the barcodeEx structure.
CodeCode ID CodeCode 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 optionCode 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) or +K (Full ASCII Code 39 if possible)]A4
C1 (Not check CD)
D9 (Transmit CD)
D4 (Full ASCII Code 39) or +K (Full ASCII Code 39 if possible)]A5
C0 (Check CD)
D9 (Transmit CD)
D4 (Full ASCII Code 39) or +K (Full ASCII Code 39 if possible)]A6
C1 (Not check CD)
D8 (Not transmit CD)
D4 (Full ASCII Code 39) or +K (Full ASCII Code 39 if possible)]A7
C0 (Check CD)
D8 (Not transmit CD)

Codabar option AIM/ISO15424 Code ID : ]F*

Code optionCode ID
HA (Codabar normal mode)]F0
H7 (Not check CD)
H8 (Transmit CD)
H4 or H3 (Codabar ABC)]F1
H7 (Not check CD)
H8 (Transmit CD)
HA (Codabar normal mode)]F2
H6 (Check CD)
H8 (Transmit CD)
H4 or H3 (Codabar ABC)]F3
H6 (Check CD)
H8 (Transmit CD)
HA (Codabar normal mode)]F4
H7 (Not check CD)
H9 (Not transmit CD)
H4 or 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 or H3 (Codabar ABC)]F7
H6 (Check CD)
H9 (Not transmit CD)

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

Code optionCode 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 optionCode ID
4H (Not check CD) ]R0
4L (Transmit CD)
4I (Check FC and SN only) or 4J (Check CPN, FC and SN) or 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) or 4J (Check CPN, FC and SN) or 4K (Check CPN, AC, FC and SN) ]R3
Not transmit CD (4M)

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

Code optionCode 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) or 4G (Not transmit CD) or 4F (Transmit CD1 and CD2)
4D (Check 2CDs = MOD 10/MOD 11) ]X0
4E (Transmit CD1) or 4G (Not transmit CD) or 4F (Transmit CD1 and CD2)
4R (Check 2CDs = MOD 11/MOD 10) ]X0
4E (Transmit CD1) or 4G (Not transmit CD) or 4F (Transmit CD1 and CD2)

Telepen option AIM/ISO15424 Code ID : ]B*

Code optionCode 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 optionCode ID
BLG (Check 1CD) or BLI (Check auto 1 or 2CDs) ]H0
(length > 12)
BLK (Transmit CD(s))
BLH (Check 2CDs) or BLI (Check auto 1 or 2CDs) ]H1
(length > 12)
BLK (Transmit CD(s))
BLG (Check 1CD) or BLH (Check 2 CDs) or 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 optionCode ID
FNC1 not used. ]O4
FNC1 is in 1st position. ]O5

DataMatrix option AIM/ISO15424 Code ID : ]d*

Code optionCode 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 optionCode 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 optionCode 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 optionCode 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

Last updated: 2021/09/26