HP SB manual Programming Guide, Gpib Pin Assignment

Page 28

Programming Guide

The following programming instructions for the SB switch are intended for users who are familiar with the GPIB interface and how to send or receive messages over a device. A detailed description of the GPIB interface is contained in ANSI/IEEE Std. 488.1-1987 IEEE Standard Digital Interface for Programmable Instrumentation, published by the Institute of Electrical and Electronics Engineers.

The SB switch is equipped with a GPIB parallel interface and an RS232C serial interface. The switch accepts the same device dependent commands (commands that control the instrument) over either interface.

The SB switch can be set to emulate the interface command sets, status reporting, and service request control of the SC Series and SX Series switches. The active interface command set is displayed when the switch is powered on. See the Setting the Interface Command Set section for instructions on changing the interface command set.

GPIB Pin Assignment

The GPIB pin assignment is shown in Figure 14.

Figure 14: GPIB Pin Assignment

Caution

Tighten the connector lock screws by hand. Do not use a screwdriver.

Setting the GPIB Address

To display or edit the GPIB interface address:

1.Press the GPIB ADDR key to set the switch to GPIB mode. The current GPIB address is displayed. (The factory-set GPIB address is 7.)

2.To change the address, press the or key to scroll to the required address.

Programming Guide – 23

Image 28
Contents SB Series Fiberoptic Switch User’s ManualPage Contents Programming Guide SD000153 Rev. J May Safety Information, Instructions, and Symbols Safety InformationBefore Initializing and Operating the Unit Safety InstructionsOperating the Unit Safety Symbol Safety SymbolsProceeding Compliance CE ComplianceSingle-Common SB-C Switch Configuration General Information and SpecificationsGeneral Information Dual-Common SB-D Switch Configuration Single Step Dual Common SB-E Switch ConfigurationDual-Common Blocking SB-F Switch Configuration Key FeaturesStandard Accessories Optional AccessoriesSpecifications Parameter Typical MaximumPhysical ElectricalEnvironmental Getting Started Before Initializing and Operating the UnitInitial Inspection Operating EnvironmentStoring and Shipping Cleaning Connectors Installing the Switch Connector Cleaning connector type can varyOperating and Maintenance Instructions Front PanelOperating Keys Key DescriptionExternal Switch Module without TTL Input Controls External Switch Module ConnectionsRear Panel External Switch Module with TTL Input Controls Sample Driver Application Electrical Equivalent of DriverPowering Up the Switch Using and Selecting a ChannelSetting the Interface Command Set for SC and SX Switches Setting the Gpib AddressControlling the Drivers Controlling the Switch Remotely by Gpib Interface Controlling the Switch LocallyControlling the Switch Remotely by RS232 Interface Maintaining the Switch Calibrating the SwitchPrint #1, CLOSE? Input #1,A$ Print A$ END Operating and Maintenance Instructions Programming Guide Gpib Pin AssignmentRS232 Interface Specifications Gpib Interface FunctionsRS232 Pin Assignment Mnemonic FunctionOperation and Query Commands Name Symbol Pin Number Signal DirectionCommand Parser Rules RS232 Driver Pin AssignmentOperation Commands ResetClose Set Optical Channel XDR i k Driver ControlQuery Commands Error Number Last Number ErrorDrivers LearnCondition Register Status Reporting and Service Request ControlStatus Register SRQ Mask Register Gpib Programming ExamplesSRQ Mask Register Bit Sending Commands Serial Polling the Status RegisterRS232 Programming Examples Generating a Service Request InterruptLearn Query LRN? Querying Status Setting the Interface Command SetReading the Status Register SC Series Switch Command Set SCXXX-0XXX Models SX Series Switch Command SetSyntax Function Bit MessageRQS Busy Normal BAD Data Unit Failure