HP SB manual RQS Busy Normal BAD Data Unit Failure

Page 40

Table 14: SX Switch Command Set

Syntax

Function

 

 

An

switch to channel n

 

 

Sn

set driver n

 

 

Cn

clear driver n

 

 

Bk

configure drivers with binary code k

 

 

E

enable unit to assert SRQ interrupt after completing each command

 

 

D

disable SRQ interrupt except when an error occurs

 

 

R

remote mode: lock out front panel keys;

 

not implemented in SB switch (RS232 only)

 

 

L

local mode: enable front panel keys;

 

not implemented in SB switch (RS232 only)

 

 

Response messages (Table 15) are formatted as qn Rm, where q is the unit status (A = normal, C = command error, S = system error); n is the channel number (0 to N); R is the letter R; and m is the state of the external relay drivers (0 to 255).

Table 15: Response Messages for SX Switch Commands

Status Byte Register

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Message

 

 

 

 

 

 

 

 

 

0

RQS

0

0

0

0

0

0

BUSY

 

 

 

 

 

 

 

 

 

0

RQS

0

0

0

0

0

1

NORMAL

 

 

 

 

 

 

 

 

 

0

RQS

1

0

0

0

0

1

BAD DATA

 

 

 

 

 

 

 

 

 

0

RQS

1

0

0

0

1

0

UNIT FAILURE

 

 

 

 

 

 

 

 

 

These bits are usually set to 0. Bit 6 (RQS) is set to 1 when the SB switch generates a service request interrupt.

Programming Guide – 35

Image 40 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