Barcode sato international pte



Yüklə 401,84 Kb.
Pdf görüntüsü
səhifə13/13
tarix05.10.2018
ölçüsü401,84 Kb.
#72511
1   ...   5   6   7   8   9   10   11   12   13

Keyboard 

Programming Manual  

81 

SATO Europe 



Appendix B Error Messages

 

 



(01) Syntax error 

The statement syntax is not correct. 

(02) IF without THEN 

If statement without THEN keyword. 

(03) IF without ENDIF 

If statement without ENDIF keyword. 

(04) ELSEIF without IF 

IF…THEN…ELSE…ELSEIF statement without ELSEIF keyword. 

(05) ELSE without IF 

IF…THEN…ELSE statement without IF keyword. 

(06) ENDIF without IF 

IF…THEN…ELSE statement without IF keyword. 

(07) FOR without NEXT 

FOR…NEXT statement without NEXT keyword. 

(08) NEXT without FOR 

FOR…NEXT statement without FOR keyword. 

(09) EXITFOR without FOR 

FOR…NEXT statement without FOR keyword. 

(10) WHILE without WEND 

WHILE…WEND statement without WEND keyword. 

(11) WEND without WHILE 

WHILE…WEND statement without WHILE keyword. 

(12) DO without LOOP 

DO…LOOP statement without LOOP keyword. 

(13) LOOP without DO 

DO…LOOP statement without DO keyword. 

(14) RETURN without GOSUB 

GOSUB…RETURN without GOSUB keyword 

(15) Mode error 

File operation access error. 




Programming Manual                                                      Keyboard

 

SATO Europe 



82

 

(16) File number error 



Illegal file handle number. 

(17) File not found 

The access file name does not exit in memory. 

(18) Too many labels 

The total numbers of label in the program is exceed than 200. 

(19) Duplicate label 

Declared twice of label name. 

(20) Label not found 

The specified label does not exit in program. 

(21) Illegal function call 

Function does not exit. 

(22) Illegal variable 

The variable name exits illegal letters. 

(23) Variable not defined 

The variable does not assigned value in the program. 

(24) Array not defined 

The accessed array does not exit. 

(25) Out of string space 

The string is longer than 254 bytes. 

(26) Too many variables 

The number of variables is larger than the definition. 

(27) Too many formats 

The numbers of specified format of PRINT USING command and OUT USING 

command is larger than 15. 

(28) Type mismatch 

The data types of the two variables or returned values are not the same. 

(29) Port error 

The port specified in OUT and FOUT command is other than 0 and 1. 

(30) Stack overflow 

The total numbers of GOSUB…RETURN, WHILE…WEND, DO…LOOP, 

FOR…NEXT, IF…THEN…ELSE statement is larger than the specified number. 

(31) Division by zero 




Keyboard 

Programming Manual  

83 

SATO Europe 



The dividend is zero. 

(32) Unknown operator 

The operator is not defined in K012 

(33) Expression too complex 

Arithmetic expression is too complex. 

(35) Duplicate array 

Duplicate declare array variable. 

(36) Out of memory

 

There is no t enough memory for download program or data file. 



(37) Too many files

 

The total number of files stored in memory exceeds that 50. 



(38) Unmatched brace

 

One of the right or left parentheses is missing. 



 


Programming Manual                                                      Keyboard

 

SATO Europe 



84

 

Appendix C - RS-232 Pin Configurations



 

 

Host and Printer RS-232 PIN Definition: 



 

A. RS-232 Serial Interface, 9-Pin D-Type connector pin definitions 

 

Host 


Device 

Printer 


IBM PC

 

K012 



K012 

K012 


Axiohm

TSC 


CLEVER

 

COM1 



COM1 

(Note 1) 

COM1 

(Note 2) 



COM2 

COM2 


COM2 

Pin 1 


/CD Å 

+ 5V Å 


+ 5VÅ 

+ 5V  Å 


+ 5V  Æ 

+ 5V Æ 


Pin 2 

RXD Å 


RXD Å 

TXD Æ 


TXD  Æ 

RXD  Å 


TXD Æ 

