Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 15 of 15

FMT1000 Series Programmer's Guide, pages 135 to 142

Pages 135 to 142 of 142: Appendix A Sample Applications; Appendix B XT 101 Keyboard Scan Codes

The original document is the PDF (965 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol FMT-1020

Page 135

Appendix A Sample Applications Sample applications are included on the Network Drivers and Utilities diskette provided with the FMT1000 Series computer. All the applications were written in QBasic. QBasic is included in MS DOS 5.0. These applications are meant to be samples. They provide some very simple methods of accessing the various features of FMT1000 Series computers. Some of the samples adjust the factory default settings. To reset the unit to factory defaults, send the command echo SFD > COM2 at the DOS prompt or reboot the FMT1000 Series computer to remove the changes made. Here are brief descriptions of some of the application samples: 1. Setting the User-Definable Keys (UDK.BAS): The FMT1000 Series computer has four user-definable keys, denoted on the keyboard as UDK1 through UDK4, which can be programmed with a specific key sequence. The scan codes, which are included in Appendix B, are the standard XT codes. This sample program takes you through the setting of the UDKs. 2. Access Control and Time and Attendance (TIMEDEMO.BAS): This application demonstrates a simple time and attendance application. The FMT1000 Series computer can read in numeric data, e.g., a badge number. This data can be on a bar code or keypunched. It then accesses a file to see if there is an employee name associated with the number. If it finds an employee name, it closes the access control relays and opens the door. If it does not, it asks if you want to add a name to the data file and then open the door. To demonstrate the relays, an LED (or other light source) may be turned on by the current supplied by the closing of the relays. 3. Enable or Disable a Bar Code Type (BARDEMO.BAS): Many applications require the reading of only one specific type of bar code. This application takes you through the process of enabling and disabling different bar code symbologies supported by the FMT1000 Series computer.

A-1

Page 136

FMT1000 Series Programmer’s Guide

4. Interfacing with RS-232 Devices through COM1 (COM1DEMO.BAS): This application shows how to communicate with an RS-232 device connected to COMI. The device we selected is one of our OEM microterminals. For details about the RS-232 auxiliary port please refer to the Chapter 2 of this manual. To run this program, you will need a character mode RS-232 terminal and a null modem cable with CTS and DTR pulled high.

A-2

Page 137

Appendix B XT 101 Keyboard Scan Codes For the sake of legibility, the keyboard scan codes are divided into two graphics: • Section A Keyboard • Section B Keyboard.

Figure B-1, Figure B-2, and Figure B-3 identify the sections of the keyboard and the scan codes specific to each.

B-1

Page 138 read from a scan by OCR; it may hold reading errors

Programmer’s Guide

FMT1000 Series a

LLU SU (bu “UUOUU OU | QUUU UU | : UL

WLU ono

JO

Ao = : eC JUODODODODOL_O | >CODODOUDOOOOOOD | eC OODOCDDCOOLLUG |

0000 0000 0000 0 |

Figure B-1. Sections of the Keyboard

B-2

Page 139 read from a scan by OCR; it may hold reading errors

B-3

Figure B-2. Section A Keyboard Scan Codes

FI

BB

BC

F8 42 C2

F141 57 D7

F12 58 D8

02 82

04 84

$

05 85

%

06 86

07 87

08 88

09 89

_ + BACKSPACE i OE

Ww 11

E 12 92

R 13 93

T 14 94

Y 15 95

16 96

1A

D 20 AO

G 22 A2

H 23 A3

24 A4

27 AZ

28 A8

2C AC

2D AD

A

ALT 38

Note ALT B6

XT 101 Keyboard Scan Codes

Page 140

FMT1000 Series Programmer’s Guide

NOTES: 1. PRINT SCREEN key: DOWN code is E0 2A E0 7C. UP code is E0 B7 E0 AA. If CTRL KEY IS down, DOWN code is E0 37 and UP code is E0B7. If ALT key is down, DOWN code is 54 and UP code is D4. 2. PAUSE key: DOWN code is E1 1D 45 E1 9D C5. There is no UP CODE. BREAK is active when CTRL is down. DOWN code is E0 46 E0 C6. There is no UP code. 3. / key: DOWN code is E0 35. If LEFT SHIFT is down, the code is E0 AA D0 35 and the UP code is E0 B5 E0 2A. If RIGHT SHIFT is down, the code is E0 B6 E0 35 and the UP code is E0 B5 E0 35. 4. UP and DOWN code sequence is preceded by E0 hex. 5. If LEFT SHIFT is down, DOWN code is E0AA E) ## and UP code is E0 @@ E0 36, where ## is DOWN code and @@ is UP code for notated key.. See legend. LEGEND FOR KEYBOARD SECTIONS A & B XXXXX YYYYY ## @@

XXXXX = SHIFTED CHARACTER YYYYY = CHARACTER ## = DOWN CODE IN HEXADECIMAL @@ = UP CODE IN HEXADECIMAL

Figure B-3. Section B Keyboard Scan Codes B-4

Page 141

XT 101 Keyboard Scan Codes

Keyboard Redefinition Using ANSI.SYS In DOS version 5.0 and higher, individual keys may be redefined using the ANSI.SYS driver. In particular, use the following invocation in CONFIG.SYS to enable full 101-key compatibility: DEVICE=(drive:\path\)ANSI.SYS /X

Subsequently, individual keys may be redefined with sequences: ESC[key;"string"p where the letters ESC stand for the ASCII "Escape" character (Hex 1B), and the letters key stand for the particular keycode of the key being redefined. For example, to refine the key F1 to transmit "DIR /P" when pressed, issue the following: echo ESC[0;59;"DIR /P"p or to transmit a ^C when F2 is pressed: echo ESC[0;60;03p

See pages B-3 and B-4 for keycode definitions.

B-5

Page 142

FMT1000 Series Programmer’s Guide

B-6