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 1 of 25

Attended Workstations (Catalog Nos. 2708-DH5B2L & -DH5B4L) (Series B) User Manual, pages 1 to 11

Pages 1 to 11 of 186: 2708-800, Attended Workstations User Manual; Important User Information; Table of Contents

The original document is the PDF (513 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 Allen-Bradley 2708

Page 1

ALLEN-BRADLEY

Attended Workstations (Catalog Nos. 2708-DH5B2L & -DH5B4L) (Series B)

User Manual

Page 2

Disclaimer

Important User Information

Solid state equipment has operational characteristics differing from those of electromechanical equipment. “Application Considerations for Solid State Controls” (Publication SGI-1.1) describes some important differences between solid state equipment and hard–wired electromechanical devices. Because of this difference, and also because of the wide variety of uses for solid state equipment, all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable. In no event will the Allen-Bradley Company be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment. The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and requirements associated with any particular installation, the Allen-Bradley Company cannot assume responsibility or liability for actual use based on the examples and diagrams. No patent liability is assumed by Allen-Bradley Company with respect to use of information, circuits, equipment, or software described in this manual. Reproduction of the contents of this manual, in whole or in part, without written permission of the Allen-Bradley Company is prohibited.

Page 3

Table of Contents Attended Workstations User Manual

Introduction

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Catalog Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessory Items . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related Publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1–1 1–1 1–1 1–2 1–2

Installing a Network

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Simple Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The RS-485 Network Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Network Connector (Catalog No. 2708-NNC) . . . . . . . . . . . . . Cabling a Network Using the Network Connector . . . . . . . . . . . . . Cable Wire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing the Wire . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Master Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NON-MASTER Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . Step By Step Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The Terminator Switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication Cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Testing the Network for Data Transmission . . . . . . . . . . . . . . . . . . . . . Communication to the Host Computer . . . . . . . . . . . . . . . . . . . . . . . . . Description of Large or Complex Network . . . . . . . . . . . . . . . . . . . . . . Complex Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alternate Communication Links . . . . . . . . . . . . . . . . . . . . . . . . . . . Networks Over Telecommunications Lines . . . . . . . . . . . . . . . . . . .

2–1 2–2 2–2 2–2 2–3 2–4 2–4 2–4 2–5 2–5 2–6 2–7 2–9 2–9 2–10 2–11 2–13 2–13 2–14 2–15

Barcode Connection

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

3–1 3–1

Status Displays

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Summary Status Display (Status Display 0) . . . . . . . . . . . . . . . . . . . . . Network Status (Status Display 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reserved Status (Status Display 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . Time Status (Status Display 3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Reset Status (Status Display 4) . . . . . . . . . . . . . . . . . . . . . . . . . A – Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Network Queue Status (Status Display 5) . . . . . . . . . . . . . . . . . . . . . . . Workstation Memory Status (Status Display 6) . . . . . . . . . . . . . . . . . .

4–1 4–2 4–4 4–5 4–5 4–5 4–6 4–6 4–8 i

Page 4

Table of Contents Attended Workstations User Manual

Configuration Menus ii

Program Load Status (Status Display 7) . . . . . . . . . . . . . . . . . . . . . . . . Program Run Status (Status Display 8) . . . . . . . . . . . . . . . . . . . . . . . . . Application Status (Status Display 9) . . . . . . . . . . . . . . . . . . . . . . . . . .

4–9 4–10 4–11

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Menus via Workstation Keypad . . . . . . . . . . . . . . . . . . . . . . . . . Sub-Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Exiting Network Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Menus from the Comm Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 1: Network Menu Paramters . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workstation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workstation Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 2: Comm Port Menu Parameters . . . . . . . . . . . . . . . . . . . . . . . . . Comm Port Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comm Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comm Data Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Comm Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 3: System Menu Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 4: Bar Code Menu Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 5: Read Only Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Menu 6: Diagnostics Menu Parameters . . . . . . . . . . . . . . . . . . . . . . . . . 1–Keypad/Laser Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2–Display Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3–Destructive RAM Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–Continuous RAM Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–Comm Transmit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–Comm Receive Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7–Comm Loop Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8–Aux Comm Transmit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9–Aux Comm Receive Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A–Aux Comm Loopback Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B–RS485 Block Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C–RS485 Block Transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D–RS232 Block Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E–RS232 Block Transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . F–Lamp Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . G–Reset Powerup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . H–Reset Unit to Factory Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

5–1 5–1 5–2 5–2 5–3 5–4 5–4 5–4 5–5 5–5 5–6 5–6 5–6 5–8 5–8 5–10 5–10 5–11 5–12 5–12 5–13 5–14 5–15 5–15 5–16 5–17 5–18 5–19 5–19 5–20 5–21 5–22 5–22 5–22

Page 5

Table of Contents Attended Workstations User Manual

Operating Procedures

Chapter Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Verifying Proper Network Operation . . . . . . . . . . . . . . . . . . . . . . . . . . Removing a Master . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Instituting a New Workstation as Master . . . . . . . . . . . . . . . . . . . . . . . . Removing a Workstation from the Network . . . . . . . . . . . . . . . . . . . . . Adding a Workstation to the Network . . . . . . . . . . . . . . . . . . . . . . . . . . Network Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Workstation Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

6–1 6–2 6–3 6–4 6–4 6–5 6–5 6–6

Network Design

Networks of 32 Workstations or Less . . . . . . . . . . . . . . . . . . . . . . . . . . Network Installation of More than 32 Workstations . . . . . . . . . . . . . . . Fault-Tolerant Networks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Extending Networks Over Phone Lines . . . . . . . . . . . . . . . . . . . . . . . .

7–1 7–1 7–3 7–4

Host Communications

Network Status Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using Retry Counts for Network Diagnosis . . . . . . . . . . . . . . . . . . . . . Responses to Network Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Network Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . < D – Show Unit Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . < E – Show Last Error Message . . . . . . . . . . . . . . . . . . . . . . . . < R – Show Last Reset Message . . . . . . . . . . . . . . . . . . . . . . . < S – Show Unit Serial Number . . . . . . . . . . . . . . . . . . . . . . . . < T – Show Workstation Date & Time . . . . . . . . . . . . . . . . . . . < V – Show Firmware Version . . . . . . . . . . . . . . . . . . . . . . . . . > > A – Abort Currently Running A-B VBASIC Program . . . > > G – Restart an Aborted BASIC Program . . . . . . . . . . . . . . > A – Abort Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > C – Send Text Out Comm Port . . . . . . . . . . . . . . . . . . . . . . . > c – Send Text Out Aux Comm Port . . . . . . . . . . . . . . . . . . . . > D – Display Text on Front Panel . . . . . . . . . . . . . . . . . . . . . . > E – Erase the Menu Password . . . . . . . . . . . . . . . . . . . . . . . . > F – Reset to Factory Defaults . . . . . . . . . . . . . . . . . . . . . . . . > N – Initialize Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > R – Reboot Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > T – Set Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > Z – Zero Reset Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8–1 8–3 8–3 8–4 8–5 8–5 8–5 8–6 8–6 8–6 8–7 8–7 8–7 8–7 8–7 8–7 8–8 8–8 8–8 8–8 8–9 8–9

What is BASIC

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . What is Visual BASIC ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . What is A-B VBASIC? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9–1 9–1 9–2 iii

Page 6

Table of Contents Attended Workstations User Manual

Developing and Running An A-B BASIC Program

Step #1 – Planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . The A-B VBASIC Development Procedure . . . . . . . . . . . . . . . . . . . . . Step #2 – Coding with the Workstation Application Generator Software 10–1 Step #3 (Alternate) – Coding with Visual BASIC Editor . . . . . . . . . . . Step #4 – Simulation Using Application Library . . . . . . . . . . . . . . . . . Step #5 – Compiling the A-B VBASIC Program . . . . . . . . . . . . . . . . . Step #6 – Downloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Loading and Auto-Starting an A-B VBASIC Program . . . . . . . . . . . . . Start-up Condition of an A-B VBASIC Program . . . . . . . . . . . . . . . . . LCD: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Random numbers: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RAM files: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variables: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Host device: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Termination of an A-B VBASIC Program . . . . . . . . . . . . . . . . . . . . . . A-B VBASIC Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Format of a BASIC Error Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10–1 10–1 10–2 10–2 10–3 10–3 10–3 10–3 10–3 10–3 10–3 10–4 10–5 10–5 10–6

The A-B VBASIC Cross-Compiler

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Invoking the Compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LXB param 1 (,param2) (,param3) (,param4) . . . . . . . . . . . . . LXB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LXB Prog1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LXB Prog1,Prog1,Prog1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LXB Prog1,Download,PRN . . . . . . . . . . . . . . . . . . . . . . . . . . . LXB Prog1,Startnow,Prog1,Wait . . . . . . . . . . . . . . . . . . . . . . . A – Source File Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B – Downloaded Executable File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C – Listing File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D – Secondary Download File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11–1 11–2 11–2 11–3 11–3 11–3 11–3 11–3 11–3 11–4 11–4 11–4

Special Devices in A-B VBASIC

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: LCD Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: Keypad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: Barcode Scanners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . When reading barcodes: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: Host Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12–1 12–2 12–3 12–4 12–4 12–6 iv

10–1 10–1 ....

Page 7

Table of Contents Attended Workstations User Manual

A-B VBASIC Application Library

General restrictions and warnings: . . . . . . . . . . . . . . . . . . . . . . Details of Specific Statements and Functions . . . . . . . . . . . . . . . . . . . . OPEN “HOST” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CLOSE “HOST” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WRITE # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PUT to HOST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PUT to NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PUT to QUE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRINT # . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LINE INPUT # for HOST and NET GET # for HOST and NET (OPEN with RANDOM) . . . . LINE INPUT # for QUE GET # for QUE (OPEN with RANDOM enforced) . . . . . EOF for HOST and NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LOC for HOST and NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LOF for HOST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LOF for NET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOCTL$ (intrinsic function) for HOST and NET . . . . . . . . . . IOCTL (statement) for HOST . . . . . . . . . . . . . . . . . . . . . . . . . Devices: Communication Ports, Primary and Auxiliary . . . . . . . . . . . . A – Output to a Communication Port . . . . . . . . . . . . . . . . . . . . . . . . . . B – Input from a Communication Port . . . . . . . . . . . . . . . . . . . . . . . . . C – Modem Control Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: RAM Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . File Memory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: Front Panel LED’s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: The #9 User Status Display . . . . . . . . . . . . . . . . . . . . . . . . . . . Description: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Device: The Egg Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12–7 12–8 12–8 12–9 12–9 12–9 12–9 12–9 12–9

12–10 12–10 12–10 12–10 12–10 12–11 12–11 12–11 12–12 12–12 12–13 12–13 12–13 12–14 12–14 12–14 12–15 12–15 12–16 12–16

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Writing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Using the ENVPC Simulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A – Predefined Constants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B – Global Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C – BASIC Language Development Kit Limitations . . . . . . . . . . . . D – PC Simulation Constants and Variables . . . . . . . . . . . . . . . . . . Display and Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Network I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13–1 13–2 13–3 13–4 13–5 13–6 13–7 13–7 13–8 13–8

12–10 v

Page 8

Table of Contents Attended Workstations User Manual

COM and AUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Printing Reports and Forms . . . . . . . . . . . . . . . . . . . . . . . . . . .

13–8 13–9 13–9

Menu Trigger Keys

Electrical – 2708-NP1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Electrical – 2708-NP2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mechanical – 2708-DH5B2L and -DH5B4L . . . . . . . . . . . . . . . . . . . . Communication Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........................................................

A–1 A–1 A–1 A–1 B–1

Technical Description

........................................................

C–1

Workstation Communication Pin-Out Diagrams

........................................................

D–1

Distance Limitations

Network (RS-485) Cable Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RS-232 (MASTER or HOST) Cable Length . . . . . . . . . . . . . . . . . . . . .

E–1 E–1

Site Parameter List

........................................................

F–1

Network Pin-Out Diagrams for DB9 Connector

........................................................

G–1

Error Messages and Prompts

........................................................

H–1

Time Display Formats

........................................................

I–1

VBASIC Language Development Kit Programming Conventions and Tips

Programming Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming Tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

J–1 J–2

2708-DH5B2L and -DH5B4L Workstation Specifications vi

Page 9

Table of Contents Attended Workstations User Manual

A-B VBASIC and Visual BASIC Tips

Misspellings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Strings in TYPEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Variables Beginning with “FN” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accidental Omission of %, &, ! # OR $ . . . . . . . . . . . . . . . . . . . . . . . . Use of Colons as Statement Separators . . . . . . . . . . . . . . . . . . . . . . . . . CONSTant Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRINT “text”; : <statement> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

K–1 K–1 K–1 K–1 K–1 K–2 K–2

Differences Between A-B VBASIC and Visual BASIC

General Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Supported A-B VBASIC Keywords . . . . . . . . . . . . . . . . . . . . . . . . . . . ABS(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ASC(string–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BEEP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CDBL(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CHAIN filespec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CHR$(code) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CINT(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CLNG(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CLOSE [ [#]filenumber[,[#]filenumber]...] . . . . . . . . . . . . . . . . . . . CLS [{ 0 | 1 | 2 }] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CONST constname=expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . CSNG(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CSRLIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CVI, CVS, CVL, (CVD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DATE$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DATE$ = ”yymmddw” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DECLARE {FUNCTION | SUB} name(parameters) . . . . . . . . . . . DEFINT letterrange[,letterrange]... . . . . . . . . . . . . . . . . . . . . . . . . . DEFSNG letterrange[,letterrange]... . . . . . . . . . . . . . . . . . . . . . . . . . (DEFDBL letterrange[,letterrange]...) No longer supported . . . . . . DEFLNG letterrange[,letterrange]... . . . . . . . . . . . . . . . . . . . . . . . . DEFSTR letterrange[,letterrange]... . . . . . . . . . . . . . . . . . . . . . . . . . DIM [SHARED] variable[(subscripts)][AS type]... . . . . . . . . . . . . . DO...LOOP [{WHILE/UNTIL} booleanexpression] . . . . . . . . . . . END [{FUNCTION/IF/SELECT/SUB/TYPE}] . . . . . . . . . . . . . . . EOF(filenumber) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FIX(x) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FOR counter = start TO end [STEP increment] ...

L–1 L–1 L–2 L–2 L–2 L–2 L–2 L–3 L–3 L–3 L–3 L–3 L–4 L–4 L–4 L–4 L–4 L–4 L–5 L–5 L–5 L–5 L–5 L–5 L–6 L–6 L–6 L–6 L–7

NEXT [counter] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

L–7 vii

Page 10

Table of Contents Attended Workstations User Manual

FRE(numeric expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FREEFILE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FUNCTION name[(parameterlist)][STATIC] . . . . . . . . . . . . . . . . . GET [#]filenumber[,[recordnumber][,variable]] . . . . . . . . . . . . . . . GOSUB {linelabel | linenumber}....RETURN . . . . . . . . . . . . . . . . . GOTO {linelabel/linenumber} . . . . . . . . . . . . . . . . . . . . . . . . . . . . . HEX$(expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IF...THEN...ELSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . INKEY$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . INPUT$(bytecount[,[#]filenumber]) . . . . . . . . . . . . . . . . . . . . . . . . INSTR([start,]stringexpression1,stringexpression2) . . . . . . . . . . . . INT(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOCTL$([#]filenumber) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IOCTL[#]filenumber,string . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . KILL “filespec” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LBOUND(array[,dimension]) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LCASE$(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEFT$(stringexpression, n) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEN(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LEN(variable) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LINE INPUT[;][“promptstring”;]stringvariable . . . . . . . . . . . . . . . LINE INPUT #filenumber,stringvariable . . . . . . . . . . . . . . . . . . . . . LOC(filenumber) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LOCATE[row][,[column][,[cursor]]] . . . . . . . . . . . . . . . . . . . . . . . . LOF(filenumber) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . LTRIM$(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MID$(stringexpression, start[, length]) . . . . . . . . . . . . . . . . . . . . . . MKD$, MKI$, MKL$, MKS$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OCT$(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ON expression GOSUB {line–number–list/line–label–list} . . . . . . ON expression GOTO {line–number–list/line–label–list} . . . . . . . OPEN file [FOR mode1][ACCESS] AS[#]filenum [LEN=reclen] . POS(0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRINT [expressionlist][{,|;}] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PRINT #filenumber,[USING stringexpression;] expressionlist[{,|;}] PRINT USING formatstring; expressionlist[{,|;}] . . . . . . . . . . . . . . PUT [#]filenumber[,[recordnumber][,variable]] . . . . . . . . . . . . . . . RANDOMIZE expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . REM remark ‘ remark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RETURN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RIGHT$(stringexpression, n) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RTRIM$(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii

L–8 L–8 L–8 L–8 L–9 L–9 L–9 L–9 L–10 L–10 L–10 L–10 L–10 L–11 L–11 L–11 L–11 L–11 L–12 L–12 L–12 L–12 L–12 L–13 L–13 L–13 L–13 L–13 L–14 L–14 L–14 L–14 L–14 L–14 L–15 L–15 L–15 L–15 L–16 L–16 L–16 L–16 L–16

Page 11

Table of Contents Attended Workstations User Manual

Application Library Subroutines

A-B VBASIC Limits

SEEK(filenumber) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SEEK [#]filenumber,position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SELECT CASE text_expression . . . . . . . . . . . . . . . . . . . . . . . . . . . SGN(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SHARED variable [AS type] [,variable [AS type]]... . . . . . . . . . . . SLEEP seconds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SOUND frequency,duration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SPACE$(n) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STATIC variablelist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STR$(numeric–expression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STRING$(m,n) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STRING$(m,stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SUB globalname[(parameterlist)][STATIC] ... ...

L–16 L–16 L–17 L–17 L–17 L–17 L–18 L–18 L–18 L–18 L–18 L–19 L–19

END SUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SWAP vari1,vari2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TIME$ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TIME$ = stringexpression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TYPE usertype . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . END TYPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UBOUND(array[,dimension]) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UCASE$(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VAL(stringexpression) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WHILE condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WRITE #filenumber [,expressionlist] . . . . . . . . . . . . . . . . . . . . . . .

L–19 L–19 L–19 L–20 L–20 L–20 L–20 L–20 L–21 L–21 L–21 L–21 L–21 L–21

In ENV.BAS and ENVPC.BAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . In READ.BAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . In MENU.BAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . In TRIG.BAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . In HYP.BAS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ........................................................

M–1 M–1 M–1 M–2 M–2 N–1 ix