Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 21

Symbol Palm Terminal Scanner System Software Manual: Chapter 3 Barcode Parameter Functions, pages 63 to 71

Pages 63 to 71 of 168, from Symbol Palm Terminal Scanner System Software Manual

The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol SPT-1700

Page 63

Barcode Parameter Functions

ScanGetBarcodeLengths Purpose Identifies the number of human-readable symbols in the specified format that are being decoded.

Prototype int ScanGetBarcodeLengths ( BarType barcodeType, WordPtr pLengthType, WordPtr pLength1, WordPtr pLength2);

Returned Status barcodeType will be filled with one of the following values: barCODABAR barCODE39 barCODE93 barD25 barI2of5 barMSI_PLESSEY pLengthType will be filled with one of the following values: ONE_DISCRETE_LENGTH TWO_DISCRETE_LENGTHS LENGTH_WITHIN_RANGE ANY_LENGTH

3-19

Page 64

Symbol Palm Terminal Scanner System Software Manual

If applicable, pLength1 will be used to return length1. If applicable, pLength2 will be used to return length2. STATUS_OK If an error occurs, the returned status is one of the following: BAD_PARAM BATCH_ERROR COMMUNICATIONS_ERROR NOT_SUPPORTED

Comments If pLengthType is ONE_DISCRETE_LENGTH, ignore the value returned in pLength2. If pLengthType is ANY_LENGTH, ignore the values returned in pLength1 and pLength2.

See Also ScanSetBarcodeLengths

3-20

Page 65

Barcode Parameter Functions

ScanGetConvert Purpose Identifies whether decoded data is being converted to the specified format before transmission.

Prototype int ScanGetConvert ( ConvertType conversion);

Parameters -> conversion

Must be one of the following values: UPCEtoUPCA UPCE1toUPCA EAN8toEAN13 CODE39toCODE32 I2OF5toEAN13

Returned Status Zero=DISABLE >zero=ENABLE If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED

See Also ScanSetConvert

3-21

Page 66

Symbol Palm Terminal Scanner System Software Manual

ScanGetTransmitCheckDigit Purpose Identifies whether the specified code is being transmitted with a check digit.

Prototype int ScanGetTransmitCheckDigit ( barType barcodeType);

Parameters -> barcodeType

Must be one of the following values: barUPCA barUPCE barUPCE1 barCODE39 barI2OF5 barMSI_PLESSEY

Returned Status The barcode format specified in the ScanSetTransmitCheckDigit function call. TRANSMIT_CHECK_DIGIT DO_NOT_TRANSMIT_CHECK_DIGIT If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED

See Also ScanSetTransmitCheckDigit

3-22

Page 67

Barcode Parameter Functions

ScanSetBarcodeEnabled Purpose Dictates whether the specified barcode type is to be enabled for decoding.

Prototype int ScanSetBarcodeEnabled ( BarType barcodeType, Boolean bEnable);

Parameters -> barcodeType

Must be one of the following values: barBOOKLAND_EAN barCODABAR barCODE39 barCODE93 barCODE128 barD2OF5 barEAN8 barEAN13 barI2OF5 barISBT128 barMSI_PLESSEY barTRIOPTICCODE39 barUCC_EAN128 barUPCA barUPCE barUPCEANCOUPONCODE barUPCE1 barPDF417

-> bEnable

Must be one of the following values: True=ENABLE False=DISABLE

3-23

Page 68

Symbol Palm Terminal Scanner System Software Manual

Returned Status

STATUS_OK If an error occurs, the returned status is one of the following: BAD_PARAM BATCH_ERROR

See Also ScanGetBarcodeEnabled

3-24

Page 69

Barcode Parameter Functions

ScanSetBarcodeLengths Purpose Determines the number of human-readable symbols in the specified format that are to be decoded.

Prototype int ScanSetBarcodeLengths ( BarType barcodeType, Word lengthType, Word length1, Word length2);

Parameters -> barcodeType

Must be one of the following values: barCODABAR barCODE39 barCODE93 barD25 barI2of5 barMSI_PLESSEY

-> lengthType

Must be one of the following values: ONE_DISCRETE_LENGTH TWO_DISCRETE_LENGTHS LENGTH_WITHIN_RANGE ANY_LENGTH

-> length1, length2

The discrete lengths you wish to decode, or the range of barcode lengths you wish to decode. These lengths are ignored if the ANY_LENGTH parameter is set.

Returned Status STATUS_OK If an error occurs, the returned status is one of the following: BAD_PARAM BATCH_ERROR 3-25

Page 70

Symbol Palm Terminal Scanner System Software Manual

Comments The number of human-readable characters in the specified barcode format (including check digits) that are to be decoded may be set for: !

One discrete length: Decode only those codes that contain a selected length. For example, if you select ONE_DISCRETE_LENGTH and pass a length value of 14, only the barcode symbols containing 14 characters are decoded. Codes that contain two discrete lengths (length2) are ignored.

!

Two discrete lengths: Decode only those codes that contain two selected lengths. For example, if you select TWO_DISCRETE_LENGTHS and pass length values of 2 and 14, only the barcode symbols containing 2 or 14 characters are decoded.

!

Lengths within a specified range: Decode those codes that contain a specified range of characters. If you select LENGTH_WITHIN_RANGE and pass length values of 4 and 12, only the barcode symbols containing between 4 and 12 characters are decoded.

!

Any length: Decode specified barcode symbols containing any number of characters. The length values that you pass are ignored. Codes that contain one discreet length or two discreet lengths are ignored.

If Code 39 Full ASCII is enabled, try to use the LENGTH_WITHIN_RANGE or ANY_LENGTH options.

See Also ScanGetBarcodeLengths

3-26

Page 71

Barcode Parameter Functions

ScanSetConvert Purpose Converts decoded data to the specified format before transmission.

Prototype int ScanSetConvert ( ConvertType conversion, Boolean bEnable);

Parameters -> conversion

Must be one of the following values: UPCEtoUPCA UPCE1toUPCA EAN8toEAN13 CODE39toCODE32 I2OF5toEAN13 bEnable

Must be one of the following values: True=ENABLE False=DISABLE

Returned Status STATUS_OK If an error occurs, the returned status is one of the following: BAD_PARAM BATCH_ERROR

Comments Converting UPC-E to UPC-A - To transmit UPC-E (zero suppressed) decoded data, select DISABLE. After being converted, the data follows UPC-A format conventions, and is affected by UPC-A programming selections (such as preamble, check digit). Converting UPC-E1 to UPC-A - To transmit UPC-E1 (zero suppressed) decoded data, select DISABLE. After being converted, the data follows UPC-A format conventions and is affected by UPC-A programming selections (such as, preamble or check digit). 3-27