background image

 

PI1X Basic Programming Manual    Ver. 1.10                                                                                       

 

18/156   

 

ON … GOSUB …

 

Purpose

  To call one of the specified subroutines depending on the 

value of the expression. 

Syntax

 

ON N% GOSUB SubLabel| SubName {,SubLabel| 

SubName}

 

Example

  D% = DAY_OF_WEEK 

ON D% GOSUB MON, THE, WED, THR, FRI, SAT, SUN 

WHILE INKEY$="" 

WEND 

END 

MON: 

  PRINT "MONDAY" 

  RETURN 

THE: 

  PRINT "TUESDAY" 

  RETURN 

WED: 

  PRINT "WEDNESDAY" 

  RETURN 

THR: 

  PRINT "THURSDAY" 

  RETURN 

FRI: 

  PRINT "FRIDAY" 

  RETURN 

SAT: 

  PRINT "SATURDAY" 

  RETURN 

SUN: 

  PRINT "SUNDAY" 

  RETURN 

Description

 

N%

 is a numeric expression that is rounded to an integer. The 

value of N% determines which subroutine is to be called. If 

the value of N% is 0 or greater than the number of routines 

listed, the interpreter will continue with the next executable 

statement. 

SubLabel

 is the name of a subroutine. 

Содержание PI-10X0

Страница 1: ...PI 10X0 PI 12X0 Basic Programming Manual Version 2 05 Copyright 2017 by ARGOX Information Co Ltd http www argox com ...

Страница 2: ...re use PI 10X0 PI 12X0 series Basic interpreter provides a platform for users to develop application programs to be excuted on the PI1 series data terminals using BASIC language Users can develop an application to meet their own individual needs efficiently You ll soon learn how to use BASIC language to write application programs Please proceed and enjoy the perfect combination of PI 10X0 PI 12X0 ...

Страница 3: ...riables 8 2 3 Expression and Operators 8 2 3 1 Assignment Operator 9 2 3 2 Arithmetic Operator 9 2 3 3 Relational Operator 9 2 3 4 Logical Operator 9 2 4 Operator Precedence 10 2 5 Labels 10 2 6 Subroutines 11 2 7 Exit program 12 2 8 Special notes 12 3 Command Sets 13 3 1 General commands 13 3 2 Commands for decision structures 17 3 3 Commands for looping structures 20 3 4 Commands for string proc...

Страница 4: ...I 1060 commands 118 3 22 Simulator Only for PC simulator commands 119 4 Appendices 120 Appendix A 120 PI series Basic Commands list 120 A1 General commands 120 A2 Commands for decision structures 120 A3 Commands for looping structures 121 A4 Commands for string processing 121 A5 Commands for event trapping 122 A6 System commands 122 A7 Reader commands 123 A8 Buzzer commands 124 A9 Calendar and tim...

Страница 5: ...al Ver 1 10 4 156 A20 LinkingPort commands 130 A21 RFHOST commands 130 A22 Simulator Only for PC simulator commands 131 Appendix B 132 Scan Module CCD Configuration Table 132 Appendix C 144 Scan Module 2D Configuration Table 144 ...

Страница 6: ...u by pressing the power key 1 1 1 Run program If the BASIC program file xxx bas in the direct path D Program then you can run the BASIC program now If the BASIC program file xxx bas is not in the direct path D Program then the following message will prompt you 1 1 2 Remote Link You can use this item to download program file or download upload other files ...

Страница 7: ...PI1X Basic Programming Manual Ver 1 10 6 156 1 1 3 Information You can use this item to get version information of all software and firmware parts of the system ...

Страница 8: ...d negative numbers Numeric constants in BASIC cannot contain commas There are two types of numeric constants that can be used in the PI Basic interpreter Integer constants 2147483648 2147483647 Real number constants Positive or negative real number that contain a decimal point such as 1 23 or 3 5897 2 2 Variables Variable are symbols used to represent data items such as numerical values or charact...

Страница 9: ...y is a group or table of values referenced by the same variable name Each element in an array is referenced by an array variable that is subscripted with an integer or an integer expression Each element in an array is referenced by an array variable that is subscripted with an integer or an integer expression In PI Basic the maximum number of dimensions for an array is 2 For example A 8 one dimens...

Страница 10: ...o arithmetic A B MOD C 2 3 3 Relational Operator Relational operators are used to compare two values Result of the comparison is either True or False Operator Operation Example Equality A B Inequality A B Greater than A B Less than A B Greater than or equal to A B Less than or equal to A B 2 3 4 Logical Operator Logical operators perform tests on multiple relations and Boolean operations Logical o...

Страница 11: ...Order of Precedence Type of Operation symbol Highest Arithmetic Arithmetic MOD Arithmetic Relational Logical NOT AND OR XOR Lowest Assignment 2 5 Labels Line labels are used to represent some special lines in the BASIC program They can be either integer numbers or character strings A valid integer number for the line label is in the range from 1 to 65279 A character string label can have up to 204...

Страница 12: ...o subroutines A subroutine will be executed when being called by a GOSUB command For example ON COM 1 GOSUB ReadCOM ReadCOM RETURN The command RETURN marks the end of the subroutine and tells the processor to return to the caller A subroutine has to be appended at the end of the main BASIC program A subroutine can be defined with or without a pair of brackets For example GOSUB FUN GOSUB Place GOSU...

Страница 13: ...gram you can use END to exit the program The system will go to BASIC Menu PRINT Press key to exit WHILE INKEY WEND END 2 8 Special notes Commands have to be appeared in uppercase letters PRINT OK right print NG error Variable names are case sensitive ABC ABc AbC Three kind of different variables ARGO ARGO ARGO Three kind of different variables ...

Страница 14: ...2 Description A is numeric variable to be assigned to the absolute value of a numeric expression N or N is a numeric expression it can be an integer or a real number DIM Purpose To specify the maximum value of variable subscripts and to allocate storage accordingly Syntax DIM Array range range Array range range Example DIM A 8 B 5 5 C 6 Description Array is an array variable Range can be an intege...

Страница 15: ...tion SubName is the name of a subroutine SubLabel is the line label of a subroutine SubNumber is the line number of a subroutine GOTO Purpose To branch unconditionally to a specified line number or line lable from the normal program sequence Syntax GOTO LineNumber LineLabel Example GOTO FUN 100 PRINT NUMBER WHILE INKEY WEND END FUN PRINT LABEL NAME GOTO 100 Description LineNumber is the integer nu...

Страница 16: ... REM Purpose To insert explanatory remarks in a program Syntax REM remark or remark Example REM This is function This is BASIC program Description remark may be any sequence of characters BASIC interpreter will ignore whatever follows the REM or until end of the line SET_PRECISION Purpose To set the precision of the decimal points for printing real number expression Syntax SET_PRECISION N Example ...

Страница 17: ...matical sign or of a given numeric expression Syntax A SGN N or A SGN N Example A SGN 9 86 PRINT A B SGN 5 68 PRINT B B SGN 0 PRINT B Description N or N is a numeric expression it can be an integer or a real number A is an integer variable to be assigned to the result A Meaning 1 N 0 0 N 0 1 N 0 ...

Страница 18: ...ne conditional execution Syntax IF condition1 THEN statements1 ELSE IF condition2 THEN statements2 ELSE elsestatements END IF Example PRINT Input a number Result INPUT K IF K 10 THEN PRINT One digit ELSE IF K 100 THEN PRINT Two digits ELSE PRINT Over one Hundry END IF Description condition is a logical expression statements can be multiple lines of BASIC statements ...

Страница 19: ...END MON PRINT MONDAY RETURN THE PRINT TUESDAY RETURN WED PRINT WEDNESDAY RETURN THR PRINT THURSDAY RETURN FRI PRINT FRIDAY RETURN SAT PRINT SATURDAY RETURN SUN PRINT SUNDAY RETURN Description N is a numeric expression that is rounded to an integer The value of N determines which subroutine is to be called If the value of N is 0 or greater than the number of routines listed the interpreter will con...

Страница 20: ...ND 2 PRINT TUESDAY END 3 PRINT WEDNESDAY END 4 PRINT THURSDAY END 5 PRINT FRIDAY END 6 PRINT SATURDAY END 7 PRINT SUNDAY END Description N is a numeric expression which is rounded to an integer The value of N determines which line lable in the list will be used for branching If the value N is 0 or greater than the number of line labels listed the interpreter will continue with the next executable ...

