background image

Register-Based Programming 69

Appendix B

Appendix B

Register-Based Programming

About This Appendix

This appendix contains the information you can use for register-based
programming of the E1468A/E1469A Relay Matrix Switch modules.
The contents include:

Register Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69

Reading the Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72

Writing to the Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73

Register Addressing

The E1468A/E1469A Relay Matrix Switch modules are register-based
modules that do not support the VXIbus word serial protocol. When a
SCPI command is sent to the modules, the instrument driver resident in
the command module parses the command and programs the module at
the register level.

Addressing

Overview

Register-based programming is a series of reads and writes directly to the
module registers. This can increase throughput speed since it eliminates
command parsing and allows the use of an embedded controller. It also
allows use of an alternate VXI controller, eliminating the command module.

To access a specific register for either read or write operations, the address
of the register must be used. Register addresses for the plug-in modules are
in an address space known as VXI A16. The exact location of A16 within a
VXIbus master’s memory map depends on the design of the VXIbus master
you are using. For the E1406 Command Module, the A16 space location
starts at 1F0000

16

.

The A16 space is further divided so that the modules are addressed only at
locations above 1FC000

16

within A16. Every module is allocated 64 register

addresses (40

16

). The address of a module is determined by its logical

address (set by the address switches on the module) times 64 (40

16

).

For the E1468A/E1469A modules, the factory setting is 112 (70

16)

, so the

addresses start at 1C00

16

.

Register addresses for register-based devices are located in the upper 25%
of VXI A16 address space. Every VXI device (up to 256) is allocated a 64
byte block of addresses. Figure B-1 shows the register address location
within A16. Figure B-2 shows the location of A16 address space in the
E1406 Command Module.

Summary of Contents for E1468A

Page 1: ...Agilent Technologies E1468A E1469A Relay Matrix Switch Modules User s Manual E1468 90005 Manual Part Number E1468 90005 Printed in U S A E1200...

Page 2: ......

Page 3: ...g the Terminal Modules 20 Creating Larger Matrixes 23 Attaching a Terminal Module to the Relay Switch Module 27 Programming the Relay Matrix Switches 28 Using SCPI Commands 28 Addressing the Modules 2...

Page 4: ...SCAN 53 STATus 55 STATus OPERation CONDition 56 STATus OPERation ENABle 57 STATus OPERation ENABle 57 STATus OPERation EVENt 58 STATus PRESet 58 SYSTem 59 SYSTem CDEScription 59 SYSTem CPON 59 SYSTem...

Page 5: ...73 Status Control Register 73 Relay Control Registers 73 Writing to the Registers 73 Status Control Register 73 Relay Control Registers 74 Appendix C Relay Matrix Switch Error Messages 77 Appendix D...

Page 6: ...6 Notes...

Page 7: ...XTENT ALLOWED BY LOCAL LAW THE ABOVE WARRANTIES ARE EXCLUSIVE AND NO OTHER WARRANTY OR CONDITION WHETHER WRITTEN OR ORAL IS EXPRESSED OR IMPLIED AND AGILENT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY...

Page 8: ...pe DO NOT use repaired fuses or short circuited fuse holders Keep away from live circuits Operating personnel must not remove equipment covers or shields Procedures involving the removal of covers or...

Page 9: ...3 1995 EN 61000 4 3 1995 3 V m 80 1000 MHz IEC 61000 4 4 1995 EN 61000 4 4 1995 0 5 kV signal lines 1 kV power lines IEC 61000 4 5 1995 EN 61000 4 5 1995 0 5 kV line line 1 kV line ground IEC 61000 4...

Page 10: ...10 Notes...

Page 11: ...ferent for the two Relay Matrix Switch modules E1468A Switch Description The E1468A Relay Matrix Switch module provides an 8 x 8 two wire crosspoint matrix Multiple modules can be wired together creat...

Page 12: ...12 Getting Started Chapter 1 Figure 1 1 E1468A Simplified Diagram COMPONENT MODULE E1468A TERMINAL MODULE E1468A Matrix 8 x 8 E1468 66202 E1468 80011...

Page 13: ...Getting Started 13 Chapter 1 Figure 1 2 E1469A Simplified Schematic E1469A COMPONENT MODULE TERMINAL MODULE E1469A Matrix 4 x 16 E1468 66202 E1469 80011...

Page 14: ...14 Getting Started Chapter 1 Figure 1 3 E1468A E1469A Connector Pin Out...

Page 15: ...y devices connected to the Relay Matrix Wwitch modules WARNING CHANNEL WIRING INSULATION All channels that have a common connection must be insulated so that the user is protected from electrical shoc...

Page 16: ...e whether the relay matrix switch module is an E1468A or E1469A These bits are set automatically when the terminal module is installed To ensure proper operation even without the terminal module set t...

