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 3 of 47

PDT 1100 Terminal Programmer's Guide: Contents, pages 12 to 19

Pages 12 to 19 of 413, from PDT 1100 Terminal Programmer's Guide

The original document is the PDF (3.5 MB). 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 PDT-1100

Page 12

PDT 1100 Programmer’s Guide

Appendix H. Programming Notes Sleep Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-1 Resume Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-2 Low Battery Warning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-2 Selecting a Communications Device File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3 Prohibited Simultaneous Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3 Controlling the LCD Backlight . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3 Keyboard (Keypad) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-3 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-4 RS/CS Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-4 Supplemental Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-4 Flash ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-4 Storing Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-5 Deleting Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-5 Specifying Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-5 Memory Areas Required for User Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-5 Retained Contents of Flash ROM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-6 Wake-up Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-6 LED and Beeper Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-6 Controlling Reading Confirmation LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-6 Controlling the Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-7 APLINT.PD3 Program File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-7 Modifying PW Key Depression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-7 CODE128 Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-8 Field Length Restriction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H-8

Appendix I. Backlight Function Appendix J. Program Samples Writing a Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-1 Testing the Written Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . J-3

Appendix K. Quick Reference for Statements and Functions Controlling Program Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-1 Handling Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-2 Defining and Allocating Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-2 Controlling the LCD Screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-3 Controlling the Keyboard Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-4 Beeping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .K-4 Manipulating System Date, Current Time, or Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-5 x

Page 13

Contents

Communicating with I/Os . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-5 Communicating with Bar Code Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-6 Manipulating Data Files and User Program Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-7 Communicating with Communications Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-8 Commenting a Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-9 Manipulating Numeric Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-9 Manipulating String Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-9 Defining User-Created Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-10 Specifying Included Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . K-10

Appendix L. Unsupported Statements and Functions Appendix M. Communications Basic Communications Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-1 Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-1 Optical Interface Communications Range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-2 Transmission Code and Bit Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-2 Response Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-2 Vertical Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-2 BCC for Horizontal Parity Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-3 IR Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-4 Communications Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . M-5 In System Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-5 Communications Protocols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-6 Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-6 IR Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . M-21 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-21 xi

Page 14

PDT 1100 Programmer’s Guide xii

Page 15

About This Guide The PDT 1100 Programmer’s Guide provides general instructions for programming the PDT 1100 terminal. The chapters are set up as follows: !

! ! ! ! ! !

! !

! !

Chapter 1, Software Overview surveys the software structure of the PDT 1100, introduces the programs integrated in the ROM and the language features of BASIC 3.0. Chapter 2, Development Environment and Procedures describes the hardware, software, and procedures required for developing programs. Chapter 3, Program Structure summarizes the basic structure of programs. Chapter 4, Basic Program Elements describes the format of a program line, usable characters, and labels. Chapter 5, Data Types covers data which the program can handle by classifying them into data types – constants and variables. Chapter 6, Expressions and Operators surveys the expressions and operators to be used for calculation and for handling character strings. Chapter 7, I/O Facilities defines I/O facilities and describes output from the LCD, input from the keyboard, and control for the timer, beeper, and other I/O’s by the statements and functions. Chapter 8, Files describes data files and device files. Chapter 9, Event Polling and Error/Event Trapping describes the event polling and two types of traps: error traps and event (of keystroke) traps supported by BASIC 3.0. Chapter 10, Statement Reference describes the statements available in BASIC 3.0, including the error codes and messages. Chapter 11, Function Reference describes the functions available in BASIC 3.0, including error codes and messages.

xiii

Page 16

PDT 1100 Terminal Programmer’s Guide

! ! ! ! ! ! ! ! ! ! ! ! !

Appendix A, Error Codes and Error Messages lists the error codes and messages. Appendix B, Reserved Words lists the reserved words for BASIC 3.0. Appendix C, Character Sets lists the character sets. Appendix D, I/O Ports lists the I/O ports. Appendix E, Key Number Assignment on the Keyboard shows the number assignment for the keyboard. Appendix F, Memory Area describes the memory area allocations. Appendix G, Handling Space Characters in Downloading describes how to handle different types of space characters during downloading. Appendix H, Programming Notes describes specific programming tips. Appendix I, Backlight Function describes how to use the backlight function. Appendix J, Program Samples shows sample programs to use on the PDT 1100. Appendix K, Quick Reference for Statements and Functions lists the statements and functions by categories. Appendix L, Unsupported Statements and Functions lists what MS-BASIC supports that BASIC 3.0 does not. Appendix M, Communications describes in detail the communications procedures and parameters.

Notational Conventions The following conventions are used in this document: ! !

! !

xiv

Italics are used to highlight specific items in the general text, and to identify chapters and sections in this and related documents. Bullets (♦) indicate: " action items " lists of alternatives " lists of required steps that are not necessarily sequential Sequential lists (e.g., those that describe step-by-step procedures) appear as numbered lists. Items in regular courier font indicate constant syntax, items in italic courier font indicate variable syntax.

Page 17

About This Guide

Service Information If you have a problem with your equipment, contact the Symbol Support Centers. Before calling, have the model number, serial number, and several of your bar code symbols at hand. Call the Support Center from a phone near the scanning equipment so that the service person can try to talk you through your problem. If the equipment is found to be working properly and the problem is symbol readability, the Support Center will request samples of your bar codes for analysis at our plant. If your problem cannot be solved over the phone, you may need to return your equipment for servicing. If that is necessary, you will be given specific directions. Note: Symbol Technologies is not responsible for any damages incurred during shipment if the approved shipping container is not used. Shipping the units improperly can possibly void the warranty. If the original shipping container was not kept, contact Symbol to have another sent to you.

Symbol Support Centers For service information, warranty information or technical assistance contact or call the Symbol Support Center in: United States Symbol Technologies, Inc. One Symbol Plaza Holtsville, New York 11742-1300 1-800-653-5350

Canada Symbol Technologies Canada, Inc. 2540 Matheson Boulevard East Mississauga, Ontario, Canada L4W 422 (905) 629-7226

United Kingdom Symbol Technologies Symbol Place Winnersh Triangle, Berkshire RG41 5TP United Kingdom 0800 328 2424 (Inside UK) +44 208 945 7529 (Outside UK)

Asia/Pacific Symbol Technologies Asia, Inc. 230 Victoria Street #04-05 Bugis Junction Office Tower Singapore 188024 337-6588 (Inside Singapore) +65-337-6588 (Outside Singapore)

xv

Page 18

PDT 1100 Terminal Programmer’s Guide

Australia Symbol Technologies Pty. Ltd. 432 St. Kilda Road Melbourne, Victoria 3004 1-800-672-906 (Inside Australia) +61-3-9866-6044 (Outside Australia)

Austria/Österreich Symbol Technologies Austria GmbH Prinz-Eugen Strasse 70 Suite 3 2.Haus, 5.Stock 1040 Vienna, Austria 1-505-5794 (Inside Austria) +43-1-505-5794 (Outside Austria)

Denmark/Danmark Symbol Technologies AS Gydevang 2, DK-3450 Allerod, Denmark 7020-1718 (Inside Denmark) +45-7020-1718 (Outside Denmark)

Europe/Mid-East Distributor Operations Contact your local distributor or call +44 208 945 7360

Finland/Suomi Oy Symbol Technologies Kaupintie 8 A 6 FIN-00440 Helsinki, Finland 9 5407 580 (Inside Finland) +358 9 5407 580 (Outside Finland)

France Symbol Technologies France Centre d'Affaire d'Antony 3 Rue de la Renaissance 92184 Antony Cedex, France 01-40-96-52-21 (Inside France) +33-1-40-96-52-50 (Outside France)

Germany/Deutchland Symbol Technologies GmbH Waldstrasse 68 D-63128 Dietzenbach, Germany 6074-49020 (Inside Germany) +49-6074-49020 (Outside Germany)

Italy/Italia Symbol Technologies Italia S.R.L. Via Cristoforo Columbo, 49 20090 Trezzano S/N Navigilo Milano, Italy 2-484441 (Inside Italy) +39-02-484441 (Outside Italy)

xvi

Page 19

About This Guide

Latin America Sales Support 7900 Glades Road Suite 340 Boca Raton, Florida 33434 USA 1-800-347-0178 (Inside United States) +1-561-483-1275 (Outside United States)

Netherlands/Nederland Symbol Technologies Kerkplein 2, 7051 CX Postbus 24 7050 AA Varsseveld, Netherlands 315-271700 (Inside Netherlands) +31-315-271700 (Outside Netherlands)

Mexico/México Symbol Technologies Mexico Ltd. Torre Picasso Boulevard Manuel Avila Camacho No 88 Lomas de Chapultepec CP 11000 Mexico City, DF, Mexico 5-520-1835 (Inside Mexico) +52-5-520-1835 (Outside Mexico) Norway/Norge Symbol Technologies Trollasveien 36 Postboks 72 1414 Trollasen, Norway 66810600 (Inside Norway) +47-66810600 (Outside Norway)

If you purchased your Symbol product from a Symbol Business Partner, contact that Business Partner for service.

Related Publications ! ! ! !

PDT 1100 Terminal Product Reference Guide p/n 70-35864-XX PDT 1100 Quick Reference Guide p/n 70-35861-XX PDT 1100 Terminal Transfer Utilities Guide p/n 70-36368-XX PDT 1100 Extension Library Programmer’s Guide p/n 70-36556-XX

Warranty Symbol Technologies, Inc (“Symbol”) manufactures its hardware products in accordance with industrystandard practices. Symbol warrants that for a period of twelve (12) months from date of shipment, products will be free from defects in materials and workmanship.

xvii