background image

Programming Guide  –  30

error

request

error

available

error

  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 it is 0.

 

  Bit 6 (service request) is set when the interrupt request logic of the switch 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.

 

 Bit 

(settled) 

is set when bit 2 in the condition register changes from 0 to 1.

 

  Bit 0 (parameter error) is set when a parameter value is out of the range of the SB switch.

The status register can be read with the status register query (STB?) or by serial polling the
GPIB interface. During power-up, the status register contains 0 and can only be read by serial
polling. After initial power-up, only the settled bit (bit 2) is set to 1. The clear status byte
command (CSB) and the clear device command (CLR) clear the status register. STB? also
clears the status register, but only if the service request bit (bit 6) is set to 1.

SRQ Mask Register

The SRQ mask register unmasks specific events in the status register that generate service
request interrupt on the GPIB interface (Table 11). The SRQ mask command (SRE) writes to
the SRQ mask register. When a bit in the SRQ mask register is set to 1, the interrupt logic of
the switch monitors the corresponding event bit in the status register. When a bit changes from
0 to 1, a service request interrupt is generated and bit 6 in the status register is set.

Table 11: SRQ Mask Register

SRQ Mask Register

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

self-test

error

n/a

syntax

error

message

available

n/a

settled

n/a

parameter

error

The SRQ mask register can unmask more than one event at a time. The first unmasked event
to change from 0 to 1 causes an interrupt. To acknowledge this interrupt, the GPIB interface
can be serial polled or the status register can be read with STB?. The first time the SB switch
is serial polled after an SRQ is generated, bit 6 is on. Subsequent serial polling returns a value
with bit 6 off. Similarly, STB? returns the status register with the SRQ bit set, but then the
switch logic automatically clears the register. As a result, subsequent STB? queries return 0.

The SRQ mask register is cleared by powering up the SB switch, by the clear device command
(CLR), or by the universal device clear command ( DC1).

GPIB Programming Examples

This section provides programming samples for controlling the SB switch over the GPIB
interface. The samples were written in MS-DOS Qbasic and run on a personal computer

Summary of Contents for SB Series

Page 1: ...SB SERIES FIBEROPTIC SWITCH User s Manual...

Page 2: ......

Page 3: ...tch Configuration 7 Dual Common Blocking SB F Switch Configuration 8 Key Features 8 Applications 8 Standard Accessories 8 Optional Accessories 8 Specifications 9 Getting Started 11 Before Initializing...

Page 4: ...GPIB Address 23 GPIB Interface Functions 24 RS232 Pin Assignment 24 RS232 Interface Specifications 24 RS232 Driver Pin Assignment 25 Operation and Query Commands 25 Command Parser Rules 25 Operation...

Page 5: ...service information contact JDS Uniphase or your local representative JDS Uniphase Corporation 570 West Hunt Club Road Nepean Ontario Canada K2G 5W8 Phone 613 727 1303 Fax 613 727 8284 E mail sales jd...

Page 6: ...connected to the AC power source line power To ensure that the unit is not connected to the line power disconnect the power cord from either the power inlet on the unit s rear panel or from the AC li...

Page 7: ...nnect the power cord only to a power outlet equipped with a protective earth contact Never connect to an extension cord that is not equipped with this feature Willfully interrupting the protective ear...

Page 8: ...t maintenance or repair procedure to the unit s internal mechanism if immediate first aid is not accessible Disconnect the power cord from the unit before adding or removing any components Operating t...

Page 9: ...ndling and operating the unit safely Frame or chassis terminal for electrical grounding within the unit Protective conductor terminal for electrical grounding to the earth WARNING The procedure can re...

Page 10: ...ipment be protected against electrostatic discharges and that the equipment be immune to all electrical shock wave disturbances The requirements specified by directive 89 336 EEC are as follows CE com...

Page 11: ...The SB switch connects the input to a selected output channel The terminations are precisely aligned by a processor controlled stepper motor Collimating lenses terminate the fiberoptic attachments mi...

Page 12: ...l displayed is the current channel pair A and B The number of channel pairs is equal to one half of the total number of channels N Figure 3 Dual Common Configuration Single Step Dual Common SB E Switc...

Page 13: ...ure 5 Figure 5 Dual Common Blocking Configuration Key Features Up to 48 channels Typical insertion loss 0 4 dB Typical repeatability 0 003 dB Typical return loss 65 dB Local control and remote control...

Page 14: ...dB Insertion loss stability4 0 03 dB 0 05 dB Repeatability5 sequential switching random switching 0 003 dB 0 01 dB 0 005 dB 0 025 dB Crosstalk single mode 100 dB 80 dB Input power continuous wave 300...

