SATO Smart Keyboard Manuale del proprietario

SATO Smart Keyboard
Programming manual

SATO Group of Companies
BARCODE SATO INTERNATIONAL PTE
LT D
438A Alexandra Road #05-01/ 02,
Alexandra Technopark,
Singapore 119967
Tel: +65-6271-2122
Fax: +65-6271-2151
Website: www.barcodesato.com
Email: sale[email protected]
SATO EUROPE NV
Leuvensesteenweg 369,
1932 Sint-Stevens-Woluwe, Brussels, Belgium
Tel: +32 (0)-2-788-80-00
Fax: +32 (0)-2-788-80-80
Website: www.sato-europe.com
Email: info@sato-europe.com
SATO UK LTD
Valley Road, Harwich, Essex England
Co12 4RR, United Kingdom
Tel: +44-1255-240000
Fax: +44-1255-240111
Website: www.satouk.com
Email: enquiries@satouk.com
SATO DEUTSCHLAND GMBH
Schaberweg 28, 61348
Bad Homburg, Germany
Tel: +49 (0)-6-1726-8180
Fax: +49 (0)-6-1726-818-199
Website: www.sato-deutschland.de
Email: info@sato-deutschland.de
SATO POLSKA SP Z O.O.
Ul Okolna 2, 50-422 Wroclaw
Poland
Tel: +48-71-335-23-20
Fax: +48-71-335-23-25
Website: www.sato-europe.com
Email: info@sato-europe.com
SATO AMERICA INC.
10350 Nations Ford Road Suite A,
Charlotte, NC 28273
Tel: +1-704-644-1650
Fax: +1-704-644-1662
Website: www.satoamerica.com
Email: satosales@satoamerica.com
SATO SHANGHAI CO, LTD
11 Floor, D, Pudong South Road 1111,
Pudong New Area, Shanghai,
China 200120
Tel: +86 (0)-21-58307080
Fax: +86 (0)-21-58307978
Website: www.barcodesato.com
Email: sales@satochina.com
BAR CODE SATO ELECTRONICS (S) PTE
LT D
438A Alexandra Road #05-01/02,
Alexandra Technopark, Singapore 119967
Tel: +65-6271-5300
Fax: +65-6273-6011
Website: www.barcodesato.com
www.satosingapore.com
Email: sales@satosingapore.com
SATO BAR CODE & LABELLING SDN BHD
Suite B-08-11&12, Block B Plaza Mont'
Kiara, No.2, Jalan Kiara Mont' Kiara,
50480 Kuala Lumpur, Malaysia
Tel: +60-3-6203-5950
Fax: +60-3-6203-1209
Website: www.barcodesato.com
Email: sale[email protected]
BARCODE SATO (THAILAND) CO. LTD
370/8 Supattra Building, 5th Floor, Rama9
Road, Bangkapi, Huay Kwang
Bangkok 10320, Thailand
Tel: +662-719-7780-3
Fax: +662-719-7784
Website: www.barcodesato.com
Email: sales@satothailand.co.th

Keyboard Programming Manual
1 SATO Europe
The information contained herein is subject to change without notice.
Reproduction of this manual either in part or its entirety is forbidden.
Note that the manufacturer assumes no responsibility for any injury or loss
incurred while using this manual.

Programming Manual Keyboard
SATO Europe 2
CONTENT
DOCUMENT CONVENTIONS ...........................................................................................5
FEATURES OF K012.........................................................................................................6
SPECIFICATIONS .............................................................................................................6
COMMUNICATION INTERFACE .......................................................................................7
SAFETY REGULATION .....................................................................................................8
CHECK-LIST......................................................................................................................8
OPTIONS...........................................................................................................................8
KEYBOARD SETUP ..........................................................................................................
KEYBOARD OPERATION .................................................................................................
POWER-ON UTILITIES .....................................................................................................
AUTO EXECUTION ...........................................................................................................
KEYBOARD INITIALIZATION ............................................................................................
KEYBOARD CONFIGURATION SETUP..........................................................................10
KEYBOARD BIOS UPDATE.............................................................................................12
ON-LINE EDITING UTILITY.............................................................................................12
EXTENDED FILE MANAGER ..........................................................................................13
EXECUTE DOWNLOADED BASIC PROGRAM...............................................................14
USING K012 ....................................................................................................................15
EDIT A PROGRAM ..........................................................................................................15
DOWNLOAD A PROGRAM..............................................................................................15
EXECUTE A PROGRAM..................................................................................................16
VARIABLES, CONSTANTS, FUNCTIONS, OPERATORS, AND EXPRESSIONS ............17
VARIABLES .....................................................................................................................17
LONG INTEGER DATA TYPE VARIABLES......................................................................18
FLOAT DATA TYPE VARIABLES .....................................................................................18
DOUBLE FLOAT DATA TYPE VARIABLES ......................................................................18
STRING VARIABLES.......................................................................................................18
SYSTEM VARIABLES......................................................................................................18
FUNCTIONS ....................................................................................................................1
NUMERIC FUNCTIONS...................................................................................................1
STRING FUNCTIONS......................................................................................................1
OPERATORS...................................................................................................................1
ARITHMETIC OPERATORS ............................................................................................1
STRING OPERATORS ....................................................................................................1
RELATIONAL OPERATORS ............................................................................................1
EXPRESSIONS ...............................................................................................................20