Страница 21: ...of times Syntax FOR N startvalue TO endvalue STEP step Statement Block NEXT Example FOR N 1 TO 6 STEP 1 PRINT FOR NEXT N NEXT Description N is an integer variable to be used as loop counter Startvalue is a mumeric expression which is the initial value for the loop counter Endvalue is a numeric expression which is the final value for the loop counter Step is a numeric expression to be used as an in...

Страница 22: ...ND Example N 1 WHILE 1 PRINT Cnt N N N 1 IF N 5 THEN EXIT END IF WEND Description If the condition is true loop statements are executed until the WEND statement is encountered Then the program execution returns to WHILE statement and checks the condition again If it is still true the process will be repeated Otherwise the execution continues with the statement following the WEND statement ...

Страница 23: ...toher one Syntax A INSTR N S1 S2 Example Str ABCGEFGHIJK G GH PRINT INSTR 5 Str G PRINT INSTR 3 Str CGE Description A is an integer variable to be assigned to the result N is a numeric expression Optional offset N sets the position for starting the search S1 S2 may be a string variable string expression or string constant If S2 is found in S1 it returns the position of the first occurrence of S2 i...

Страница 24: ... length of Str the Str is returned If N is zero the null string is returned MID Purpose To retrieve a given number of characters from anywhere of the target string Syntax A MID Str N M Example Str ABCDEFGHIJK PRINT MID Str 5 3 PRINT MID 123 168IbB 6 5 Description A is a string variable to be assigned to the result Str may be a string variable string expression or string constant N and M are numeri...

Страница 25: ...ipped away Syntax A TRIM_LEFT Str Example PRINT TRIM_LEFT Happy TEST END Description A is a string variable to be assigned to the result Str is a string variable that may contain some space character at the beginning TRIM_RIGHT Purpose To return a copy of a string with trailing blank spaces stripped away Syntax A TRIM_RIGHT Str Example PRINT TRIM_RIGHT Happy TEST END Description A is a string vari...

Страница 26: ...string variable to be assigned to the result N is a numeric expression OCT Purpose To return a string that represents the octal value base 8 of the decimal argument Syntax A OCT N Example A OCT 136 A 210 Description A is a string variable to be assigned to the result N is a numeric expression LCASE Purpose To return a copy of a string in which all uppercase letters will be converted to lowercase l...

Страница 27: ... Description A is a string variable to be assigned to the result N is a numeric expression VAL Purpose To return the numeric value of a string expression in interger form Syntax A VAL Str Example PRINT VAL 16898 Description A is an integer variable to be assigned to the result Str is a string that includes numeric characters If the first character is not numeric this command return 0 VALR Purpose ...

Страница 28: ...quested character Syntax A STRING N J A STRING N X Example PRINT STRING 10 45 PRINT STRING 3 89 888 Description A is a string variable to be assigned to the result N is numeric expression J is numeric expression in the range of 0 to 255 indicating the ASCII code of a character X may be a string variable or string constant ...

Страница 29: ... ON event GOSUB OFF ESC Purpose To terminate ESC event trigger Syntax OFF ESC Example ON ESC GOSUB ESC_PRESS ESC_PRESS OFF ESC ON ESC GOSUB ESC_PRESS RETURN Description To resume the event trigger call ON ESC GOSUB OFF COM Purpose To terminate COM event trigger Syntax OFF COM N Example ON COM 1 GOSUB READ1 READ1 OFF COM 1 ON COM 1 GOSUB READ1 RETURN Description N is an integer variable indicating ...

Страница 30: ... To resume the event trigger call ON HOUR GOSUB OFF KEY Purpose To terminate KEY event trigger Syntax OFF KEY number Example ON KEY 1 GOSUB F1 ON KEY 2 GOSUB F2 F1 OFF KEY 1 ON KEY 1 GOSUB F1 RETURN F2 OFF KEY 2 ON KEY 2 GOSUB F2 RETURN Description To resume the event trigger call ON KEY GOSUB number is an integer variable in the range of 1 to 6 indicating a function key of the keypad ...

Страница 31: ...N MINUTE GOSUB OFF READER Purpose To terminate READER event trigger Syntax OFF READER N Example ON READER 1 GOSUB GetData GetData OFF READER 1 CLS A GET_READER_DATA 1 4 PRINT DATA A LOCATE 0 2 A GET_READER_DATA 1 1 PRINT Name A LOCATE 0 4 PRINT GET_READER_DATALEN ON READER 1 GOSUB GetData RETURN Description To resume the event trigger call ON READER GOSUB N is an integer variable indicating the re...

Страница 32: ... the event trigger call ON TIMER GOSUB N is an integer variable in the range of 1 to 5 indicating the timer ID ON COM GOSUB Purpose To activate COM event trigger Syntax ON COM N GOSUB SubLabel SubName Example ON COM 1 GOSUB READ1 READ1 OFF COM 1 ON COM 1 GOSUB READ1 RETURN Description When data is received from the COM port a specific subroutine will be executed N is an integer variable indicating...

Страница 33: ...PRESS RETURN Description When ESC key is pressed a specific subroutine will be executed ON HOUR GOSUB Purpose To activate HOUR event trigger Syntax ON HOUR GOSUB SubLabel SubName Example ON HOUR GOSUB OnHourAlarm OnHourAlarm CurrentTime TIME H VAL LEFT CurrentTime 2 FOR I 1 TO H BEEP 30 20 0 0 WAIT 100 NEXT RETURN Description When the system time is on the hour a specific subroutine will be execut...

Страница 34: ...a specific subroutine will be executed number is an integer variable in the range of 0 to 9 indicating a function key of the keypad ON MINUTE GOSUB Purpose To activate MINUTE event trigger Syntax ON MINUTE GOSUB SubLabel SubName Example ON MINUTE GOSUB AMINUTE AMINUTE CurrentTime TIME CurrentMin VAL MID CurrentTime 3 2 IF CurrentMin 30 THEN BEEP 30 50 0 0 WAIT 200 END IF RETURN Description When th...

Страница 35: ...DER 1 GOSUB GetData GetData OFF READER 1 CLS A GET_READER_DATA 1 4 PRINT DATA A LOCATE 0 2 A GET_READER_DATA 1 1 PRINT Name A LOCATE 0 4 PRINT GET_READER_DATALEN ON READER 1 GOSUB GetData RETURN Description When data is received from reader port a specific subroutine will be executed N is an integer variable indicating the reader port now we only can choose 1 ...

Страница 36: ...he system runs out of the time duration specified by user a specific subroutine will be executed Up to five timers can be set in a BASIC program Be sure the timer ID s are properly differentiated Otherwise the latter created timer will overwrite the former one N is an integer variable in the range of 1 to 5 indicating the ordinal number of timer duration is an integer variable indicating a specifi...

Страница 37: ...2 events and reroute to the subroutines F1 and F2 respectively In F1 the command LOCK disable all the activated event triggers so that the subroutine F1 will not be interrupted by a new upcoming KEY 1 and KEY 2 event On the other hand since LOCK is not called in F2 any new coming KEY 1 and KEY 2 event will interrupt the ongoing F2 and therefore may affect the expected results Description This comm...

Страница 38: ...56 UNLOCK Purpose To release all the activated event triggers held by LOCK Syntax UNLOCK Example ON KEY 1 GOSUB F1 ON KEY 2 GOSUB F2 F1 LOCK PRINT press F1 UNLOCK RETURN F2 PRINT press F2 RETURN Description This command resumes event processing ...

Страница 39: ...the result That is a string of the target terminal serial number to be returned GET_TARGET_MACHINE Purpose To get the model name of the target terminal Syntax A GET_TARGET_MACHINE Example PRINT Model Name GET_TARGET_MACHINE Description A is a string variable to be assigned to the result That is a string of the model name of the target terminal to be returned MENU Purpose To create a menu Syntax A ...

Страница 40: ... use command MENU it can get what option is selected in these command Syntax A MENU_GET_ MENUSELECT Example PRINT Menu select MENU_GET_ MENUSELECT Description A is a integer variable to be assigned to the result MENU_SET_SELECT_WITHENT Purpose Set command MENU ENT key status when use number key to select menu Syntax MENU_SET_SELECT_WITHENT N Example MENU_SET_ MENUSELECT 1 Description N can be set ...

Страница 41: ... SYSTEM_INFORMATION index Example PRINT Kernel SYSTEM_INFORMATION 1 PRINT BASIC SYSTEM_INFORMATION 2 PRINT SCANNER SYSTEM_INFORMATION 3 Description A is a string variable to be assigned to the result index is an integer variable indicating a specific category of information index Meaning 1 Kernel version 2 BASIC version 3 Scanner version SYS_SUSPEND Purpose To shut down the system Syntax SYS_SUSPE...

Страница 42: ...BIOS Purpose To copy the setting from APP to BIOS Syntax COPYAPPTOBIOS Example COPYAPPTOBIOS Description This command will copy the APP settings to BIOS SET_DCIN_ALWAYSON Purpose To set the state of DC in always power on Syntax SET_DCIN_ALWAYSON N Example SET_DCIN_ALWAYSON N Description N can be set 0 or 1 N Meaning 0 Disable 1 Enable GET_DCIN_ALWAYSON Purpose To get the state of DC in always powe...

Страница 43: ...agic file setting Syntax A DATAMAGIC_RUN S1 N1 N2 S2 Example DATAMAGIC_RUN ProFile 1 CodeType Str Description A is an string variable to be assigned to the convert string Several key arguments as below S1 Profile name N1 Get from set 1 By scanner or 0 By other input N2 Barcode type S2 String for this function to convert DATAMAGIC_STA Purpose To get the DATAMAGIC convert status Syntax N DATAMAGIC_S...

Страница 44: ...only can choose 1 ENABLE READER Purpose To enable the reader ports of the terminal Syntax ENABLE READER N Example ON READER 1 GOSUB SCAN ENABLE READER 1 SCAN OFF READER 1 CLS A GET_READER_DATA 1 4 PRINT DATA A LOCATE 0 2 A GET_READER_DATA 1 1 PRINT Name A LOCATE 0 4 PRINT GET_READER_DATALEN LOOP1 S1 INKEY IF S1 THEN GOTO LOOP1 END IF ON READER 1 GOSUB SCAN RETURN Description N is an integer variab...

Страница 45: ...2 Example ON READER 1 GOSUB SCAN ENABLE READER 1 SCAN A GET_READER_DATA 1 4 RETURN Description This command will get reader port data A is a string variable to be assigned to the result N1 is an integer variable indicating the reader port now we only can choose 1 N2 is an integer variable indicating what kind of data to be retrieved N2 Meaning 1 Code Name 2 Full Code 3 Code ID 4 Data The format of...

Страница 46: ...ble to be assigned to the result GET_READER_TYPE Purpose To get scanner type Syntax A GET_READER_TYPE Example A GET_READER_TYPE Description A is an integer variable to be assigned to the result A Type 0 CCD only PI 10X0 2 2D only PI 12X0 READER_CONFIG_START Purpose To start scanner setting procedure Syntax READER_CONFIG_START Example READER_CONFIG_START A READER_SENDCMD 11 1 CHR 1 Code 39 can read...

Страница 47: ... the result A Meaning 0 Change fail 1 Change OK N1 is an integer variable indicating the parameter1 N2 is an integer variable indicating the parameter2 S is a string variable If setting value 256 please use CHR xx to convert Refer to Appendix B for more details about the parameter setting READER_SENDCMD_2D Purpose To send scanner 2D command to change scanner status Syntax A READER_SENDCMD_2D N1 N2...

Страница 48: ...nt setting Syntax A READER_QUERY N1 N2 Example To query the scanner status Code 128 Read Value READER_QUERY 13 1 PRINT Value ASC Value Preamble READER_QUERY 8 3 Preamble characters PRINT Preamble Preamble Value READER_QUERY 35 8 PRINT UPC EAN Supplemental User Programmable Value Description A is a string variable to be assigned to the result In addition to READER_QUERY 35 7 or 35 8 most use ASC Va...

Страница 49: ...R_DATA 1 2 PRINT FULL A LOCATE 0 8 PRINT ID GET_READER_DATA 1 3 END IF IF INKEY CHR 27 THEN DISABLE READER 1 END END IF GOTO MAIN Description Once the scanner port is initialized by using ENABLE READER command call this DECODE command to perform barcode decoding This command should be called constantly in user s program loops when barcode decoding is required If the barcode decoding is not require...

Страница 50: ...ANKEY_PRESS 0 Description This command can simulator the scan key status for pressed or released READER_SETFROMFILE Purpose To set scanner setting by scanner setting file Syntax A READER_SETFROMFILE FilePath Example A READER_SETFROMFILE c data PI1030 axs Description A is an integer variable to be assigned to the result A Meaning 0 Setting fail 1 Setting OK FilePath is a string variable indicating ...

Страница 51: ...p frequency It is calculated by the following formula For instance to get a frequency of 2000Hz the value of beep frequency should be 38 If no sound is desired pause the beep frequency should be set to 0 A beep with frequency 0 does not terminate the beeper sequence Suitable frequency for the beeper ranges from 1 to 2700Hz while peak volume is at around 2000Hz Duration is an integer variable indic...

Страница 52: ...ual Ver 1 10 51 156 SET_BUZZER_VOL Purpose To set the buzzer volume Syntax SET_BUZZER_VOL N Example SET_BUZZER_VOL 2 Description N is an integer variable to be assigned to the result N Buzzer volume 0 close 1 Low 2 Medium 3 High ...

Страница 53: ...Y_OF_WEEK Example PRINT DAY_OF_WEEK Description A is an integer variable to be assigned to the result A value of 1 to 7 represents Monday to Sunday respectively TIME Purpose To set or to get the current time Syntax TIME X Y TIME Example PRINT TIME TIME 180831 PRINT TIME Description X is a string variable in the form of hhmmss TIME X to set the current time Y is a string variable to be assigned to ...

Страница 54: ...er 1 10 53 156 WAIT Purpose To set system delay time Syntax WAIT duration Example WAIT 1000 5sec Description duration is a positive integer variable indicating the time duration for a hold This argument is specified in units of 5 ms ...

Страница 55: ...mber mode duration Example LED 2 2 100 Description number description 1 LED displays green light 2 LED displays red light 3 LED displays orange light mode description 1 off for duration X 0 01 seconds then on 2 on for duration X 0 01 seconds then off 3 flash on then off each for duration X 0 01 seconds then repeat ...

Страница 56: ... ASC S IF ASC S 27 THEN ESC key END END IF END IF GOTO START Description Str is a string variable to be assigned to character read INPUT_LEN Purpose To set or get input length limit when using INPUT or INPUT_S command Syntax X INPUT_LEN INPUT_LEN A Example INPUT_LEN 4 PRINT INPUT STRING A INPUT S PRINT Input length INPUT_LEN Description A is an integer variable When using INPUT or INPUT_S command ...

Страница 57: ...ror S is a string variable indicating the input default value variable is numeric or string variable that will receive the input data The data entered must match the data type of the variable When the input task is properly ended with the ENTER key being pressed the data string will be stored in a variable Otherwise press the ESC key to abort the task INPUT_S Purpose To retrieve input from the key...

Страница 58: ... task INPUT_S_CARRYENT Purpose To set ENT auto press on off when using INPUT_S_CARRYENT command Syntax INPUT_S_CARRYENT N Example INPUT_S_CARRYENT 1 Description N is an integer variable When using INPUT_S_CARRYENT command it can set auto press ENT on off key after scanner reading N Auto press ENT 0 No 1 Yes INPUT_S_VIBRATE Purpose To set vibrator on or off when using INPUT_S_VIBRATE command Syntax...

Страница 59: ...ot sleep scanner go to suspend 1 To sleep INPUT_MODE Purpose To set the display mode of the input data Syntax INPUT_MODE mode Example INPUT_MODE 2 Description mode is an integer variable indicating the input mode mode Meaning 0 Nothing will be displayed on the LCD 1 The input characters will be displayed on the LCD default 2 will be displayed instead of the input characters Usually it is applied f...

Страница 60: ...ock Alpha mode lower case 2 Lock Alpha mode upper case 3 Lock Numeric mode GET_ALPHA_LOCK Purpose To get information of the ALPHA state for input mode Syntax A GET_ALPHA_LOCK Example Alpha_lock GET_ALPHA_LOCK Description A is an integer variable to be assigned to the result GET_KEY_CLICK Purpose To get current key click status Syntax A GET_KEY_CLICK Example Key_click GET_KEY_CLICK Description A is...

Страница 61: ...PAD_BL_TIMER 3 Keypad backlight timer 3 sec Description A is an integer variable to be assigned to the keypad backlight timer X is an integer variable indicating a period of time in units of 1 second KEYPAD_BL Purpose To set keypad backlight on or off Syntax KEYPAD_BL N Example KEYPAD_BL 1 Description N is an integer variable indicating the keypad backlight on or off N Keypad backlight status 0 Of...

Страница 62: ...ey define to BS key DEF_PKEY 3 127 P3 key define to DEL key DEF_PKEY 2 32 P2 key define to SP key DEF_PKEY 1 45 P1 key define to key Description N1 Meaning 1 Define P1 key 2 Define P2 key 3 Define P3 key N2 is an integer variable indicating the key to be defined INPUT_DM Purpose To take user input from the keypad scanning and store it in a string variable After these actions it will convert string...

Страница 63: ... rule to convert variable is string variable that will receive the input data The data entered must match the data type of the variable When the input task is properly ended with the ENTER key being pressed the data string will be stored in a variable Otherwise press the ESC key to abort the task ...

Страница 64: ...ecified in units of 1 sec If N 0 then LCD backlight will always be on LCD_CONTRAST Purpose To set the contrast level of the LCD Syntax LCD_CONTRAST N Example LCD_CONTRAST 5 Description N is an integer variable indicating the LCD contrast level in the range from 1 to 10 The higher value means higher contrast CURSOR Purpose To turn on off the cursor indication in the activated TextBlock Syntax CURSO...

Страница 65: ...e LOCATE 0 0 LOCATE 2 3 Description X is an integer variable indicating the new X coordinate position of the cursor Y is an integer variable indicating the new Y coordinate position of the cursor FILL_RECT Purpose To fill a rectangular area in the activated TextBlock Syntax FILL_RECT left top width height Example FILL_RECT 100 100 100 100 green rectangular area Description Several the argument as ...

Страница 66: ...ermined by the punctuation used to separate items in the list In the list of expression a comma causes the next character to be printed after the last character with a blank space A semicolon causes the next character to be printed immediately after the last character If the list of expressions terminates without a comma or semicolon a carriage return is printed at the end of the line CLR_RECT Pur...

Страница 67: ...st bmp Description Several key argument as below left Fill from the start point of X axis pixel top Fill from the start point of Y axis pixel width Fill the width from the start point pixel height Fill the height from the start point pixel path Bitmap file path Must be on Disk D CLR_EOL Purpose To clear from where the cursor is to the end of the line The cursor position is not affected after the o...

Страница 68: ...s an integer variable to be assigned to the result A Meaning 0 Set font fail 1 Set font OK Several key arguments as below FontID Font ID 2 9 FontPath Font file path DISPFONT_INFO_TYPE Purpose To get font type Syntax A DISPFONT_INFO_TYPE FontID Example A DISPFONT_INFO_TYPE 2 Description A is an integer variable to be assigned to the result FontID is an integer variable in the range from 2 to 9 DISP...

Страница 69: ...68 156 DISPFONT_INFO_WIDTH Purpose To get font width Syntax A DISPFONT_INFO_WIDTH FontID Example B DISPFONT_INFO_WIDTH 3 Description A is an integer variable to be assigned to the result FontID is an integer variable in the range from 2 to 9 ...

Страница 70: ...ines activated area anywhere within LCD screen display An out of display area definition is not allowed Each TextBlock has individual attribute definition for position size font background color or bmp There are total 16 TextBlocks TextBlock 0 is system default block The setting of TextBlock 0 can t be executed TextBlock 1 15 are user defind ...

Страница 71: ...e TextBlock OK Several key arguments as below BlockNo TextBlock number 1 15 FontID Defined Font 0 1 system font 2 9 user font BGType If 0 then using default background If 1 then using user defined background PI 1X always set 2 or 3 Color Background color PI 1X always set 0 Column TextBlock column number Row TextBlock row number XPos TextBlock left top X position in pixel 0 159 YPos TextBlock left ...

Страница 72: ...Column TextBlock column number Row TextBlock row number XPos TextBlock left top X position in pixel 0 159 YPos TextBlock left top Y position in pixel StatusBar enable 0 143 StatusBar disable 0 159 SETTEXTBLOCK Purpose To enable specific TextBlock Syntax A SETTEXTBLOCK BlockNo Save Example A SETTEXTBLOCK 1 0 Description A is an integer variable to be assigned to the result A Meaning 0 Set TextBlock...

Страница 73: ...CUR_X 1 Description A is an integer variable to be assigned to the result BlockNo is an integer variable in the range from 0 to 15 GETTEXTBLOCKCUR_Y Purpose To get the y coordinate of the current TextBlock position Syntax A GETTEXTBLOCKCUR_Y BlockNo Example PRINT Y GETTEXTBLOCKCUR_Y 1 Description A is an integer variable to be assigned to the result BlockNo is an integer variable in the range from...

Страница 74: ... and cursor type is a line as _ 2 Cursor on and cursor type is a line as 3 Cursor on and cursor type is a block as SWITCHTEXTBLOCK Purpose To switch TextBlock Syntax A SWITCHTEXTBLOCK BlockNo Example A SWITCHTEXTBLOCK 1 Description A is an integer variable to be assigned to the result A Meaning 0 Switch fail 1 Switch success BlockNo is an integer variable in the range from 0 to 15 ...

Страница 75: ...en r mode a file and get the file for further processing Syntax F OPENIN filename Example FilePath C DATA Test DAT fileID OPENIN FilePath Description F is an integer variable to assigned to the result F Meaning 0 Open file fail Other Open successfully It returns the file handle filename is a string variable indicating the file path In case of error open will return an integer value of 0 You can us...

Страница 76: ...ename is a string variable indicating the file path In case of error open will return an integer value of 0 You can use the GET_FILE_ERROR command to get the file error code Possible error codes and their interpretation are listed below GET_FILE_ERROR Meaning 1 Filename is a NULL string 6 Can t create file because the maximum number of files allowed in the system is exceeded File path error OPENUP...

Страница 77: ...e Possible error codes and their interpretation are listed below GET_FILE_ERROR Meaning 1 Filename is a NULL string 6 Can t create file because the maximum number of files allowed in the system is exceeded File path error MKDIR Purpose To create a folder Syntax M MKDIR foldername Example FolderPath C ARGOX Result MKDIR FolderPath Description M is an integer variable to be assigned to the result M ...

Страница 78: ...se the GET_FILE_ERROR command to get the file error code Possible error codes and their interpretation are listed below GET_FILE_ERROR Meaning 2 File specified does not exist 8 File not opened BGET Purpose To read a byte from a file The current position is updated after reading Syntax STR BGET FILEID Example STRING1 BGET FILEID PRINT CHR STRING1 Description STR is an integer variable to be returne...

Страница 79: ... PRINT STRING1 PRINT STRING LEN LEN STRING1 Description STR is a string to be returned to the result N is an integer indicating the number of bytes to be read FILEID is an integer variable indicating the file handle You can use the GET_FILE_ERROR command to get the file error code Possible error codes and their interpretation are listed below GET_FILE_ERROR Meaning 2 File specified does not exist ...

Страница 80: ...ir interpretation are listed below GET_FILE_ERROR Meaning 2 File specified does not exist 7 File not opened BPUT Purpose To write data to a file Syntax BPUT FILEID expr 1 expr 2 expr n Example AAA 566 BPUT FILEID STR AAA HELLO Description FILEID is an integer variable indicating the file handle expr 1 expr n is string expression indicating the string data to write to file You can use the GET_FILE_...

Страница 81: ...tation are listed below GET_FILE_ERROR Meaning 2 File specified does not exist 8 File not opened PTR Purpose To get or move the file pointer position of a file Syntax TELLPTR PTR FILEID PTR FILEID NPTR Example TELLPTR PTR FILEID PTR FILEID 40 Description TELLPTR is an integer variable to be assigned to the result TELLPTR PTR FILEID to get the file pointer position of a file NPTR is an integer vari...

Страница 82: ...variable indicating the length to be changed of the file FILEID is an integer variable indicating the file handle You can use the GET_FILE_ERROR command to get the file error code Possible error codes and their interpretation are listed below GET_FILE_ERROR Meaning 2 File specified does not exist 8 File not opened GET_FILE_ERROR Purpose To get the file error code Syntax A GET_FILE_ERROR Example A ...

Страница 83: ... DBMSID DBMS ID 1 10 S It needs to insert the unsigned char array the array represents the length of every field N1 It has no separate symbols between different fields now we only can set 0 N2 This argument is each record s length Needs to insert this value not including the symbol of line feed N3 This argument is the field s quantity of each record 1 20 DBMS_INIT_SEARCHADV Purpose To initiate the...

