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 5 of 21

Symbol Palm Terminal Scanner System Software Manual: Chapter 2 Scanner Commands, pages 27 to 36

Pages 27 to 36 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 27

Scanner Commands

ScanCmdLedOn Purpose Immediately turns on the scanner’s green LED. Prototype int ScanCmdLedOn ( void);

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

Comments The LED stays on until the ScanCmdLedOff command is sent. See Also ScanCmdLedOff

2-11

Page 28

Symbol Palm Terminal Scanner System Software Manual

ScanCmdParamDefaults Purpose Sets all parameters to the factory-installed defaults. Prototype int ScanCmdParamDefaults ( void);

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

2-12

Page 29

Scanner Commands

ScanCmdScanDisable Purpose Prevents the scanner from activating the laser when the trigger is pressed or a ScanCmdStartDecode command is received.

Prototype int ScanCmdScanDisable ( void);

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

See Also ScanCmdScanEnable

2-13

Page 30

Symbol Palm Terminal Scanner System Software Manual

ScanCmdScanEnable Purpose Permits the scanner to activate the laser when the trigger is pressed or a ScanCmdStartDecode command is received.

Prototype int ScanCmdScanEnable ( void);

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

See Also ScanCmdScanDisable

2-14

Page 31

Scanner Commands

ScanCmdSendParams Purpose Sends to the scanner any parameters changed by your application. Also can initiate a beep when the parameters have been successfully changed.

Prototype int ScanCmdSendParams( BeepType beep);

Parameters -> beep

Set this parameter to one of the BeepType values listed in the ScanMgrDef.h header file. If you do not want a beep, send the NO_BEEP parameter.

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

Comments This function transmits the scanner parameter values set by other functions. If you do not call ScanCmdSendParams after you have called all of your “set” functions, the settings will not take effect. The values you set are permanent and will persist until either the terminal is reset or until you perform a ScanCmdParamDefaults command. The beep parameter is the sound the beeper should make when the parameters have been successfully changed.

2-15

Page 32

Symbol Palm Terminal Scanner System Software Manual

ScanCmdStartDecode Purpose Instructs the scanner to turn on the laser and begin decoding a barcode.

Prototype int ScanCmdStartDecode ( void);

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

Comments This command only initiates a scanning session if the trigger mode is set to Host (see ScanSetTriggeringModes). If the scanner was previously set to aim mode by the ScanCmdAimOn command, this command initiates a laser pointer operation. The laser remains on for the value set in ScanSetLaserOnTime x 10.

See Also ScanCmdStopDecode

2-16

Page 33

Scanner Commands

ScanCmdStopDecode Purpose Instructs the scanner to abort a decode attempt. Prototype int ScanCmdStopDecode ( void);

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

See Also ScanCmdStartDecode

2-17

Page 34

Symbol Palm Terminal Scanner System Software Manual

ScanGetAimMode Purpose Identifies whether the scanner is in “normal mode” or “aim” mode (for use as a laser pointer). Note: SPT 170x0-2D does not support aim mode.

Prototype int ScanGetAimMode ( void);

Returned Status Zero=normal mode Non-zero=Aim mode

See Also ScanCmdAimOn ScanCmdAimOff

2-18

Page 35

Scanner Commands

ScanGetDecodedData Purpose Retrieves the decoded data from the last scan. Also fills in the DECODE_DATA_STRUCT structure with barcode type, length, and checksum information.

Prototype int ScanGetDecodedData ( MESSAGE *ptr);

Parameters -> ptr

A pointer to the user-allocated DECODE_DATA_STRUCT where the decoded data is to be placed.

-> ptr->length

Number of characters in the decoded data string.

-> ptr->data

Contains the decoded data.

-> ptr->data

Start of the packet.

[ptr->length] -> ptr->type

Checksum. The type of barcode that was decoded: BCTYPE_NOT_ APPLICABLE BCTYPE_BOOKLAND_EAN BCTYPE_COUPON_CODE BCTYPE_CODABAR BCTYPE_CODE32 BCTYPE_CODE39 BCTYPE_CODE39_FULL_ ASCII BCTYPE_CODE93 BCTYPE_CODE128 BCTYPE_D2OF5 BCTYPE_EAN8 BCTYPE_EAN8_2 SUPPLEMENTALS BCTYPE_EAN8_5 SUPPLEMENTALS 2-19

Page 36

Symbol Palm Terminal Scanner System Software Manual

BCTYPE_EAN13_5 SUPPLEMENTALS BCTYPE_EAN13 BCTYPE_EAN13_2 SUPPLEMENTALS BCTYPE_EAN128 BCTYPE_I2OF5 BCTYPE_IATA2OF5 BCTYPE_ISBT128 BCTYPE_MSI_PLESSEY BCTYPE_TRIOPTIC_ CODE39 BCTYPE_UPCA BCTYPE_UPCA_2 SUPPLEMENTALS BCTYPE_UPCA_5 SUPPLEMENTALS BCTYPE_UPCE0 BCTYPE_UPCE0_2 SUPPLEMENTALS BCTYPE_UPCE0_5 SUPPLEMENTALS BCTYPE_UPCE1 BCTYPE_UPCE1_2 SUPPLEMENTALS BCTYPE_UPCE1_5 SUPPLEMENTALS BCTYPE_PDF417

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

Comments Typically, an application calls this function in response to an EVENT_DECODE_DATA type of event. 2-20