Pin 3 


TXD Æ 

TXD Æ 


RXD Å 

RXD  Å 


TXD Æ 

RXD Å 


Pin 4 

/DTR Æ 


/DTR Æ 

/DSR Å 


/DSR Å 

NC 


/DSR Å 

Pin 5 


GND 

GND 


GND 

GND 


GND 

GND 


Pin 6 

/DSR Å 


/DSR Å 

/DTR Æ 


/DTR Æ 

NC 


RDY Æ 

Pin 7 


/RTS Æ 

/RTS Æ 


/CTS Å 

/CTS Å 


/RTS Æ 

NC 


Pin 8 

/CTS Å 


/CTS Å 

/RTS Æ 


/RTS Æ 

/CTS Å 


RDY Æ 

Pin 9 


RIÅ 

+ 5V Å 


+ 5V Å 

+ 5V  Å 


+ 5V  Æ 

+ 5V Æ 


 

 

Note 1:  K012 Hardware SW1 & SW2 must ON. 



Note 2  K012 Hardware SW1 & SW2 must OFF. 

Note 3:   <-- symbol emblem INPUT, 

--> symbol emblem OUTPUT. 

 

 



 

 

 



 

 



Keyboard 

Programming Manual  

85 

SATO Europe 



B. RS-232 Serial Interface 25-Pin D-Type connector definition 

 

 



 

 

 



 

 

 



 

Host  


 

 

 



 

 

Printer 



 

RS-232C 


 

 

 



 

 

IBM PC  PC-8801 ProTool+ 



Zebra 

 

 



 

 

 



 

 

 



 

 

 



 

 

 



(Note 1) 

 1 


Protective Ground   

 

 



 

SHELL 


GND  

Frame GND 

Frame GND 

 2 


Transmitted Data 

 

 



 

 

TXD 



 

TXD   


RXD 

 

 



TXD 

 

 



 3 

Received Data   

 

 

 



 

RXD 


 

RXD


 

TXD 


 

 

RXD 



 

 

 4 



Request to Send 

 

 



 

 

/RTS 



 

RTS


 

/CTS 


 

 

/RTS 



 

 

 5 



Clear to Send   

 

 



 

 

/CTS 



 

/CTS 


 

/RTS 


 

 

/CTS 



 

 

 6 



Data Set Ready 

 

 



 

 

/DSR 



  /DSR

 

/DTR 



 

 

/DSR 



   

 7 


Signal Ground  

 

 



 

 

GND  



GND  

GND  


 

GND  


 

 8 


Received Line Signal Detector  

 

/CD  



 

DCD  


NC   

 

NC   



 

 9 


(Reserved for Data Set Testing) 

 

NC   



NC   

+ 5V 0.25A 

   5V 1A 

   


10 

(Reserved for Data Set Testing) 

 

NC   


NC   

+ 5V 0.25A 

  NC   

 

11 



Unassigned 

 

 



 

 

 



NC   

NC   


NC   

 

NC   



 

12 


Secondary Carrier Detect  

 

 



NC   

NC   


NC   

 

NC   



 

13 


Secondary Clear to Send  

 

 



NC   

NC   


NC   

 

NC   



 

14 


Secondary Transmitted Data   

 

NC   



NC   

+ 5V 0.25A 

  NC   

 

15 



Transmission Signal Element Timing 

NC   


NC   

NC   


 

NC   


 

16 


Secondary Received Data 

 

 



NC   

NC   


NC   

 

NC   



 

17 


Receiver Signal Element Timing 

 

NC   



RXC

 

NC   



 

NC   


 

18 


Unassigned 

 

 



 

 

 



NC   

NC   


NC   

 

NC   



 

19 


Secondary Request to Send   

 

NC   



NC   

NC   


 

NC   


 

20 


Data Terminal Ready 

 

 



 

/DTR 


 

/DTR


 

/DSR 


   

/DTR 


 

 

21 



Signal Quality Detector   

 

 



NC   

NC   


 

NC   


NC   

 

22 



Ring Indicator   

 

 



 

 

RI   



 

NC   


 

NC   


NC 

23 