Page 15: ...collector outputs sink current 100 mA maximum per output driver Drivers 1 2 3 4 5V and GND ground are accessible from back panel connector Drivers 5 6 7 and 8 are internal Driver 1 can also be contro...

Page 16: ...the contents to ensure that the shipment is complete 3 Inspect the unit for structural damage that can have occurred during shipping 4 Connect the unit to a power source using the AC power cord provi...

Page 17: ...g reliability do not store the unit in locations where the temperature falls below 40 C or rises above 70 C Avoid any environmental condition that can result in internal condensation Ensure that these...

Page 18: ...y the RMA number on any accompanying documentation 9 Ship the unit only to the address given at the beginning of this document Cleaning Connectors Caution Connecting damaged or dirty fibers to the uni...

Page 19: ...g the dusting gas or compressed air blow the areas cleaned Installing the Switch Warning In sensitive applications to avoid shock and vibration do not mount the switch in non rigid racks or on top of...

Page 20: ...ng Keys The operating keys are described in Table 5 Table 5 Operating Keys Key Description I O Turns the power on I and off O DRIVER 1 Toggles driver 1 on and off GPIB ADDR Sets the switch to GPIB Add...

Page 21: ...from returning the SB switch to Local mode ADDR Indicates that the GPIB interface is in talk or listen state SRQ Indicates that the interrupt logic of the SB switch has generated a service request int...

Page 22: ...Setup without TTL External Switch Module with TTL Input Controls The setup for a switch with TTL is shown in Figure 10 Figure 10 Switch Setup with TTL Sample Driver Application Electrical Equivalent o...

Page 23: ...Connect the switch to the AC power source with the AC power cord provided 2 Set the power switch to I on to initialize the SB switch All key lamps and status LEDs light If no malfunction is detected d...

Page 24: ...common fiber A is B 1 In all configurations channel 0 is an open circuit that is the switch is in an unconnected state Setting the GPIB Address Set the SB switch to GPIB mode to display and edit the G...

Page 25: ...IEEE 488 GPIB port at the back of the switch 2 Verify that the interface command set is set to SB and that the GPIB address is set to 7 To do this turn the SB switch off and then on again The display...

Page 26: ...ing See the Cleaning Connectors section Clean the internal connectors and the panel mounted connector bulkheads periodically or when high losses are suspected The internal connectors can be accessed b...

Page 27: ...Operating and Maintenance Instructions 22 6 Reinstall the connector panel guiding the fibers back to ensure that they do not bend sharply...

Page 28: ...ment over either interface The SB switch can be set to emulate the interface command sets status reporting and service request control of the SC Series and SX Series switches The active interface comm...

Page 29: ...ke complete capability T6 basic talker serial poll not addressed if MLA L4 basic listener not addressed if MTA SR1 service request capability RL1 remote local complete capability PP0 parallel poll no...

Page 30: ...ith the same settings RS232 Driver Pin Assignment The RS232 driver pin assignment is shown in Figure 16 Figure 16 Driver Pin Assignment Caution Do not exceed 100 mA per driver Operation and Query Comm...

Page 31: ...nsequently a command can be executed before the entire message in which it is contained is received The switch delays accepting new characters sent over the GPIB interface while the switch mechanism i...

Page 32: ...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 C...

Page 33: ...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 t...

Page 34: ...nt state of the switch mechanism Table 9 Bit 2 the settled condition bit is 1 when the switch mechanism has stopped at the desired channel and 0 when the switch is moving to a new output channel The C...

Page 35: ...te service request interrupt on the GPIB interface Table 11 The SRQ mask command SRE writes to the SRQ mask register When a bit in the SRQ mask register is set to 1 the interrupt logic of the switch m...

Page 36: ...ay drivers set up the interface card and drivers OPEN GPIB0 FOR OUTPUT AS 1 OPEN GPIB0 FOR INPUT AS 2 PRINT 1 ABORT set terminating character to CR LF sequence PRINT 1 GPIBEOS OUT CR LF PRINT 1 GPIBEO...

Page 37: ...F END SPOLL PRINT 1 SPOLL 07 serial poll the switch INPUT 2 sr read status register PRINT sr verify SRQ bit is set PRINT 1 SPOLL 07 serial poll again to verify SRQ bit is now cleared INPUT 2 sr read s...

Page 38: ...splays the current channel setting PRINT 3 CLOSE INPUT 3 A PRINT A END Reading the Status Register The serial polling function is not supported on any RS232 interface but STB can be used to query the...

Page 39: ...Command Set Syntax Function AnE switch to channel n FE verify channel XE turn external driver on YE turn external driver off Response messages Table 13 are formatted as qn where q is the switch statu...

Page 40: ...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...

Reviews: