Status Reporting And Service Request Control; Condition Register; Status Register - JDS Uniphase SCG Series User Manual

Fiberoptic switch
Table of Contents

Advertisement

Returns the current state of the specified direct-drive relay line (1 = ON, 0 = OFF).
I = driver number (1 to 8)
XDRS?
Direct Drive Line Group Query
Returns the current state of all specified direct-drive relay lines (1 = ON, 0 = OFF).

Status Reporting and Service Request Control

The SCG unit maintains three eight-bit registers that are used for status reporting and for
enabling the GPIB service request interrupt:

Condition register

Status register

SRQ mask register
Condition Register
The condition register monitors the current state of the switch mechanism. Bit 2, the settled
condition bit, is 1 when the switch mechanism is stopped at the desired channel and 0 when the
switch is moving to a new output channel. The CNB? query command returns the value of the
condition register. When the settled bit is true, the CNB? query returns 4.
Bit 7
Bit 6
0
0
Status Register
The status register records errors and other events that have occurred in the SCG unit. When
an event occurs, the status logic of the SCG unit sets the corresponding bit to 1. This register
can be read at any time because the bits stay set until the register is read at least once.
Bit 7
Bit 6
Self-Test
Service
Error
Request
Bit 7 (Self-Test Error) is set if a calibration error is detected after power-up or after the
self-test query (TST?) is executed. At all other times, the bit is 0.
Bit 6 (Service Request) is set when the interrupt request logic of the SCG unit detects a
reason to generate a service request interrupt on the GPIB interface.
Bit 5 (Syntax Error) is set when the parser detects a syntax error in a command mnemonic.
Bit 4 (Message Available) is set when a message is available in the output buffer.
Condition Register
Bit 5
Bit 4
0
0
Status Register
Bit 5
Bit 4
Syntax
Message
Error
Available
Bit 3
Bit 2
0
Settled
Bit 3
Bit 2
0
Settled
Bit 1
Bit 0
0
0
Bit 1
Bit 0
0
Parameter
Error
Programming Guide – 30

Advertisement

Table of Contents
loading

This manual is also suitable for:

Scg-dScg-eScg-f

Table of Contents