HP SB Drivers, Learn, Status Register, SRQ Mask, Condition Register, Self-Test, Error Number

Page 33

XDRS?

Drivers

Returns the states of all drivers in a binary-coded integer.

LRN?

Learn

Returns a string containing three commands that, if sent, reset the switch to its current state, for example, CLOSE i;XDRS k;SRE l, where i represents the current path number, k represents the states of the external drivers, and l represents the value of the service request enable register.

STB?

Status Register

Returns a three-digit integer and automatically clears the status register if the SRQ bit is set.

SRE?

SRQ Mask

Returns the contents of the SRQ mask register.

CNB?

Condition Register

Returns the contents of the condition register.

TST?

Self-Test

Executes a self-test operation. An error code that can be queried with ERR? or LERR? is placed in an error queue. The query TST? also sets bit 7 in the status register.

0 = self-test passed

1 = self-test failed

ERR?

Error Number

Returns an error number if the self-test fails.

330 = self-test failed

0 = self-test did not fail

LERR?

Last Number Error

Returns a three-digit error number from the error queue. The queue can contain as many as five error numbers. The first error read is the last error that occurred. LERR? returns 000 if the error queue is empty.

Programming Guide – 28

Image 33
Contents User’s Manual SB Series Fiberoptic SwitchPage Contents Programming Guide SD000153 Rev. J May Safety Information Safety Information, Instructions, and SymbolsSafety Instructions Before Initializing and Operating the UnitOperating the Unit Safety Safety Symbols SymbolProceeding CE Compliance ComplianceGeneral Information and Specifications Single-Common SB-C Switch ConfigurationGeneral 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 SpecificationsElectrical PhysicalEnvironmental 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 Connections External Switch Module without TTL Input ControlsRear Panel Sample Driver Application Electrical Equivalent of Driver External Switch Module with TTL Input ControlsUsing and Selecting a Channel Powering Up the SwitchSetting the Gpib Address Setting the Interface Command Set for SC and SX SwitchesControlling the Drivers Controlling the Switch Locally Controlling the Switch Remotely by Gpib InterfaceControlling the Switch Remotely by RS232 Interface Calibrating the Switch Maintaining 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 LearnStatus Reporting and Service Request Control Condition RegisterStatus Register Gpib Programming Examples SRQ Mask RegisterSRQ Mask Register Bit Serial Polling the Status Register Sending CommandsGenerating a Service Request Interrupt RS232 Programming ExamplesLearn Query LRN? Setting the Interface Command Set Querying StatusReading 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