HP SB manual Operation Commands, Reset, Close Set Optical Channel, XDR i k Driver Control

Page 31

A command is contained in a message, and messages can contain more than one command, each one separated by a semicolon (;). For example, CLOSE 6;XDR 2 1 <CR> <LF> contains two commands.

All GPIB commands must end with the terminating sequence <CR> <LF>.

All RS232 commands must be terminated with a single <CR> character.

The input buffer of the switch can hold as many as 100 characters. If the buffer becomes full, the switch holds the handshaking line on the GPIB interface until space is available. Similarly, over the RS232 interface, the switch sets the Clear To Send line low. Any characters received after the line goes low are ignored.

Commands are executed as they are parsed; consequently, a command can be executed before the entire message in which it is contained is received.

The switch delays accepting new characters sent over the GPIB interface while the switch mechanism is moving, but no data are lost. The SB switch is always ready to accept characters over the RS232 interface.

A query command is used to extract status information from the switch. For example, SRE? <CR> <LF> returns the contents of the status register.

Multiple-command messages can contain only one query command. A query must be the last command in the message, for example, CLOSE 20; XDRS? <CR> <LF>.

Operation Commands

RESET

Reset

Returns the switch to the power-up state, for example, channel 0, relay drivers off.

CLOSE i

Set Optical Channel

Closes the optical path represented by the integer i.

XDR i k

Driver Control

Sets the specified external driver on or off.

i = driver number (1 to 8)

k = 1 (on)

k = 0 (off)

Programming Guide – 26

Image 31
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 ConfigurationOptional Accessories Dual-Common Blocking SB-F Switch ConfigurationKey Features Standard AccessoriesParameter Typical Maximum SpecificationsPhysical ElectricalEnvironmental Operating Environment Getting StartedBefore Initializing and Operating the Unit Initial InspectionStoring and Shipping Cleaning Connectors Connector Cleaning connector type can vary Installing the SwitchKey Description Operating and Maintenance InstructionsFront Panel Operating KeysExternal 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 GuideMnemonic Function RS232 Interface SpecificationsGpib Interface Functions RS232 Pin AssignmentRS232 Driver Pin Assignment Operation and Query CommandsName Symbol Pin Number Signal Direction Command Parser RulesXDR i k Driver Control Operation CommandsReset Close Set Optical ChannelQuery Commands Learn Error NumberLast Number Error DriversCondition 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 Bit Message SC Series Switch Command Set SCXXX-0XXX ModelsSX Series Switch Command Set Syntax FunctionRQS Busy Normal BAD Data Unit Failure