Data Signal Rate Selector 

 

 



NC   

NC   


 

+ 5V 0.25A 

NC 

24 


Transmitter Signal Element Timing   

NC   


TXC

 

 



NC   

NC   


 

25 


Unassigned 

 

 



 

 

 



NC   

NC   


 

NC   


NC 

 

 



 

 

 



 

 

 



 

 

 



 

 

 



(Continued on next page) 

 



Programming Manual                                                      Keyboard

 

SATO Europe 



86

 

DATAMAX   



Ring 

 

TEC  



 

SAT O


 

 

1 Protective Ground  



 

 

CHASSIS   



Frame GND 

Frame GND 

Frame GND 

2 Transmitted Data   

 

 

TXD 



 

 

TXD 



 

 

RXD 



 

 

TXD 



 

3 Received Data 

 

 

 



RXD 

 

 



RXD 

 

 



TXD 

 

 



RXD 

 

4 Request to Send   



 

 

/RTS 



 

 

/RTS 



 

 

/CTS 



 

 

/RTS 



 

5 Clear to Send 

 

 

 



/CTS 

 

 



/CTS 

 

 



/RTS 

 

 



/CTS 

 

6 Data Set Ready 



 

 

 



NC   

 

/DSR 



   

/DTR 


 

 

/DSR 



 

7 Signal Ground 

 

 

 



GND  

 

GND  



 

GND  


 

GND 


8 Received Line Signal Detector  

NC   


 

NC   


 

NC   


 

NC 


9 (Reserved for Data Set Testing)   NC   

 

NC   



 

NC   


 

NC 


10 (Reserved for Data Set Testing)  NC   

 

+ 5V  



 

NC   


 

NC 


11 (Unassigned) 

 

 



 

NC   


 

NC   


 

NC   


 

NC 


12 Secondary Carrier Detect   

NC   


 

NC   


 

NC   


 

NC 


13 Secondary Clear to Send 

 

NC   



 

To Be Left Unused

 NC   

 

NC 



14 Secondary Transmitted Data 

+ 5V 0.1A 

 

To Be Left Unused



 NC   

 

NC 



15 Tx Signal Element Timing    

NC   


 

NC   


 

NC   


 

NC 


16 Secondary Received Data   

NC   


 

NC   


 

NC   


 

NC 


17 Receiver Signal Element Timing NC   

 

NC   



 

NC   


 

NC 


18 Unassigned  

 

 



 

NC   


 

NC   


 

NC   


 

NC 


19 Secondary Request to Send 

NC   


 

To Be Left Unused

 NC   

 

NC 



20 Data Terminal Ready   

 

BUSY 



   

/DTR 


 

 

/DSR 



   

/DTR 


 

21 Signal Quality Detector 

 

NC   


 

NC   


 

NC   


 

NC 


22 Ring Indicator 

 

 



 

NC   


 

NC   


 

NC   


 

NC 


23 Data Signal Rate Selector   

NC   


 

+ 5V  


 

NC   


 

NC 


24 Tx Signal Element Timing    

NC   


 

NC   


 

NC   


 

NC   


25 Unassigned  

 

 



 

NC   


 

To Be Left Unused

 NC   

 

NC 




Keyboard 

Programming Manual  

87 

SATO Europe 



Operation Guide 

 

Auto Execution Utility 



Power on  

Execute the “AUTO.BAS” program automatically 

 

Power-on Utility 



Power on with 

ALT


 

F1

 



Disable the auto execution utility 

Power on with 

ALT

 

SHIFT



     Upgrade keyboard BIOS 

Power on with 

ALT

 

CLEAR



    Keyboard initialization 

Power on with 

ALT

 

D



  

Extended file manager utility 

 

Keyboard Utilities 



 

FORM 


Select BASIC files to execute 

 

ENTER



 

Execute the selected item 

 EXIT 

Exit sub-menu 



 ← → 

Select parameters 

 ↑  ↓ 

Scroll files or cursor 



 

ALT F1 


Keyboard configuration setup 

 

ALT F2



 

On-line editing utility 

 

ALT F2


 

F1

  



Upload files 

 

ALT F2



 

CLEAR 


 

Delete files 

 

ALT D


 

Extended file manager 

 

ALT


 

EXIT


 

Reset keyboard 




Programming Manual                                                      Keyboard

 

SATO Europe 



88

 



Keyboard 

Programming Manual  

89 

SATO Europe 



INDEX 

 

!R ........................................ 23 



!W ....................................... 24 

ABS().............................................. 61 

Appendix A Limitations of TSKL ..... 82 

Appendix B Error Messages........... 83 

Appendix C RS-232 Pin Configurations

....................................................... 86 

Arithmetic Expressions................... 21 

Arithmetic Operators ...................... 20 

ASC() ............................................. 62 

Auto Execution ............................... 10 

Check-List ........................................ 9 

CHR$() ........................................... 68 

CLEAR ........................................... 27 

CLOSE ........................................... 39 

CLS ................................................ 26 

Commands and Statements ........... 22 

Communication Interface ................. 8 

CURSOR........................................ 28 

DATE.............................................. 77 

DIM................................................. 53 

DO…[EXITDO]…LOOP ................. 45 

Document Conventions .................... 5 

Double Float Data Type Variables .. 19 

DOWNLOAD .................................. 36 

Download A Program...................... 16 

Edit A Program ............................... 16 

END................................................ 52 

EOF() ............................................. 59 

EOP................................................ 37 

Execute A Program ........................ 17 

Execute downloaded BASIC program14 

Expressions.................................... 21 

Extended file manager....................14 

Features of K012 ..............................7 

Float Data Type Variables...............19 

FOR…[EXITFOR]…NEXT..............47 

FOUT..............................................33 

FRE() ..............................................64 

FREAD$() .......................................69 

FREE..............................................54 

Functions........................................20 

GOSUB…RETURN ........................44 

GOTO .............................................49 

HOUR .............................................78 

IDNUMBER$ ..................................81 

IF…THEN…ELSE ..........................50 

INKEY() ..........................................57 

INP$() .............................................58 

INPUT.............................................31 

INT() ...............................................65 

Keyboard BIOS Update ..................13 

Keyboard Configuration Setup........ 11 

Keyboard Initialization ....................10 

Keyboard Operation .......................10 

Keyboard Setup..............................10 

KILL ................................................40 

LEFT$() ..........................................70 

LEN() ..............................................63 

LOCATE .........................................29 

LOF() ..............................................60 

Long Integer Data Type Variables...18 

Loop Statements.............................45 

MID$() ............................................72 

MINUTE..........................................79 

MONTH ..........................................76 



Programming Manual                                                      Keyboard

 

SATO Europe 



90

 

Numeric Functions ......................... 20 



On-Line Editing Utility..................... 13 

OPEN ............................................. 38 

Operation Guide............................. 89 

Operators ....................................... 20 

Options............................................. 9 

OUT................................................ 32 

OUT USING ................................... 35 

POS() ............................................. 56 

Power-on Utilities ........................... 10 

PRINT…[USING] ........................... 30 

Program-Control Statements.......... 50 

Quick Start........................................ 6 

READ ............................................. 42 

Relational Expressions................... 21 

Relational Operators ...................... 20 

REM ............................................... 55 

RIGHT$()........................................ 71 

RND() ............................................. 67 

Safety Regulation............................. 9 

SECOND........................................ 80 

SEEK..............................................41 

SOUND ..........................................25 

SPC$()............................................74 

Specifications....................................7 

STR$()............................................73 

String Expressions..........................21 

String Functions..............................20 

String Operators .............................20 

String Variables...............................19 

System Variables......................19, 75 

TSKL Commands ...........................23 

TSKL Functions ..............................56 

Using K012 .....................................16 

VAL()...............................................66 

Variables.........................................18 

Variables, Constants, Functions, 

Operators, and Expressions ...........18 

WHILE…WEND..............................48 

WRITE............................................43 

YEAR..............................................75 



 

 


Yüklə 401,84 Kb.

Dostları ilə paylaş:
1   ...   5   6   7   8   9   10   11   12   13




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə