background image

 

 - 

Mterminator Esc,0,4,31,m,S1,BCC

   

No meaning for you 

Here S1 is 0_ENTER,1 NONE 

Sentinal Esc,0,4,32,m,S1,BCC

   

No meaning for you 

S1 is 0 not send,1 send 

Track_selection 

Esc,0,4,33,m,S1,BCC

   

No meaning for you 

Here S1 is =0_ALL TRACKS,1 TRACK1 AND TRACK2,2 
TRACK1 AND TRACK3,3 TRACK2 AND TRACK3,4 
TRACK1,5 TRACK2,6 TRACK3 

T2_account_only 

Esc,0,4,34,m,S1,BCC

   

No meaning for you 

S1 is 0_NO,1 YES 

Separator Esc,0,4,35,m,S1,BCC

   

No meaning for you 

S1 is 1 CHARACTER 

Must_have_data 

Esc,0,4,36,m,S1,BCC

   

No meaning for you 

S1 is 0 YES,1_NO 

Track1_sequence Esc,0,L,37,m,S1,…Si,BCC 

 

No meaning for you 

Si can be 1 to 16 CHARACTERS 

Track2_sequence Esc,0,L,38,m,S1,…Si,BCC 

 

No meaning for you 

Si can be 1 to 8 CHARACTERS 

Code39_set Esc,0,4,39,m,S1,BCC S1.B0 is for Code39_enable,S1.B1 is for 

Code39_standard,S1.B3B2 for Code39_cd,S1.B4 Code39_ss 

Code39_enable 

Esc,0,4,3a,m,S1,BCC S1 is 0 disable,1_enable 

Code39_sandard 

Esc,0,4,3b,m,S1,BCC 

S1 is    0_full ASCII,1 standard 

Code39_cd: Esc,0,4,3c,m,S1,BCC  S1 is 

0 calculate&send,1 calculate&not send,2_not calculate 

Code39_ss Esc,0,4,3d,m,S1,BCC 

Here 

S1 is 0 SS send,1_SS not send 

Code39_min Esc,0,4,3e,m,S1,BCC  S1 

is 0~48:0  (min<=data len) 

Code39_max Esc,0,4,3f,m,S1,BCC  S1 is 0~48:48 (data len<=max) 
I2of5_set Esc,0,4,40,m,S1,BCC 

S1 is S1.B0 is for I2of5_enable,S1.B1 is for 
I2of5_fixlength,S1.B3B2 is for I2of5_cd,S1.B5B4 is for 
I2of5_ss 

I2of5_enable 

Esc,0,4,41,m,S1,BCC S1 

is =0 disable,1_enable 

I2of5_fixlength 

Esc,0,4,42,m,S1,BCC 

S1 is =0 on,1_off (record first 3 record len) 

I2of5_cd Esc,0,4,43,m,S1,BCC 

S1 

is =0 calculate&send,1 calculate&not send,2_no calculation 

I2of5_ss Esc,0,4,44,m,S1,BCC 

S1 is 0 first digit suppressed,1 last digit suppressed,2_not 
supressed 

I25_min Esc,0,4,45,m,S1,BCC 

S1 is 2~64:10 (min<=data len) 

I25_max Esc,0,4,46,m,S1,BCC 

S1 is 2~64:64 (data len<=max) 

S2of5_set Esc,0,4,47,m,S1,BCC 

S1 is S1.b0 is for S2of5_enable,S1.b1 is for 
S2of5_fixlength,S1.b3b2 is for S2of5_cd 

S2of5_enable 

Esc,0,4,48,m,S1,BCC S1 is 0_disable,1 enable 

S2of5_fixlength 

Esc,0,4,49,m,S1,BCC 

S1 is 0_on,1 off (record first 3 record len) 

S2of5_cd Esc,0,4,4a,m,S1,BCC 

S1 is 0 calculate&send,1 calculate&not send, 
2_not calculate 

S25_min Esc,0,4,4b,m,S1,BCC 

S1 is 1~48:4 (min<=data len) 

S25_max Esc,0,4,4c,m,S1,BCC 

S1 is 1~48:48 (data len<=max) 

Code32_set 

Esc,0,4,4d,m,S1,BCC 

S1 is S1.b0 is for Code32_enable,S1.b1 is for 
Code32_sc,S1.b2 is for Code32_lc 

Code32_enable 

Esc,0,4,4e,m,S1,BCC S1 is 0_disable,1 enable 

Code32_sc Esc,0,4,4f,m,S1,BCC S1 

is 0_leading char send,1 not send 

Code32_lc Esc,0,4,50,m,S1,BCC 

S1 

is 0_tailing char send,1 not send 

Telepen Esc,0,4,51,m,S1,BCC

   

 

S1 is S1.b0 is for Telepen_enable,S1.b1 is for 
Telepen_charset 

Telepen_enable 

Esc,0,4,52,m,S1,BCC S1 is 0_disable,1 enable 

Telepen_charset 

Esc,0,4,53,m,S1,BCC S1 

is 0_standard,1 numeric 

Ean128 

Esc,0,4,54,m,S1,BCC 

S1 is S1.b0 is for Ean128_id, S1.b1 is for Ean128_id 

Ean128_enable 

Esc,0,4,55,m,S1,BCC S1 is 0 disable,1_enable 

Ean128_id Esc,0,4,56,m,S1,BCC 

S1 

is 0 ID disable,1_ID enable 

Ean128_func1 

Esc,0,4,57,m,S1,BCC 

S1 is 1 char 

Code128 Esc,0,4,58,m,S1,BCC 

S1 is 0 disable,1_enable 

Code128_min Esc,0,4,59,m,S1,BCC  S1 is 1~64:1 (min<=data len) 
Code128_max Esc,0,4,5a,m,S1,BCC 

S1 is 1~64:64 (data len<=max) 

Summary of Contents for PA500

Page 1: ...PA500 Programming Manual V 1 2 1 15 2008...

Page 2: ...2 10 Clear scan data system buffer 11 2 11 Good read indicator 11 2 12 Wait for acknowledgement of the last sent command 11 2 13 Save setting to profiles 11 2 14 Save scanner setting into specified fi...

Page 3: ...23 5 1 Enable Decoder 23 5 2 Disable Decoder 23 5 3 Get DLL version no 23 5 4 Disable laser trigger key 23 5 5 Enable laser trigger key 23 5 6 Reset all symbologies to default 23 6 SYSIOAPI DLL 24 6...

Page 4: ...acklight Status 27 6 4 3 Screen Backlight Brightness Control 27 7 DYNAMIC LOAD DLL 28 8 USEFUL FUNCTION CALL WITHOUT INCLUDE SYSIOAPI DLL 29 8 1 Warm boot Cold boot and power off 29 8 2 GET DEVICE ID...

Page 5: ...are not familiar with barcode and serial port controls Because of this Unitech provides the following utility library and program for the user or application programmer to control the Decoder Chip 1...

Page 6: ...6 1 2 COM definition for PA500 COM 1 Reserve COM2 Scanner Hamster COM 3 IrDAComm COM 4 Bluetooth Modem COM 5 RawIR COM 6 BTModem UART...

Page 7: ...l receive custom message about msgID and wParam parameter can be one of the followings SM_ERROR_SYS Indicates a system error which is caused by a call to the system function Param contains the error c...

Page 8: ...ion Set the scanner to the working mode and reset the communication control Function call BOOL USI_Reset Return Always TRUE 2 5 Get error code Function Description Returns the error code SERR_ Functio...

Page 9: ...ch is defined on USI H Please refer to below list BCT_CODE_39 Code 39 BCT_CODABAR CodaBar BCT_CODE_128 Code 128 BCT_INTERLEAVED_2OF5 Interleaves 2 of 5 BCT_CODE_93 Code 93 BCT_UPC_A UPC A BCT_UPC_A_2S...

Page 10: ...T_UPC_A UPC A BCT_UPC_A_2SUPPS UPC A with 2 Supps BCT_UPC_A_5SUPPS UPC A with 5 Supps BCT_UPC_E0 UPC E BCT_UPC_E0_2SUPPS UPC E with 2 Supps BCT_UPC_E0_5SUPPS UPC E with 5 Supps BCT_EAN_8 EAN 8 BCT_EAN...

Page 11: ...ngs DLLLEDCONTROL UPI300 DLL The function prototype of GoodReadLEDOn is VOID WINAPI GoodReadLEDOn BOOL fon Turn on when fon is TRUE and turn off when fon is FALSE 2 12 Wait for acknowledgement of the...

Page 12: ...ttings remain unchanged Return TRUE success FALSE error 2 16 Automatically enable scanner beam with pressing trigger key Function Description Start auto scanning Scan engine will be automatically trig...

Page 13: ...aded Return NULL Scan2Key is not running Non NULL indicates scan2key is running It actually returns window handle for scan2key but it is for internal use send messages 2 20 Test if Scan2Key is enabled...

Page 14: ...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...

Page 15: ...as in following format and send it to decoder chip Esc parameter1 parameter2 BCC The total number of parameters is specified by first parameter num Function call BOOL HAM_SendCommand2 BYTE num BYTE p...

Page 16: ...ain ACK Esc 80H ACK 06H It is from Hamster to Host If Hamster receive a command and this command do not need send message back Hamster reply the ACK NAK Esc 80H NAK 15H It is from Hamster to Host Hams...

Page 17: ...E PRESS ONE SCAN 4 7 reserved Label_type Esc 0 4 19 m S1 BCC S1 is 0_POSITIVE 1 POSITIVE AND NEGATIVE Aim_fuction Esc 0 4 1a m S1 BCC S1 is 0_DISABLE 1 ENABLE Scan_pre_data Esc 0 L 1b m S1 Si BCC Si c...

Page 18: ...d len I2of5_cd Esc 0 4 43 m S1 BCC S1 is 0 calculate send 1 calculate not send 2_no calculation I2of5_ss Esc 0 4 44 m S1 BCC S1 is 0 first digit suppressed 1 last digit suppressed 2_not supressed I25_...

Page 19: ...data len Codabar_max Esc 0 4 70 m S1 BCC S1 is 3 48 48 Label_code Esc 0 4 71 m S1 BCC S1 is S1 b0 is for Label_c_enable S1 b1 is for Label_code_cd Label_c_enable Esc 0 4 72 m S1 BCC S1 is 0_disable 1...

Page 20: ...ime Esc 0 4 93 m S1 BCC S1 is 0 0 5s 1_1s 2 1 5s 3 2s Exchange data Esc Lh Ll a3 S1 S2 Sn BCC Expect Acknowledge Esc 80H ACK 06H Exchange the data between the host and the ICC Expected return after is...

Page 21: ...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 Disab...

Page 22: ...8H Code 128 09H Code 93 0Ah STD 25 0BH MSI 0CH EAN 128 0DH Code 32 0EH DELTA 0FH LABEL 10H PLESSEY 11H Code 11 12H TOSHIBA Return code TRUE There is barcode input FALSE No Barcode Input 4 5 Get DLL ve...

Page 23: ...ch 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 IN...

Page 24: ...ing guide 6 1 Keypad Related Functions 6 1 1 Disable enable power button Function Description To enable disable power button Function call VOID DisablePowerButton BOOL Parameter Input TRUE Disable pow...

Page 25: ...es 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 False turn scan...

Page 26: ...KeyEventName 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 k...

Page 27: ...er Input fON BOOL TRUE turn on screen backlight FALSE turn off backlight Return code 6 4 2 Get Screen Backlight Status Function Description This function returns the status of screen backlight Functio...

Page 28: ...R sdk int blen lpfnUSI_GetScannerVersion USI_GetScannerVersion g_hUSIDLL LoadLibrary L Windows USI dll if g_hUSIDLL NULL USI_GetScannerVersion lpfnUSI_GetScannerVersion GetProcAddress g_hUSIDLL TEXT U...

Page 29: ...AR outBuf 512 szProductID 100 stringBuffer 100 BYTE szBuff 255 DWORD bytesReturned char platformID 64 pDeviceID PDEVICE_ID outBuf pDeviceID dwSize sizeof outBuf if KernelIoControl IOCTL_HAL_GET_DEVICE...

Page 30: ...9 Update notes V1 0 The first version V1 1 COM port error correction on section 1 2 V1 2 Change logo...

Reviews: