The reader should consult National Instruments if errors are suspected. In no event shall National Instruments be liable for any damages arising out of or related to this document or the information contained in it.
Page 4
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National Instruments Corporation. Trademarks Product and company names listed are trademarks or trade names of their respective companies.
Page 5
FCC/DOC Radio Frequency Interference Compliance This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions in this manual, may cause interference to radio and television reception. This equipment has been tested and found to comply with the following two regulatory agencies: Federal Communications Commission This device complies with Part 15 of the Federal Communications...
Page 6
National Instruments could void the user’s authority to operate the equipment under the FCC Rules. If necessary, consult National Instruments or an experienced radio/television technician for additional suggestions. The following booklet prepared by the FCC may also be helpful: How to Identify and Resolve Radio-TV Interference Problems.
Description of the GPIB-232CV ..........1-1 Introduction ................1-1 What Your Kit Contains ............1-2 Optional Equipment ..............1-3 The GPIB-232CV Front Panel ..........1-3 The GPIB-232CV Rear Panel ..........1-5 The RS-232 Connector ..........1-6 The GPIB Connector ..........1-7 Chapter 2 Configuration and Installation ..........
Page 8
Interfacing the GPIB-232CV to a DTE ........B-5 Appendix C Application Examples ..............C-1 Using the GPIB-232CV as a High-Speed Print Spooler ..C-1 Using the GPIB-232CV to Connect a HP7475 GPIB Plotter to a PC Serial Port ............C-4 Appendix D Customer Communication ............
Page 9
Contents Figures Figure 1-1. The GPIB-232CV ............. 1-1 Figure 1-2. The GPIB-232CV Front Panel .......... 1-3 Figure 1-3. The GPIB-232CV Rear Panel........... 1-5 Figure 1-4. The RS-232 Connector and Signal Designations....1-6 Figure 1-5. The GPIB Connector and Signal Designations ....1-7 Figure 2-1.
• Appendix C, Application Examples, contains an example showing how to use a GPIB-232CV as a high-speed print spooler and an example showing how to use a GPIB-232CV to interface a HP7475 plotter to a computer running AUTOCAD. • Appendix D, Customer Communication, contains forms you can use when requesting help from National Instruments or to comment on our products and manuals.
Protocols, and Common Commands. Customer Communication National Instruments wants to receive your comments on our products and manuals. We are interested in the applications you develop with our products, and we want to help if you have problems with them. To make it easy for you to contact us, this manual contains comment and configuration forms for you to complete.
GPIB-232CV. Introduction The GPIB-232CV, shown in Figure 1-1, provides a method of connecting a device with a RS-232 port to the GPIB, or IEEE 488, bus. The GPIB-232CV transparently converts data between the two ports so that control codes or special commands are not required.
Description of the GPIB-232CV Chapter 1 The GPIB-232CV is capable of interfacing either a GPIB Controller or a GPIB device to a computer or instrument with a RS-232 port. It can be used to interface a GPIB device to a computer with a RS-232 port or to connect a RS-232 device such as a printer or plotter to a GPIB network.
763061-02 GPIB Type X2 Cable – 4 m 763061-03 The GPIB-232CV Front Panel The front panel of the GPIB-232CV is shown in Figure 1-2. The power switch and six light-emitting diodes (LEDs) are mounted on the GPIB-232CV front panel. GPIB-232CV...
Description of the GPIB-232CV Chapter 1 The LEDs show the current status of the GPIB-232CV at all times. Table 1-1 describes each LED. Table 1-1. LED Descriptions Indication POWER Indicates that power to the unit has been applied and the ON/OFF switch is in the ON position.
Description of the GPIB-232CV Chapter 1 The RS-232 Connector The RS-232 port on the GPIB-232CV is configured as a DTE (Data Terminal Equipment) and uses a standard 25-pin shielded D-subminiature female connector with screwlock assemblies. The RS-232 connector will accept standard 25-pin D-subminiature male connectors. A diagram of the serial connector and the signals supported is shown in Figure 1-4.
Chapter 1 Description of the GPIB-232CV The GPIB Connector The GPIB connector is a standard 24-pin shielded AMP Champ female connector with metric screwlock hardware. A diagram of the GPIB connector and the signals supported is shown in Figure 1-5 (a * suffix indicates that the signal is active low).
This chapter describes the procedures for configuring and installing the GPIB-232CV. As mentioned in Chapter 1, the GPIB-232CV can be configured either as a GPIB Controller capable of addressing a single GPIB device to talk or listen, or as a GPIB device that can be addressed to talk or listen by a GPIB Controller.
Chapter 2 If your system has a GPIB Controller that is responsible for addressing the GPIB-232CV to talk or listen, the GPIB-232CV should be set to operate in the Device (D) mode. It is called the Device mode because the GPIB-232CV functions like another GPIB device.
Contact National Instruments for instructions. Step 2. Verify the Voltage Requirement The GPIB-232CV is shipped from the factory with either a 115V or 230V wall-mount supply. Verify that the voltage on the supply matches the voltage that is supplied in your area.
The DIP switches at location U20 and U22 on the printed wire board are used to configure the GPIB-232CV. The DIP switch at location U22 is used to configure the mode of the GPIB-232CV as well as the address of the GPIB device. The DIP switch, shown in Figure 2-3, has eight configuration switches.
Default settings are in shaded rows. Table 2-1. Configuration Parameters for U22 Switch 1 Switch 1 Indication Position GPIB-232CV operates in D mode. GPIB-232CV operates in C mode Table 2-2. Configuration Parameters for U22 Switches 2 and 3 Switches Indication...
Figure 2-4. Factory Default Settings for Switch U20 On DIP switch U20, switch 1 is OFF, indicating that XON/XOFF is disabled. Switch 2 is OFF, indicating that the GPIB-232CV will be using 7 bits/character for its serial data transfers. Switch 3 is OFF, which indicates 1 stop bit per character.
National Instruments for further instructions. Operation The GPIB-232CV is now ready to operate. All characters sent to the unit will be received at full speed and stored in the internal data buffer. The characters will be sent to the receiving device at the rate of the receiving device.
Page 30
GPIB-232CV will be buffered and passed along to the serial device. When you are expecting data from the serial device, address the GPIB-232CV to talk, and all data received over the serial port will then be passed along to the GPIB.
Chapter 3 Operation This chapter contains information about operating the GPIB-232CV in D mode or C mode and information about data buffering and handshaking. The GPIB-232CV is actually a powerful 8-bit microcomputer tailored for use as an IEEE 488-to-RS-232 protocol converter. The unit's operating system is contained in Read-Only Memory (ROM) and can address up to 256 KB of dynamic Random-Access Memory (RAM).
Chapter 3 D Mode Operation In D mode, the GPIB-232CV can act only as a GPIB Talker or Listener. The GPIB-232CV should not be passed control. If it is, the GPIB circuitry in the GPIB-232CV will accept control and immediately assert ATN*.
RAM space for serial-input use. For example, if you were connecting an RS-232 device capable only of transmitting data to the GPIB-232CV, you would definitely want to use the 32 KB serial buffer to maximize the use of the available RAM space.
1. If the GPIB input buffer is not empty, bit one will be set to 0. In all cases, bit six will be set to 1 if the GPIB-232CV is requesting service, and will be set to 0 otherwise.
Selected Device Clear (SDC) command, the GPIB-232CV will clear its internal data buffers and reset to its power-up state. Neither Trigger nor Go To Local has any effect on the GPIB-232CV. In D mode operation, the GPIB-232CV does not assert EOI when sending characters along to the GPIB.
GPIB device to send data. In these modes, when the GPIB-232CV receives the terminating character, it will address the GPIB device to talk so that any GPIB data can be input by the GPIB-232CV. Any serial character received by the GPIB-232CV at this point will signal the GPIB-232CV to re-address the GPIB device as a Listener.
Line 30 will input the status response from the plotter into a string variable RESPONSE$. Line 40 will then output the plotter command to draw a circle to the GPIB-232CV. As soon as the GPIB-232CV receives the first character in this string, it will re-address the plotter to listen before sending these characters to the plotter.
Hardware Handshake The hardware handshake function is always active during RS-232 transfers and uses the RTS and CTS signal lines. When the GPIB-232CV is ready to accept serial data, it asserts the RTS line. This signal remains asserted until the GPIB-232CV's data buffer is almost full. At this point, the GPIB-232CV unasserts the RTS line, signaling to the serial host that the GPIB-232CV is no longer ready to accept data.
When you enable the XON/XOFF protocol, the GPIB-232CV sends the XOFF character (decimal 19 or <CTRL>s) when its internal buffer becomes full. Once the GPIB-232CV is able to start receiving characters again, it sends the XON character (decimal 17 or <CTRL>q). Similarly, if...
Appendix A Hardware Specifications This appendix lists the electrical, environmental, and physical specifications of the GPIB-232CV. Table A-1. Electrical Characteristics Characteristic Specification Power Supply Unit Wall mount type, 115 VAC or 230 VAC, 50/60 Hz input, 9 VDC @ 1A max output...
Interfacing to a Serial Device This appendix contains information about the RS-232 port and how to connect the GPIB-232CV to your serial device. This information is useful if you want to build your own serial cable The GPIB-232CV transfers serial data using the electrical signals, the mechanical connections, and the data format and control protocols as defined in the RS-232C standard.
Interfacing the GPIB-232CV to a DCE A correctly configured DTE-to-DCE interface is wired straight across: GPIB-232CV pin 2 to DCE pin 2, pin 3 to pin 3, and so forth. Wired in this manner, the GPIB-232CV can then interact to function properly on buffer full conditions (handshake).
Appendix B If your serial device does not use the same hardware handshaking protocol as the GPIB-232CV, you can either use a minimum configuration cable and use XON/XOFF handshaking (if necessary), or wire a custom cable that will satisfy the GPIB-232CV hardware handshaking protocol. The connections for a minimum configuration cable are shown in Figure B-2.
For serial devices set up as DTEs, you must wire a DTE-to-DTE interface cable, commonly known as a null modem cable. The cable must fool the GPIB-232CV into thinking it is communicating with a DCE. Figure B-3 shows a typical null modem cable.
Interfacing to a Serial Device Appendix B In Figure B-4, the GPIB-232CV connector is on the left. (Assumes the serial device's handshake is satisfied internally.) Figure B-4. Minimum Null Modem Cable Configuration If a custom cable is required for your application, review your serial device's RS-232 characteristics and build the cable to perform the desired functions.
Standard print spoolers are able to store incoming data in a RAM buffer until the printer or plotter is able to accept it, allowing the PC to output data at a rate faster than printer or plotter rates. You can use the GPIB-232CV in this way.
GPIB interface board. Be sure to enable DMA transfers and to use high-speed timing. 2. Configure the GPIB-232CV to operate in D mode with the small (256 bytes) serial port buffer and SRQ disabled. The serial buffer is set to the smallest size to allow the GPIB port, which is the data source, to use the majority of RAM.
Page 50
After the program is compiled and linked, you can run it just like the DOS print routine. Then, as long as you are not sending an amount of data greater than the buffer size of the GPIB-232CV, the data transfer should complete in a few seconds.
AUTOCAD into GPIB data for the plotter. The GPIB- 232CV automatically takes care of the GPIB addressing and transparently converts the data from one format to the other. To use the GPIB-232CV in this way, follow these steps: Start AUTOCAD and select Configure AUTOCAD from the Main Menu.
Filling out a copy of the Technical Support Form before contacting National Instruments helps us help you better and faster. National Instruments provides comprehensive technical assistance around the world. In the U.S. and Canada, applications engineers are available Monday through Friday from 8:00 a.m. to 6:00 p.m. (central time). In other countries, contact the nearest branch office.
Page 53
National Instruments for technical support helps our applications engineers answer your questions more efficiently. If you are using any National Instruments hardware or software products related to this problem, include the configuration forms from their user manuals. Include additional pages if necessary.
Page 54
National Instruments software product Version Configuration The problem is List any error messages The following steps will reproduce the problem...
Page 56
GPIB-232CV Hardware and Software Configuration Form Record the settings and revisions of your hardware and software on the line to the right of each item. Update this form each time you revise your software or hardware configuration, and use this form as a reference for your current configuration.
Page 57
Documentation Comment Form National Instruments encourages you to comment on the documentation supplied with our products. This information helps us provide quality products to meet your needs. Title: GPIB-232CV User Manual Edition Date: April 1994 Part Number: 320109-01 Please comment on the completeness, clarity, and organization of the manual.
Page 58
Thank you for your help. Name Title Company Address Phone Mail to: Technical Publications National Instruments Corporation 6504 Bridge Point Parkway, MS 53-02 Austin, TX 78730-5039 Fax to: Technical Publications National Instruments Corporation MS 53-02 (512) 794-5678...
Need help?
Do you have a question about the GPIB-232CV and is the answer not in the manual?
Questions and answers