Unitech PA500 manual Scanner Related Functions, ParameterInput

Page 25

6.2.Scanner Related Functions

To save power, the decoder IC is disabled when scanner is not in use. It can be enabled through USI functions. Following functions are meaningful only if decode IC is enabled.

6.2.1. Enable/Disable Scanner trigger key

Function Description:

This function enables/disables trigger keys.

Function call:

void EnableScannerTrigger(BOOL fOn)

Parameter (Input)

 

fON: BOOL:

TRUE = enable trigger keys.

Return code:

FALSE = disable trigger keys.

 

6.2.2. Turn on/off Scan Engine

 

Function Description:

 

This function emulates trigger keys to turn scan engine on or off. It functions even if trigger keys are disabled.

Function call:

void SetScannerOn(BOOL fON)

Parameter(Input)

 

 

fON:

BOOL:

TRUE = turn scan engine on.

Return code:

none

False= turn scan engine off.

 

6.2.3. Get Trigger keys Status

Function Description:

This function returns enable/disable status of trigger keys.

Function call:

BOOL GetScannerTrigger(void)

Return code:

TRUE = trigger keys are enabled.

FALSE = trigger keys are disabled.

6.2.4. Get Scanner Status

Function Description:

This function returns the status of scan engine, or trigger key.

Function call:

BOOL GetScannerStatus(void)

Return code:

TRUE = scan engine is on, or trigger key is pressed.

FALSE = scan engine is off, or trigger key is released.

-

Image 25
Contents PA500 Programming Manual USI.DLL Unitech Scanner Interface DLL Automatically enable scanner beam with pressing trigger keySCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Parameter input Function callReset Scanner Enable / Disable ScannerGet error code Returns the system error codeFunction Description Get scan dataParameter output Get length of scanned data Get Symbology nameWait for acknowledgement of the last sent command Good read indicatorSave setting to profiles Clear scan data system bufferChange scanner setting from specified setting profile Save scanner setting into specified fileAutomatically enable scanner beam with pressing trigger key Parameter output ReturnTest if Scan2Key is enabled Check if auto scanning is enableStop auto scanning function Check if Scan2Key.exe program is running or notSend scanner command to decoding chip Enable/Disable Scan2KeyOnly send single command decoding chip Esc, 0x80+cmd Function callEsc, parameter1, parameter2, …, BCC Send command to decoding chipControl command for decoder chip Special Command for controlEnable in Communication Code32set TRACK1,5 TRACK2,6 TRACK3Labelcode CodabarsetUpcaset UpcesetUPC a PTEnableBarcode Function call Disable DecoderCheck barcode input Return codeRead barcode data Reset all symbologies to defaultGet DLL version no Enable laser trigger key Disable laser trigger keyPTEnableBarToKey Function call for VC INT PTVersionvoid Return IntegerKeypad Related Functions SysIOAPI.DLLReturn code Bool True Caps lock False Caps unlock Return code True Shift lock False Shift unlockParameterInput Scanner Related FunctionsExample LED related functionParametersInput LCD/Backlight related functionDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb