Printed on 20 March, 2006 User’s Guide – For Optimus Series BASIC Compiler Version 3.04
4 CipherLab BASIC Compiler User's Guide Font files for Optimus S & R: Font_OP_Japanese.shx // Japanese Font size: 16x16 (4 lines) Fon
94 CipherLab BASIC Compiler User's Guide 5.15.2 Special Font Files There are two standard fonts, namely the 6x8 and 8x16 fonts. Howe
Chapter 5 BASIC Commands 95 Remarks "A%" is an integer variable to be assigned to the result. The voltage level of the backup batter
96 CipherLab BASIC Compiler User's Guide 5.17 Communication Ports There are at least two communication ports on each terminal, namely COM1 an
Chapter 5 BASIC Commands 97 Specifying which type of interface is to be used, the user can use the same commands to open, close, read, and
98 CipherLab BASIC Compiler User's Guide READ_COM$ Purpose To read data from a specified communication port. Syntax A$ = READ_COM$(N%) Rema
Chapter 5 BASIC Commands 99 4 5 6 7 Standard IrDA RF, Bluetooth (SPP/DUN) GSM_SMS GSM_Modem This function needs to be called BEFORE opening a
100 CipherLab BASIC Compiler User's Guide 5.17.2 RS-232, Serial IR and IrDA Communications Baud rate: Eight options - 115200, 76800, 57600, 384
Chapter 5 BASIC Commands 101 IRDA_STATUS Purpose To check the IrDA connection status or transmission status. Syntax A% = IRDA_STATUS(N%) Re
102 CipherLab BASIC Compiler User's Guide IRDA_TIMEOUT Purpose To set the timeout for IrDA connection. Syntax IRDA_TIMEOUT(N%) Remarks "
Chapter 5 BASIC Commands 103 Parity% 1: None 2: Odd 3: Even Specifies the parity of the COM port. Data% 1: 7 data bits 2: 8 data bits Speci
Chapter 2 Development Environment 5 Items Requirements CPU Pentium 75MHz Operating System Windows 95/98/2000/NT/XP Minimum RAM 16 MB Minim
104 CipherLab BASIC Compiler User's Guide 5.18.1 RF Models & Specifications Below are the two types of RF communications and their specific
Chapter 5 BASIC Commands 105 5.18.2 RF System Requirements Base to Host: RS-232 connection Base Baud Rate: Up to 115,200 bps Base to Base: RS-4
106 CipherLab BASIC Compiler User's Guide 5.18.3 RF Terminal Properties Below are the RF properties on terminals. 2.4 GHz Terminal Properti
Chapter 5 BASIC Commands 107 CHECK_RF_BASE Purpose To check if the terminal is connected to a base. Syntax A% = CHECK_RF_BASE Remarks “A%”
108 CipherLab BASIC Compiler User's Guide Syntax A% = GET_RF_CHANNEL Remarks "A%" is an integer variable to be assigned to the resu
Chapter 5 BASIC Commands 109 SEARCH_RF_CHANNEL Purpose To automatically search for available channels when not being connected to a base for
110 CipherLab BASIC Compiler User's Guide SET_RF_POWER Purpose To set the RF output power. Syntax SET_RF_POWER(N%) Remarks "N%" i
Chapter 5 BASIC Commands 111 RF Practice Programming Flow 1. Set COM port (SET_COM_TYPE) Assign COM2 to RF communication, i.e. SET_COM_TYP
112 CipherLab BASIC Compiler User's Guide 5.18.4 RF Base Properties Below are the RF properties on base stations. 433 MHz Base Properties M
Chapter 5 BASIC Commands 113 5.18.5 Programming RF Base - RS-232 Host Command Sets Automatically Update Status: @AT RF Base Purpose To upda
6 CipherLab BASIC Compiler User's Guide Step 1 - download the BASIC Run-time to the target terminal. Step 2 - edit and compile the BASIC progra
114 CipherLab BASIC Compiler User's Guide Set / Get Channel: @CH RF Base Purpose To set or get the Base’s channel. Syntax @CHbbc\r bb: Base
Chapter 5 BASIC Commands 115 Set / Get Group: @GP RF Base (433 MHz only) Purpose To set or get the Base’s group. Syntax @GPbbg\r bb: Base ID
116 CipherLab BASIC Compiler User's Guide Set / Get Mode: @ME RF Base Purpose To set or get the Base’s mode. Syntax @MEbbm\r bb: Base ID (01
Chapter 5 BASIC Commands 117 Set Base Quiet: @QT RF Base Purpose To enable or disable the message (“@Oktt\r”, “@NGtt\r”, “@WTtt\r”) generatio
118 CipherLab BASIC Compiler User's Guide Return @TMbbtt…\r (tt repeat) bb: Base ID (01 ~ 16) tt: Terminal ID (01 ~ 45) Transmission Timeout:
Chapter 5 BASIC Commands 119 5.19 Wireless Communications Please refer to the previous section for port mapping. 5.19.1 Wireless Models This s
120 CipherLab BASIC Compiler User's Guide -18 18 EAP Enable Disable -19 19 EAP ID -20 20 EAP Password -21 2
Chapter 5 BASIC Commands 121 GET_NET_PARAMETER$ Purpose To get network settings. Syntax A$ = GET_NET_PARAMETER$(index%) Remarks "A$&qu
122 CipherLab BASIC Compiler User's Guide Example SET_NET_PARAMETER (1, "192.168.1.241") SET_NET_PARAMETER (11, "Disable")
Chapter 5 BASIC Commands 123 Net Status Network Configuration Index 802.11b SPP PAN (BNEP) GET_NET_ STATUS Configuration Item Return Valu
Chapter 2 Development Environment 7 2.4.3 Download the BASIC Object Files The user can use the BASIC Compiler or the standalone BASIC
124 CipherLab BASIC Compiler User's Guide 11 GSM RSSI 0 1 2 ... (3 ~ 29) 30 31 99 -113 dbm or less -111 dbm -109 dbm ... (1 for +2 dbm) -53
Chapter 5 BASIC Commands 125 5.19.3 IEEE 802.11b IEEE 802.11b is an industrial standard for Wireless Local Area Networking (WLAN),
126 CipherLab BASIC Compiler User's Guide TCP/IP Networking Here are the BASIC functions and statements relating to TCP/IP networking. Command
Chapter 5 BASIC Commands 127 4020 4021 4022 4023 4040 4041 4042 4043 4060 4061 4062 4063 4080 Connection #0 is connected Connection #1 is con
128 CipherLab BASIC Compiler User's Guide NCLOSE Purpose To close a TCP/IP connection. Syntax NCLOSE(N%) Remarks "N%" is an inte
Chapter 5 BASIC Commands 129 Remarks "A%" is an integer variable to be assigned to the result. Value Meaning 0 3000 3004 3007 3012
130 CipherLab BASIC Compiler User's Guide Remarks This command is to be replaced by GET_NET_PARAMETER$. Example NetSetting$ = SOCKET_IP$(0)
Chapter 5 BASIC Commands 131 "N%" is an integer variable, indicating which wireless module is to be used (all applicable to the CPT
132 CipherLab BASIC Compiler User's Guide 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 -10 -11 -12 -13 -14 -15 -16
Chapter 5 BASIC Commands 133 Remarks Note that the function must be called before using any socket read/write commands. "N%" is an i
8 The BASIC Compiler looks like a traditional Windows environment application that supports file management, text editing, and some other
134 CipherLab BASIC Compiler User's Guide 2. Initialize the 802.11b/Bluetooth module and networking protocol stack (1) START TCPIP The 802.1
Chapter 5 BASIC Commands 135 5. Other useful functions There are other routines for obtaining additional information or setting control for
136 CipherLab BASIC Compiler User's Guide 5.19.4 Bluetooth Serial Port Profile (SPP) is for ad hoc networking, without going through any acc
Chapter 5 BASIC Commands 137 BT_INQUIRY$ Purpose To search any available Bluetooth devices in range. Syntax A$ = BT_INQUIRY$ Remarks It ta
138 CipherLab BASIC Compiler User's Guide Value (type%) Meaning 1 3 4 PAN (AP required) SPP DUN It will try to pair with any Bluetooth devi
Chapter 5 BASIC Commands 139 Frequent Device List Getting Frequent Device List The length of Frequent Device List by calling GET_NET_PARAMET
140 CipherLab BASIC Compiler User's Guide Example code: FREQ_DEV$ = “” CLS FOR K% = 1 TO 8 FDL$ = “” FDL$ = GET_NET_PARAMETER$(-39-K%) IF M
Chapter 5 BASIC Commands 141 … Example code (2): ‘setting up a SPP Frequent Device List with authentication (needs PIN code) by calling SET_NET
142 CipherLab BASIC Compiler User's Guide Bluetooth Practice Bluetooth Configuration The parameters can be accessed via GET_NET_PARAME
Chapter 5 BASIC Commands 143 3. Open COM port (OPEN_COM) To initialize the Bluetooth module and set up connection, call OPEN_COM(2). 4. Det
Chapter 3 Using The BASIC Compiler 9 Function To open an existing BASIC program. Open Operation Click "File" on the menu bar a
144 CipherLab BASIC Compiler User's Guide The “Serial to Keyboard Converter” helps to develop a keyboard key in application without any serial
Chapter 5 BASIC Commands 145 5.20 File Manipulation This section describes the commands relating to file manipulation. There are two different
146 CipherLab BASIC Compiler User's Guide 5.20.1 DAT Files This one has a sequential file structure, which is much like the ordinary sequential
Chapter 5 BASIC Commands 147 Syntax DEL_TRANSACTION_DATA_EX(file%, N%) Remarks "file%" is an integer variable in the range of 1 to
148 CipherLab BASIC Compiler User's Guide ELSE IF KeyData$ = “Y” THEN EMPTY_TRANSACTION END IF See Also DEL_TRANSACTION_DATA, EMPTY_
Chapter 5 BASIC Commands 149 Syntax A$ = GET_TRANSACTION_DATA_EX$(file%, N%) Remarks "A$" is a string variable to be assigned to th
150 CipherLab BASIC Compiler User's Guide SAVE_TRANSACTION_EX Purpose To save (append) a transaction record to a specified transaction file.
Chapter 5 BASIC Commands 151 TRANSACTION_COUNT_EX Purpose To get the total number of transaction records saved in a specified transaction file
152 CipherLab BASIC Compiler User's Guide Syntax UPDATE_TRANSACTION_EX(file%, N%, data$) Remarks "file%" is an integer variable in
Chapter 5 BASIC Commands 153 Data records are not manipulated directly from the DBF file but rather through its associated IDX fil
10 CipherLab BASIC Compiler User's Guide Function To cut a paragraph off the text and place it on the clipboard. The paragraph will be remo
154 CipherLab BASIC Compiler User's Guide For example, if DBF 1 contains four records: 011-231, 120-117, 043-010, 067-150. The key (index) of
Chapter 5 BASIC Commands 155 Example ON COM(1) GOSUB HostCommand ... HostCommand: Cmd$ = READ_COM$(1) CmdIdentifier$ = LEFT$(C
156 CipherLab BASIC Compiler User's Guide IDXNum% = VAL(MID$(Cmd$, 3, 1)) CardID$ = RIGHT$(Cmd$, LEN(Cmd$)-3) IF CmdIdentifier$
Chapter 5 BASIC Commands 157 ELSE … See Also UPDATE_RECORD GET_RECORD_NUMBER Purpose To get the ordinal number of the record pointed
158 CipherLab BASIC Compiler User's Guide Syntax MOVE_TO_NEXT(file% [,index%]) Remarks "file%" is an integer variable in the range
Chapter 5 BASIC Commands 159 Syntax UPDATE_RECORD(file%, index%, data$) Remarks "file%" is an integer variable in the range of 1 to
160 CipherLab BASIC Compiler User's Guide Error Code Interpretation 10 No free memory for file extension. For other types of error, i.e. in
Chapter 5 BASIC Commands 161 Remarks "A%" is an integer variable to be assigned to the result. Value Meaning 1 -1 -2 -3 -4 Write fl
162 CipherLab BASIC Compiler User's Guide RAM_SIZE Purpose To get the size of data memory (SRAM) in kilo-bytes. Syntax A% = RAM_SIZE Remarks
Chapter 5 BASIC Commands 163 * L(8), T(0) * L(43), T(0) * L(9), T(0) ASGN(2) ON_ENQUIRY(128) ... * L(10), T(0) ASGN(3) * GOTO(68)
Chapter 3 Using The BASIC Compiler 11 Operation Click "Edit" on the menu bar and select "Find". In the pop-up window, e
164 CipherLab BASIC Compiler User's Guide START_DEBUG Purpose To start the debug function. Syntax START_DEBUG(N%, Baudrate%, Parity%, Data%,
Chapter 5 BASIC Commands 165 Example STOP_DEBUG See Also START_DEBUG 5.23 Reserved Host Commands There are some commands reserved for
166 CipherLab BASIC Compiler User's Guide Syntax A$ = READ A$ = READ(file%) Remarks "A$" is a string variable to be assigned to the
Chapter 5 BASIC Commands 167 Syntax A$ = TR Remarks "A$" is a string variable to be assigned to the result, which is in the form of
168 CipherLab BASIC Compiler User's Guide
169 The data terminals support the decodability of several barcode symbologies, such as: Code 39 Italy Pharmacode French Pharmacode In
170 CipherLab BASIC Compiler User's Guide This appendix describes associated symbology parameters and scanner parameters. Symbology Parameter
Appendix I Barcode Setting 171 Length Qualification Because of the weak structure of the 2 of 5 barcodes, it is possible to make a "short
172 CipherLab BASIC Compiler User's Guide EAN13 & UPCA ISBN Conversion If this parameter is enabled, the EAN 13 codes starting with 978 an
Appendix I Barcode Setting 173 Checksum Transmission If this parameter is enabled, the checksum characters (two characters) will be transmitted
12 CipherLab BASIC Compiler User's Guide Function To set the properties of the secondary COM port. Secondary COM Port Setting Operatio
174 CipherLab BASIC Compiler User's Guide RSS14 Expanded Transmit Code ID If this parameter is enabled, the default Code ID will be included i
Appendix I Barcode Setting 175 Test Mode The reader is always scanning and will decode repeatedly even with the same barcode. Momentary Mode Th
176 CipherLab BASIC Compiler User's Guide Time-Out This parameter is used to limit the maximum scanning time interval when the scan mode is set
177 Error Code Explanation 1 Unknown operator 2 Operand count mismatch 3 Type mismatch 4 Can't perform type conversion 5 No available te
179 Debugging messages indicate the activities happening on the system. The common debugging messages are listed as follows. Message Exp
180 CipherLab BASIC Compiler User's Guide CODE_TYPE Indicating the command CODE_TYPE is processed. COM_DELIMITER(N%,C%) Indicating the comman
Appendix III Debugging Messages 181 EVENT(9) Indicating the "TIMER(1) EVENT" happens. EVENT(10) Indicating the "TIMER(2) EVENT
182 CipherLab BASIC Compiler User's Guide GET_CTS(N%) Indicating the command GET_CTS is processed. N% is the number of the COM port. GET_DEVIC
Appendix III Debugging Messages 183 INKEY$(A$) Indicating the command INKEY is processed. INPUT Indicating the command INOUT is processed. IN
Chapter 3 Using The BASIC Compiler 13 Command To Do... Function To check the syntax of the BASIC program. Syntax checking Operation C
184 CipherLab BASIC Compiler User's Guide NCLOSE(N%) Indicating the command NCLOSE is processed. N% is the connection number. NOT Indicating
Appendix III Debugging Messages 185 ON_TIMER(N1%,N2%) Indicating the command ON TIMER GOSUB is called. ON_TOUCHSCREEN(N%) Indicating the com
186 CipherLab BASIC Compiler User's Guide SET_PRECISION(N%) Indicating the command SET_PRECISION is processed. N% is the numeric precision. SE
Appendix III Debugging Messages 187 T(N%) Indicating the stack's level. When the program branches to a subroutine, the stack's level
189 @ @AT • 119 @BC • 119 @BS • 119 @CH • 120 @DT • 120 @ER • 120 @GP • 121 @HD • 121 @ID • 121 @ME • 122 @PW • 122 @QT • 123 @SP • 123 @TM • 123
190 Index CLEAR • 179 CLOSE_COM • 103 CLR_KBD • 83 CLR_RECT • 87 CLS • 88 CODE_TYPE • 58 COM_DELIMITER • 106 Commands Barcode Reader • 58 Battery
Index 191 IF ... THEN ... [ELSE...] • 28 IF ... THEN ... {ELSE IF...} [ELSE...] END IF • 28 IF … THEN … END IF • 29 INKEY$ • 84 INPUT • 85 INPUT_
192 Index SET_RFID_WRITE • 68 SET_RTS • 109 SET_SCREENITEMS • 100 SET_SIGNAREA • 100 SET_VIDEO_MODE • 97 SET_WEDGE • 75 SGN • 27 SHIFT_LOCK • 86 S
Copyright © 2005 Metrologic Instruments Inc. All rights reserved The software contains proprietary information of Metrologic Instruments Inc.; it is p
14 CipherLab BASIC Compiler User's Guide Command To Do... Function To display a table of contents for the BASIC online documentation. Co
15 In This Chapter 4.1 Constants ... 15 4.2 Variables...
16 CipherLab BASIC Compiler User's Guide Integer Constants - Whole numbers between - 32,768 and + 32,767. No decimal point. Real Number
Chapter 4 Basics of the BASIC Language 17 An array variable name has as many dimensions as there are subscripts in the array. For example, A(12
18 CipherLab BASIC Compiler User's Guide 4.3.2 Arithmetic Operator The arithmetic operators are: Operator Operation Sample Expression ^ Expo
Chapter 4 Basics of the BASIC Language 19 XOR Exclusive or IF (A% = B%) XOR (C% = D%) 4.4 Operator Precedence The precedence of BASIC o
20 CipherLab BASIC Compiler User's Guide ... GOTO Label2 ... Label2: PRINT "This is a character string label."
Chapter 4 Basics of the BASIC Language 21 Since all the variables in the BASIC program are treated as global variables, passing ar
22 This chapter provides detailed descriptions of the commands supported by the BASIC Compiler. In addition to the commands commonly use
Chapter 5 BASIC Commands 23 See Also List of related commands is provided, if there is any. Note: The types of terminals that support a spe
i Contents Copyright Notice II Introduction 1 Typographical Conventions ...
24 CipherLab BASIC Compiler User's Guide 5.1 General Commands This section describes commands that are not confined to any specific hardware fe
Chapter 5 BASIC Commands 25 Example GOSUB DoIt ... GOSUB Done ... SUB DoIt( ) PRINT "Now I've done it!" END SUB ...
26 CipherLab BASIC Compiler User's Guide Syntax REM remark ' remark Remarks "remark" may be any sequence of characters. The BA
Chapter 5 BASIC Commands 27 5.2 Commands for Decision Structures Based on the value of an expression, decision structures cause a program to ta
28 CipherLab BASIC Compiler User's Guide {ELSE IF condition2 THEN Statementblock2} [ELSE StatementblockN] END IF Remarks “condition” is a
Chapter 5 BASIC Commands 29 Syntax ON N GOSUB SubName|SubLabel {, SubName|SubLabel} Remarks "N" is a numeric expression that is ro
30 CipherLab BASIC Compiler User's Guide Example PRINT "Input a number (1-9):" INPUT Num% CLS ON Num% GOTO 100, 100, 200, 200, 300,
Chapter 5 BASIC Commands 31 Example DataCount% = TRANSACTION_COUNT FOR Counter% = 1 TO DataCount% Data$ = GET_TRANSACTION_DATA$(Counter%)
32 CipherLab BASIC Compiler User's Guide Remarks If the "condition" is true, loop statements are executed until the WEND statement i
Chapter 5 BASIC Commands 33 If there is no difference between the corresponding characters of two strings and they are the same length, then
ii Contents 4.4 Operator Precedence ...
34 CipherLab BASIC Compiler User's Guide "X$", "Y$" may be a string variable, string expression, or string constant. If
Chapter 5 BASIC Commands 35 Syntax A$ = MID$(X$, N%[, M%])
36 CipherLab BASIC Compiler User's Guide Remarks "A$" is a string variable to be assigned to the result. "N%" and "M%
Chapter 5 BASIC Commands 37 Example S1$ = TRIM_LEFT$(" Hello World!") ' S1$ = "Hello World!" TRIM_RIGHT$ Purp
38 CipherLab BASIC Compiler User's Guide Example A$ = CHR$(65) ' A$ = "A" HEX$ Purpose To return a string that represents t
Chapter 5 BASIC Commands 39 Syntax A$ = STR$(N%) Remarks "A$" is a string variable to be assigned to the result. "N%" is
40 CipherLab BASIC Compiler User's Guide VALR Purpose To convert a string expression to a real number. Syntax A! = VALR(X$) Remarks "A!
Chapter 5 BASIC Commands 41 5.5 Commands for Event Trapping An event is an action recognized by the terminal, such as a function keystroke is d
42 CipherLab BASIC Compiler User's Guide 6 READER Event: a barcode data is decoded. 7 TCPIP Event: any data packet is received via TCP/IP. 8
Chapter 5 BASIC Commands 43 COM Model Number 1 ~ 2 1 ~ 4 7xx, 8000, 8300 8500 Example ON COM(1) GOSUB HostCommand ... HostCommand_1:
Contents iii 5.19.4 Bluetooth ...
44 CipherLab BASIC Compiler User's Guide Example OFF HOUR_SHARP See Also ON HOUR_SHARP GOSUB… OFF KEY Purpose To terminate the "FUNCTI
Chapter 5 BASIC Commands 45 OFF READER Purpose To terminate the "READER Event Trigger" that executes a specific subroutine when data
46 CipherLab BASIC Compiler User's Guide Example ON TIMER(1,200) GOSUB ClearScreen ... ClearScreen: OFF TIMER(1) CLS RETUR
Chapter 5 BASIC Commands 47 Example ON ESC GOSUB Key_Esc ... Key_Esc: OFF ESC ... ON ESC GOSUB Key_Esc RETURN See Also Ke
48 CipherLab BASIC Compiler User's Guide Remarks "number%" is an integer variable in the range of 1 to 12 (1 to 9 for 711), indicati
Chapter 5 BASIC Commands 49 ON READER ... GOSUB ... Purpose To activate the "READER Event Trigger" that executes a specific subrout
50 CipherLab BASIC Compiler User's Guide ON TIMER ... GOSUB ... Purpose To activate the "TIMER Event Trigger" that executes a specif
Chapter 5 BASIC Commands 51 Example ON READER(1) GOSUB BcrData_1 ON READER(2) GOSUB BcrData_2 ... BcrData_1: LOCK BEEP(2000,5) Data$ = GET_REA
52 CipherLab BASIC Compiler User's Guide 5.6 System Commands This section describes the system commands, such as the commands to change the CPU
Chapter 5 BASIC Commands 53 DEVICE_ID$ Purpose To get the serial number of the terminal. Syntax A$ = DEVICE_ID$ Remarks “A$” is a string var
54 CipherLab BASIC Compiler User's Guide Remarks “A%” is an integer variable to be assigned to the result. Value Meaning Font Size or Code P
Chapter 5 BASIC Commands 55 MENU Purpose To create a menu and let the user to select an item by using (1) the shortcut keys or (2) the UP/DOWN
56 CipherLab BASIC Compiler User's Guide See Also AUTO_OFF, RESTART RESTART Purpose To restart the system. Syntax RESTART Remarks The RE
Chapter 5 BASIC Commands 57 Remarks Note that this function will fail if the multi-language font file does not exist. "N%" is an int
58 CipherLab BASIC Compiler User's Guide Purpose To write version information to the system. Syntax VERSION(A$) Remarks "A$" is a
Chapter 5 BASIC Commands 59 Remarks "A%" is an integer variable to be assigned to the result. The following list shows the possible
60 CipherLab BASIC Compiler User's Guide Example DISABLE READER(1) See Also ENABLE READER, GET_READER_DATA$ ENABLE READER Purpose To enable
Chapter 5 BASIC Commands 61 See Also DISABLE READER, ENABLE_READER, OFF READER, ON READER GOSUB… GET_READER_SETTING Purpose To get the value
62 CipherLab BASIC Compiler User's Guide 3 1: Enable CIP 39 0: Disable CIP 39 4 1: Enable Industrial 25 0: Disable Industrial 25 5 1: Enab
Chapter 5 BASIC Commands 63 0: Disable Plessey 21 Reserved 22 1: Transmit Code 39 Start/Stop Character 0: DO NOT transmit Code 39 Start/
1 The BASIC Compiler provides users with a complete programming environment to develop application programs for the terminals in the BASIC language
64 CipherLab BASIC Compiler User's Guide 0: Use Industrial 25 Start/Stop Pattern 1: Use Interleave 25 Start/Stop Pattern 2: Use Matrix 25
Chapter 5 BASIC Commands 65 0: DO NOT transmit EAN8 Check Digit 50 1: Transmit EAN13 Check Digit 0: DO NOT transmit EAN13 Check Digit 51
66 CipherLab BASIC Compiler User's Guide 70 Scan Mode for Scanner Port 1 0: Auto Off Mode 1: Continuous Mode 2: Auto Power Off Mode 3: Alter
Chapter 5 BASIC Commands 67 85 1: Enable Telepen 0: Disable Telepen Example READER_SETTING(1,1) ' Code 39 readability is enabled. S
68 CipherLab BASIC Compiler User's Guide Wedge_2$ 2-1 00: Normal 10: Capital lock keyboard 11: Shift lock keyboard Wedge_2$ 0 1: Use numeri
Chapter 5 BASIC Commands 69 For example, if the terminal type is PCAT (US), then the first element of the WedgeSetting$ can be defined as follo
70 CipherLab BASIC Compiler User's Guide 5.9.6 Digits Position This setting can force the SEND_WEDGE function to treat the position of the digi
Chapter 5 BASIC Commands 71 For example, to set the inter-character delay to be 10 millisecond, the third element of the WedgeSetting$ can be d
72 CipherLab BASIC Compiler User's Guide 0xC0 : Indicates that the next character is to be treated as scan code. Transmit it as it is, no trans
Chapter 5 BASIC Commands 73 Syntax SEND_WEDGE(DataString$) Remarks "DataString$" is the data string to be sent via the keyboard wed
2 BASIC Compiler User's Guide Typographical Conventions Before you start using this guide, it is important to understand the terms and typograp
74 CipherLab BASIC Compiler User's Guide Remarks The return value is 1 if it is ready for sending data; otherwise, it returns 0. Note that it
Chapter 5 BASIC Commands 75 KEY_CLICK Purpose To enable/disable the key click sound. Syntax KEY_CLICK(status%) Remarks "status%" i
76 CipherLab BASIC Compiler User's Guide Commands for triggering the HOUR_SHARP event, the MINUTE_SHARP event, and the TIMER event: OFF HOUR
Chapter 5 BASIC Commands 77 Example ON DAY_OF_WEEK GOSUB 100, 200, 300, 400, 500, 600, 700 ... 100 PRINT "Today is Monday.&qu
78 CipherLab BASIC Compiler User's Guide Remarks "A&" is a long integer variable to be assigned to the result. Note that the TIM
Chapter 5 BASIC Commands 79 LED Purpose To specify the LED lighting behavior. Syntax LED(number%, mode%, duration%) Remarks "number%&qu
80 CipherLab BASIC Compiler User's Guide Commands for triggering the ESC event and the KEY event: OFF ESC, OFF KEY, ON ESC GOSUB..., ON KEY GOS
Chapter 5 BASIC Commands 81 Remarks By calling this function, the data queuing in the keyboard buffer will be cleared. Example CLR_KBD ON KEY
82 CipherLab BASIC Compiler User's Guide Remarks "X$" is a string variable to be assigned to the character read. It can be used with
Chapter 5 BASIC Commands 83 Remarks "mode%" is an integer variable, indicating the input mode. Value Meaning 0 1 2 Nothing will be
3 In This Chapter 2.1 Disk Contents ... 3 2.2 System Requirements ...
84 CipherLab BASIC Compiler User's Guide CLR_RECT Purpose To clear a rectangular area. Syntax CLR_RECT(x%, y%, size_x%, size_y%) Remarks &qu
Chapter 5 BASIC Commands 85 Example CURSOR(0) See Also CURSOR_X, CURSOR_Y, LOCATE CURSOR_X Purpose To get the current x-coordinate of the c
86 CipherLab BASIC Compiler User's Guide Example ON READER(1) GOSUB BcrData_1 ... BcrData_1: BEEP(2000,5) Data$ = GET_READER_D
Chapter 5 BASIC Commands 87 Remarks "DataCount%" is an integer variable to be assigned to the result; it is the total data count sto
88 CipherLab BASIC Compiler User's Guide See Also PRINT, SHOW_IMAGE LCD_CONTRAST Purpose To set the contrast level for the LCD. Syntax LCD_
Chapter 5 BASIC Commands 89 Example LOCATE 1,1 PRINT String$(20,"") LOCATE 1,1 A = 5 PRINT A, "square is "; A*A ' cl
90 CipherLab BASIC Compiler User's Guide Example icon_1$ = chr$(0)+chr$(0)+chr$(0)+chr$(0)+chr$(248)+chr$(255)+chr$(7) icon_2$ = chr$(0)+chr$
Chapter 5 BASIC Commands 91 See Also GET_IMAGE, ICON_ZONE_PRINT, PRINT WAIT_HOURGLASS Optimus Purpose To show a moving hourglass on the LCD
92 CipherLab BASIC Compiler User's Guide Factors to Monochrome Graphic A monochrome graphic has three factors: Key Factor Parameter Value
Chapter 5 BASIC Commands 93 SET_VIDEO_MODE Purpose To set the display mode for the LCD. Syntax SET_VIDEO_MODE(mode%) Remarks "mode%&qu
Kommentare zu diesen Handbüchern