Страница 84: ...aning 0 DBMS initialization fail 1 DBMS initialization OK 5 Open file error 6 The DBMS ID is illegal 7 DBMS ID already used 8 The record type is illegal 9 The field number exceeds 20 1 Argument S2 or N1 is error please check it 2 Cannot make a IDX file please check your lookup filename or C disk size Several key arguments as below FilePath DBMS file path DBMSID DBMS ID 1 10 S1 It needs to insert t...

Страница 85: ...escription DBMSID is an integer variable in the range from 1 to 10 data is a string variable indicating the data of record introduced DBMS_DEL_DATA Purpose To delete the appointed record in the file Syntax DBMS_DEL_DATA DBMSID record Example DBMS_DEL_DATA 1 2 Description DBMSID is an integer variable in the range from 1 to 10 Record is an integer variable indicating the appointed record to be dele...

Страница 86: ...aning 0 Search defeat Other value Match the record position of data Several key arguments as below DBMSID DBMS ID 1 10 field Search wanted field key Match wanted string data This command only supports backward search DBMS_GET_COUNT Purpose To obtain the figure of all records in the file Syntax A DBMS_GET_COUNT DBMSID Example A DBMS_GET_COUNT 1 PRINT A Description A is an integer variable to be ass...

Страница 87: ... position key Update string data wanted DBMS_SEARCH_FIELD Purpose To search the designated field Syntax A DBMS_SEARCH_FIELD DBMSID field record key flag Example A DBMS_SEARCH_FIELD 1 2 3 TEST3 1 PRINT A Description A is an integer variable to be assigned to the result A Meaning 0 Search defeat Other value Match the record position of data Several key arguments as below DBMSID DBMS ID 1 10 field Se...

Страница 88: ...imer VIBRATOR_TIMER Description A is an integer variable to be assigned as the vibrator timer X is an integer variable indicating a period of time in units of 100ms VIBRATOR Purpose To set the vibrator on off Syntax VIBRATOR N Example VIBRATOR 1 Vibrator on Wait 0 5 sec WAIT 100 VIBRATOR 0 Vibrator off Description N is an integer variable indicating vibrator on or off N Meaning 0 Vibrator off 1 Vi...

Страница 89: ...e communication Syntax OPEN_COM N Example OPEN_COM 1 Description N is an integer variable indicating which COM port is to be enabled now we only can choose 1 SET_COM Purpose To set parameters of a specified COM port Syntax SET_COM N Baudrate Parity Data Handshake Example SET_COM 1 1 1 2 1 Description Several key arguments as below N 1 RS 232 now we only can choose 1 Baudrate Baud rate 1 115200 2 3...

Страница 90: ...RINT ENT TO WRITE SET_COM 1 1 1 2 1 OPEN_COM 1 CLEAR_COM 1 SET_RTS 1 1 LOOP2 IF INKEY THEN GOTO LOOP2 END IF CLOSE_COM 1 END READ1 A READ_COM 1 PRINT A RETURN Description A is a string variable to be assigned to the data N is an integer variable indicating which COM port the data is to be read now we only can choose 1 If the receiver buffer is empty an empty string will be returned ...

Страница 91: ...COM 1 STR1 CLOSE_COM 1 END Description N is an integer variable indicating which COM port the data is to be sent to now we only can choose 1 A is a string variable indicating the string to be sent GET_CTS Purpose To get CTS level Syntax A GET_CTS N Example PRINT CTS Status GET_CTS 1 Description A is an integer variable to be assigned to the result A Meaning 0 Negated Space 1 Asserted Mark N is an ...

Страница 92: ...ariable indicating which COM port to clear receive buffer now we only can choose 1 COM_DELIMITER Purpose To change delimiter of sending and receiving string for a specified COM port Syntax COM_DELIMITER N C Example COM_DELIMITER 1 13 use carriage return as delimiter COM_DELIMITER 1 38 use character as delimiter COM_DELIMITER 1 1 no delimiter Description N is an integer variable indicating which CO...

Страница 93: ...key can quit the transmission operation FILE_TRANS_REALTIME Purpose Using FILE_TRANS_REALTIME to upload or download files immediately Syntax FILE_TRANS_REALTIME N Example FILE_TRANS_REALTIME 1 Description N is an integer variable indicating the transmission state N Meaning 0 Transmission not real time 1 Real time transmission FILE_TRANS_BAUD Purpose To get or set the transmission baud rate Syntax ...

Страница 94: ...ossible error codes and their interpretation are listed below GET_FILETRANS_ERRO R Meaning 1 Set OK 2 Selected LinkingPort is using 4 Parameter erro r FILE_TRANS_INTERFACE Purpose To get or set the transmission interface Syntax A FILE_TRANS_INTERFACE FILE_TRANS_INTERFACE X Example N FILE_TRANS_INTERFACE FILE_TRANS_INTERFACE 1 RS 232 Description A is an integer variable to be assigned for the trans...

Страница 95: ...Selected LinkingPort is using 4 Parameter erro r FILE_TRANS_GETBT Purpose Get transmission Bluetooth information Syntax A FILE_TRANS_GETBT Example S1 FILE_TRANS_GETBT LocalAddress LEFT S1 16 PRINT LocAdd LocalAddress LocalName MID S1 17 20 PRINT LocName LocalName LocalSec ASC MID S1 45 4 PRINT LocalSec LocalSec LocalEnc ASC MID S1 49 4 PRINT LocalEnc LocalEnc LocalTimeout ASC MID S 1 37 4 PRINT Lo...

Страница 96: ...ption Use this command can get transmission s Bluetooth settings A is a string variable indicating the PI 10X0 12X0 Bluetooth information Format of string as show below A Length Meaning 1 16 PI 1X Bluetooth MAC address Cannot change 17 36 PI 1X Bluetooth device name 45 48 PI 1X Bluetooth inquiry timeout the value from 1 1 28 seconds to 48 61 44 seconds 49 52 PI 1X Bluetooth inquiry max response th...

Страница 97: ... Get transmission WIFI information Syntax A FILE_TRANS_GETWIFI Example S1 FILE_TRANS_GETWIFI Dhcp ASC LEFT S1 4 PRINT Dhcp Dhcp LOCATE 1 4 IpAddress MID S1 5 20 PRINT IpAdd IpAddress Port1 MID S1 117 1 Port2 MID S1 118 1 ConnPort ASC Port1 ASC Port2 256 PRINT ConnectPort ConnPort Description Use this command can get transmission s WIFI settings A is a string variable indicating the PI 1X30 WIFI in...

Страница 98: ...1X WIFI power saving mode 97 1 00 WIFI security key type 101 116 TCP connect IP address 117 118 TCP connect port ASC MID S1 117 1 ASC MID S1 118 1 2 56 121 184 WIFI security key 185 196 WIFI module MAC address Read Only 197 202 WIFI module F W version Read Only FILE_TRANS_SETBT Purpose Set transmission Bluetooth information Syntax FILE_TRANS_SETBT S1 N1 N2 N3 N4 S2 S3 Example FILE_TRANS_SETBT Loca...

Страница 99: ...s and their interpretation are listed below GET_FILETRANS_ERROR Meaning 1 Set OK 2 Selected LinkingPort is using 4 Parameter error FILE_TRANS _SETWIFI Purpose Set transmission WIFI information Syntax FILE_TRANS_SETWIFI N1 S1 S2 S3 S4 N2 N3 S5 N4 S5 Example FILE_TRANS_SETWIFI 0 IP MK GW SSID 1 2 CONNIP PORT KEY FILE_TRANS_SETWIFI 1 SSID 1 2 CONNIP PORT KEY Use DHCP Description Several key arguments...

Страница 100: ...arguments as below S1 Send data string N1 Send data type set 1 message or 0 barcode data S2 Terget terminal EID You can use the GET_FILETRANS_ERROR command to get the error code Possible error codes and their interpretation are listed below GET_FILETRANS_ERROR Meaning 1 Send OK 0 Send false FILE_TRANS _SENDBARCODE Purpose Send data Barcode or other input to PC Syntax FILE_TRANS_SENDBARCODE S1 N1 S...

Страница 101: ...LE_TRANS_SENDBC_CLR Description Clear all send data in send data buffer FILE_TRANS_READBARCODE Purpose Read data from read temp buffer Syntax A FILE_TRANS_READBAR CODE Example S1 FILE_TRANS_READBA RCODE EID LEFT S1 4 PRINT EID EID DateTime MID S1 5 18 PRINT Date Time DateTime Size MID S1 19 22 PRINT Size VAL Size Description This function can read data Barcode or other input from temp read buffer ...

