Black Box IC026AE-R2, IC026A-R2 manual Appendix A. Sample Dumb-Terminal Program, Cls

Page 65

APPENDIX A: Sample Dumb-Terminal Program

Appendix A. Sample Dumb-Terminal

Program

10REM *** DUMB-TERMINAL PROGRAM FOR THE interface converter

20

REM ***

Running under IBM BASIC

30

REM ***

This Program allows direct interaction between the

40REM *** IBM PC and an IEEE bus device through the interface converter.

50REM *** The interface converter must be configured as the IEEE bus

60REM *** controller and have Talk-Back on Terminator enabled.

70REM ***

80REM ***

90REM ***

100

 

CLS

110

'

Open the serial communications port and set the serial parameters

120

 

OPEN "COM1: 9600,n,8,2,cs,ds" AS 1

130

'

Display any characters received from the COM1 port

140

 

IF LOC(1) THEN PRINT INPUT$ (LOC(1) ,1);

150' Transmit any key presses from keyboard to the COM1 port and to the screen

160 K$=INKEY$

170PRINT #1,K$; : PRINT K$;

180GOTO 140 ' Do it again

65

Image 65
Contents RS-232↔IEEE Interface Converter RS-232↔IEEE 488 Interface Converter Trademarks Used in this Manual RS-232↔IEEE 488 Interface Converter NOM Statement RS-232↔IEEE 488 Interface Converter Contents RS-232↔IEEE 488 Interface Converter Contents Serial Interface SpecificationsIEEE-488 Interface General SpecificationsDescription IntroductionAbbreviations Getting Started ConfigurationInspection Serial PortSW3 Serial Port Settings Switch SW1 Selecting the Serial Baud Rate Switch SW1 Selecting the Serial Word Length Data Bits Switch SW2 Selecting the Serial Parity Switch SW1 Selecting the Serial Handshake Selecting Terminator Substitution Switch SW2 Selecting the Serial TerminatorSwitch SW3 Selecting the Ieee Bus Terminator Selecting the ModeSelecting the Ieee Address 10. Switch SW2 Selecting the ModeFeature Selections Serial Interface 15. Selecting RS-232 or RS-422 Signal Levels TxD Transmit Data-Output-Pin RxD Receive Data-Input-PinClear To Send-Input-Pin Request To Send-Output-PinGnd Ground-Pin Vtest Test Voltage-Output-Pin+RxD Receive Data Plus-Input-Pin +TxD Transmit Data Plus-Output-PinRTS CTS DSR RTS CTS GeneralGetting Started Controller-Mode Serial to Ieee Operation Controller OperationSerial and Ieee Terminator Substitution Ieee Address Selection Talk-Back FeaturesSwitch SW1 Enabling or Disabling Talk-Back on Terminator Switch SW2 Enabling or Disabling Talk-Back on Timeout SP1PA1000,1000PDPA1000,6000PUSP0 7470APlotter Applications A PC-Based Graphics System SW3 MacPlot Configuration Screen Setting the Internal DIP Shorting Jumper for RS-422 SW3 Printer Applications Serial and Ieee Input Buffers Peripheral OperationPeripheral-Mode Operation Ieee Data Transfers Controlled BUS Data Transfers DIO8 Ieee Input Buffer not Empty Serial-Poll Status-Byte RegisterNot Defined-Always RsvSerial Input Buffer not Empty Ieee Input Buffer FullIeee 488 Bus Implementation Use of Serial and Bus TerminatorsUntalk UNT SW3 View for Ieee Address Selection General Structure Ieee 488 PrimerHistory RS-232↔IEEE 488 Interface Converter DMM Send It to My AddressBus Management Lines Data Valid DAV Handshake LinesData Lines Multiline CommandsTalk Address Group TAG More on Service Requests Serial Poll Address Device Part Number Function Theory of OperationComponent Layout of the Interface Converter’s Motherboard Board LayoutRED BLK CLS Appendix A. Sample Dumb-Terminal ProgramSOH Multiline MessagesAscii Character How To Read the ChartDIO1 DIO2 DIO3 IndexIndex SW1 Copyright 1998. Black Box Corporation. All rights reserved