Metrologic IS1000 Series Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Barcodeleser Metrologic IS1000 Series herunter. Metrologic IS1000 Series User`s guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 198
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - BASIC Compiler

Printed on 20 March, 2006 User’s Guide – For Optimus Series BASIC Compiler Version 3.04

Seite 2 - Copyright Notice

4 CipherLab BASIC Compiler User's Guide  Font files for Optimus S & R: Font_OP_Japanese.shx // Japanese Font size: 16x16 (4 lines) Fon

Seite 3 - Contents

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

Seite 4

Chapter 5 BASIC Commands 95 Remarks "A%" is an integer variable to be assigned to the result. The voltage level of the backup batter

Seite 5

96 CipherLab BASIC Compiler User's Guide 5.17 Communication Ports There are at least two communication ports on each terminal, namely COM1 an

Seite 6

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

Seite 7 - Introduction

98 CipherLab BASIC Compiler User's Guide READ_COM$ Purpose To read data from a specified communication port. Syntax A$ = READ_COM$(N%) Rema

Seite 8 - Revision History

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

Seite 9 - Development Environment

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

Seite 10 - 2.2 System Requirements

Chapter 5 BASIC Commands 101 IRDA_STATUS Purpose To check the IrDA connection status or transmission status. Syntax A% = IRDA_STATUS(N%) Re

Seite 11 - 2.4 Development Flow

102 CipherLab BASIC Compiler User's Guide IRDA_TIMEOUT Purpose To set the timeout for IrDA connection. Syntax IRDA_TIMEOUT(N%) Remarks "

Seite 12

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

Seite 13

Chapter 2 Development Environment 5 Items Requirements CPU Pentium 75MHz Operating System Windows 95/98/2000/NT/XP Minimum RAM 16 MB Minim

Seite 14 - Using The BASIC Compiler

104 CipherLab BASIC Compiler User's Guide 5.18.1 RF Models & Specifications Below are the two types of RF communications and their specific

Seite 15 - 3.2 Edit Menu

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

Seite 16

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

Seite 17 - 3.3 Configure Menu

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%”

Seite 18 - 3.4 Compile Menu

108 CipherLab BASIC Compiler User's Guide Syntax A% = GET_RF_CHANNEL Remarks "A%" is an integer variable to be assigned to the resu

Seite 19 - 3.5 Help Menu

Chapter 5 BASIC Commands 109 SEARCH_RF_CHANNEL Purpose To automatically search for available channels when not being connected to a base for

Seite 20

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

Seite 21 - Basics of the BASIC Language

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

Seite 22 - 4.2 Variables

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

Seite 23 - 4.3 Expression and Operators

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

Seite 24 - 4.3.4 Logical Operator

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

Seite 25 - 4.5 Labels

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

Seite 26 - 4.6 Subroutines

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

Seite 27 - 4.7 Programming Style

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

Seite 28 - BASIC Commands

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

Seite 29 - In This Chapter

118 CipherLab BASIC Compiler User's Guide Return @TMbbtt…\r (tt repeat) bb: Base ID (01 ~ 16) tt: Terminal ID (01 ~ 45) Transmission Timeout:

Seite 30 - 5.1 General Commands

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

Seite 31

120 CipherLab BASIC Compiler User's Guide  -18 18 EAP Enable Disable  -19 19 EAP ID  -20 20 EAP Password  -21 2

Seite 32

Chapter 5 BASIC Commands 121 GET_NET_PARAMETER$ Purpose To get network settings. Syntax A$ = GET_NET_PARAMETER$(index%) Remarks "A$&qu

Seite 33 - Structures

122 CipherLab BASIC Compiler User's Guide Example SET_NET_PARAMETER (1, "192.168.1.241") SET_NET_PARAMETER (11, "Disable")

Seite 34

Chapter 5 BASIC Commands 123  Net Status Network Configuration Index 802.11b SPP PAN (BNEP) GET_NET_ STATUS Configuration Item Return Valu

Seite 35

Chapter 2 Development Environment 7 2.4.3 Download the BASIC Object Files The user can use the BASIC Compiler or the standalone BASIC

Seite 36

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

Seite 37

Chapter 5 BASIC Commands 125 5.19.3 IEEE 802.11b IEEE 802.11b is an industrial standard for Wireless Local Area Networking (WLAN),

Seite 38 - 5.4.2 Comparing Strings

126 CipherLab BASIC Compiler User's Guide TCP/IP Networking Here are the BASIC functions and statements relating to TCP/IP networking. Command

Seite 39 - 5.4.4 Searching for Strings

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

Seite 40

128 CipherLab BASIC Compiler User's Guide NCLOSE Purpose To close a TCP/IP connection. Syntax NCLOSE(N%) Remarks "N%" is an inte

Seite 41

Chapter 5 BASIC Commands 129 Remarks "A%" is an integer variable to be assigned to the result. Value Meaning 0 3000 3004 3007 3012

Seite 42

130 CipherLab BASIC Compiler User's Guide Remarks This command is to be replaced by GET_NET_PARAMETER$. Example NetSetting$ = SOCKET_IP$(0)

Seite 43 - 5.4.6 Converting for Strings

Chapter 5 BASIC Commands 131 "N%" is an integer variable, indicating which wireless module is to be used (all applicable to the CPT

Seite 44

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

Seite 45

Chapter 5 BASIC Commands 133 Remarks Note that the function must be called before using any socket read/write commands. "N%" is an i

Seite 46

8 The BASIC Compiler looks like a traditional Windows environment application that supports file management, text editing, and some other

Seite 47 - 5.5.1 Event Triggers

134 CipherLab BASIC Compiler User's Guide 2. Initialize the 802.11b/Bluetooth module and networking protocol stack (1) START TCPIP The 802.1

Seite 48

Chapter 5 BASIC Commands 135 5. Other useful functions There are other routines for obtaining additional information or setting control for

Seite 49

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

Seite 50

Chapter 5 BASIC Commands 137 BT_INQUIRY$ Purpose To search any available Bluetooth devices in range. Syntax A$ = BT_INQUIRY$ Remarks It ta

Seite 51

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

Seite 52

Chapter 5 BASIC Commands 139 Frequent Device List  Getting Frequent Device List The length of Frequent Device List by calling GET_NET_PARAMET

Seite 53

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

Seite 54

Chapter 5 BASIC Commands 141 … Example code (2): ‘setting up a SPP Frequent Device List with authentication (needs PIN code) by calling SET_NET

Seite 55

142 CipherLab BASIC Compiler User's Guide Bluetooth Practice  Bluetooth Configuration The parameters can be accessed via GET_NET_PARAME

Seite 56 - 5.5.2 Lock and Unlock

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

Seite 57

Chapter 3 Using The BASIC Compiler 9  Function To open an existing BASIC program. Open  Operation Click "File" on the menu bar a

Seite 58 - 5.6 System Commands

144 CipherLab BASIC Compiler User's Guide The “Serial to Keyboard Converter” helps to develop a keyboard key in application without any serial

Seite 59

Chapter 5 BASIC Commands 145 5.20 File Manipulation This section describes the commands relating to file manipulation. There are two different

Seite 60

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

Seite 61

Chapter 5 BASIC Commands 147 Syntax DEL_TRANSACTION_DATA_EX(file%, N%) Remarks "file%" is an integer variable in the range of 1 to

Seite 62

148 CipherLab BASIC Compiler User's Guide ELSE IF KeyData$ = “Y” THEN EMPTY_TRANSACTION END IF See Also DEL_TRANSACTION_DATA, EMPTY_

Seite 63

Chapter 5 BASIC Commands 149 Syntax A$ = GET_TRANSACTION_DATA_EX$(file%, N%) Remarks "A$" is a string variable to be assigned to th

Seite 64 - 5.7 Barcode Reader Commands

150 CipherLab BASIC Compiler User's Guide SAVE_TRANSACTION_EX Purpose To save (append) a transaction record to a specified transaction file.

Seite 65

Chapter 5 BASIC Commands 151 TRANSACTION_COUNT_EX Purpose To get the total number of transaction records saved in a specified transaction file

Seite 66

152 CipherLab BASIC Compiler User's Guide Syntax UPDATE_TRANSACTION_EX(file%, N%, data$) Remarks "file%" is an integer variable in

Seite 67

Chapter 5 BASIC Commands 153 Data records are not manipulated directly from the DBF file but rather through its associated IDX fil

Seite 68

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

Seite 69

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

Seite 70

Chapter 5 BASIC Commands 155 Example ON COM(1) GOSUB HostCommand ... HostCommand: Cmd$ = READ_COM$(1) CmdIdentifier$ = LEFT$(C

Seite 71

156 CipherLab BASIC Compiler User's Guide IDXNum% = VAL(MID$(Cmd$, 3, 1)) CardID$ = RIGHT$(Cmd$, LEN(Cmd$)-3) IF CmdIdentifier$

Seite 72

Chapter 5 BASIC Commands 157 ELSE … See Also UPDATE_RECORD GET_RECORD_NUMBER Purpose To get the ordinal number of the record pointed

Seite 73 - 5.9 Keyboard Wedge Commands

158 CipherLab BASIC Compiler User's Guide Syntax MOVE_TO_NEXT(file% [,index%]) Remarks "file%" is an integer variable in the range

Seite 74 - 5.9.2 KBD / Terminal Type

Chapter 5 BASIC Commands 159 Syntax UPDATE_RECORD(file%, index%, data$) Remarks "file%" is an integer variable in the range of 1 to

Seite 75 - 5.9.5 Alphabets Case

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

Seite 76 - 5.9.9 Inter-Character Delay

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

Seite 77

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

Seite 78

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)

Seite 79

Chapter 3 Using The BASIC Compiler 11  Operation Click "Edit" on the menu bar and select "Find". In the pop-up window, e

Seite 80 - 5.10 Buzzer Commands

164 CipherLab BASIC Compiler User's Guide START_DEBUG Purpose To start the debug function. Syntax START_DEBUG(N%, Baudrate%, Parity%, Data%,

Seite 81

Chapter 5 BASIC Commands 165 Example STOP_DEBUG See Also START_DEBUG 5.23 Reserved Host Commands There are some commands reserved for

Seite 82

166 CipherLab BASIC Compiler User's Guide Syntax A$ = READ A$ = READ(file%) Remarks "A$" is a string variable to be assigned to the

Seite 83

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

Seite 84 - 5.13 LED Command

168 CipherLab BASIC Compiler User's Guide

Seite 85 - 5.14 Keypad Commands

169 The data terminals support the decodability of several barcode symbologies, such as:  Code 39  Italy Pharmacode  French Pharmacode  In

Seite 86

170 CipherLab BASIC Compiler User's Guide This appendix describes associated symbology parameters and scanner parameters. Symbology Parameter

Seite 87

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

Seite 88

172 CipherLab BASIC Compiler User's Guide EAN13 & UPCA ISBN Conversion If this parameter is enabled, the EAN 13 codes starting with 978 an

Seite 89 - 5.15 LCD Commands

Appendix I Barcode Setting 173 Checksum Transmission If this parameter is enabled, the checksum characters (two characters) will be transmitted

Seite 90

12 CipherLab BASIC Compiler User's Guide  Function To set the properties of the secondary COM port. Secondary COM Port Setting  Operatio

Seite 91

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

Seite 92

Appendix I Barcode Setting 175 Test Mode The reader is always scanning and will decode repeatedly even with the same barcode. Momentary Mode Th

Seite 93

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

Seite 94

177 Error Code Explanation 1 Unknown operator 2 Operand count mismatch 3 Type mismatch 4 Can't perform type conversion 5 No available te

Seite 96

179 Debugging messages indicate the activities happening on the system. The common debugging messages are listed as follows. Message Exp

Seite 97

180 CipherLab BASIC Compiler User's Guide CODE_TYPE Indicating the command CODE_TYPE is processed. COM_DELIMITER(N%,C%) Indicating the comman

Seite 98

Appendix III Debugging Messages 181 EVENT(9) Indicating the "TIMER(1) EVENT" happens. EVENT(10) Indicating the "TIMER(2) EVENT

Seite 99

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

Seite 100 - 5.16 Battery Commands

Appendix III Debugging Messages 183 INKEY$(A$) Indicating the command INKEY is processed. INPUT Indicating the command INOUT is processed. IN

Seite 101

Chapter 3 Using The BASIC Compiler 13 Command To Do...  Function To check the syntax of the BASIC program. Syntax checking  Operation C

Seite 102 - 5.17 Communication Ports

184 CipherLab BASIC Compiler User's Guide NCLOSE(N%) Indicating the command NCLOSE is processed. N% is the connection number. NOT Indicating

Seite 103

Appendix III Debugging Messages 185 ON_TIMER(N1%,N2%) Indicating the command ON TIMER GOSUB is called. ON_TOUCHSCREEN(N%) Indicating the com

Seite 104

186 CipherLab BASIC Compiler User's Guide SET_PRECISION(N%) Indicating the command SET_PRECISION is processed. N% is the numeric precision. SE

Seite 105

Appendix III Debugging Messages 187 T(N%) Indicating the stack's level. When the program branches to a subroutine, the stack's level

Seite 107

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

Seite 108

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

Seite 109 - 5.18 RF Communications

Index 191 IF ... THEN ... [ELSE...] • 28 IF ... THEN ... {ELSE IF...} [ELSE...] END IF • 28 IF … THEN … END IF • 29 INKEY$ • 84 INPUT • 85 INPUT_

Seite 110

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

Seite 111 -  2.4 GHz RF System

Copyright © 2005 Metrologic Instruments Inc. All rights reserved The software contains proprietary information of Metrologic Instruments Inc.; it is p

Seite 112

14 CipherLab BASIC Compiler User's Guide Command To Do...  Function To display a table of contents for the BASIC online documentation. Co

Seite 113

15 In This Chapter 4.1 Constants ... 15 4.2 Variables...

Seite 114

16 CipherLab BASIC Compiler User's Guide  Integer Constants - Whole numbers between - 32,768 and + 32,767. No decimal point.  Real Number

Seite 115

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

Seite 116

18 CipherLab BASIC Compiler User's Guide 4.3.2 Arithmetic Operator The arithmetic operators are: Operator Operation Sample Expression ^ Expo

Seite 117 - RF Practice

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

Seite 118 - 5.18.4 RF Base Properties

20 CipherLab BASIC Compiler User's Guide ... GOTO Label2 ... Label2: PRINT "This is a character string label."

Seite 119

Chapter 4 Basics of the BASIC Language 21 Since all the variables in the BASIC program are treated as global variables, passing ar

Seite 120

22 This chapter provides detailed descriptions of the commands supported by the BASIC Compiler. In addition to the commands commonly use

Seite 121

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

Seite 122

i Contents Copyright Notice II Introduction 1 Typographical Conventions ...

Seite 123

24 CipherLab BASIC Compiler User's Guide 5.1 General Commands This section describes commands that are not confined to any specific hardware fe

Seite 124

Chapter 5 BASIC Commands 25 Example GOSUB DoIt ... GOSUB Done ... SUB DoIt( ) PRINT "Now I've done it!" END SUB ...

Seite 125 - 5.19 Wireless Communications

26 CipherLab BASIC Compiler User's Guide Syntax REM remark ' remark Remarks "remark" may be any sequence of characters. The BA

Seite 126

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

Seite 127

28 CipherLab BASIC Compiler User's Guide {ELSE IF condition2 THEN Statementblock2} [ELSE StatementblockN] END IF Remarks “condition” is a

Seite 128

Chapter 5 BASIC Commands 29 Syntax ON N GOSUB SubName|SubLabel {, SubName|SubLabel} Remarks "N" is a numeric expression that is ro

Seite 129 -  Net Status

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,

Seite 130

Chapter 5 BASIC Commands 31 Example DataCount% = TRANSACTION_COUNT FOR Counter% = 1 TO DataCount% Data$ = GET_TRANSACTION_DATA$(Counter%)

Seite 131 - 5.19.3 IEEE 802.11b

32 CipherLab BASIC Compiler User's Guide Remarks If the "condition" is true, loop statements are executed until the WEND statement i

Seite 132 - TCP/IP Networking

Chapter 5 BASIC Commands 33 If there is no difference between the corresponding characters of two strings and they are the same length, then

Seite 133

ii Contents 4.4 Operator Precedence ...

Seite 134

34 CipherLab BASIC Compiler User's Guide "X$", "Y$" may be a string variable, string expression, or string constant. If

Seite 135

Chapter 5 BASIC Commands 35 Syntax A$ = MID$(X$, N%[, M%])

Seite 136

36 CipherLab BASIC Compiler User's Guide Remarks "A$" is a string variable to be assigned to the result. "N%" and "M%

Seite 137

Chapter 5 BASIC Commands 37 Example S1$ = TRIM_LEFT$(" Hello World!") ' S1$ = "Hello World!" TRIM_RIGHT$ Purp

Seite 138

38 CipherLab BASIC Compiler User's Guide Example A$ = CHR$(65) ' A$ = "A" HEX$ Purpose To return a string that represents t

Seite 139 - TCP/IP Practice

Chapter 5 BASIC Commands 39 Syntax A$ = STR$(N%) Remarks "A$" is a string variable to be assigned to the result. "N%" is

Seite 140

40 CipherLab BASIC Compiler User's Guide VALR Purpose To convert a string expression to a real number. Syntax A! = VALR(X$) Remarks "A!

Seite 141

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

Seite 142 - 5.19.4 Bluetooth

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

Seite 143

Chapter 5 BASIC Commands 43 COM Model Number 1 ~ 2 1 ~ 4 7xx, 8000, 8300 8500 Example ON COM(1) GOSUB HostCommand ... HostCommand_1:

Seite 144

Contents iii 5.19.4 Bluetooth ...

Seite 145 - Frequent Device List

44 CipherLab BASIC Compiler User's Guide Example OFF HOUR_SHARP See Also ON HOUR_SHARP GOSUB… OFF KEY Purpose To terminate the "FUNCTI

Seite 146

Chapter 5 BASIC Commands 45 OFF READER Purpose To terminate the "READER Event Trigger" that executes a specific subroutine when data

Seite 147 - Example code (2):

46 CipherLab BASIC Compiler User's Guide Example ON TIMER(1,200) GOSUB ClearScreen ... ClearScreen: OFF TIMER(1) CLS RETUR

Seite 148 - Bluetooth Practice

Chapter 5 BASIC Commands 47 Example ON ESC GOSUB Key_Esc ... Key_Esc: OFF ESC ... ON ESC GOSUB Key_Esc RETURN See Also Ke

Seite 149 -  Keyboard Emulator

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

Seite 150

Chapter 5 BASIC Commands 49 ON READER ... GOSUB ... Purpose To activate the "READER Event Trigger" that executes a specific subrout

Seite 151 - 5.20 File Manipulation

50 CipherLab BASIC Compiler User's Guide ON TIMER ... GOSUB ... Purpose To activate the "TIMER Event Trigger" that executes a specif

Seite 152 - 5.20.1 DAT Files

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

Seite 153

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

Seite 154

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

Seite 156

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

Seite 157

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

Seite 158

56 CipherLab BASIC Compiler User's Guide See Also AUTO_OFF, RESTART RESTART Purpose To restart the system. Syntax RESTART Remarks The RE

Seite 159

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

Seite 160

58 CipherLab BASIC Compiler User's Guide Purpose To write version information to the system. Syntax VERSION(A$) Remarks "A$" is a

Seite 161

Chapter 5 BASIC Commands 59 Remarks "A%" is an integer variable to be assigned to the result. The following list shows the possible

Seite 162

60 CipherLab BASIC Compiler User's Guide Example DISABLE READER(1) See Also ENABLE READER, GET_READER_DATA$ ENABLE READER Purpose To enable

Seite 163

Chapter 5 BASIC Commands 61 See Also DISABLE READER, ENABLE_READER, OFF READER, ON READER GOSUB… GET_READER_SETTING Purpose To get the value

Seite 164

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

Seite 165 - 5.20.3 Error Code

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/

Seite 166 - 5.21 Memory

1 The BASIC Compiler provides users with a complete programming environment to develop application programs for the terminals in the BASIC language

Seite 167

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

Seite 168 - 5.22 Debugging Commands

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

Seite 169

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

Seite 170

Chapter 5 BASIC Commands 67 85 1: Enable Telepen 0: Disable Telepen Example READER_SETTING(1,1) ' Code 39 readability is enabled. S

Seite 171 - 5.23 Reserved Host Commands

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

Seite 172

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

Seite 173

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

Seite 174

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

Seite 175 - Barcode Setting

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

Seite 176 - Symbology Parameters

Chapter 5 BASIC Commands 73 Syntax SEND_WEDGE(DataString$) Remarks "DataString$" is the data string to be sent via the keyboard wed

Seite 177 - Codabar

2 BASIC Compiler User's Guide Typographical Conventions Before you start using this guide, it is important to understand the terms and typograp

Seite 178 - Plessey

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

Seite 179 - RSS14 Limited

Chapter 5 BASIC Commands 75 KEY_CLICK Purpose To enable/disable the key click sound. Syntax KEY_CLICK(status%) Remarks "status%" i

Seite 180 - Scanner Parameters

76 CipherLab BASIC Compiler User's Guide Commands for triggering the HOUR_SHARP event, the MINUTE_SHARP event, and the TIMER event: OFF HOUR

Seite 181 - Read Redundancy

Chapter 5 BASIC Commands 77 Example ON DAY_OF_WEEK GOSUB 100, 200, 300, 400, 500, 600, 700 ... 100 PRINT "Today is Monday.&qu

Seite 182 - Negative Barcode

78 CipherLab BASIC Compiler User's Guide Remarks "A&" is a long integer variable to be assigned to the result. Note that the TIM

Seite 183 - Run-Time Error Table

Chapter 5 BASIC Commands 79 LED Purpose To specify the LED lighting behavior. Syntax LED(number%, mode%, duration%) Remarks "number%&qu

Seite 184

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

Seite 185 - Debugging Messages

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

Seite 186

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

Seite 187

Chapter 5 BASIC Commands 83 Remarks "mode%" is an integer variable, indicating the input mode. Value Meaning 0 1 2 Nothing will be

Seite 188

3 In This Chapter 2.1 Disk Contents ... 3 2.2 System Requirements ...

Seite 189

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

Seite 190

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

Seite 191

86 CipherLab BASIC Compiler User's Guide Example ON READER(1) GOSUB BcrData_1 ... BcrData_1: BEEP(2000,5) Data$ = GET_READER_D

Seite 192

Chapter 5 BASIC Commands 87 Remarks "DataCount%" is an integer variable to be assigned to the result; it is the total data count sto

Seite 193

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_

Seite 194

Chapter 5 BASIC Commands 89 Example LOCATE 1,1 PRINT String$(20,"") LOCATE 1,1 A = 5 PRINT A, "square is "; A*A ' cl

Seite 195

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$

Seite 196

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

Seite 197

92 CipherLab BASIC Compiler User's Guide Factors to Monochrome Graphic A monochrome graphic has three factors: Key Factor Parameter Value

Seite 198

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

Keine Kommentare