Unitech PA500 manual LED related function, Example

Page 26

6.2.5. Check Trigger key is pressing

Function Description:

This function is used to check if left or right trigger key is pressed or not.

Function call:

BOOL TriggerKeyStatus( int key);

Parameter(Input)

 

key: int: LEFT_TRIGGER_KEY

: left trigger key

RIGHT_TRIGGER_KEY

: right trigger key.

Return code:

 

TRUE = trigger is pressed.

 

FALSE = trigger is released.

 

Example:

 

#define kKeybdTriggerEventName

TEXT("KeybdTriggerChangeEvent")

#define kKeybdAlphaKeyEventName

TEXT("KBDAlphaKeyChangeEvent")

#define LEFT_TRIGGER_KEY 1

 

#define RIGHT_TRIGGER_KEY 2

 

gKeyEvents[0] = CreateEvent(NULL, TRUE, FALSE, kKeybdTriggerEventName); gKeyEvents[1] = CreateEvent(NULL, TRUE, FALSE, kKeybdAlphaKeyEventName);

while (1)

{

WaitForMultipleObjects(2, gKeyEvents, FALSE, INFINITE);

TriggerKeyStatus(LEFT_TRIGGER_KEY); TriggerKeyStatus(RIGHT_TRIGGER_KEY);

}

6.3.LED related function

Function Description:

There are two LEDs above the screen of PA500, red and green LEDs. Only the green LED can be controlled by programmer.

Function call:

void GoodReadLEDOn(BOOL fON)

Parameter(Input)

 

fON: BOOL:

TRUE = turn on LED.

 

FALSE = turn off green LED.

-

Image 26
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 dataSave setting to profiles Good read indicatorWait 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