The text of a manual · part 7 of 21
Symbol Palm Terminal Scanner System Software Manual: Chapter 3 Barcode Parameter Functions, pages 45 to 53
Pages 45 to 53 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 45
Chapter 3 Barcode Parameter Functions Introduction The Scan Manager functions described in this chapter give you the ability to control how the scanner handles various types of barcodes. These functions allow your application to control the following types of settings: !
Which specific barcode types will be decoded
!
Which specific barcode lengths will be decoded
!
Which conversions will be performed on the decoded data
!
Whether to decode Universal Product Code (UPC) preamble and supplemental data
!
How many times a barcode is to be scanned to ensure an accurate decode (redundancy)
The Scan Manager software places events into your application’s event queue to notify you of pertinent scanner events. The following scanner events, at a minimum, should be handled by your application: !
Decode Event
!
Scanning Error
3-1
Page 46
Symbol Palm Terminal Scanner System Software Manual
Returned Status Definitions The function calls listed in this chapter may return one of the status codes described in Table 3-1. Table 3-1. Returned Status Codes STATUS CODE
DEFINITION
Any non-negative value (0 to 32767)
Parameter value.
STATUS_OK
The function’s parameters were verified. If a function must wait for an ACK from the scanner, STATUS_OK indicates that the ACK was received.
NOT_SUPPORTED
The last packet received from the scanner generated either a NAK_DENIED or NAK_BAD_CONTEXT status. This usually indicates that the specified parameter is not supported by this scanner, or the scanner was unable to comply with the request.
COMMUNICATIONS_ERROR Either a timeout condition or the maximum number of retries (or both) occurred. The previous transmit message was not verified through an ACK, and therefore, is questionable.
3-2
BAD_PARAM
One or more of the function call parameters supplied by the user was not in the expected range.
BATCH_ERROR
The limits of a batch function have been exceeded. Unless otherwise indicated, functions that start with ScanSet are responsible for generating a batch command to establish scanner parameters. The parameters are not sent to the scanner until the ScanCmdSendParams() function is called, at which time a new batch is started.
ERROR_UNDEFINED
An error condition exists that is not specifically associated with the scanner or its communications.
Page 47
Barcode Parameter Functions
Barcode Types Table 3-2 lists the barcode types that can be enabled by the parameter functions in this chapter. Table 3-2. Barcode Types BARCODE TYPE
PAGE
Codabar Barcode Parameter Functions
3-4
Code 32 Barcode Parameter Functions
3-9
Code 39 Barcode Parameter Functions
3-12
General Barcode Parameter Functions
3-17
I 2 of 5 Barcode Parameter Functions
3-30
MSI Plessey Barcode Parameter Functions 3-33 UPC/EAN Barcode Parameter Functions
3-38
The actual parameter functions for each barcode type are listed in the appropriate section.
3-3
Page 48
Symbol Palm Terminal Scanner System Software Manual
Codabar Barcode Parameter Functions Table 3-3 lists the Codabar barcode parameter functions described in this section. Table 3-3. Codabar Barcode Parameter Functions
3-4
PARAMETER FUNCTION
PAGE
ScanGetClsiEditing
3-5
ScanGetNotisEditing
3-6
ScanSetClsiEditing
3-7
ScanSetNotisEditing
3-8
Page 49
Barcode Parameter Functions
ScanGetClsiEditing Purpose Identifies whether the start and stop characters are being stripped from a 14-character Codabar symbol, and a space is being inserted after the first, fifth, and tenth characters.
Prototype int ScanGetClsiEditing ( void);
Returned Status Zero=DISABLE >zero=ENABLE If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetClsiEditing
3-5
Page 50
Symbol Palm Terminal Scanner System Software Manual
ScanGetNotisEditing Purpose Identifies whether the start and stop characters are being stripped from a 14-character Codabar symbol.
Prototype int ScanGetNotisEditing ( void);
Returned Status Zero=DISABLE >zero=ENABLE If an error occurs, the returned status is one of the following: COMMUNICATIONS_ERROR NOT_SUPPORTED
See Also ScanSetNotisEditing
3-6
Page 51
Barcode Parameter Functions
ScanSetClsiEditing Purpose When enabled, strips the start and stop characters from a 14-character Codabar symbol, and inserts a space after the first, fifth, and tenth characters.
Prototype int ScanSetClsiEditing ( Boolean bEnable);
Parameters -> 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
See Also ScanGetClsiEditing
3-7
Page 52
Symbol Palm Terminal Scanner System Software Manual
ScanSetNotisEditing Purpose When enabled, strips the start and stop characters from a 14-character Codabar symbol.
Prototype int ScanSetNotisEditing ( Boolean bEnable);
Parameters -> 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
See Also ScanGetNotisEditing
3-8
Page 53
Barcode Parameter Functions
Code 32 Barcode Parameter Functions Table 3-4 lists the Code 32 barcode parameter functions described in this section. Table 3-4. Code 32 Barcode Parameter Functions PARAMETER FUNCTION
PAGE
ScanGetCode32Prefix
3-10
ScanSetCode32Prefix
3-11
3-9