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

Page 33
Image 33
HP SB manual Drivers, Learn, Status Register, SRQ Mask, Condition Register, Self-Test, Error Number, Last Number Error