Black Box IC026AE-R2, IC026A-R2 manual 7470A, SP1PA1000,1000PDPA1000,6000PUSP0

Page 37

CHAPTER 4: Controller Operation

The following is an example of how this feature can be used to communicate with an IEEE plotter. The program example is written in BASIC on an IBM PC or compatible. It turns the PC into a dumb serial terminal. When a key is pressed on the keyboard, the character is transmitted out of the serial (COM1) port. Any serial data which is received from the port is printed

on the display.

10 ' Dumb Terminal Program for the interface converter

20 ' This program allows direct interaction between 30 ' the IBM PC and an IEEE plotter through the

40 ' interface converter. The interface converter must have Talk-Back

50 ' on Timeout enabled.

60 'Open the serial communications port

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

80 ' Display any data received from the COM1 port

90 IF LOC(1) THEN PRINT INPUT$(LOC(1),1);: GOTO 90 100 ' Transmit key presses to the COM1 port and screen 110 K$=INKEY$

120 PRINT #1, K$; : PRINT K$; 130 GOTO 90 ' Do it again

Enter the program into the computer and run it. The example below shows how to test the interface converter’s operation with a Hewlett-Packard®7470A plotter. Other IEEE plotters are similar, but you should refer to the plotter’s programming manual for the proper command syntax. Notice the interface converter’s front-panel LEDs as you type the plotter commands.

Type the following HP-GL®output-identify command on the keyboard...

OI;

The plotter (HP® 7470A) should immediately respond with.....

7470A

When you type the following HP-GL command on the keyboard, the plotter should respond by retrieving its pen, drawing a line and returning the pen.

SP1;PA1000,1000;PD;PA1000,6000;PU;SP0;

37

Image 37
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 IEEE-488 Interface SpecificationsSerial 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 Peripheral-Mode Operation Peripheral OperationSerial and Ieee Input Buffers 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 History Ieee 488 PrimerGeneral Structure 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