Unitech PA500 Disable Decoder, Check barcode input, Return code, PTEnableBarcode Function call

Page 21

4. Scanner3.DLL – Backward compatible API for PT930/PT930S’s Scanner3.dll

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

4.1.Enable Decoder

Function Description: This function will open COM2 port, create a thread to get any barcode input from Decoder Chip, and then store input data in the system buffer. Application can use function call PT_GetBarcode() to get input data from the system buffer.

Function call:

INT PT_EnableBarcode(VOID);

Return code:

=1 Create new thread fail

=2 Cannot re-enable

=3 Cannot open COM2

=4 Upload parameter from Hamster fail

=0 OK

4.2.Disable Decoder

Function Description:

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

PT_EnableBarcode()

Function call:

VOID PT_DisableBarcode( VOID );

4.3.Check barcode input

Function Description:

This function is used to check whether there is available barcode data on system buffer which is successfully decoded by decoder chip.

Function call:

BOOL PT_CheckBarcode( VOID );

Return code:

TRUE = There is input data on system buffer.

FALSE = There is no data on system buffer.

-

Image 21
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 codeGet scan data Function DescriptionParameter 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 codeReset all symbologies to default Read barcode dataGet 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