Unitech PA500 manual Enable/Disable Scan2Key, Send scanner command to decoding chip

Page 14

2.22.Enable/Disable Scan2Key

Function Description:

Enable or disable Scan2Key to put scanned data to standard keyboard input buffer.

Scan2Key is enabled by default.

Function call:

BOOL S2K_Enable(BOOL enable, DWORD timeout);

Parameter: (input)

 

 

 

enable:

BOOL:

TRUE = Enable scanned data to keyboard buffer

 

 

FALSE

= Disable scanned data to keyboard

timeout:

 

DWORD:

when enable or disable Scan2Key, it will

 

 

wait until Scan2Key has been removed from memory or

 

 

timeout specified by this parameter.

Parameter: (output)

 

 

Return:

TRUE

: if successfully enabled Scan2Key,

 

otherwise FALSE

2.23.Send scanner command to decoding chip

Function Description:

Send scanner command to decoder chip. This command will send a serial of bytes to decoder chip as following: (Esc and BCC will be calculated and added automatically)

Esc, high-length, low-length, command-ID, operation, set, BCC

Please refer to complete command reference on section 4

BOOL HAM_SendCommand(BYTE highlen, BYTE lowlen, BYTE cmdID, BYTE op,

BYTE set);

Parameter: (input)

 

highlen:

BYTE: high byte of command length

lowlen:

BYTE: low byte of command length

cmdID:

BYTE: command ID

op:

BYTE: operation mode for this command

set:

BYTE: operand for this command

Return:

 

TRUE = Indicates the command has been successfully sent to queue to output.

2.24.Only send single command decoding chip

Function Description:

Send command to decoder chip. This is a variation of command HAM_SendCommand.

It sends following command to Hamster: (note, only two bytes without BCC)

Esc, 0x80+cmd

Function call:

BOOL HAM_SendCommand1(BYTE cmd);

Parameter: (input)

cmd: BYTE: command

Return:

TRUE = indicates the command has been successfully sent to queue to output.

-

Image 14
Contents PA500 Programming Manual Automatically enable scanner beam with pressing trigger key USI.DLL Unitech Scanner Interface DLLSCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Function call Parameter inputGet error code Enable / Disable ScannerReset Scanner Returns the system error codeParameter output Get scan dataFunction Description Get Symbology name Get length of scanned data Save setting to profiles Good read indicator Wait for acknowledgement of the last sent command Clear scan data system bufferAutomatically enable scanner beam with pressing trigger key Save scanner setting into specified fileChange scanner setting from specified setting profile Parameter output ReturnStop auto scanning function Check if auto scanning is enableTest if Scan2Key is enabled Check if Scan2Key.exe program is running or notOnly send single command decoding chip Enable/Disable Scan2KeySend scanner command to decoding chip Esc, 0x80+cmd Function callSend command to decoding chip Esc, parameter1, parameter2, …, BCCSpecial Command for control Control command for decoder chipEnable in Communication TRACK1,5 TRACK2,6 TRACK3 Code32setUpcaset CodabarsetLabelcode UpcesetUPC a Check barcode input Disable DecoderPTEnableBarcode Function call Return codeGet DLL version no Reset all symbologies to defaultRead barcode data PTEnableBarToKey Disable laser trigger keyEnable laser trigger key Function call for VC INT PTVersionvoid Return IntegerReturn code Bool True Caps lock False Caps unlock SysIOAPI.DLLKeypad Related Functions Return code True Shift lock False Shift unlockScanner Related Functions ParameterInputLED related function ExampleLCD/Backlight related function ParametersInputDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb