HP SB manual Query Commands

Page 32

XDRS i

Drivers Control

Sets all eight relay drivers according to the binary conversion of i. The binary weight of the drivers is as follows:

Driver 1 = 1

Driver 2 = 2

Driver 3 = 4

Driver 4 = 8

Driver 5 = 16

Driver 6 = 32

Driver 7 = 64

Driver 8 = 128

Add together the weights of the drivers to be activated, and send the total. For example, when i = 255, all eight relay drivers are turned on.

SRE i

SQR Mask

Writes a decimal number to the SRQ mask register (see the Status Reporting and Service Request Control section). Setting a bit to 1 generates an SRQ interrupt when the corresponding bit in the status register changes from 0 to 1.

CSB

Clear Status Byte

Resets the status byte.

CLR

Clear Device

Clears the SRQ mask register and the status register.

Query Commands

CLOSE?

Optical Switch Path

Returns the current optical path number. If the switch has two common input fibers (A and B), CLOSE? returns the position of fiber B. CLOSE? MAX returns the maximum channel number.

XDR? i

Driver

Returns the state of an external relay driver (i).

0 = relay driver is off

1 = relay driver is on

Programming Guide – 27

Image 32
Contents SB Series Fiberoptic Switch User’s ManualPage Contents Programming Guide SD000153 Rev. J May Safety Information, Instructions, and Symbols Safety InformationOperating the Unit Safety InstructionsBefore Initializing and Operating the Unit Safety Proceeding Safety SymbolsSymbol Compliance CE ComplianceGeneral Information General Information and SpecificationsSingle-Common SB-C Switch Configuration 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 MaximumEnvironmental ElectricalPhysical 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 DescriptionRear Panel External Switch Module ConnectionsExternal Switch Module without TTL Input Controls External Switch Module with TTL Input Controls Sample Driver Application Electrical Equivalent of DriverPowering Up the Switch Using and Selecting a ChannelControlling the Drivers Setting the Gpib AddressSetting the Interface Command Set for SC and SX Switches Controlling the Switch Remotely by RS232 Interface Controlling the Switch LocallyControlling the Switch Remotely by Gpib Interface Print #1, CLOSE? Input #1,A$ Print A$ END Calibrating the SwitchMaintaining the Switch 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 LearnStatus Register Status Reporting and Service Request ControlCondition Register SRQ Mask Register Bit Gpib Programming ExamplesSRQ Mask Register Sending Commands Serial Polling the Status RegisterLearn Query LRN? Generating a Service Request InterruptRS232 Programming Examples Reading the Status Register Setting the Interface Command SetQuerying Status SC Series Switch Command Set SCXXX-0XXX Models SX Series Switch Command SetSyntax Function Bit MessageRQS Busy Normal BAD Data Unit Failure