Страница 102: ...RANS_READBC_CLR Example FILE_TRANS_READBC_CLR Description Clear all read data in read data buffer FILE_TRANS _SENDMSG1 Purpose Send the message to PC Syntax FILE_TRANS_SENDMSG1 S1 N1 S2 Example FILE_TRANS_SENDMSG1 Send MSG 1 EID message type FILE_TRANS_SENDMSG1 ScanData 0 barcode data type Description Several key arguments as below S1 Send data string max length is 99 N1 Send data type set 1 messa...

Страница 103: ...ntax A FILE_TRANS_READMSG1 Example S1 FILE_TRANS_READMSG1 TYPE LEFT S1 1 PRINT TYPE ASC TYPE EID MID S1 2 5 PRINT EID EID DateTime MID S1 6 19 PRINT Date Time DateTime Size MID S1 20 20 PRINT Size ASC Size Description This function can read message from temp read buffer It has only 1 buffer for read So it returns only the latest message A is a string variable Format of string as show below A Lengt...

Страница 104: ... When using RemoteLink_RealTime to get the upload download quantity of files Syntax N FILE_TRANS_ SUCCESS Example N FILE_TRANS_ SUCCESS Description N is an integer to be assigned to the upload download quantity of files FILE_TRANS_CLRSTA Purpose Clear all the file transfer information Syntax FILE_TRANS_CLRSTA Example FILE_TRANS_CLRSTA Description Clear all the file transfer information in data buf...

Страница 105: ...e parameter will be filled in 0 A is a string variable to be assigned to the result Format of string as show below A Length Meaning 1 LEN A 14 Device file path File name LEN A 13 LEN A The file upload download time You can use the GET_FILETRANS_ERROR command to get the error code Possible error codes and their interpretation are listed below GET_FILETRANS_ERROR Meaning 0 No information returned 1 ...

Страница 106: ...ax SDSIZE SD_SIZE Example PRINT SD_SIZE SD_SIZE Description SDSIZE is an integer variable to be assigned for the total space in disk E FREE_MEMORY Purpose To check the free space in disk C D E Syntax FREESIZE FREE_MEMORY N Example PRINT Free on disk C FREE_MEMORY 0 PRINT Free on disk D FREE_MEMORY 1 Description FREESIZE is an integer variable to be assigned for the free speace in disk C N 0 or dis...

Страница 107: ...n disable and suspend the USB port USB_READ Purpose To read specific number of bytes from USB port Syntax A USB_READ N Example KEY USB_READ 1 Description A is a string variable to be assigned to the data N is an integer variable indicating number of bytes to be read from USB port USB_WRITE Purpose To write specific number of bytes to the PC side Syntax USB_WRITE A N Example USB_WRITE A 100 Descrip...

Страница 108: ...nkingPort s port number The value is form 1 to 4 N1 Meaning 1 Open LinkingPort success 2 Selected LinkingPort is using 3 Selected LinkingPort s connect interface is using 4 Parameter error 7 LinkingPort is not set LINKPORT_COSE Purpose Stop a LinkingPort Syntax N1 LINKPORT_CLOSE N2 Example Result LINKPORT_OPEN Port Result LINKPORT_CLOSE Port Description Use this command can stop a LinkingPort N1 i...

Страница 109: ...value is form 1 to 4 N3 is an integer variable indicating which interface is to be selected N1 Meaning 1 Set LinkingPort interface success 2 Selected LinkingPort is using 4 Parameter error N3 Meaning 0 None 1 RS232 2 USB 3 Bluetooth 4 WIFI LINKPORT_GETIF Purpose Get LinkingPort interface select setting Syntax N1 LINKPORT_GETIF N2 Example Result LINKPORT_GETIF Port Description Use this command can ...

Страница 110: ...umber The value is form 1 to 4 N3 is an integer variable indicating LinkingPort s COM baudrate The value is form 0 to 5 N1 Meaning 1 Success 2 Selected LinkingPort is using 4 Parameter error N3 Meaning 0 115200 bps 1 57600 bps 2 38400 bps 3 19200 bps 4 9600 bps 5 4800 bps LINKPORT_GETCOM Purpose Get LinkingPort COM baudrate seting Syntax N1 LINKPORT_GETCOM N2 Example Result LINKPORT_GETCOM Port De...

Страница 111: ...Port s port number The value is form 1 to 4 Several key arguments as below S1 PI 1X Bluetooth device name Allow 1 16 characters N3 PI 1X Bluetooth security mode set 1 on or 0 off N4 PI 1X Bluetooth encryption mode set 1 on or 0 off N5 PI 1X Bluetooth inquiry timeout set the value from 1 1 28 seconds to 48 61 44 seconds N6 PI 1X Bluetooth inquiry max response the value from 1 to 10 S2 Set link devi...

Страница 112: ... string variable indicating the PI 1010 1030 Bluetooth information Format of string as show below A Length Meaning 1 16 PI 1X Bluetooth MAC address Cannot change 17 36 PI 1X Bluetooth device name 45 48 PI 1X Bluetooth inquiry timeout the value from 1 1 28 seconds to 48 61 44 seconds 49 52 PI 1X Bluetooth inquiry max response the value from 1 to 10 37 40 PI 1X Bluetooth security mode if 1 on else 0...

Страница 113: ... 4 Several key arguments as below N3 PI 1X WIFI Dhcp mode set 1 enable or 0 disable S1 WIFI module IP address xxx xxx xxx xxx S2 WIFI module subnet mask xxx xxx xxx xxx S3 WIFI module getway xxx xxx xxx xxx S4 WIFI accesspoint SSID name N4 PI 1X WIFI TX power set 0 Low 1 Medium 2 High N5 PI 1X WIFI security key type set 0 disable 1 WEP or 2 WPA2 S5 Remote TCP connect IP address xxx xxx xxx xxx N6 ...

Страница 114: ...FI subnet mask 37 52 PI 1X WIFI getway 53 88 WIFI accesspoint SSID name 89 92 PI 1X WIFI TX power 93 96 PI 1X WIFI power saving mode 97 100 WIFI security key type 101 116 TCP connect IP address 117 118 TCP connect port ASC MID S1 117 1 ASC MID S1 118 1 256 121 184 WIFI security key 185 196 WIFI module MAC address Read Only 197 202 WIFI module F W version Read Only 202 205 PI 1X WIFI AdHoc mode N1 ...

Страница 115: ...nkingPort device and other mean as bellow N2 is an integer variable indicating LinkingPort s port number The value is form 1 to 4 A is a string variable indicating the characters is to be sent N3 is an integer variable indicating number of bytes to be writen to that LinkingPort device N1 Meaning 0 How many characters send to that LinkingPort 4 Parameter error 5 Connect fail 6 LinkingPort is not op...

Страница 116: ...to that LinkingPort device and other mean as bellow N2 is an integer variable indicating LinkingPort s port number The value is form 1 to 4 A is a string variable indicating the characters is to be sent N3 is an integer variable indicating number of bytes to be writen to that LinkingPort device N1 Meaning 0 How many characters send to that LinkingPort 4 Parameter error 5 Connect fail 6 LinkingPort...

Страница 117: ...ers from that LinkingPort A is a string variable to be assigned the characters is read from that LinkingPort N1 is an integer variable indicating LinkingPort s port number The value is form 1 to 4 N2 is an integer variable indicating number of bytes to be read from LinkingPort LINKPORT_READN_N Purpose New read characters from LinkingPort Syntax A LINKPORT_READ_N N1 N2 Example A LINKPORT_OPEN WHILE...

Страница 118: ...umber The value is form 1 to 4 N2 is an integer variable indicating number of bytes to be read from LinkingPort LINKPORT_FLUSH Purpose Flush the LinkingPort data buffer Syntax N1 LINKPORT_FLUSH N2 Example Result LINKPORT_FLUSH Port Description After opening LinkingPort you can flush the LinkingPort s read and write data buffer N1 is an integer variable to be assigned to the result N2 is an integer...

Страница 119: ...s opened 2 RF module is opening RFHOST_CLOSE Purpose Stop RF module Syntax RFHOST_CLOSE Example Result RFHOST_OPEN RFHOST_CLOSE Description The command will stop the RF module work RFHOST_CALLTAG Purpose Call the tag Syntax N1 RFHOST_CALLTAG S1 N2 Example Result RFHOST_OPEN ID F1FAFBF1 C RFHOST_CALLTAG ID 341 PRINT Call ID result C RFHOST_CLOSE Description The command can call tag by ID and tag wi...

