HP SB manual Controlling the Switch Locally, Controlling the Switch Remotely by Gpib Interface

Page 25

applications. All drivers are controlled by remote commands (use the Driver port at the back of the switch). Driver 1 can also be controlled locally by the Driver 1 key.

To control driver 1 locally:

1.Press the Driver 1 key to toggle driver 1 on and off for manual control. The status LED of the key is lit when on.

Controlling the Switch Locally

To operate the switch using the front panel:

1.If the REM status LED is lit, press the Local key once to set the SB switch to Local mode.

2.Press the or key to select the switch position required. In SB-E configurations, the display shows the common B switch position. Common A is set to the display reading minus one.

3.To toggle external relay driver 1, press the Driver 1 key. This driver can be used to operate a 1x2 source select switch. The status LED key is lit when on.

Controlling the Switch Remotely by GPIB Interface

To control the switch by GPIB interface:

1.Connect a user-supplied GPIB cable to the controlling computer and to the IEEE 488 (GPIB) port at the back of the switch.

2.Verify that the interface command set is set to SB and that the GPIB address is set to 7. To do this, turn the SB switch off and then on again. The display reads SB when set to SB mode. See the Setting the Interface Command Set section for instructions on changing the interface command set.

3.At the computer that controls the GPIB, set the message terminating character sequence to carriage return and line feed (<CR><LF>), for example, ASCII character code 13, 10. The <CR><LF> characters must be appended to the end of any messages sent to the SB switch. Similarly, the switch appends these characters to all messages it returns.

4.Send a sample command to the SB switch; for example, use an OUTPUT statement (or equivalent) to send the command CLOSE 10 at GPIB address 7. The channel setting changes to 10. Most programming languages automatically append the terminating sequence to the message.

5.Send a sample query command, for example, CLOSE?; then use an INPUT statement to receive the message 10 from GPIB address 7.

Controlling the Switch Remotely by RS232 Interface

To control the switch by RS232 interface:

1. Connect an RS232 cable to the RS232C port of the SB switch and to a computer.

Operating and Maintenance Instructions – 20

Image 25
Contents User’s Manual SB Series Fiberoptic SwitchPage Contents Programming Guide SD000153 Rev. J May Safety Information Safety Information, Instructions, and SymbolsBefore Initializing and Operating the Unit Safety InstructionsOperating the Unit Safety Symbol Safety SymbolsProceeding CE Compliance ComplianceSingle-Common SB-C Switch Configuration General Information and SpecificationsGeneral Information Single Step Dual Common SB-E Switch Configuration Dual-Common SB-D Switch ConfigurationKey Features Dual-Common Blocking SB-F Switch ConfigurationStandard Accessories Optional AccessoriesParameter Typical Maximum SpecificationsPhysical ElectricalEnvironmental Before Initializing and Operating the Unit Getting StartedInitial Inspection Operating EnvironmentStoring and Shipping Cleaning Connectors Connector Cleaning connector type can vary Installing the SwitchFront Panel Operating and Maintenance InstructionsOperating Keys Key DescriptionExternal Switch Module without TTL Input Controls External Switch Module ConnectionsRear Panel Sample Driver Application Electrical Equivalent of Driver External Switch Module with TTL Input ControlsUsing and Selecting a Channel Powering Up the SwitchSetting 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 Gpib Pin Assignment Programming GuideGpib Interface Functions RS232 Interface SpecificationsRS232 Pin Assignment Mnemonic FunctionName Symbol Pin Number Signal Direction Operation and Query CommandsCommand Parser Rules RS232 Driver Pin AssignmentReset Operation CommandsClose Set Optical Channel XDR i k Driver ControlQuery Commands Last Number Error Error NumberDrivers LearnCondition Register Status Reporting and Service Request ControlStatus Register SRQ Mask Register Gpib Programming ExamplesSRQ Mask Register Bit Serial Polling the Status Register Sending CommandsRS232 Programming Examples Generating a Service Request InterruptLearn Query LRN? Querying Status Setting the Interface Command SetReading the Status Register SX Series Switch Command Set SC Series Switch Command Set SCXXX-0XXX ModelsSyntax Function Bit MessageRQS Busy Normal BAD Data Unit Failure