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関数 |
EAN13 | EAN13桁 | |
EAN13_2 | EAN13桁+ADDON2桁 | |
EAN13_5 | EAN13桁+ADDON5桁 | |
EAN8 | EAN8桁 | |
EAN8_2 | EAN8桁+ADDON2桁 | |
EAN8_5 | EAN8桁+ADDON5桁 | |
JAN13 | JAN13桁 | 出力しません |
JAN13_2 | JAN13桁+ADDON2桁 | 出力しません |
JAN13_5 | JAN13桁+ADDON5桁 | 出力しません |
JAN8 | JAN8桁 | 出力しません |
JAN8_2 | JAN8桁+ADDON2桁 | 出力しません |
JAN8_5 | JAN8桁+ADDON5桁 | 出力しません |
INSTORE13 | Instore Code 13桁 | 出力しません |
INSTORE13_2 | Instore Code 13桁+ADDON2桁 | 出力しません |
INSTORE13_5 | Instore Code 13桁+ADDON5桁 | 出力しません |
INSTORE8 | Instore Code 8桁 | 出力しません |
INSTORE8_2 | Instore Code 8桁+ADDON2桁 | 出力しません |
INSTORE8_5 | Instore Code 8桁+ADDON5桁 | 出力しません |
UPCA | UPC-A | |
UPCA_2 | UPC-A+ADDON2桁 | |
UPCA_5 | UPC-A+ADDON5桁 | |
UPCE | UPCE | |
UPCE_2 | UPC-E+ADDON2桁 | |
UPCE_5 | UPC-E+ADDON5桁 | |
Code 39 | CODE39 | |
CODABAR | Codabar (NW-7) | |
D2OF5 | Industrial 2 of 5 | |
I2OF5 | Interleaved 2 of 5 | |
CODE93 | Code 93 | |
CODE128 | Code 128 | |
MSI_PLESSEY | MSI/Plessey | |
IATA | IATA | |
UK_PLESSEY | UK/Plessey | |
TELEPEN | Telepen | |
M2OF5 | Matrix 2 of 5 | |
CHINESE_POST | Chinese Post Matrix 2 of 5 | |
NW7_ABC | NW-7 ABC Code | |
NW7_CX | NW-7 CX Code | |
SCODE | S-Code | |
LAETUS | LAETUS Tri/Optic | |
C39_FA | Code 39 Full Ascii | |
C39_IT | Code 39 It. Pharmaceutical | |
EAN128 | EAN-128 | |
RSS_14 | RSS-14(GS1 Databar)
RSS-Limited(GS1 Databar Limited)
RSS-Expanded(GS1 Databar Expanded) | |
PDF417 | PDF417 | |
MICRO_PDF417 | MicroPDF417 | |
CODE11 | Code 11 | |
MENU_CODE | Menu-Code | |
CODE3OF5 | Korean Postal Authority | |
INTELLIGENT_MAIL | Intelligent Mail | |
POSTNET | Postnet | |
JAPANESE_POSTAL | Japanese postal | |
CODABLOCK_F | CodablockF | |
DATA_MATRIX_ECC200 | Data Matrix (ECC200) | |
AZTEC_CODE | Aztec code Aztec runes | |
CHINESE_SENSIBLE_CODE | Chinese Sensible code | |
QR_CODE | QR code | |
MICRO_QR_CODE | MicroQR | |
MAXI_CODE | Maxi code | |
COMPOSITE_GS1DATABAR | Composite on GS1Databar Composite on UPC / EAN EAN128 COMPOSITE | |
PLANET | PLANET | |
NETHERLANDS_KIX | Netherlands KIX Code | |
UK_POSTAL | UK Postal (Royal Mail) | |
AUSTRALIAN_POSTAL | Australian Postal | |
0x0 | Machine 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