Страница 120: ...tion The command can get the RF module firmware version 3 22 Simulator Only for PC simulator commands COPYFILETOPDT Purpose To copy a file from PC side to PDT Syntax COPYFILETOPDT PCPath PDTPath Example COPYFILETOPDT D Code BASIC 5 BMP D PROGRAM 5 BMP Description The COPYFILETOPDT command copies the PC file path specified by PCPath to the simulator path specified by PDTPath BACKUPDATAFILETOPC Purp...

Страница 121: ...argest integer that is less than or equal to the given numeric expression REM To insert explanatory remarks in a program SET_PRECISION To set the precision of the decimal points for printing real number expression SGN To return an indication of the mathematical sign or of a given numeric expression A2 Commands for decision structures Command description IF THEN ELSE IF ELSE END IF To provide a dec...

Страница 122: ...acters from the left side of the target string MID To retrieve a given number of characters from anywhere of the target string RIGHT To retrieve a given number of characters from the right side of the target string TRIM_LEFT To return a copy of a string with leading blank spaces stripped TRIM_RIGHT To return a copy of a string with trailing blank spaces stripped ASC To return the decimal value for...

Страница 123: ...OFF HOUR To terminate HOUR event trigger OFF KEY To terminate KEY event trigger OFF MINUTE To terminate MINUTE event trigger OFF READER To terminate READER event trigger OFF TIMER To terminate TIMER event trigger ON COM GOSUB To activate COM event trigger ON ESC GOSUB To activate ESC event trigger ON HOUR GOSUB To activate HOUR event trigger ON KEY GOSUB To activate KEY event trigger ON MINUTE GOS...

Страница 124: ... SET_DCIN_ALWAYSON To set the state of DC in always power on GET_DCIN_ALWAYSON To get the state of DC in always power on DATAMAGIC_SET Set a Data Magic file for command INPUT_DM or DATAMAGIC_RUN to use DATAMAGIC_RUN Convert a string by Data Magic file setting DATAMAGIC_STA To get the DATAMAGIC convert status A7 Reader commands Command description DISABLE READER To disable the reader ports of the t...

Страница 125: ...r sequence SET_BUZZER_VOL To set the buzzer volume A9 Calendar and timer commands Command description DATE To set or to get the current date DAY_OF_WEEK To get the day of the week TIME To set or to get the current time TIMER To return the number of seconds elapsed since the terminal been powered on WAIT To set system delay time A10 LED command Command description LED To set the LED indicators A11 ...

Страница 126: ... To set or get keypad backlight timer KEYPAD_BL To set keypad backlight on off DEF_PKEY To change the definition of programmable key P1 P3 INPUT_DM To take user input from the keypad scanning and store it in a string variable After these actions it will convert strings according to Data Magic file A12 LCD Commands Command description BACK_LIGHT_DURATION To specify how long the backlight will last ...

Страница 127: ...ISPFONT_INFO_TYPE To get font type DISPFONT_INFO_HEIGHT To get font height DISPFONT_INFO_WIDTH To get font width A14 TextBlock commands Command description DEFINETEXTBLOCK_COLOR To define the TextBlock setting and the background using color or default background color DEFINETEXTBLOCK_IMAGE To define the TextBlock setting and the background using bitmap file or default background color SETTEXTBLOCK...

Страница 128: ...e data to a file EOF To check if file pointer of a file reaches end of file PTR To get or move the file pointer position of a file EXT To get or change file length of a file GET_FILE_ERROR To get the file error code DBMS_INIT_SEARCH To initiate the file search in disk DBMS_INIT_SEARCHADV To initiate the advance file search in disk DBMS_CLOSE_SEARCH To close the file search in disk DBMS_APPEND_DATA...

Страница 129: ... port GET_CTS To get CTS level SET_RTS To set RTS level CLEAR_COM To clear receiver buffer COM_DELIMITER To change delimiter of sending and receiving string of a specified COM port FILE_TRANS Using FILE_TRANS to upload or download files FILE_TRANS_REALTIME Using FILE_TRANS_REALTIME to upload or download files immediately FILE_TRANS_BAUD To get or set the FILE_TRANS baud rate FILE_TRANS_INTERFACE T...

Страница 130: ...TRANS_SUCCESS When using FILE_TRANS_REALTIME to get the upload download quantity of files FILE_TRANS_CLRSTA Clear all the file transfer information FILE_TRANS_INF When using FILE_TRANS_REALTIME to get the file transfer information A18 Memory commands Command description RAM_SIZE To check the total space in disk C ROM_SIZE To check the total space in disk D q SD_SIZE To check the total space in dis...

Страница 131: ...etooth function setting LINKPORT_GETBT Get LinkingPort Bluetooth function setting LINKPORT_SETWIFI Set LinkingPort WIFI function setting LINKPORT_GETWIFI Get LinkingPort WIFI function setting LINKPORT_WRITE Write characters to a linkingport LINKPORT_WRITE_N New Write characters to a linkingport LINKPORT_READ Read characters from a linkingport LINKPORT_READ_N New Read characters from a linkingport ...

Страница 132: ...Basic Programming Manual Ver 1 10 131 156 A22 Simulator Only for PC simulator commands Command description COPYFILETOPDT To copy a file from PC side to PDT BACKUPDATAFILETOPC To backup a file from PDT to PC ...

Страница 133: ...isable 1 Enable 7 Code ID position 0 Before code data 1 After code data 8 Code ID transmission 0 Disable 1 Proprietary ID 2 AIM ID 9 Code length transmission 0 Disable 1 Enable 10 Code name transmission 0 Disable 1 Enable 11 Case conversion 0 Disable 1 Upper case 2 Lower case 7 Scan 4 Double confirm 0 9 0 6 Global min code length 0 99 4 7 Global max code length 0 99 63 8 Inverted image scan 0 Disa...

Страница 134: ... Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable One digit 2 Disable Two digits 3 Enable One digit 4 Enable Two digits 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting O 0x00 0xff ASCII code 1 or 2 bytes 11 Code 39 1 Read 0 Disable 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable En...

Страница 135: ...heck sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Enable 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes 13 Code 128 1 Read 0 Disable 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Enable 4 Max code length 0 64 0 5 Min code length 0 64 1 6 Tr...

Страница 136: ...able 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Enable 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes 10 Start stop type 0 ABCD ABCD 1 abcd abcd 2 ABCD TN E 3 abcd tn e 11 Start stop transmission 0 Disable 1 Enable 15 EAN 8 1 Read 0 Disable 1 Enable 2 Chec...

Страница 137: ...ncation expansion 0 None 1 Truncate leading zero 2 Expand to EAN 13 12 Expansion 0 Disable 1 Enable 16 EAN 13 1 Read 0 Disable 1 Enable 2 Check sum transmission 0 Disable 1 Enable 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting F 0x00 0xff ASCII code 1 or 2 bytes 10 Supplement digits 0 None 1 2 digits 2 5 digits 3 2 5 digits 4 UCC EAN 128 5 2 UCC EAN 128 6 5 UCC EAN 128 7 All ...

Страница 138: ... Interleaved 2 of 5 1 Read 0 Disable 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Enable 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting i 0x00 0xff ASCII code 1 or 2 bytes 19 Standard 2 of 5 1 Read 0 Disable 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Ena...

Страница 139: ...able 1 N MOD 10 2 N Mod 10 10 3 N mod 11 10 4 Y Mod10 5 Y Mod 10 10 6 Y Mod 11 10 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes 21 UK Plessey 1 Read 0 Disable 1 Enable 2 Check sum transmit verify 0 Disable Disable 1 Disable Enable 2 Enable Enable 4 Max code length 0 64 0 5 Min code length 0 6...

Страница 140: ...ble 4 Max code length 0 64 0 5 Min code length 0 64 0 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting S 0x00 0xff ASCII code 1 or 2 bytes 10 Format 0 Numeric 1 Full ASCII 23 UPCA 1 Read 0 Disable 1 Enable 2 Check sum transmission 0 Disable 1 Enable 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting A 0x00 0xff ASCII code 1 or 2 bytes 10 Supplement digits 0 No...

Страница 141: ... ending 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting E 0x00 0xff ASCII code 1 or 2 bytes 10 Supplement digits 0 None 1 2 digits 2 5 digits 3 2 5 digits 4 UCC EAN 128 5 2 UCC EAN 128 6 5 UCC EAN 128 7 All 11 Truncate expansion 0 None 1 Truncate leading zero 2 Expand to EAN 13 3 Expand to UPCA 12 Expansion 0 Disable 1 Enable 13 UPCE 1 0 Disable 1 Enable 25 Matrix 25 1 Read 0 Disable 1 Enable 2 ...