Keyboard Programming Manual
3 SATO Europe
ARITHMETIC EXPRESSIONS.........................................................................................20
STRING EXPRESSIONS .................................................................................................20
RELATIONAL EXPRESSIONS.........................................................................................20
COMMANDS AND STATEMENTS ...................................................................................21
TSKL COMMANDS ..........................................................................................................22
<ESC>!R..........................................................................................................................22
<ESC>!W.........................................................................................................................23
SOUND............................................................................................................................24
CLS..................................................................................................................................25
CLEAR.............................................................................................................................26
CURSOR .........................................................................................................................27
LOCATE...........................................................................................................................28
PRINT…[USING] .............................................................................................................2
INPUT ..............................................................................................................................30
OUT .................................................................................................................................31
FOUT...............................................................................................................................32
OUT USING .....................................................................................................................33
DOWNLOAD....................................................................................................................34
EOP .................................................................................................................................35
OPEN...............................................................................................................................36
CLOSE.............................................................................................................................37
KILL .................................................................................................................................38
SEEK ...............................................................................................................................3
READ...............................................................................................................................40
WRITE .............................................................................................................................41
GOSUB…RETURN..........................................................................................................42
LOOP STATEMENTS.......................................................................................................43
DO…[EXITDO]…LOOP ...................................................................................................43
FOR…[EXITFOR]…NEXT ...............................................................................................45
WHILE…WEND ...............................................................................................................46
GOTO ..............................................................................................................................47
PROGRAM-CONTROL STATEMENTS............................................................................48
IF…THEN…ELSE............................................................................................................48
END .................................................................................................................................50
DIM ..................................................................................................................................51
FREE ...............................................................................................................................52
REM.................................................................................................................................53
TSKL FUNCTIONS ..........................................................................................................54

Programming Manual Keyboard
SATO Europe 4
POS()...............................................................................................................................54
INKEY()............................................................................................................................55
INP$() ..............................................................................................................................56
EOF()...............................................................................................................................57
LOF() ...............................................................................................................................58
ABS() ...............................................................................................................................5
ASC() ...............................................................................................................................60
LEN() ...............................................................................................................................61
FRE() ...............................................................................................................................62
INT().................................................................................................................................63
VAL()................................................................................................................................64
RND()...............................................................................................................................65
CHR$().............................................................................................................................66
FREAD$() ........................................................................................................................67
LEFT$()............................................................................................................................68
RIGHT$() .........................................................................................................................6
MID$()..............................................................................................................................70
STR$() .............................................................................................................................71
SPC$() .............................................................................................................................72
SYSTEM VARIABLES......................................................................................................73
YEAR ...............................................................................................................................73
MONTH............................................................................................................................74
DATE ...............................................................................................................................75
HOUR ..............................................................................................................................76
MINUTE ...........................................................................................................................77
IDNUMBER$....................................................................................................................7
APPENDIX A - LIMITATIONS OF TSKL ...........................................................................80
APPENDIX B - ERROR MESSAGES...............................................................................81
APPENDIX C - RS-232 PIN CONFIGURATIONS.............................................................84
OPERATION GUIDE........................................................................................................87

Keyboard Programming Manual
5 SATO Europe
Document Conventions
This manual uses the following typographic conventions
Examples of convention Description
> Angle brackets, enclose mnemonic
representations of ASCII control characters.
[ ] Square brackets, the data within square brackets
is optional.
Ctrl Bold letters represent a key on the keyboard.
Ctrl-C Two keys with a dash, means to press them
simultaneously.
Italic Italic letters represent explanations given in the
context.
Bold Italic Note. Important information.
The Keyboard
From PC, Scanner, Scale, etc. To Printer

Programming Manual Keyboard
SATO Europe 6
Features of K012
68 keys with keypad
LCD screen (20 characters × 2 lines)
Additional RS-232 port (COM 2) for another input device
Maximum of 50 files can be stored in memory
Upload or download files through both serial ports
Real Time Clock (Y2K compatible)
Built-in Euro logo (ASCII 176, 177)
Floating point calculation
Password security locking
Auto execution function
Specifications
Keyboard Unit
Size 261mm(L)×142.2mm(W)×31mm(H)
Weight 440g
LCD 20 characters × 2 lines
Max Current 5V, 250mA
External Power 5V, 150mA
Operating
emperature 40°F~104°F (5°C~40°C)
Storage emperature -4°F~140°F (-20°C~60°C
Memory
FLASH 512 KB for system, 1 MB for application
SRAM 128 KB for system, 128KB for application

Keyboard Programming Manual
7 SATO Europe
Communication Interface
The available communication parameters for both serial ports are listed below:
Bit rate: 2400, 4800, 9600, 19200 bps
Parity check: none, even or odd
Data bits: 7 or 8
Stop bit(s): 1 or 2
COM1 Port
Serial interface, COM1, is a 9-pin, male, D-style subminiature connector with cable. The pin
assignments are shown below:
Pin Configuration
1 Power input 5 volts, 250mA
2 RxD
3 TxD
4 DTR
5 Ground
6 DSR
7 RTS
8 CTS
9 Connected with Pin1 internally
COM2 Port
COM2 is a 9-pin, female, D-style subminiature connector with pin assignments as shown as
below:
Pin Configuration
1 Power input 5 volts, 250mA
2 TxD
3 RxD
4 DSR
5 Ground
6 DTR
7 CTS
8 RTS
9 Connect with Pin1 internally

Programming Manual Keyboard
SATO Europe 8
Safety Regu ation
FCC Class A
CE EMC
Check-List
Verify the contents of the container according to the list below, if any parts are missing,
please contact your local representative.
K012 keyboard unit
K012 User’s Manual
25 pin to 9 pin RS-232 converter
2 screws for SI thread
Options
External power set
AC adapter
Input: 110V AC or 220V AC
Output: 5V DC
RS-232 cable with power adapter jack
Indice

















