Unitech PA500 manual Disable laser trigger key, Enable laser trigger key, PTEnableBarToKey

Page 23
Function call for VC:
Return code: =1 =2 =3 =4 =0

5. ScanKey3.DLL – Backward compatible API for PT930/PT930S’s ScanKey3.dll

Note : For PA500, it need to dynamically load DLL for using Unitech built-in DLL (Unitech will not provide “USI.H” and “USI.LIB” for compiler), please refer to Chapter 7 for programming guide.

5.1.Enable Decoder

Function Description: This function will open COM2 port, create a thread to get any barcode input from Decoder Chip, and then send scanner data to keyboard buffer. User application can get input data just like standard keyboard input.

int PT_EnableBarToKey(VOID) Create new thread fail Can not re-enable

Can not open COM2

Upload parameter from Hamster fail

OK

5.2.Disable Decoder

Function Description: This function will close COM2 port and then remove thread which is created by

PT_EnableBarToKey()

Function call for VC: VOID PT_DisableBarToKey ( VOID )

5.3.Get DLL version no

Function description: This function is used to get DLL version number.

Function call for VC: INT PT_Version(void);

Return : Integer

5.4.Disable laser trigger key

Function Description:

This function only stop trigger key to activate laser beam, so COM2 port is still open. This function call is useful when some fields is only allow keyboard input..

Function call for VC:

int PT_StopScan (VOID)

5.5.Enable laser trigger key

Function Description: This function only stop trigger key to activate laser beam, so COM2 port is still open. This function call is useful when some fields is only allow keyboard input..

Function call for VC: int PT_StartScan (VOID)

5.6.Reset all symbologies to default

Function Description: This function call will reset decoder chip's symbologies setting to system default value

Function call for VC: int PT_ SetToDefault (VOID) Function call for VB: PT_ SetToDefault

-

Image 23
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 callReturns the system error code Enable / Disable ScannerReset Scanner Get error codeParameter output Get scan dataFunction Description Get length of scanned data Get Symbology nameClear scan data system buffer Good read indicatorWait for acknowledgement of the last sent command Save setting to profilesParameter output Return Save scanner setting into specified fileChange scanner setting from specified setting profile Automatically enable scanner beam with pressing trigger keyCheck if Scan2Key.exe program is running or not Check if auto scanning is enableTest if Scan2Key is enabled Stop auto scanning functionEsc, 0x80+cmd Function call Enable/Disable Scan2KeySend scanner command to decoding chip Only send single command decoding chipEsc, parameter1, parameter2, …, BCC Send command to decoding chipControl command for decoder chip Special Command for controlEnable in Communication Code32set TRACK1,5 TRACK2,6 TRACK3Upceset CodabarsetLabelcode Upcaset UPC a Return code Disable DecoderPTEnableBarcode Function call Check barcode inputGet DLL version no Reset all symbologies to defaultRead barcode data Function call for VC INT PTVersionvoid Return Integer Disable laser trigger keyEnable laser trigger key PTEnableBarToKeyReturn code True Shift lock False Shift unlock SysIOAPI.DLLKeypad Related Functions Return code Bool True Caps lock False Caps 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