Page 17: ...riority than slot 3 etc See Figure 1 6 to change the interrupt priority You can select eight different interrupt priority levels Level 1 is the lowest priority and level 7 is the highest priority Leve...

Page 18: ...68A E1469A modules may be installed in any slot except slot 0 in a C Size VXI mainframe See Figure 1 7 to install a module in a mainframe Figure 1 6 Interrupt Priority Selection X X IRQ 3 6 7 4 5 2 1...

Page 19: ...ule to reverse the procedure the mainframe Levers Extraction Set the extraction levers out 4 1 2 into the mainframe by Seat the E1468 69A pushing in the extraction levers 3 NOTE The extraction levers...

Page 20: ...ctors and associated row column designators Shielding jumpers JM1 JM10 are shown See Creating Larger Matrices for information on using the expansion connectors J1 J4 and for shield wiring details NOTE...

Page 21: ...E1469A 4 x 16 Matrix Switch Terminal Block Connector Row Column Expansion Connectors Column Input Connectors Row Input Connector Row Expansion Connector Shield Connector TB5 In parallel with the screw...

Page 22: ...e larger matrices See Creating Larger Matrices Figure 1 10 Wiring the Terminal Module Tighten screw Insert wire into terminal Screw Type Make connections Remove clear cover 3 1 VW1 Flammability Use wi...

Page 23: ...7 EXPANSION CONNECTOR J3 JM5 ROWS 0 3 EXPANSION CONNECTOR J3 JM4 COLUMN 4 7 EXPANSION CONNECTOR J2 JM3 COLUMN 0 3 EXPANSION CONNECTOR J2 JM2 COLUMN 4 7 EXPANSION CONNECTOR J1 JM1 COLUMN 0 3 EXPANSION...

Page 24: ...his configuration requires four E1468 80002 Daisy Chain Cables Figure 1 12 8 Row x 24 Column Matrix Using E1468A Terminal Module COLUMNS 16 23 COLUMNS 8 15 COLUMNS 0 7 ROWS 0 7 To Another Module Expan...

Page 25: ...This configuration requires eight E1468 80002 Daisy Chain Cables Figure 1 13 16 Row x 16 Column Matrix Using E1468A Terminal Module COLUMNS 0 7 ROWS 0 7 COLUMNS 8 15 ROWS 8 15 To Another Module Expans...

Page 26: ...uires two E1468 80002 Daisy Chain Cables Figure 1 14 4 Row x 48 Column Matrix Using E1469A Terminal Block pins on channel expansion connector located Expansion cable plugs into top two rows of COLUMNS...

Page 27: ...ll screwdriver to release the two extraction To remove the terminal module from the E1468 69A Levers Extraction Align the terminal module connectors to the E1468 69A connectors Extend the extraction l...

Page 28: ...er language interface address and SCPI commands to be used Guidelines to select SCPI commands for the relay matrix switch module follow NOTE This discussion applies only to SCPI programming See Append...

Page 29: ...numbers are rr 00 to 03 two digits and cc 00 to 15 two digits You can address single channels ssrrcc multiple channels ssrrcc ssrrcc sequential channels ssrrcc ssrrcc groups of sequential channels ssr...

Page 30: ...30 Getting Started Chapter 1 Notes...

Page 31: ...nds used in this chapter Commands in square brackets are implied and are not sent with the command See Chapter 3 for additional information Command Description INITiate IMMediate Starts the scan seque...

Page 32: ...ith the command Query Description ARM COUN Number of Scanning Cycles CLOS Channel Closed INIT CONT Scanning State OPEN Channel Open OUTP ECLTn ECL Trigger Output State OUTP EXT External Trigger Output...

Page 33: ...70914 B 60 OUTPUT 70914 SYST CTYP 1 70 ENTER 70914 C 80 PRINT A 90 PRINT B 100 PRINT C 110 END A typical return is HEWLETT PACKARD SWITCHBOX 0 A 04 00 4x16 2 WIRE MATRIX HEWLETT PACKARD E1469A 0 A 04...

Page 34: ...ROUT OPEN A 100 NEXT J 110 NEXT I 120 END Example Sequencing Channels E1469A To use this program with the E1469A 4x16 Relay Matrix Switch Module replace lines 20 30 40 and 60 with 20 FOR I 0 TO 3 30...

Page 35: ...his program attempts an illegal channel closure and polls for the error message 10 DIM Err_num 256 20 OUTPUT 70914 CLOS 10500 30 OUTPUT 70914 SYST ERR 40 ENTER 70914 Err_num 50 PRINT Err_num Example U...

Page 36: ...Relay Matrix Switch This example shows one way to synchronize a Relay Matrix Switch module with measurement instruments In this example the module switches a signal to a multimeter The program then ve...

Page 37: ...mmands that perform functions like reset self test status byte query etc Common commands are four or five characters in length always begin with an asterisk and may include one or more parameters The...

Page 38: ...erefore DIAGNOSTIC diagnostic and DiAgNoStIc are all acceptable Implied Commands Implied commands appear in square brackets in the command syntax The brackets are not part of the command and are not s...

Page 39: ...parameters selects from a finite number of values These parameters use mnemonics to represent each valid setting An example is TRIGger SOURce source where source can be BUS EXTernal HOLD IMMediate ECL...

Page 40: ...enabled via an interface an interface CLEAR command CLEAR 7 can be used to stop the scan When the scan is enabled via the interface and TRIG SOUR BUS or HOLD is set you can use ABORt to stop the scan...

Page 41: ...Tinuous OFF 0 is set MIN sets 1 cycle and MAX sets 32 767 cycles Parameters Comments Number of Scans Use only values between 1 and 32 767 for the number of scanning cycles Related Commands ABORt INITi...

Page 42: ...r MAX as a parameter MIN returns 1 and MAX returns 32767 Parameters Comments Related Command INITiate IMMediate Example Query Number of Scans This example sets a switchbox for 10 scanning cycles and q...

Page 43: ...OURce command advances the scan through the channel list A trigger at the end of the channel list closes the first channel in the channel list and the scan cycle repeats Non Continuous Scanning Operat...

Page 44: ...T CONT returns 1 INIT CONT ON Enable continuous scanning INIT CONT Query continuous scanning state INITiate IMMediate INITiate IMMediate starts the scanning process and closes the first channel in the...

Page 45: ...n This is also used to disable a selected ECL Trigger bus line n specifies the ECL Trigger bus line 0 or 1 and mode enables ON or 1 or disables OFF or 0 the specified ECLTrg bus line Parameters Commen...

Page 46: ...ut pulse after each scanned channel is closed OUTPut ECLTrg STATe OUTPut ECLTrg STATe queries the present state of the specified ECL Trigger bus line The command returns 1 if the specified ECLTrg bus...

Page 47: ...or 7 or EXTernal can be enabled at one time Enabling a different output source will automatically disable the active output For example if TTLTrg1 is the active output and TTLTrg4 is enabled TTLTrg1 w...

Page 48: ...elected TTL Trigger at a time When enabled the selected TTL Trigger bus line 0 to 7 is pulsed by the switchbox each time a scanned channel is closed To disable the output for a specific switchbox send...

Page 49: ...line The command returns 1 if the specified TTLTrg bus line is enabled or 0 if disabled Example Query TTL Trigger Bus Enable State This example enables TTL Trigger bus line 7 and queries the enable s...

Page 50: ...ents channel_list Form For the E1468A channel_list has the form ssrc where ss card number 01 99 r row number and c column number For the E1469A channel_list has the form ssrrcc where ss card number 01...

Page 51: ...0 of card 1 and 20013 closes row 00 column 13 on card 2 ROUTe CLOSe ROUTe CLOSe channel_list returns the current state of the channel s queried channel_list has the form ssrc or ssrrcc see ROUTe CLOSe...

Page 52: ...combination of these commands However closure order for multiple channels with a single command is not guaranteed Opening Channels E1469A Only For a single channel use ROUT OPEN ssrrcc For multiple c...

Page 53: ...0013 of a two module switchbox and queries channel 20013 state Since channel 20013 is programmed to be open 1 is returned OPEN 10100 20013 Open channels 10100 and 20013 OPEN 20013 Query channel open s...

Page 54: ...hannels use ROUT SCAN ssrrcc ssrrcc ssrrcc ssrrcc You can use any combination of these commands However closure order for multiple channels with a single command is not guaranteed Scanning Operation W...

Page 55: ...er bits 7 6 5 4 and 3 respectively can be queried with the STB command Use the ESE command to query the unmask value for the Standard Event Status Register the bits you want logically OR d into the su...

Page 56: ...128 64 32 16 8 4 2 1 2 128 4 8 16 32 1 RQS ESB MAV 1 7 6 3 5 4 2 0 unmask examples ESE 61 unmasks standard event register bits 0 2 3 4 and 5 ESE 128 only unmasks bit 7 SRE 128 unmasks the OPR bit oper...

Page 57: ...to 1 Related Commands ROUTe SCAN Example Enabling Operation Status Register Bit 8 STAT OPER ENAB 256 Enables bit 8 of the Operation Status Enable Register to be reported to bit 7 OPR in the Status Reg...

Page 58: ...Operation Status Register is set to 1 The command returns 0 if bit 8 of the Operation Status Register is set to 0 Event Register Cleared Reading the Event Register with the STATus OPERation EVENt comm...

Page 59: ...of a selected module card in a switchbox Parameters Comments 8x8 Relay Matrix Module Description SYSTem CDEScription number returns 8x8 Relay Matrix 4x16 Relay Matrix Module Description SYST CDEScript...

Page 60: ...nd A 02 00 is an example of the module revision code number 4x16 Relay Matrix Switch Module Model Number SYSTem CTYPe number returns HEWLETT PACKARD El469A 0 A 04 00 where the 0 after E1469A is the mo...

Page 61: ...turns 0 No error To clear all error numbers messages in the queue execute the CLS command Maximum Error Numbers Messages in the Error Queue The queue holds a maximum of 30 error numbers messages for e...

Page 62: ...d must be executed before TRIGger IMMediate will execute BUS or HOLD Source Remains If selected the TRIGger SOURceBUS or TRIGger SOURceHOLD commands remain in effect after triggering a switchbox with...

Page 63: ...tchbox assigned with TRIGger SOURceEXTernal remains assigned to that source until the switchbox trigger source is changed to BUS ECLT HOLD IMMediate or TTLT When the source is changed the external tri...

Page 64: ...00 through 03 of switchbox The trigger source to advance the scan is the TRG command as set with TRIG SOUR BUS When INIT is executed the scan is started and channel 00 is closed Then each TRG command...

Page 65: ...nvalidates current channel list for scanning Sets ARM COUN 1 TRIG SOUR IMM and INIT CONT OFF SAV n Stores the instrument state but does not save the scan list SRE unmask Service request enable enables...

Page 66: ...SCAN MODE Closes channel s Queries channel s closed Opens channel s Queries channel s opened Defines channels for scanning Sets scan mode has no effect on Form C operation Queries the scan mode STATus...

Page 67: ...de 4x16 10 MHz 1 Wire mode 1x128 3 MHz Crosstalk Between Channels 10 kHz 2 Wire mode 4x16 90 dB 1 Wire mode 1x128 60 dB Open Channel Capacitance channel to channel channel to common 2 Wire mode 4x16 9...

Page 68: ...68 Relay Matrix Switch Specifications Appendix A Notes...

Page 69: ...ntroller eliminating the command module To access a specific register for either read or write operations the address of the register must be used Register addresses for the plug in modules are in an...

Page 70: ...Type Register Status Control Register E1468A E1469A A16 Register Map FFFF16 C00016 49 152 FFFF16 COOO16 OOOO16 Base Address COOO16 Logical Address 64 16 49 152 Logical Address 64 10 or Register Addre...

Page 71: ...the register address using a logical address of 112 register address base address register offset 1FC00016 112 64 16 0416 1FC00016 1C0016 0416 1FDC0416 or 2 080 768 112 64 4 2 080 768 7168 4 2 087 940...

Page 72: ...16 Bank 6 Relay Control Register base 2C16 Bank 7 Relay Control Register base 2E16 Channels 0990 0996 Relay Control Register base 3016 Manufacturer Identification Register The Manufacturer Identificat...

Page 73: ...he Status Control Register base 0416 returns DBBF Relay Control Registers Reading these registers always returns FFFF16 Writing to the Registers You can write to these Relay Matrix Switch module regis...

Page 74: ...of relays per bank can be closed at a time Manufacturer ID Register base 0016 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write Undefined Read Manufacturer ID Returns FFFF16 Hewlett Packard A16 only registe...

Page 75: ...6 Writes a 1 to close channel Bank 2 Relay Control Register base 2416 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write Undefined CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 Read Always Returns FFFF16 Writes a 1 to clo...

Page 76: ...ites a 1 to close channel Bank 7 Relay Control Register base 2E16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Write Undefined CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 Read Always Returns FFFF16 Writes a 1 to close c...

Page 77: ...e to a switchbox when the trigger source has already been assigned to another switchbox 2000 Invalid card number Addressing a module card in a switchbox that is not part of the switchbox 2001 Invalid...

Page 78: ...78 Relay Matrix Switch Error Messages Appendix C Notes...

Page 79: ...effects of loading and switching frequency on relay life follow Relay Load In general higher power switching reduces relay life In addition capacitive inductive loads and high inrush currents for exam...

Page 80: ...lity of the contact resistance decreases with age Using this method the contact resistance is measured several 5 10 times and the variance of the measurements is determined An increase in the variance...

Page 81: ...legal Channel Closure Error 35 Initial Operation 29 Opening Channels 52 Opening Closing Rows Columns 34 Querying Channel Closures 51 Querying Channel Open State 53 Querying Continuous Scanning State 4...

Page 82: ...ng 18 power on reset conditions 32 programming 28 querying 32 specifications 67 switching channels 33 synchronizing 36 relays end of life determination 79 relay life factors 79 replacement strategy 79...

Page 83: ...E1468 90005 Manual Part Number E1468 90005 Printed in U S A E1200...

Page 84: ......

Reviews: