The text of a manual · part 4 of 47
PDT 1100 Terminal Programmer's Guide: Contents, pages 20 to 26
Pages 20 to 26 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 20
PDT 1100 Terminal Programmer’s Guide
This warranty is provided to the original owner only and is not transferable to any third party. It shall not apply to any product (i) which has been repaired or altered unless done or approved by Symbol, (ii) which has not been maintained in accordance with any operating or handling instructions supplied by Symbol, (iii) which has been subjected to unusual physical or electrical stress, misuse, abuse, power shortage, negligence or accident or (iv) which has been used other than in accordance with the product operating and handling instructions. Preventive maintenance is the responsibility of customer and is not covered under this warranty. Wear items and accessories having a Symbol serial number, will carry a 90-day limited warranty. Nonserialized items will carry a 30-day limited warranty.
Warranty Coverage and Procedure During the warranty period, Symbol will repair or replace defective products returned to Symbol’s manufacturing plant in the US. For warranty service in North America, call the Symbol Support Center at 1-800-653-5350. International customers should contact the local Symbol office or support center. If warranty service is required, Symbol will issue a Return Material Authorization Number. Products must be shipped in the original or comparable packaging, shipping and insurance charges prepaid. Symbol will ship the repaired or replacement product freight and insurance prepaid in North America. Shipments from the US or other locations will be made F.O.B. Symbol’s manufacturing plant. Symbol will use new or refurbished parts at its discretion and will own all parts removed from repaired products. Customer will pay for the replacement product in case it does not return the replaced product to Symbol within 3 days of receipt of the replacement product. The process for return and customer’s charges will be in accordance with Symbol’s Exchange Policy in effect at the time of the exchange. Customer accepts full responsibility for its software and data including the appropriate backup thereof. Repair or replacement of a product during warranty will not extend the original warranty term. Symbol’s Customer Service organization offers an array of service plans, such as on-site, depot, or phone support, that can be implemented to meet customer’s special operational requirements and are available at a substantial discount during warranty period.
General Except for the warranties stated above, Symbol disclaims all warranties, express or implied, on products furnished hereunder, including without limitation implied warranties of merchantability and fitness for a particular purpose. The stated express warranties are in lieu of all obligations or liabilities on part of Symbol for damages, including without limitation, special, indirect, or consequential damages arising out of or in connection with the use or performance of the product. Seller’s liability for damages to buyer or others resulting from the use of any product, shall in no way exceed the purchase price of said product, except in instances of injury to persons or property. Some states (or jurisdictions) do not allow the exclusion or limitation of incidental or consequential damages, so the preceding exclusion or limitation may not apply to you.
xviii
Page 21
Chapter 1 Software Overview Software Structure The structure of software for the PDT 1100 is shown in Figure 1-1. RAM or flash ROM
User programs
Application programs
Extension programs
Flash ROM System programs
System Mode
BASIC 3.0 Interpreter
Font files
Drivers
Hardware 36099001.eps
Figure 1-1. PDT 1100 Software Structure The PDT 1100 has flash ROM and RAM. In flash ROM reside the drivers, BASIC 3.0 Interpreter, System Mode, and font files. Extension programs and user programs are stored in the user area of RAM (or in the flash ROM) when downloaded.
1-1
Page 22
PDT 1100 Terminal Programmer’s Guide
Note: Unlike RAM, the flash ROM requires no power for retaining stored files. Therefore, leaving the PDT 1100 with no battery cartridge or dry batteries loaded do not damage files stored in the flash ROM while it may damage files in the RAM. Unlike RAM, the flash ROM is limited in the following ways: ! ! !
The quantity of rewriting operations is limited to approximately 10,000. In application programs, you cannot write data onto the flash ROM. The user area is 568 kilobytes or 64 kilobytes (depending upon the ROM size). (For details, refer to Appendix F, Memory Area.)
System Programs Drivers The BASIC 3.0 Interpreter or System Mode calls a set of programs which controls the hardware. The drivers include the Decoder Software used for bar code reading.
BASIC 3.0 Interpreter Interprets and executes user programs or Easy Pack.
System Mode Sets up the execution environment for user programs or Easy Pack.
Extension Programs Enable the following functions of the BASIC 3.0: ! !
Displays ruled lines on the LCD Transmits/receives files using the X-MODEM and Y-MODEM protocols.
These extension programs are stored in files having an FN3 extension, in each file per function. Download a xxxx.FN3 file containing the necessary function from the BASIC 3.0 Extension Library to the user area.
1-2
Page 23
Software Overview
Application Programs User Programs User-written object programs which are ready to be executed.
Easy Pack Application program used for bar code data collection.
Overview of BASIC 3.0 With BASIC 3.0, you can customize application programs to meet specific needs: ! ! !
! !
! !
Retrieve products names, price information, etc. in a master file. Include check digits in bar code reading to make a checking procedure more reliable. Improve the checking procedure by checking the number of digits entered from the keyboard. Calculate (e.g., subtotals and totals). Support file transmission protocols (or transmission procedures) suitable for host computers and connected modems. Download master files. Support a program to transfer control to several job programs depending upon conditions.
BASIC 3.0 Features BASIC 3.0 is an optimal programming language to make application programs for the PDT 1100 and to enable efficient program development, with the following features:
Syntax Similar to Microsoft ® BASIC BASIC 3.0 is based on the BASIC language which is the most widely used high-level language. The syntax of BASIC 3.0 is very similar to that used in Microsoft BASIC (MS-BASIC), the practical standard of the BASICs running on personal computers over the world.
1-3
Page 24
PDT 1100 Terminal Programmer’s Guide
No Line Numbers Required Like Microsoft Quick BASIC, BASIC 3.0 requires no line number notation. You can write a branch statement with a label instead of a line number so cut and paste functions can be used with an editor in developing source programs, facilitating the use of program modules for development of other programs.
MS-DOS Programming Environment Any MS-DOS personal computer can be used to develop programs with BASIC 3.0.
Advantages of the Dedicated Compiler The dedicated compiler (referred to as the Compiler hereafter) checks the syntax of the edited source program on an MS-DOS personal computer, enabling efficient debugging in program development. It also outputs debugging information including cross reference lists of variables and labels. The Compiler assigns variables to fixed addresses so the Interpreter does not have to allocate or release memories when executing user programs, shortening execution time.
Program Compression by the Dedicated Compiler The Compiler compresses a source program into the intermediate language to produce an object program (a user program). Note: When the compiled user program is downloaded to the PDT 1100, it packs the two-byte data in the intermediate language into a singlebyte hexadecimal format for more efficient use of the memory area in the PDT 1100.
Compilation and Program Execution Compiler and Interpreter BASIC 3.0 consists of the Compiler and the Interpreter.
Compiler The Compiler development tool compiles a source program written on an MS-DOS personal computer to generate a “user program” in the intermediate language. The Compiler is optionally provided in an MS-DOS format floppy disk which contains the following three 1-4
Page 25
Software Overview files: BHTC3.EXE (MS-DOS–based Compiler), BHTC3W.EXE (Windows-based Compiler), and BHTC3.MSG (Message file). The Compiler checks the syntax of a source program during compilation and outputs syntax errors, if any, to the MS-DOS standard output device. When the Compiler finds no syntax error in the source program, it translates the program into the intermediate language.
Interpreter The Interpreter, which resides in the memory of the PDT 1100, interprets and executes the user program downloaded to the PDT 1100, statement by statement.
Compiling and Interpreting Example For example, how will a short program consisting of only two statements, CLS and END, be compiled, downloaded, and executed? Source Program Example: CLS END
1. The Compiler compiles each of the CLS and END statements into a two-byte character string in the intermediate language in an MS-DOS disk file. In this example, the total four-byte string is composed of 83 and 87 whose program is: “8387” The compiled program should consist of ASCII characters (text) : 0-9 and A-F. 2. The user downloads the four-byte string 8387, using Transfer Utility C. Upon receipt of the string, the PDT 1100 packs each two bytes into a single-byte hexadecimal format: 83h and 87h. 3. The Interpreter interprets the first 83h as a CLS statement and 87h as an END statement.
1-5
Page 26
PDT 1100 Terminal Programmer’s Guide
1-6