This function tries to fetch a barcode from the scanner.

Syntax

int ReadBarcodeEx(
  struct barcodeEx *barcodep
);

Parameters

barcodep
[in] A pointer to a barcodeEx structure.

Return value

Returns barcode reading success (OK) or failure (ERROR).

Remarks

Use the SystemSetting function to select which barcode symbologies must be read.
Please refer to the single reading setting and multi-reading setting in [Barcode reader settings].
※ About the number of readable digits
Depending on the state of the barcode, it is possible to read data that is shorter than it actually is.
To prevent this, it is recommended to set the number of digits to allow reading.

Note:

This function performs the same control as the ReadBarcode function, except for the following points.
  • The structure specified in the parameter has been changed from the barcode structure to the barcodeEx structure.
  • The aimID member of the barcodeEx structure can receive an AIM/ISO15424 code ID that represents the barcode type.
  • The value of the code ID received by the id member of the barcodeEx structure has changed. See Barcode Code ID for more information.

Requirements

Header
lib.h
Library
libSTARTUPOPH5000.a
OS version
TH21J01A and later

See also

Last updated: 2020/10/02