Страница 142: ... China post 1 Read 0 Disable 1 Enable 4 Max code length 0 64 11 5 Min code length 0 64 11 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting t 0x00 0xff ASCII code 1 or 2 bytes 29 RSS 14 1 Read 0 Disable 1 Enable 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting R4 0x00 0xff ASCII code 1 or 2 bytes 11 UCC EAN 128 emulation 0 Disable 1 Enable 30 RSS Limited 1 Re...

Страница 143: ...Disable 1 Enable 4 Max code length 0 99 99 5 Min code length 0 99 1 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting RX 0x00 0xff ASCII code 1 or 2 bytes 11 UCC EAN 128 emulation 0 Disable 1 Enable 32 Italian Pharmacode 39 1 Read 0 Disable 1 Enable 4 Max code length 0 64 12 5 Min code length 0 64 9 6 Truncate leading 0 15 0 7 Truncate ending 0 15 0 8 Code ID setting p 0x00 0xff...

Страница 144: ...lue Barcode type 100 Code 11 113 UPCA 101 Code 39 114 UPCE 102 Code 93 115 Matrix 25 103 Code 128 118 China Post 104 Codabar 119 RSS 14 105 EAN8 120 RSS Limited 106 EAN13 121 RSS Expanded 107 Industrial 2 of 5 122 Pharama code39 108 Interleaved 2 of 5 109 Standard 2 of 5 110 MSI Plessey 111 UK Plessey 112 Telepen ...

Страница 145: ...meout 5 99 0 1 sec Default 99 9 9 sec 20 Trigger Mode 0 Trigger 7 Hand Free Mode 9 Auto 21 Picklist Mode 0 Disable 2 Enable 22 Same Barcode Timeout 5 99 0 1 sec Default 6 0 6 sec 23 Mobile Phone Display Mode 0 Disable 3 Enable 27 Illumination Power Level 1 10 default 10 28 Decoding Illumination 0 Disable 1 Enable 29 Decode Aiming Pattern 0 Disable 2 Enable 32 Inverse 1D 0 Regular 1 Inverse 2 Inver...

Страница 146: ...4 Length 1 1 0 55 default 2 5 Length 2 1 0 55 default 55 10 Full ASCII Conversion 0 Disable 1 Enable 19 Code 32 Prefix 0 Disable 1 Enable 20 Trioptic Code 39 0 Disable 1 Enable 21 Convert Code 39 to Code 32 0 Disable 1 Enable 12 Code 93 1 Read 0 Disable 1 Enable 4 Length 1 1 0 55 default 4 5 Length 2 1 0 55 default 55 13 Code 128 1 Read 0 Disable 1 Enable 4 Length 1 1 0 55 default 0 5 Length 2 1 0...

Страница 147: ...le 15 NOTIS Editing 0 Disable 1 Enable 15 EAN 8 JAN 8 1 Read 0 Disable 1 Enable 20 Zero Extend 0 Disable 1 Enable 16 EAN 13 JAN 13 1 Read 0 Disable 1 Enable 18 Interleaved 2 of 5 1 Read 0 Disable 1 Enable 2 Check Digit Verification 0 Disable 1 USS Check Digit 2 OPCC Check Digits 3 Transmit Check Digit 0 Disable 1 Enable 4 Length 1 1 0 55 default 14 5 Length 2 1 0 55 default 0 9 Convert to EAN 13 0...

Страница 148: ... Country Code 24 UPCE 1 Read 0 Disable 1 Enable 3 Transmit Check Digit 0 Disable 1 Enable 13 UPC E1 0 Disable 1 Enable 14 Convert UPC E to UPC A 0 Disable 1 Enable 20 Transmit UPC E1 Check Digit 0 Disable 1 Enable 21 Convert UPC E1 to UPC A 0 Disable 1 Enable 22 UPC E Preamble 0 Disable 1 System Character Only 2 System Character and Country Code 23 UPC E1 Preamble 0 Disable 1 System Character Only...

Страница 149: ...Supplemental If you select 978 Supplemental Mode and are scanning Bookland EAN bar codes you should enable Bookland EAN and select a format using Bookland ISBN Format 6 Enable 414 419 434 439 Supplemental 7 Enable 977 Supplemental 8 Enable 491 Supplemental 9 Supplemental User Programmable Type 1 Applies to EAN 13 bar codes starting with a 3 digit user defined prefix Set this 3 digit prefix using U...

Страница 150: ...lt 1 9 UPC EAN JAN Supplemental AIM ID Format 0 Separate 1 Combined 2 Separate Transmission 10 Coupon Report 0 Old Coupon Symbols 1 New Coupon Symbols 2 Both Coupon Formats 11 ISSN EAN 0 Disable 1 Enable 45 Australia Post 1 Read 0 Disable 1 Enable 2 Format 0 Auto 1 Raw Format 2 Alphanumeric Encoding 3 Numeric Encoding 48 Japan Postal 1 Read 0 Disable 1 Enable 49 KIX Code 1 Read 0 Disable 1 Enable ...

Страница 151: ...ds 4 OCR B Passport 6 OCR B ISBN 10 Digit Book Numbers 7 OCR B ISBN 10 or 13 Digit Book Numbers 8 OCR B Travel Document Version 2 TD2 2 Line ID Cards 9 OCR B Visa Type A 10 OCR B Visa Type B 14 Travel Document 2 or 3 Line ID Cards Auto Detect 4 OCR Orientation 0 OCR Orientation 0 1 OCR Orientation 270 Clockwise 2 OCR Orientation 180 Clockwise 3 OCR Orientation 90 Clockwise 4 OCR Orientation Omnidi...

Страница 152: ...S1 DataBar Expanded 0 Disable 1 Enable 4 Convert to UPC EAN 0 Disable 1 Enable 5 GS1 DataBar Limited Security Level 1 Level 1 2 Level 2 3 Level 3 4 Level 4 62 Korean 3 of 5 1 Read 0 Disable 1 Enable 63 Postal codes 1 US Postnet 0 Disable 1 Enable 2 US Planet 0 Disable 1 Enable 3 Transmit US Postal Check Digit 0 Disable 1 Enable 4 UK Postal 0 Disable 1 Enable 5 Transmit UK Postal Check Digit 0 Disa...

Страница 153: ... length to Length1 and 0 to Length2 For example for fixed length 14 set Length 1 14 Length2 0 Two Discrete Lengths To limit the decoding of Barcode to either of two specific lengths assigned greater length to Length1 and lesser to Length2 For example to decode barcode codes of either 2 or 14 characters only set Length 1 14 Length2 2 Length Within Range To decode Barcode that fall within a specific...

Страница 154: ...ook Numbers 0123456789 BCEINPSXz OCR B Travel Document Version 1 TD1 3 Line ID Cards 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ OCR B Travel Document Version 2 TD2 2 Line ID Cards 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ OCR B Travel Document 2 or 3 Line ID Cards Auto Detect 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ Ñ OCR B Passport 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZÑ OCR B Visa Type A 0123456789 ABCDEFGHI...

Страница 155: ...5 P03 Postnet US 136 P09 Postal Australia 138 P07 Postbar CA 139 P05 Postal Japan 142 P0A 4State US 143 P0B 4State US4 144 z Aztec 145 P00 DataMatrix 146 P02 Maxicode 147 P01 Micro QR Code 149 None OCR 152 G Discrete 2 of 5 153 M Code 39 Trioptic 156 A UPCE1 157 L Bookland 158 N Coupon Code 159 R GS1 DataBar 14 160 R GS1 DataBar Limited 161 R GS1 DataBar Expanded 162 D ISBT 128 209 A UPC E 215 K G...

Страница 156: ... Expanded 285 T CC A GS1 DataBar Limited 286 T CC A GS1 DataBar 14 287 T CC A UPC A 288 T CC A UPC E 289 T CC C GS1 128 297 T CC B GS1 128 298 T CC B EAN 13 299 T CC B EAN 8 300 T CC B GS1 DataBar Expanded 301 T CC B GS1 DataBar Limited 302 T CC B GS1 DataBar 14 303 T CC B UPC A 304 T CC B UPC E 314 U Chinese 2 of 5 315 V Korean 3 of 5 336 A UPC A 5 337 A UPC E 5 338 A EAN 8 5 339 A EAN 13 5 344 A...

Отзывы: