Agilent TechnologiesE1468A/E1469ARelay Matrix Switch ModulesUser’s Manual
*E1468-90005*Manual Part Number: E1468-90005
Printed in U.S.A. E1200
ContentsE1468A/E1469A Relay Matrix Switch User’s Manual
AGILENT TECHNOLOGIES WARRANTY STATEMENT ............................................ 7Safety Symbols ............................................................................................................ 8WARNINGS ................................................................................................................. 8
Chapter 1Getting Started ............................................................................................................ 11
Using This Chapter .................................................................................................... 11Relay Matrix Switches Description............................................................................. 11
E1468A Switch Description ................................................................................ 11E1469A Switch Description ................................................................................ 11E1468A/E1469A Connector Pin-Outs ................................................................ 11
Configuring the Relay Matrix Switches ...................................................................... 15Warnings and Cautions ......................................................................................15Setting the Logical Address Switch .................................................................... 16Setting the Status Register Switch .....................................................................16Setting the Interrupt Priority ................................................................................ 17Installing Relay Matrix Switches in a Mainframe ................................................18
Configuring the Terminal Modules.............................................................................. 20Wiring the Terminal Modules .............................................................................. 20Creating Larger Matrixes .................................................................................... 23Attaching a Terminal Module to the Relay Switch Module .................................. 27
Programming the Relay Matrix Switches ...................................................................28Using SCPI Commands ......................................................................................28Addressing the Modules .................................................................................... 28Initial Operation .................................................................................................. 29
Chapter 2Using the Relay Matrix Switches ............................................................................... 31
Using This Chapter ....................................................................................................31Relay Matrix Switch Commands/States .....................................................................31
Relay Matrix Switch Commands ......................................................................... 31Relay Matrix Switch Query Commands ..............................................................32Power-on and Reset Conditions ......................................................................... 32
Relay Matrix Switch Functions................................................................................... 33Checking Module Identification ........................................................................... 33Switching Channels ............................................................................................ 33Recalling and Saving States ............................................................................... 34Detecting Error Conditions .................................................................................35Synchronizing Relay Matrix Switches ................................................................ 36
Chapter 3Relay Matrix Switch Command Reference ............................................................... 37
About This Chapter ................................................................................................... 37Command Types ....................................................................................................... 37
Common Command Format ............................................................................... 37SCPI Command Format ..................................................................................... 37Linking Commands .............................................................................................39
3
SCPI Commands Reference ..................................................................................... 39ABORt ........................................................................................................................ 40ARM ........................................................................................................................... 41
ARM:COUNt ....................................................................................................... 41ARM:COUNt? ..................................................................................................... 42
INITiate.......................................................................................................................43INITiate:CONTinuous ......................................................................................... 43INITiate:CONTinuous? ....................................................................................... 44INITiate[:IMMediate] ........................................................................................... 44
OUTPut ...................................................................................................................... 45OUTPut:ECLTrg[:STATe] .................................................................................... 45OUTPut:ECLTrg[:STATe]? .................................................................................. 46OUTPut[:EXTernal][:STATe] ................................................................................ 46OUTPut[:EXTernal][:STATe]? .............................................................................. 47OUTPut:TTLTrg[:STATe] ..................................................................................... 48OUTPut:TTLTrg[:STATe]? ................................................................................... 49
[ROUTe:] .................................................................................................................... 50[ROUTe:]CLOSe ................................................................................................. 50[ROUTe:]CLOSe? ............................................................................................... 51[ROUTe:]OPEN ................................................................................................... 52[ROUTe:]OPEN? ................................................................................................. 53[ROUTe:]SCAN ................................................................................................... 53
STATus.......................................................................................................................55STATus:OPERation:CONDition? ........................................................................ 56STATus:OPERation:ENABle ............................................................................... 57STATus:OPERation:ENABle? ............................................................................. 57STATus:OPERation[:EVENt]? ............................................................................ 58STATus:PRESet ................................................................................................. 58
SYSTem ..................................................................................................................... 59SYSTem:CDEScription? ..................................................................................... 59SYSTem:CPON .................................................................................................. 59SYSTem:CTYPe? ............................................................................................... 60SYSTem:ERRor? ................................................................................................ 60
TRIGger ..................................................................................................................... 62TRIGger[:IMMediate] .......................................................................................... 62TRIGger:SOURce ............................................................................................... 63TRIGger:SOURce? .............................................................................................64
IEEE 488.2 Common Commands Quick Reference ................................................. 65SCPI Commands Quick Reference ........................................................................... 66
Appendix ARelay Matrix Switch Specifications ........................................................................... 67
Appendix BRegister-Based Programming ................................................................................... 69
About This Appendix .................................................................................................. 69Register Addressing................................................................................................... 69
Addressing Overview .......................................................................................... 69The Base Address .............................................................................................. 70Register Definitions ............................................................................................ 72
4
Reading the Registers ............................................................................................... 72Manufacturer Identification Register ...................................................................72Device Identification Register ............................................................................. 73Status/Control Register ....................................................................................... 73Relay Control Registers ......................................................................................73
Writing to the Registers.............................................................................................. 73Status/Control Register ....................................................................................... 73Relay Control Registers ......................................................................................74
Appendix CRelay Matrix Switch Error Messages ........................................................................ 77
Appendix DRelay Life ..................................................................................................................... 79
Replacement Strategy................................................................................................ 79Relay Life Factors ...................................................................................................... 79End-of-Life Determination .......................................................................................... 79
Index ............................................................................................................................... 81
5
Notes:
6
AGILENT TECHNOLOGIES WARRANTY STATEMENT
AGILENT PRODUCT: E1468A/E1469A Relay Matrix Switch Modules DURATION OF WARRANTY: 3 years
1. Agilent Technologies warrants Agilent hardware, accessories and supplies against defects in materials and workmanship for the periodspecified above. If Agilent receives notice of such defects during the warranty period, Agilent will, at its option, either repair or replaceproducts which prove to be defective. Replacement products may be either new or like-new.
2. Agilent warrants that Agilent software will not fail to execute its programming instructions, for the period specified above, due todefects in material and workmanship when properly installed and used. If Agilent receives notice of such defects during the warrantyperiod, Agilent will replace software media which does not execute its programming instructions due to such defects.
3. Agilent does not warrant that the operation of Agilent products will be interrupted or error free. If Agilent is unable, within a reasonabletime, to repair or replace any product to a condition as warranted, customer will be entitled to a refund of the purchase price upon promptreturn of the product.
4. Agilent products may contain remanufactured parts equivalent to new in performance or may have been subject to incidental use.
5. The warranty period begins on the date of delivery or on the date of installation if installed by Agilent. If customer schedules or delaysAgilent installation more than 30 days after delivery, warranty begins on the 31st day from delivery.
6. Warranty does not apply to defects resulting from (a) improper or inadequate maintenance or calibration, (b) software, interfacing, partsor supplies not supplied by Agilent, (c) unauthorized modification or misuse, (d) operation outside of the published environmentalspecifications for the product, or (e) improper site preparation or maintenance.
7. TO THE EXTENT ALLOWED BY LOCAL LAW, THE ABOVE WARRANTIES ARE EXCLUSIVE AND NO OTHERWARRANTY OR CONDITION, WHETHER WRITTEN OR ORAL, IS EXPRESSED OR IMPLIED AND AGILENTSPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OR CONDITIONS OF MERCHANTABILITY, SATISFACTORYQUALITY, AND FITNESS FOR A PARTICULAR PURPOSE.
8. Agilent will be liable for damage to tangible property per incident up to the greater of $300,000 or the actual amount paid for the productthat is the subject of the claim, and for damages for bodily injury or death, to the extent that all such damages are determined by a courtof competent jurisdiction to have been directly caused by a defective Agilent product.
9. TO THE EXTENT ALLOWED BY LOCAL LAW, THE REMEDIES IN THIS WARRANTY STATEMENT ARE CUSTOMER’SSOLE AND EXLUSIVE REMEDIES. EXCEPT AS INDICATED ABOVE, IN NO EVENT WILL AGILENT OR ITS SUPPLIERS BELIABLE FOR LOSS OF DATA OR FOR DIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL (INCLUDING LOST PROFIT ORDATA), OR OTHER DAMAGE, WHETHER BASED IN CONTRACT, TORT, OR OTHERWISE.
FOR CONSUMER TRANSACTIONS IN AUSTRALIA AND NEW ZEALAND: THE WARRANTY TERMS CONTAINED IN THISSTATEMENT, EXCEPT TO THE EXTENT LAWFULLY PERMITTED, DO NOT EXCLUDE, RESTRICT OR MODIFY AND AREIN ADDITION TO THE MANDATORY STATUTORY RIGHTS APPLICABLE TO THE SALE OF THIS PRODUCT TO YOU.
U.S. Government Restricted Rights
The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as "commercialcomputer software" as defined in DFARS 252.227- 7013 (Oct 1988), DFARS 252.211-7015 (May 1991) or DFARS 252.227-7014 (Jun1995), as a "commercial item" as defined in FAR 2.101(a), or as "Restricted computer software" as defined in FAR 52.227-19 (Jun1987)(or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for suchSoftware and Documentation by the applicable FAR or DFARS clause or the Agilent standard software agreement for the productinvolved.
E1468A/E1469A Relay Matrix Switch Modules User’s ManualEdition 5
Copyright © 1990, 1993-1994, 1996, 2000 Agilent Technologies, Inc. All rights reserved.
7
Safety SymbolsInstruction manual symbol affixed toproduct. Indicates that the user must refer tothe manual for specific WARNING orCAUTION information to avoid personalinjury or damage to the product.
Alternating current (AC)Instruction manual symbol affixed toproduct. Indicates that the user must refer tothe manual for specific WARNING orCAUTION information to avoid personalinjury or damage to the product.
Indicates the field wiring terminal that mustbe connected to earth ground beforeoperating the equipment — protects againstelectrical shock in case of fault.
Direct current (DC).
Warning. Risk of electrical shock.
orFrame or chassis ground terminal—typicallyconnects to the equipment's metal frame.
WARNINGCalls attention to a procedure, practice, orcondition that could cause bodily injury ordeath.
CAUTIONCalls attention to a procedure, practice, orcondition that could possibly cause damage toequipment or permanent loss of data.
WARNINGS
The following general safety precautions must be observed during all phases of operation, service, and repair of this product. Failure tocomply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design, manufacture, andintended use of the product. Agilent Technologies assumes no liability for the customer's failure to comply with these requirements.
Ground the equipment: For Safety Class 1 equipment (equipment having a protective earth terminal), an uninterruptible safety earthground must be provided from the mains power source to the product input wiring terminals or supplied power cable.
DO NOT operate the product in an explosive atmosphere or in the presence of flammable gases or fumes.
For continued protection against fire, replace the line fuse(s) only with fuse(s) of the same voltage and current rating and type. DO NOTuse 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 ofcovers or shields are for use by service-trained personnel only. Under certain conditions, dangerous voltages may exist even with theequipment switched off. To avoid dangerous electrical shock, DO NOT perform procedures involving cover or shield removal unless youare qualified to do so.
DO NOT operate damaged equipment: Whenever it is possible that the safety protection features built into this product have beenimpaired, either through physical damage, excessive moisture, or any other reason, REMOVE POWER and do not use the product untilsafe operation can be verified by service-trained personnel. If necessary, return the product to Agilent for service and repair to ensure thatsafety features are maintained.
DO NOT service or adjust alone: Do not attempt internal service or adjustment unless another person, capable of rendering first aid andresuscitation, is present.
DO NOT substitute parts or modify equipment: Because of the danger of introducing additional hazards, do not install substitute partsor perform any unauthorized modification to the product. Return the product to Agilent for service and repair to ensure that safety featuresare maintained.
Documentation History
All Editions and Updates of this manual and their creation date are listed below. The first Edition of the manual is Edition 1. The Editionnumber increments by 1 whenever the manual is revised. Updates, which are issued between Editions, contain replacement pages tocorrect or add additional information to the current Edition of the manual. Whenever a new Edition is created, it will contain all of theUpdate information for the previous Edition. Each new Edition or Update also includes a revised copy of this documentation history page.
Edition 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . November, 1990Edition 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . April, 1993Edition 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . November, 1994Edition 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . February, 1996Edition 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . December, 2000
8
Manufacturer’s Name: Agilent Technologies, Inc.Manufacturer’s Address: Measurement Products Unit
815 14th Street S.W.Loveland, CO 80537 USA
Declares, that the product
Product Name: Relay Matrix Switch ModulesModel Number: E1468A/E1469AProduct Options: This declaration includes all options of the above product(s).
Conforms with the following European Directives:The product herewith complies with the requirements of the Low Voltage Directive 73/23/EEC and the EMC Directive 89/336/EECand carries the CE Marking accordingly.
Conforms with the following product standards:
EMC Standard LimitIEC 61326-1:1997 + A1:1998 / EN 61326-1:1997 + A1:1998
CISPR 11:1997 + A1:1997 / EN 55011-1991 Group 1, Class A [1]
IEC 61000-4-2:1995+A1998 / EN 61000-4-2:1995 4 kV CD, 8 kV ADIEC 61000-4-3:1995 / EN 61000-4-3:1995 3 V/m, 80-1000 MHzIEC 61000-4-4:1995 / EN 61000-4-4:1995 0.5 kV signal lines, 1 kV power linesIEC 61000-4-5:1995 / EN 61000-4-5:1995 0.5 kV line-line, 1 kV line-groundIEC 61000-4-6:1996 / EN 61000-4-6:1996 3 V, 0.15-80 MHzIEC 61000-4-11:1994 / EN 61000-4-11:1994 1 cycle, 100%
Canada: ICES-001:1998Australia/New Zealand: AS/NZS 2064.1
Safety IEC 61010-1:1990+A1:1992+A2:1995 / EN 61010-1:1993+A2:1995Canada: CSA C22.2 No. 1010.1:1992UL 3111-1
Supplemental Information:
[1] The product was tested in a typical configuration with Agilent Technologies test systems.
For further information, please contact your local Agilent Technologies sales office, agent or distributor.Authorized EU-representative: Agilent Technologies Deutschland GmbH, Herrenberger Straβe 130, D 71034 Böblingen, Germany
Revision: A.03 Issue Date: 09/05/00
September 5, 2000
Date Name
Quality Manager
Title
DECLARATION OF CONFORMITYAccording to ISO/IEC Guide 22 and CEN/CENELEC EN 45014
9
Notes:
10
Chapter 1
Getting Started
Using This ChapterThis chapter gives guidelines to get started using the E1468A and E1469ARelay Matrix Switch modules (Relay Matrix Switches), including:
• Relay Matrix Switches Description . . . . . . . . . . . . . . . . . . . . . . 11• Configuring the Relay Matrix Switches. . . . . . . . . . . . . . . . . . .15• Configuring the Terminal Modules . . . . . . . . . . . . . . . . . . . . . .20• Programming the Relay Matrix Switches . . . . . . . . . . . . . . . . .28
Relay Matrix Switches DescriptionThe E1468A and E1469A Relay Matrix Switch modules are VXIbus C-Sizeregister-based modules and operate with an E1406 Command Module.Each Relay Matrix Switch consists of a component module with 64 two-wirerelays and a terminal module for connecting user inputs. The componentmodule (E1468-66202) is the same for the E1468A and E1469A. Theterminal module for the E1468A (E1468-90011) and the terminal modulefor the E1469A (E1469-80011) are different for the two Relay Matrix Switchmodules.
E1468A SwitchDescription
The E1468A Relay Matrix Switch module provides an 8 x 8 two-wirecrosspoint matrix. Multiple modules can be wired together creating 8 x 16(two modules), 16 x 16 (four modules), 8 x 24 (three modules), or largermatrices. Figure 1-1 shows a simplified schematic of the E1468Acomponent module and terminal module.
E1469A SwitchDescription
The E1469A Relay Matrix Switch module provides a 4 x 16 two-wirecrosspoint matrix. Multiple modules can be wired together creating 4 x 32(two modules), 8 x 16 (two modules), 4 x 48 (three modules), or largermatrices. Figure 1-2 shows a simplified schematic of the E1469Acomponent module and terminal module.
E1468A/E1469AConnector Pin-Outs
Each Relay Matrix Switch module consists of a component module and aterminal module. Figure 1-3 illustrates the front panel of an E1468A/E1469Acomponent module and the connector pin-out. The terminal module makesthe row and column connection to form the matrix configuration (see Figures1-1 and 1-2).
Getting Started 11Chapter 1
Figure 1-1. E1468A Simplified Diagram
COMPONENT MODULEE1468A
TERMINAL MODULEE1468A
Matrix 8 x 8
(E1468-66202) (E1468-80011)
12 Getting Started Chapter 1
Figure 1-2. E1469A Simplified Schematic
E1469ACOMPONENT MODULE TERMINAL MODULE
E1469A
Matrix 4 x 16
(E1468-66202) (E1469-80011)
Getting Started 13Chapter 1
Figure 1-3. E1468A/E1469A Connector Pin-Out
14 Getting Started Chapter 1
Configuring the Relay Matrix SwitchesThis section gives guidelines to configure the Relay Matrix Switch modules,including:
• Warnings and Cautions• Setting the Logical Address Switch• Setting the Status Register Switch• Setting the Interrupt Priority• Installing Relay Matrix Switches in a Mainframe
Warnings andCautions
WARNING SHOCK HAZARD. Only service-trained personnel who areaware of the hazards involved should install, remove, orconfigure the Relay Matrix Switch modules. Before removingany installed module, disconnect AC power from the VXImainframe and from any devices connected to the RelayMatrix Wwitch modules.
WARNING CHANNEL WIRING INSULATION. All channels that have acommon connection must be insulated so that the user isprotected from electrical shock in the event that two or morechannels are connected together.
CAUTION Maximum Inputs. The maximum voltage that can be applied to any terminal is 220Vdc/250 Vrms. The maximum current that can be applied to any terminal is 1A at 30Vdc/Vrms, or 0.3A at 220 Vdc/250 Vrms. The maximum power that can be appliedto any terminal is 40 VA.
CAUTION Static Electricity. Static electricity is a major cause of component failure.To prevent damage to the electrical components in a Relay Matrix Switch module,observe anti-static techniques when removing or installing the module or whenworking on the module.
Getting Started 15Chapter 1
Setting the LogicalAddress Switch
The logical address switch (LADDR) factory setting is 112. Valid addressesare from 1 to 255. See Figure 1-4 for switch information. The address switchvalue must be a multiple of 8 if the module is the first module in a "switchbox"used with a VXIbus command module using SCPI commands.
Setting the StatusRegister Switch
Four bits of the status register switch (bits 10-13) define whether the relaymatrix switch module is an E1468A or E1469A. These bits are setautomatically when the terminal module is installed.
To ensure proper operation, even without the terminal module, set thestatus register switch as shown in Figure 1-5. However, if the status registerswitch is set for the E1468A, but the terminal module is an E1469A (orvice-versa), the interface will not be able to correctly identify and an errorwill occur.
Figure 1-4. Setting the Logical Address Switch
OPEN = Switch Set To 0 (OFF)
CLOSED = Switch Set To 1 (ON)
1286432168421
Logical AddressSwitch Location
1=CLOSED
0=OPEN
Logical Address = 112
16+32+64=112
16 Getting Started Chapter 1
Setting the InterruptPriority
The E1468A/E1469A Relay Matrix Switch modules generate an interruptafter a channel has been closed. These interrupts are sent to, andacknowledgments are received from, the command module (such as anE1406) through the VXIbus backplane interrupt lines.
For most applications where the relay matrix switch module is installedin a C-Size VXI mainframe, the interrupt priority jumper does not have to bemoved. This is because the VXIbus interrupt lines have the same priorityand interrupt priority is established by installing the modules in slotsnumerically closest to the E1406 Command Module. Thus, slot 1 has ahigher priority than slot 2, slot 2 has a higher priority than slot 3, etc..
See Figure 1-6 to change the interrupt priority. You can select eight differentinterrupt priority levels. Level 1 is the lowest priority and level 7 is the highestpriority. Level X disables the interrupt.
The module's factory setting is level 1. To change the priority level, removethe four-pin jumper from the old priority location and reinstall the jumper inthe new priority location. If the four-pin jumper is not used, the two jumperlocations must have the same interrupt priority level selected.
NOTE The interrupt priority jumper must be installed in position 1 when using theE1406 Command Module. Level X interrupt priority should not be usedunder normal operating conditions. Changing the interrupt priority leveljumper is not recommended.
Figure 1-5. Setting the Status Register Switch
13 10
E1469AE1468A0
11010
10
Example showsswitch setto "E1468A"
Switch LocationStatus Register
Getting Started 17Chapter 1
Installing RelayMatrix Switches in a
Mainframe
The E1468A/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 amainframe.
Figure 1-6. Interrupt Priority Selection
XXIRQ 367 45 2 1
IRQ
Using 2-PinJumper
4
JumperUsing 4-Pin
67 5 23 1 PriorityLocation
Interrupt
18 Getting Started Chapter 1
Figure 1-7. Installing Relay Matrix Switches in a Mainframe
Slide the E1468/69A into any slot(except slot 0) until the backplaneconnectors touch.
To remove the module from the mainframe,
Tighten the top and bottom screwsto secure the module to
reverse the procedure.
the mainframe.
LeversExtraction
Set the extraction levers out.
4
1
2
into the mainframe bySeat the E1468/69A
pushing in the extractionlevers.
3
NOTE: The extraction levers will notseat the backplane connectors on olderVXIbus mainframes. You must manuallyseat the connectors by pushing in themodule until the module's front panel isflush with the front of the mainframe. Theextraction levers may be used to guide orremove the module.
Getting Started 19Chapter 1
Configuring the Terminal ModulesThis section gives guidelines to configure the E1468A and E1469A terminalmodules, including:
• Wiring the Terminal Module• Creating Larger Matrixes• Attaching a Terminal Module to the Relay Switch Module
Wiring the TerminalModules
Guidelines to wire the E1468A and E1469A terminal modules follow.
E1468A Terminal ModuleConnectors
Figure 1-8 shows the E1468A terminal module connectors and associatedrow/column designators. Shielding jumpers JM1 - JM10 are shown. See"Creating Larger Matrices" for information on using the expansionconnectors J1 - J4 and for shield wiring details.
NOTE Jumpers JM1 - JM10 on the E1468A terminal module connect row/columnshields to earth ground through the VXIbus backplane. You may want toremove one or more of these jumpers to reduce common mode noise.
Figure 1-8. E1468A 8 x 8 Matrix Switch Terminal Module
ColumnConnector Connector
Row
Column ExpansionConnector
*
Column InputConnector
Row InputConnector
Row ExpansionConnector
ShieldConnectorTB5* * *
In parallel with the screw terminals.*
20 Getting Started Chapter 1
E1469A Terminal ModuleConnectors
Figure 1-9 shows the E1469A terminal module connectors and associatedrow/column designators. Shielding jumpers JM1 - JM12 are shown. See"Creating Larger Matrices" for information on using the expansionconnectors J1 - J5 and for shield wiring details.
NOTE Jumpers JM1 - JM12 on the E1469A terminal module connect row/columnshields to earth ground through the VXIbus backplane. You may want toremove one or more of these jumpers to reduce common mode noise.
Available Cables To assist you in wiring Relay Matrix Switch terminal modules into your testsystem, this table shows a list of cables that are available from Agilent.
Figure 1-9. E1469A 4 x 16 Matrix Switch Terminal Block
ConnectorRow
Column ExpansionConnectors
*
Column InputConnectors
Row InputConnector
Row ExpansionConnector
ShieldConnectorTB5* * *
In parallel with the screw terminals.*
ConnectorsColumn
Description FinishedLength
End "A" End "B" Part Number
Module expansion connectorwith quick disconnect(twisted pair)
~30 cm 4 x 2 connector forexpansion connectors onterminal modules
4 x 2 connector forexpansion connectors onterminal modules
E1468-80002
50 Ω Coax 2.0 m 2-pin TLA* BNC (molded over) E1065-61620
Dual banana instrument 2.0 m 3-pin TLA* Dual banana E1066-61620
SMB instrument 2.0 m 2-pin TLA* SMB (molded over) E1068-61620
*TLA is a family of connector/cable assemblies with good transmission line design that are made by an Agilent supplier.The 2-pin and 3-pin TLA connectors are designed to fit on one channel of the terminal module expansion connectors.
Getting Started 21Chapter 1
Terminal Module WiringGuidelines
User wiring to the Relay Matrix Switch modules is to the High (H) and Low(L) connections on terminal module. Figure 1-10 gives guidelines to wire theterminal modules. Maximum terminal wire size is No. 16 AWG. Wire endsshould be stripped 6mm (0.25 in.) and tinned. When wiring all channels,use a smaller gauge wire (No. 20 - 22 AWG). The expansion connectorsallow you to create 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 wire
Rating
size 16-26AWG
0.2"5mm
Tab
and release.B. Press tab forward
A. Release screws.
Route wiring.4
secure wires.Tighten wraps to
wire exit panels.Remove 1 of the 3
Remove and retain wiring exit panel.2
Cut requiredholes in panels
for wire exit
Replace Wiring Exit Panel5
Keep wiring exit panelhole as small aspossible
B. Press down andtighten screws
Replace Clear cover
A. Hook in the top cover tabsonto the fixture
6
22 Getting Started Chapter 1
Creating LargerMatrixes
You can use the expansion connectors on the terminal module tointerconnect modules to create larger matrixes. Use part numberE1468-80002 Daisy-Chain Cable (a 4-pair High and Low cable assembly)for expansion between modules. This cable provides a quick-disconnectallowing easy removal of modules.
Shield Wiring Details Figure 1-11 shows shield wiring details for the E1468A and E1469A terminalmodules.
Figure 1-11. E1468A and E1469A Terminal Module Shield Wiring
EXPANSION CONNECTOR J4ROWS 4-7
JM8
JM7
ROWS 0-3EXPANSION CONNECTOR J4
JM6
ROWS 4-7EXPANSION CONNECTOR J3
JM5
ROWS 0-3EXPANSION CONNECTOR J3
JM4
COLUMN 4-7EXPANSION CONNECTOR J2
JM3
COLUMN 0-3EXPANSION CONNECTOR J2
JM2
COLUMN 4-7EXPANSION CONNECTOR J1
JM1
COLUMN 0-3EXPANSION CONNECTOR J1
JM9
JM10To earth ground via VXIbus backplane.
E1468A Shield WiringTB5 TB5
E1469A Shield Wiring
To earth ground via VXIbus backplane.JM12
JM11
EXPANSION CONNECTOR J1COLUMN 0-3
JM1
EXPANSION CONNECTOR J1COLUMN 4-7
JM2
EXPANSION CONNECTOR J2COLUMN 8-11
JM3
EXPANSION CONNECTOR J2COLUMN 12-15
JM4
EXPANSION CONNECTOR J3COLUMNS 0-3
JM5
EXPANSION CONNECTOR J3COLUMNS 4-7
JM6
EXPANSION CONNECTOR J4COLUMNS 8-11
JM7
JM8
COLUMNS 12-15EXPANSION CONNECTOR J4
EXPANSION CONNECTOR J5ROWS 0-3
JM10
JM9
ROWS 0-3EXPANSION CONNECTOR J5
ShieldConnector Connector
Shield
Shielding Shielding
Getting Started 23Chapter 1
8 x 24 Matrix Figure 1-12 shows how to connect three E1468A Relay Matrix SwitchModules to create an 8-row by 24-column matrix. This configuration requiresfour E1468-80002 Daisy-Chain Cables.
Figure 1-12. 8-Row x 24-Column Matrix Using E1468A Terminal Module
COLUMNS 16-23COLUMNS 8-15COLUMNS 0-7
ROWS 0-7
To AnotherModule
ExpansionCable
LowHigh
Channel Expansion Connector
Expansion cable plugs into top two rows ofpins on channel expansion connector locatedon the terminal module.
24 Getting Started Chapter 1
16 x 16 Matrix Figure 1-13 shows how to connect four E1468A Relay Matrix SwitchModules to create a 16-row by 16-column matrix. This configuration requireseight 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 AnotherModule
ExpansionCable
LowHigh
Channel Expansion Connector
Expansion cable plugs into top two rows ofpins on channel expansion connector locatedon the terminal module.
Getting Started 25Chapter 1
4 x 48 Matrix Figure 1-14 shows how to connect three E1469A Relay Matrix SwitchModules to create a 4-row by 48-column matrix. This configuration requirestwo E1468-80002 Daisy-Chain Cables.
Figure 1-14. 4-Row x 48-Column Matrix Using E1469A Terminal Block
pins on channel expansion connector locatedExpansion cable plugs into top two rows of
COLUMNS 40-47COLUMNS 8-15 COLUMNS 24-31
ModuleTo Another
ROWS 0-3
on the terminal module.CableExpansion
Channel Expansion Connector
HighLow
COLUMNS 0-7 COLUMNS 16-23 COLUMNS 32-39
26 Getting Started Chapter 1
Attaching aTerminal Module to
the Relay SwitchModule
Figure 1-15 gives guidelines to attach a terminal module to a componentmodule.
Figure 1-15. Attaching a Terminal Module to the Relay Matrix Switch Module
Extraction Lever
levers and push both levers out simultaneouslyuse a small screwdriver to release the two extractionTo remove the terminal module from the E1468/69A,
LeversExtraction
Align the terminal module connectorsto the E1468/69A connectors.
Extend the extraction levers on the
to free it from the E1468A/69A connectors.
onto the E1468/69A.
Push in the extraction leversto lock the terminal module
E1468/69A.
4
the terminal module to theApply gentle pressure to attach
to release the twoUse small screwdriver
terminal module.
3
1
2
extraction levers
Extraction Lever
E1468/69A
Getting Started 27Chapter 1
Programming the Relay Matrix SwitchesThis section gives guidelines to program the Relay Matrix Switches,including:
• Using SCPI Commands• Addressing the Modules• Initial Operation
Using SCPICommands
VXIbus plug-in modules installed in a C-Size VXI mainframe are treated asindependent instruments having a unique secondary GPIB address. Eachinstrument is also assigned a dedicated error queue, input and outputbuffers, status registers, and, if applicable, dedicated mainframe memoryspace for readings or data. An instrument may be composed of a singleplug-in module (such as a counter) or multiple plug-in modules (for aswitchbox or scanning voltmeter instrument).
To program the Relay Matrix Switch module using Standard Commands forProgrammable Instruments (SCPI), you must select the computer language,interface address, and SCPI commands to be used. Guidelines to selectSCPI commands for the relay matrix switch module follow.
NOTE This discussion applies only to SCPI programming. See Appendix B forinformation on Relay Matrix Switch registers.
Addressing theModules
To address specific channels (relays) within a relay matrix, you must specifythe SCPI command and the Relay Matrix Switch channel address. UseCLOSe <channel_list> to close specified relay(s), OPEN <channel_list> toopen specified relay(s), and SCAN <channel_list> to close the set of relaysspecified.
Module Card Numbers The matrix card (module) number depends on the switchbox configuration(single-module or multiple-module) set for the matrices. (Leading zeroescan be ignored for the card number.) For a single-module switchbox, thecard number is always 01.
For a multiple-module switchbox, the card numbers are 01, 02,...nn.The module with the lowest logical address is card number 01, the modulewith the next-lowest logical address is card number 02, etc..
28 Getting Started Chapter 1
E1468A Relay MatrixSwitch Channel
Addresses
For the E1468A Relay Matrix Switch module, the channel address(channel_list) has the form (@ssrc) where ss = card number (01-99),r = row number, and c = column number. E1468A Relay Matrix Switchmodule channel numbers are r = 0 to 7 (one digit) and c = 0 to 7 (one digit).
You can address single channels (@ssrc); multiple channels(@ssrc,ssrc,...); sequential channels (@ssrc:ssrc); groups of sequentialchannels; @ssrc:ssrc,ssrc:ssrc); or any combination. For example, CLOS (@124) closes row 2, column 4 of card 01 of an E1468A Relay Matrix Switchmodule.
Only valid channels can be accessed in a channel list or channel range.Also, the channel list or channel range must be from a lower channel numberto a higher channel number. For example, CLOS (@100:233) is acceptable,but CLOS (@233:100) generates an error.
E1469A Relay MatrixSwitch Channel
Addresses
For the E1469A Relay Matrix Switch module, the channel address(channel_list) has the form (@ssrrcc) where ss = card number (01-99),rr = row number, and cc = column number. E1469A 4 x 16 Relay MatrixSwitch module channel 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 ofsequential channels (@ssrrcc:ssrrcc,ssrrcc:ssrrcc); or any combination.For example, CLOS (@10214) closes row 02, column 14 of card 01 of anE1469A Relay Matrix Switch module.
Only valid channels can be accessed in a channel list or channel range.Also, the channel list or channel range must be from a lower channel numberto a higher channel number. For example, CLOS (@10000:20303) isacceptable, but CLOS (@20303:10000) generates an error.
Initial Operation An example program follows that uses BASIC and SCPI language to helpget you started using the Relay Matrix Switch modules. The exampleassumes a GPIB interface. The program closes row 03, column 12 of anE1469A 4 x 16 Relay Matrix Switch module at logical address 112(secondary address = 112/8 = 14) and queries the result. The result isreturned to the controller and displayed (1 = relay closed, 0 = relay open).
10 OUTPUT 70914; "*RST" !Reset the module. Set!all relays to open.
20 OUTPUT 70914; "CLOS (@10312)" !Close channel row 03,!column 12 on the firstmodule in the switchbox
30 OUTPUT 70914; "CLOS? (@10312)" !Query channel40 ENTER 70914; Value !Enter result50 PRINT Value !Print results60 END
Getting Started 29Chapter 1
Notes:
30 Getting Started Chapter 1
Chapter 2
Using the Relay Matrix Switches
Using This ChapterThis chapter uses typical examples to show how to use the Relay MatrixSwitch modules. It contains the following sections:
• Relay Matrix Switch Commands/States . . . . . . . . . . . . . . . . . .31• Relay Matrix Switch Functions . . . . . . . . . . . . . . . . . . . . . . . . .33
NOTE All examples in this chapter use GPIB select code 7, primary address 09,and secondary address 14 (LADDR = 112) for the modules.
Relay Matrix Switch Commands/StatesThis section shows the relay matrix commands used in this chapter, thequery commands, and the power-on/reset states.
Relay Matrix SwitchCommands
This table shows some of the commands used in this chapter. Commandsin square brackets ([ ]) are implied and are not sent with the command.See Chapter 3 for additional information.
Command Description
INITiate[:IMMediate] Starts the scan sequence and closes the first channel in thechannel_list.
[ROUTe:]CLOSe <channel_list> Closes the channels in the channel_list.
[ROUTe:]CLOSe? <channel_list> Queries the state of the channels in the channel_ list.
[ROUTe:]OPEN <channel_list> Opens the channels in the channel_list.
[ROUTe:]OPEN? <channel_list> Queries the state of channels in the channel_ list.
[ROUTe:]SCAN <channel_list> Defines the channel_list to be scanned. Channels specifiedare closed one at a time.
TRIGger:SOURce <source>
source = BUS | EXT | HOLD | IMM | TTLT | ECLT
Selects the trigger source to advance the scan.
*CLS Clears switchbox status registers and error queue.
*RST Resets the hardware to a known state.
Using the Relay Matrix Switches 31Chapter 2
Relay Matrix SwitchQuery Commands
All query commands end with a "?". All data is sent to the output bufferwhere you can retrieve it into your computer. The following are valid querycommands:
Power-on and ResetConditions
When power is first applied to the Relay Matrix Switch modules or *RST(reset) is executed, all relays are open. This table lists the parametersand default values for the switchbox functions described in this chapter.Commands in brackets ( [ ] ) are implied and are not sent with 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 State
OUTP:TTLTn? TTL Trigger Output State
STAT:OPER:ENAB? Status Operation Enable
STAT:OPER[:EVEN]? Status Operation Event
SYST:CDES? <number> Module Description
SYST:CTYP? <number> Module Type
SYST:ERR? System Error
TRIG:SOUR? Trigger Source
Parameter Default Description
ARM:COUNt 1 Number of scanning cycles is 1
TRIGger:SOURce IMM Will advance scanning cyclesautomatically
INITiate:CONTinuous OFF Number of scanning cycles set byARM:COUNt
OUTPut[:EXTernal][:STATe] OFF Trigger output from EXTernal,TTLTrg, or ECLTrg sources isdisabled
32 Using the Relay Matrix Switches Chapter 2
Relay Matrix Switch FunctionsThis section provides some examples for Relay Matrix Switch modulefunctions, including:
• Checking Module Identification• Switching Channels• Recalling and Saving States• Detecting Error Conditions• Synchronizing Relay Switch Modules
Checking ModuleIdentification
You can use the *RST, *CLS, *IDN?, CTYP?, and CDES? commands toreset and identify the Relay Matrix Switch modules.
Example: IdentifyingRelay Matrix Switch
Modules
This program uses the *RST, *CLS, *IDN?, CTYP?, and CDES? commandsto reset and identify the Relay Matrix Switch modules.
10 DIM A$[50]; B$[50], C$[50]
20 OUTPUT 70914; "*RST; *CLS; *IDN?"
30 ENTER 70914; A$
40 OUTPUT 70914; "SYST:CDES? 1"
50 ENTER 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.00
Switching Channels Use CLOSe <channel_list> to close one or more Relay Matrix Switchchannels, and OPEN <channel_list> to open the channel(s). channel_listhas the following forms.
For the E1468A only, the form is @ssrc where ss = card number (01-99)r = row number (0 to 7 [one digit]) and c = column number (0 to 7 [one digit]).For the E1469A only, the form is @ssrrcc where ss = card number (01-99)rr = row number (00 to 03 [two digits]) and cc = column number (00 to 15[two digits]).
To OPEN or CLOSe multiple channels, place a comma (,) between thechannel numbers. For example, to close channels 10103 and 10201,execute CLOS 10103,10201. To OPEN or CLOSe a contiguous range ofchannels, place a colon (:) between the first and last channel numbers.
Using the Relay Matrix Switches 33Chapter 2
Example:Opening/Closing
Rows/Columns
This program shows how to close and open row 2 (02), column 14 on anE1469A Relay Matrix Switch module (card #1):
10 DISP "TEST E1469A MATRIX"
20 OUTPUT 70914; "ROUT:CLOS (@10214)"
30 OUTPUT 70914; "ROUT:OPEN (@10214)"
40 END
Example: SequencingChannels (E1468A)
This program sequences through each channel on an E1468A 8x8 RelayMatrix Switch Module.
10 DIM E$[128]
20 FOR I = 0 TO 7
30 FOR J = 0 TO 7
40 A = 100 + 10 * I + J
50 OUTPUT 70914; "ROUT:CLOS (@ ";A;")"
60 OUTPUT 70914; "ROUT:CLOS? (@100:177)"
70 ENTER 70914; E$
80 PRINT "CHANNEL CLOSED NOW"; E$
90 OUTPUT 70914; "ROUT:OPEN (@ ";A;")"
100 NEXT J
110 NEXT I
120 END
Example: SequencingChannels (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 FOR J = 0 TO 15
40 A = 10000 + 100 * I + J
60 OUTPUT 70914; "ROUT:CLOS? (@10000:10315)"
Recalling andSaving States
The *SAV <numeric_state> stores the current state of the switchboxchannels. Up to 10 states may be stored by specifying the <numeric_state>as an integer 0 through 9. The following states are stored:
• Channel relay states (open or closed)• ARM:COUNt• TRIGger:SOURce <source>• OUTPut[:EXTernal][:STATe]• INITiate:CONTinuous
The *RCL <numeric_state> command recalls the specified previously storedstate. If the specified <numeric_state> does not exist, the Relay MatrixSwitch module configures to its power-on/reset states.
34 Using the Relay Matrix Switches Chapter 2
Example: Saving andRecalling States
This examples closes channels on the module and saves the state asnumber 5. When the saved state is recalled, only the channels that wereclosed in the stored state are closed. All other channels in the switchboxare opened.
10 OUTPUT 70914;"CLOS (@10000:10015)" !Close ch 00 through 15
20 OUTPUT 70914; "*SAV 5" !Save as state 5
30 OUTPUT 70914; "*RST; *CLS" !Reset and clear status reg
40 OUTPUT 70914; "CLOS (@10113,10112,10200)" !Close ch 13, 12, 00
50 OUTPUT 70914; "*RCL 5" !Recall the stored state.
60 END
Detecting ErrorConditions
You can use the SYST:ERR? command to poll the switchbox for errors.You can also use interrupts to signal the controller when an error occurs.
Example: Illegal ChannelClosure Error
This program attempts an illegal channel closure and polls for the errormessage:
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: UsingInterrupts to Signal
Errors
This program uses an interrupt to signal the controller when an error occurs.The SYST:ERR? command returns the error message.
10 ON INTR 7 CALL Errmsg !Call subprogram Errmsg if a module!programming error occurs
20 ENABLE INTR 7:2 !Enable the computer to respond to theinterrupt from the module
30 OUTPUT 70914; "*SRE 32; *ESE 64" !Unmask the Event Status bit in the module’s!Status Register (*SRE 32). Unmask the!module error conditions in its Standard EventStatus Register (*ESE 64).
40 OUTPUT 70914 ". . . . !Continue program execution
.
.
100 END
110 SUB Errmsg
120 DIM Message$[256]
130 CLEAR 709 !When an error occurs, clear the module to!regain control.
140 B = SPOLL (70914) !Execute a Serial Poll to clear the Service!Request bit in the Status Register.
150 REPEAT
Using the Relay Matrix Switches 35Chapter 2
160 OUTPUT 70914; "SYST:ERR?" !Read all error messages in the error queue.
170 ENTER 70914; Code, Message$
180 PRINT Code, Message$
190 UNTIL Code = 0
200 OUTPUT 70914; "*CLS" !Clear all bits in the module Standard EventStatus Register
210 STOP
220 SUBEND
SynchronizingRelay Matrix
Switches
You can use the *OPC? common command to synchronize a Relay MatrixSwitch module to external measurement instruments.
Example: Synchronizinga Relay Matrix Switch
This example shows one way to synchronize a Relay Matrix Switch modulewith measurement instruments. In this example, the module switches asignal to a multimeter. The program then verifies that the channel is closedbefore the multimeter begins its measurement.
10 OUTPUT 70914; "*RST" !Reset the module
20 OUTPUT 70914; "CLOS (@10012)" !Close a channel
30 OUTPUT 70914; "*OPC?" !Wait for operation complete
40 ENTER 70914; Opc_value
50 OUTPUT 70914; "CLOS? (@10012)" !Test that the channel is closed
60 ENTER 70914; A
70 OUTPUT 70903; "MEAS:VOLT:DC?" !When channel is closed, measure!the voltage
80 ENTER 70903; Meas_value
90 PRINT Meas_value !Print the measured value
100 END
36 Using the Relay Matrix Switches Chapter 2
Chapter 3Relay Matrix Switch Command Reference
About This ChapterThis chapter describes the Standard Commands for ProgrammableInstruments (SCPI) and the IEEE 488.2 Common commands for theE1468A and E1469A Relay Matrix Switch modules. See the appropriatecommand module user’s manual for additional information on SCPI andCommon commands. This chapter contains the following sections:
• Command Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37• SCPI Command Reference . . . . . . . . . . . . . . . . . . . . . . . . . . .40• IEEE 488.2 Common Commands Quick Reference. . . . . . . . .65• SCPI Commands Quick Reference . . . . . . . . . . . . . . . . . . . . .66
Command TypesCommands are separated into two types: IEEE 488.2 Commoncommands and SCPI commands.
CommonCommand Format
The IEEE 488.2 standard defines the Common commands that performfunctions like reset, self-test, status byte query, etc. Common commandsare four or five characters in length, always begin with an asterisk (*), andmay include one or more parameters. The command keyword isseparated from the first parameter by a space character. Someexamples of Common commands are:
*RST, *ESE <mask>, *STB?
SCPI CommandFormat
SCPI commands perform functions like closing switches, makingmeasurements, and querying instrument states or retrieving data.A subsystem command structure is a hierarchical structure that usuallyconsists of a top-level (or root) command, one or more lower-levelcommands, and their parameters. The following example shows part ofa typical subsystem:
[ROUTe:]CLOSe <channel_list>SCAN <channel_list>
MODE?
[ROUTe:] is the optional root command, CLOSe and SCAN aresecond-level commands with parameters, and :MODE? is a third-levelcommand. [ROUTe:] is an implied command and is, therefore, optional.
Relay Matrix Switch Command Reference 37Chapter 3
Command Separator A colon (:) always separates one command from the next lower-levelcommand, such as [ROUTe:]SCAN:MODE? Colons separate the rootcommand from the second-level command ([ROUTe:]SCAN) and thesecond level from the third level (SCAN:MODE?).
Abbreviated Commands The command syntax shows most commands as a mixture of upper- andlowercase letters. The uppercase letters indicate the abbreviatedspelling for the command. For shorter program lines, send theabbreviated form. For better program readability, you may send theentire command. The instrument will accept either the abbreviated formor the entire command.
For example, if the command syntax shows DIAGnostic, DIAG andDIAGNOSTIC are both acceptable forms. Other forms of DIAGnostic,such as DIAGN or DIAGNOS will generate an error. You may use upper-or lowercase letters. Therefore, DIAGNOSTIC, diagnostic, andDiAgNoStIc are all acceptable.
Implied Commands Implied commands appear in square brackets ([ ]) in the commandsyntax. The brackets are not part of the command and are not sent to theinstrument. Suppose you send a second-level command but do not sendthe preceding implied command. In this case, the instrument assumesyou intended to use the implied command and it responds as if you hadsent it. Examine the [SOURce] subsystem shown below:
[SOURce:]PULSe:COUNt:COUNt?:PERiod:PERiod?
The root command [SOURce:] is an implied command. To set theinstrument’s pulse count to 25, you can send either of the followingcommand statements:
SOUR:PULS:COUN 25 or PULS:COUN 25
Variable CommandSyntax
Some commands have what appears to be a variable syntax. Forexample, OUTP:ECLTn and OUTP:TTLTn. In these commands, the n isreplaced by a number. No space is left between the command and thenumber because the number is not a parameter. The number is part ofthe command syntax. In the case of OUTP:ECLTn, n can range from 0to 1. In OUTP:TTLTn, n can range from 0 through 7.
38 Relay Matrix Switch Command Reference Chapter 3
Parameter Types The following table contains explanations and examples of parametertypes you may see in this chapter.
Linking Commands Linking IEEE 488.2 Common Commands with SCPI Commands. Use asemicolon (;) between the commands. For example, *RST;OUTP ON orTRIG:SOUR HOLD;*TRG.
Linking Multiple SCPI commands. Use both a semicolon (;) and a colon (:)between the commands, such as ARM:COUN 1;:TRIG:SOUR EXT.
SCPI Commands ReferenceThis section describes the Standard Commands for ProgrammableInstruments (SCPI) commands for the Relay Matrix Switch modules.Commands are listed alphabetically by subsystem and within eachsubsystem.
Type Explanations and Examples
Boolean Boolean parameters represent a single binary conditionthat is either true or false (ON, OFF, 1, 0). Any non-zerovalue is considered true.
Discrete Discrete parameters selects from a finite number ofvalues. These parameters use mnemonics to representeach valid setting. An example is TRIGger:SOURce<source>, where source can be BUS, EXTernal, HOLD,IMMediate, ECLTrgn, or TTLTrgn.
Numeric Numeric Parameters are commonly used decimalrepresentations of numbers including optional signs,decimal points, and scientific notation (for example, 123,123E2, -123, -1.23E2, .123, 1.23E-2, 1.23000E- 01).Special cases include MIN, MAX, DEFault, and INFinity.
Optional Optional Parameters are shown within square brackets([]). The brackets are not part of the command and arenot sent to the instrument. If you do not specify a valuefor an optional parameter, the instrument chooses adefault value.
For example, consider ARM:COUNt?[MIN|MAX]. If yousend the command without specifying a parameter, thepresent ARM:COUNt value is returned. If you send theMIN parameter, the command returns the minimumcount available. If you send the MAX parameter, thecommand returns the maximum count available. Be sureto place a space between the command and theparameter.
Relay Matrix Switch Command Reference 39Chapter 3
ABORt
The ABORt command subsystem stops a scan in progress when thescan is enabled via the interface and the trigger source isTRIGger:SOURce BUS or TRIGger:SOURce HOLD.
Subsystem Syntax ABORt
Comments ABORt Actions: ABORt stops the scan and invalidates the currentchannel_list.
Stopping a Scan Enabled Via Interface: When a scan is enabled via aninterface, an interface CLEAR command (CLEAR 7) can be used to stopthe scan. When the scan is enabled via the interface and TRIG:SOURBUS or HOLD is set, you can use ABORt to stop the scan.
Restarting a Scan: Use the INIT command to restart the scan.
Related Commands: ARM, INITiate:CONTinuous, [ROUTe:]SCAN,TRIGger
Example Stopping a Scan with ABORt
This example stops a (continuous) scan in progress.
TRIG:SOUR BUS ! *TRG command is trigger source
INIT:CONT ON ! Set continuous scanning
SCAN (@10000:10003) ! Scan channels 00-03
INIT ! Start scan, close channel 00
.
.ABOR ! Abort scan in progress.
40 Relay Matrix Switch Command Reference Chapter 3
ARM
The ARM subsystem selects the number of scanning cycles (1 to 32,767)for each INITiate command.
Subsystem Syntax ARM:COUNt <number> MIN | MAX:COUNt? [MIN | MAX]
ARM:COUNt
ARM:COUNt <number> MIN | MAX allows scanning cycles to occur amultiple of times (1 to 32,767) with one INITiate command whenINITiate:CONTinuous OFF | 0 is set. MIN sets 1 cycle and MAX sets32,767 cycles.
Parameters
Comments Number of Scans: Use only values between 1 and 32,767 for the numberof scanning cycles.
Related Commands: ABORt, INITiate[:IMMediate]
*RST Condition: ARM:COUNt 1
Example Setting Ten Scanning Cycles
This example sets a Relay Matrix Switch module for 10 scans ofchannels 00 through 03.
ARM:COUN 10 !Set 10 scans per INIT command
SCAN (@10000:10003) !Scan channels 00-03
INIT !Start scan, close channel 00
Name Type Range of Values Default Value
<number> numeric 1-32,767 | MIN | MAX 1
Relay Matrix Switch Command Reference 41Chapter 3
ARM:COUNt?
ARM:COUNt? [MIN | MAX] returns the current number of scanning cyclesset by ARM:COUNt. The current number of scan cycles is returned whenMIN or MAX is not supplied. With MIN or MAX as a parameter, MINreturns 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 queries thenumber of scan cycles set. The ARM:COUN? command returns 10.
ARM:COUN 10 !Set 10 scans per INIT command
ARM:COUN? !Query number of scans
Name Type Range of Values Default Value
MIN | MAX numeric MIN = 1, MAX = 32,767 current cycles
42 Relay Matrix Switch Command Reference Chapter 3
INITiate
The INITiate command subsystem selects continuous scanning cyclesand starts the scanning cycle.
Subsystem Syntax INITiate:CONTinuous <mode>:CONTinuous?[:IMMediate]
INITiate:CONTinuous
INITiate:CONTinuous <mode> enables or disables continuous scanningcycles for the switchbox.
Parameters
Comments Continuous Scanning Operation: Continuous scanning is enabled withthe INITiate:CONTinuous ON or INITiate:CONTinuous 1 command.Sending the INITiate[:IMMediate] command closes the first channel inthe channel list. Each trigger from the source specified by theTRIGger:SOURce command advances the scan through the channel list.A trigger at the end of the channel list closes the first channel in thechannel list and the scan cycle repeats.
Non-Continuous Scanning Operation: Non-continuous scanning isenabled with the INITiate:CONTinuous OFF or INITiate:CONTinuous 0command. Sending the INITiate[:IMMediate] command closes the firstchannel in the channel list. Each trigger from the source specified by theTRIGger:SOURce command advances the scan through the channel list.At the end of the scanning cycle, the last channel in the channel list isclosed and the scanning cycle stops.
Stopping Continuous Scan: See the ABORt command.
Related Commands: ABORt, ARM:COUNt, TRIGger:SOURce
*RST Condition: INITiate:CONTinuous OFF | 0
Name Type Range of Values Default Value
<mode> boolean 0 | 1 | OFF | ON 0 | OFF
Relay Matrix Switch Command Reference 43Chapter 3
Example Enabling Continuous Scanning
This example enables continuous scanning of channels 00 through 03 ofa single-module switchbox. Since TRIGger:SOURce IMMediate (default)is set, use an interface clear command (such as CLEAR) to stop thescan.
INIT:CONT ON !Enable continuous scanning
SCAN (@10000:10003) !Scan channels 00-03
INIT !Start scan cycle, close chan 00
INITiate:CONTinuous?
INITiate:CONTinuous? queries the scanning state. With continuousscanning enabled, the command returns 1. With continuous scanningdisabled, the command returns 0.
Example Query Continuous Scanning State
This example enables continuous scanning of a switchbox and queriesthe state. Since continuous scanning is enabled, INIT: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 firstchannel in the channel list. Successive triggers from the source selectedby the TRIGger:SOURce command advance the scan through thechannel list.
Comments Starting the Scanning Cycle: The INITiate[:IMMediate] command startsscanning by closing the first channel in the channel list. Each triggerreceived advances the scan to the next channel in the channel list.An invalid channel list definition causes an error (see [ROUTe:]SCAN).
Stopping Scanning Cycles: See ABORt.
Example Enabling a Single Scan
This example enables a single scan of channels 00 through 03 of asingle-module switchbox. The trigger source to advance the scan isimmediate (internal) triggering set with TRIGger:SOURce:IMMediate.
SCAN (@10000:10003) !Scan channels 00-03
INIT !Begin scan, close channel 00
44 Relay Matrix Switch Command Reference Chapter 3
OUTPut
The OUTPut subsystem selects the source of the output triggergenerated when a channel is closed during a scan. The selected outputcan be enabled, disabled, and queried. The three available outputs arethe ECLTrg and TTLTrg trigger buses and the E1406 Command Modulefront panel Trig Out port.
Subsystem Syntax OUTPut:ECLTrgn (:ECLTrg0 or :ECLTrg1)
[:STATe] <mode>[:STATe]?
[:EXTernal][:STATe] <mode>[:STATe]?
:TTLTrgn (:TTLTrg0 through :TTLTrg7)[:STATe] <mode>[:STATe]?
OUTPut:ECLTrg[:STATe]
OUTPut:ECLTrgn[:STATe] <mode> selects and enables which ECLTrigger bus line (0 or 1) will output a trigger when a channel is closedduring a scan. This is also used to disable a selected ECL Trigger busline. 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
Comments Enabling ECL Trigger Bus: When enabled, a pulse is output from theselected ECL Trigger bus line (0 or 1) after each channel is closed duringa scan. If disabled, a pulse is not output. The output is a negative-goingpulse.
ECL Trigger Bus Line Shared by Switchboxes: Only one switchboxconfiguration can use the selected trigger at a time. When enabled, theselected ECL Trigger bus line (0 or 1) is pulsed by the switchbox eachtime a scanned channel is closed. To disable the output for a specificswitchbox, send the OUTPut:ECLTrgn OFF or 0 command for thatswitchbox.
Name Type Range of Values Default Value
n numeric 0 or 1 N/A
<mode> boolean 0 | 1 | OFF | ON 0 | OFF
Relay Matrix Switch Command Reference 45Chapter 3
One Output Selected at a Time: Only one output (ECLTrg 0 or 1; TTLTrg0, 1, 2, 3, 4, 5, 6, or 7; or EXTernal) can be enabled at one time. Enablinga different output source will automatically disable the active output. Forexample, if TTLTrg1 is the active output, and TTLTrg4 is enabled,TTLTrg1 will become disabled and TTLTrg4 will become the activeoutput.
Related Commands: [ROUTe:]SCAN, TRIGger:SOURce,OUTPut:ECLTrg[:STATe]?
*RST Condition: OUTPut:ECLTrg[:STATe] OFF (disabled).
Example Enabling ECL Trigger Bus Line 0
OUTP:ECLT0:STAT 1 ! Enable ECL Trigger bus line 0 to!output pulse after each scanned!channel is closed.
OUTPut:ECLTrg[:STATe]?
OUTPut:ECLTrg[:STATe]? queries the present state of the specified ECLTrigger bus line. The command returns 1 if the specified ECLTrg bus lineis enabled or 0 if disabled.
Example Query ECL Trigger Bus Enable State
This example enables ECL Trigger bus line 0 and queries the enablestate. The OUTPut:ECLTrgn? command returns 1 since the port isenabled.
OUTP:ECLT0:STAT 1 ! Enable ECL Trigger bus line 0
OUTP:ECLT0? ! Query bus enable state
OUTPut[:EXTernal][:STATe]
OUTPut[:EXTernal][:STATe] <mode> enables or disables the Trig Out porton the E1406 Command Module to output a trigger when a channel isclosed during a scan. ON | 1 enables the port and OFF | 0 disables theport.
Parameters
Name Type Range of Values Default Value
<mode> boolean 0 | 1 | OFF | ON 0 | OFF
46 Relay Matrix Switch Command Reference Chapter 3
Comments Enabling Trig Out Port: When enabled, a pulse is output from the Trig Outport after each scanned switchbox channel is closed. If disabled, a pulseis not output from the port after channel closures. The output is anegative going pulse.
Trig Out Port Shared by Switchboxes: Only one switchbox configurationcan use the selected trigger at a time. When enabled, the Trig Out portis pulsed by the switchbox each time a scanned channel is closed. Todisable the output for a specific switchbox, send the OUTP OFF or 0command for that switchbox.
One Output Selected at a Time: Only one output (ECLTrg 0 or 1; TTLTrg0, 1, 2, 3, 4, 5, 6, or 7; or EXTernal) can be enabled at one time. Enablinga different output source will automatically disable the active output. Forexample, if TTLTrg1 is the active output, and TTLTrg4 is enabled,TTLTrg1 will become disabled and TTLTrg4 will become the activeoutput.
Related Commands: [ROUTe:]SCAN, TRIGger:SOURce,OUTPut[:EXTernal][:STATe]?
*RST Condition: OUTPut[:EXTernal][:STATe] OFF (disabled).
Example Enabling Trig Out Port
OUTP:EXT 1 !Enable Trig Out port to output!pulse after each scanned channel!is closed
OUTPut[:EXTernal][:STATe]?
OUTPut[:EXTernal][:STATe]? queries the present state of the Trig Outport. The command returns 1 if the port is enabled or 0 if disabled.
Example Query Trig Out Port Enable State
This example enables the Trig Out port and queries the enable state.The OUTPut? command returns 1 since the port is enabled.
OUTP:EXT ON !Enable Trig Out port
OUTP:EXT? !Query port enable state
Relay Matrix Switch Command Reference 47Chapter 3
OUTPut:TTLTrg[:STATe]
OUTPut:TTLTrgn[:STATe] <mode> selects and enables which TTLTrigger bus line (0 to 7) will output a trigger when a channel is closedduring a scan. This is also used to disable a selected TTL Trigger busline. n specifies the TTL Trigger bus line (0 to 7) and mode enables(ON or 1) or disables (OFF or 0) the specified TTL Trigger bus line.
Parameters
Comments Enabling TTL Trigger Bus: When enabled, a pulse is output from theselected TTL Trigger bus line (0 to 7) after each channel in the switchboxis closed during a scan. If disabled, a pulse is not output. The output is anegative-going pulse.
TTL Trigger Bus Line Shared by Switchboxes: Only one switchboxconfiguration can use the selected TTL Trigger at a time. When enabled,the selected TTL Trigger bus line (0 to 7) is pulsed by the switchbox eachtime a scanned channel is closed. To disable the output for a specificswitchbox, send the OUTPut:TTLTrgn OFF or 0 command for thatswitchbox.
One Output Selected at a Time: Only one output (ECLTrg 0 or 1; TTLTrg0, 1, 2, 3, 4, 5, 6, or 7; or EXTernal) can be enabled at one time. Enablinga different output source will automatically disable the active output. Forexample, if TTLTrg1 is the active output, and TTLTrg4 is enabled,TTLTrg1 will become disabled and TTLTrg4 will become the activeoutput.
Related Commands: [ROUTe:]SCAN, TRIGger:SOURce,OUTPut:TTLTrg[:STATe]?
*RST Condition: OUTPut:TTLTrg[:STATe] OFF (disabled).
Example Enabling TTL Trigger Bus Line 7
OUTP:TTLT7:STAT 1 ! Enable TTL Trigger bus line 7 to!output pulse after each scanned!channel is closed
Name Type Range of Values Default Value
n numeric 0 or 1 N/A
<mode> boolean 0 | 1 | OFF | ON 0 | OFF
48 Relay Matrix Switch Command Reference Chapter 3
OUTPut:TTLTrg[:STATe]?
OUTPut:TTLTrg[:STATe]? queries the present state of the specified TTLTrigger bus line. The command returns 1 if the specified TTLTrg bus lineis enabled or 0 if disabled.
Example Query TTL Trigger Bus Enable State
This example enables TTL Trigger bus line 7 and queries the enablestate. The OUTPut:TTLTrgn? command returns 1 since the port isenabled.
OUTP:TTLT7:STAT 1 !Enable TTL Trigger bus line 7
OUTP:TTLT7? !Query bus enable state
Relay Matrix Switch Command Reference 49Chapter 3
[ROUTe:]
The [ROUTe:] subsystem controls switching and scanning operations forRelay Matrix Switch modules in a switchbox.
NOTE The [ROUTe:] subsystem opens all previously closed relays. Therefore, itshould be the first relay configuration command.
Subsystem Syntax [ROUTe:]CLOSe <channel_list>CLOSe? <channel_list>OPEN <channel_list>OPEN? <channel_list>SCAN <channel_list>
[ROUTe:]CLOSe
[ROUTe:]CLOSe <channel_list> closes the Relay Matrix Switch channelsspecified by channel_list.
Parameters
Comments channel_list Form: For the E1468A, channel_list has the form (@ssrc)where ss = card number (01-99), r = row number, and c = columnnumber. For the E1469A, channel_list has the form (@ssrrcc) wheress = card number (01-99), rr = row number, and cc = column number.
Closing Channels (E1468A Only):
• For a single channel, use [ROUT:]CLOS (@ssrc)• For multiple channels, use [ROUT:]CLOS (@ssrc,ssrc,...)• For sequential channels, use [ROUT:]CLOS (@ssrc:ssrc)• for groups of sequential channels use [ROUT:]CLOS
(@ssrc:ssrc,ssrc:ssrc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Name Type Range of Values Default Value
<channel_list> numeric E1468A: r = 0 to 7c = 0 to 7
E1469A: rr = 00 to 03cc =00 to 15
N/A
50 Relay Matrix Switch Command Reference Chapter 3
Closing Channels (E1469A Only):
• For a single channel, use [ROUT:]CLOS (@ssrrcc)• For multiple channels, use [ROUT:]CLOS (@ssrrcc,ssrrcc,...)• For sequential channels, use [ROUT:]CLOS (@ssrrcc:ssrrcc)• for groups of sequential channels use [ROUT:]CLOS
(@ssrrcc:ssrrcc,ssrrcc:ssrrcc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Related Commands: [ROUTe:]OPEN, [ROUTe:]CLOSe?
*RST Condition: All channels open.
Example Closing Relay Matrix Switch Module Channels
This example closes channels 10100 and 20013 of a two-moduleswitchbox (card numbers 01 and 02).
CLOS (@10100,20013) !Close channels 10100 and!20013. 10100 closes row 01,!column 00 of card #1 and 20013!closes row 00, column 13 on!card #2.
[ROUTe:]CLOSe?
[ROUTe:]CLOSe? <channel_list> returns the current state of thechannel(s) queried. channel_list has the form (@ssrc) or (@ssrrcc) (see[ROUTe:]CLOSe for definition). The command returns 1 if channel(s) areclosed or returns 0 if channel(s) are open.
Comments Query is Software Readback: The [ROUTe:]CLOSe? command returnsthe current software state of the channel(s) specified. It does not accountfor relay hardware failures. A maximum of 127 channels at a time can bequeried for a multi-module switchbox.
Example Query Channel Closures
This example closes channels 10100 and 20013 of a two-moduleswitchbox and queries channel closure. Since the channels areprogrammed to be closed, 1, 1 is returned as a string.
CLOS (@10100,20013) !Close channels 10100 and!20013. 10100 closes row 01,!column 00 of card #1 and 20013!closes row 00, column 13 on!card #2.
CLOS? (@10100,20013) !Query channel closures
Relay Matrix Switch Command Reference 51Chapter 3
[ROUTe:]OPEN
[ROUTe:]OPEN <channel_list> opens the Relay Matrix Switch channelsspecified by channel_list.
Parameters
Comments channel_list Form: For the E1468A, channel_list has the form (@ssrc)where ss = card number (01-99), r = row number, and c = columnnumber. For the E1469A, channel_list has the form (@ssrrcc) wheress = card number (01-99), rr = row number, and cc = column number.
Opening Channels (E1468A Only):
• For a single channel, use [ROUT:]OPEN (@ssrc)• For multiple channels, use [ROUT:]OPEN (@ssrc,ssrc,...)• For sequential channels, use [ROUT:]OPEN (@ssrc:ssrc)• for groups of sequential channels use [ROUT:]OPEN
(@ssrc:ssrc,ssrc:ssrc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Opening Channels (E1469A Only):
• For a single channel, use [ROUT:]OPEN (@ssrrcc)• For multiple channels, use [ROUT:]OPEN (@ssrrcc,ssrrcc,...)• For sequential channels, use [ROUT:]OPEN (@ssrrcc:ssrrcc)• for groups of sequential channels use [ROUT:]OPEN
(@ssrrcc:ssrrcc,ssrrcc:ssrrcc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Related Commands: [ROUTe:]CLOSe, [ROUTe:]OPEN?
*RST Condition: All channels open.
Example Opening Channels
This example opens channels 10100 and 20013 of a two-moduleswitchbox (card numbers 01 and 02).
OPEN (@10100,20013) !Open channels 10100 and 20013
Name Type Range of Values Default Value
<channel_list> numeric E1468A: r = 0 to 7c = 0 to 7
E1469A: rr = 00 to 03cc =00 to 15
N/A
52 Relay Matrix Switch Command Reference Chapter 3
[ROUTe:]OPEN?
[ROUTe:]OPEN? <channel_list> returns the current state of the channel(s)queried. channel_list has the form (@ssrc) or (@ssrrcc) (see[ROUTe:]OPEN for definition). The command returns 1 if channel(s) areopen or returns 0 if channel(s) are closed.
Comments Query is Software Readback: The [ROUTe:]OPEN? command returns thecurrent software state of the channels specified. It does not account forrelay hardware failures. A maximum of 127 channels at a time can bequeried for a multi-module switchbox.
Example Query Channel Open State
This example opens channels 10100 and 20013 of a two-moduleswitchbox and queries channel 20013 state. Since channel 20013 isprogrammed to be open, 1 is returned.
OPEN (@10100,20013) !Open channels 10100 and 20013
OPEN? (@20013) !Query channel open state
[ROUTe:]SCAN
[ROUTe:]SCAN <channel_list> defines the channels to be scanned.
Parameters
Comments channel_list Form: For the E1468A, channel_list has the form (@ssrc)where ss = card number (01-99), r = row number, and c = columnnumber. For the E1469A, channel_list has the form (@ssrrcc) wheress = card number (01-99), rr = row number, and cc = column number.
Defining Scan List: When [ROUTe:]SCAN is executed, the channel_list ischecked for valid card and channel numbers. An error is generated foran invalid channel_list.
Name Type Range of Values Default Value
<channel_list> numeric E1468A: r = 0 to 7c = 0 to 7
E1469A: rr = 00 to 03cc =00 to 15
N/A
Relay Matrix Switch Command Reference 53Chapter 3
Scanning Channels (E1468A Only):
• For a single channel, use [ROUT:]SCAN (@ssrc)• For multiple channels, use [ROUT:]SCAN (@ssrc,ssrc,...)• For sequential channels, use [ROUT:]SCAN (@ssrc:ssrc)• for groups of sequential channels use [ROUT:]SCAN
(@ssrc:ssrc,ssrc:ssrc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Scanning Channels (E1469A Only):
• For a single channel, use [ROUT:]SCAN (@ssrrcc)• For multiple channels, use [ROUT:]SCAN (@ssrrcc,ssrrcc,...)• For sequential channels, use [ROUT:]SCAN (@ssrrcc:ssrrcc)• for groups of sequential channels use [ROUT:]SCAN
(@ssrrcc:ssrrcc,ssrrcc:ssrrcc).
You can use any combination of these commands. However, closureorder for multiple channels with a single command is not guaranteed.
Scanning Operation: When a valid channel_list is defined,INITiate[:IMMediate] begins the scan and closes the first channel in thechannel_list. Successive triggers from the source specified byTRIGger:SOURce advance the scan through the channel_list. At the endof the scan, the last trigger opens the last channel.
Stopping Scan: See ABORt.
Related Commands: TRIGger:SOURce
*RST Condition: All channels open.
Example Scanning Channels
This example sets the channels to be scanned from 100 to 200 for asingle-module switchbox and initiates the scan sequence.
SCAN (@100,200) !Set scan sequence from ch 100through 200
INIT !Begin scan and close ch 100
54 Relay Matrix Switch Command Reference Chapter 3
STATus
The STATus subsystem reports the bit values of the Operation StatusRegister (in the command module). It also allows you to unmask the bitsyou want reported from the Standard Event Register and to read thesummary bits from the Status Byte register.
Subsystem Syntax STATus:OPERation
:CONDition?:ENABle <unmask>:ENABle?[:EVENt?]
:PRESet
The STATus system contains four software registers that reside in aSCPI driver, not in the hardware (see Figure 3-1) Two registers are underIEEE 488.2 control: the Standard Event Status Register (*ESE?) and theStatus Byte Register (*STB).
The Operational Status bit (OPR), Service Request bit (RSQ), StandardEvent summary bit (ESB), Message Available bit (MAV) andQuestionable Data bit (QUE) in the StatusByte Register (bits 7, 6, 5, 4and 3 respectively) can be queried with the *STB? command.
Use the *ESE? command to query the unmask value for the StandardEvent Status Register (the bits you want logically OR’d into the summarybit). The registers are queried using decimal weighted bit values. Thedecimal equivalents for bits 0 through 15 are included in Figure 3-1.
A numeric value of 256 executed in a STATus:OPERation:ENABle<unmask> command allows only bit 8 to generate a summary bit. Thedecimal value for bit 8 is 256.
The decimal values are also used in the inverse manner to determinewhich bits are set from the total value returned by an EVENt orCONDition query. The SWITCH driver exploits only bit 8 of OperationStatus Register. This bit is called the Scan Complete bit which is setwhenever a scan operation completes. Since completion of a scanoperation is an event in time, bit 8 will never appear set whenSTAT:OPER:COND? is queried. However, bit 8 is set with theSTAT:OPER:EVENt? query command.
Relay Matrix Switch Command Reference 55Chapter 3
STATus:OPERation:CONDition?
STATus:OPERation:CONDition? returns the state of the ConditionRegister in the Operation Status Group. The state represents conditionswhich are part of the instrument’s operation. The switch module driverdoes not set bit 8 in this register (see STATus:OPERation[:EVENt]?).
Figure 3-1. E1468A/E1469A Status System Register Diagram
+ "OR"
3456
"OR"
7
210
+
Power On
Command ErrorExecution Error
Device Dependent ErrorQuery Error
Operation Complete
EV EN
StatusByte
Request Service
Output Buffer
Standard Event Register
*SRE <unmask>*SRE?
*STB?
Status Byte Register
QUE = Questionable Data
NOTE:
MAV = Message AvailableESB = Standard EventRQS = Request Service
C = Condition RegisterEV = Event RegisterEN = Enable Register
<128><64><32><16><8><4><2><1>
<2>
<128>
<4><8><16><32>
<1>
RQSESBMAV
1
76
3
54
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 (operation) inthe status byte register. This is effectiveonly if the STAT:OPER:ENAB 256 commandis executed.
STAT:QUES:ENAB 256 unmasks the "Scan Complete"bit.
Operation Complete <128>7
Registerbit
unmaskdecimalweight
+"OR"
OPR
SRQ
SRQ = Sevice Request
SPOLL
*ESE?*ESE <unmask>
*ESR?
ENSRQ ROUTINGhandled by yourapplicationprogram orpassed to thecontroller viaGPIB
User Request
Request ControlSet by *OPC
Related Commandsare *OPC? and *WAI
Set byParser
Automatically
Automatically Set atPower On Conditions
OPR
BitSummary
0123456789
101112131415
+
STATus:OPERation:CONDition?
STATus:OPERation:EVENt?
STATus:OPERation:ENABle
C EV EN
Operation status Register
<32768><16384><8192><4096><2048><1024><512><256><128><64><32><16><8><4><2><1>
"OR"
ScanComplete
SummaryBit
OPR = Operation Status
QUE
56 Relay Matrix Switch Command Reference Chapter 3
STATus:OPERation:ENABle
STATus:OPERation:ENABle <unmask> sets an enable mask to allowevents recorded in the Event Register to send a summary bit to theStatus Byte Register (bit 7). For Relay Matrix Switch modules, when bit8 in the Operation Status Register is set to 1 and is enabled by theSTAT:OPER:ENABle command, bit 7 in the Status Register is set to 1.
Parameters
Comments Setting Bit 7 of the Status Byte Register: STATus:OPERation:ENABle 256sets bit 7 of the Status Byte Register to 1 after bit 8 of the OperationStatus Register is set 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 Register.
STATus:OPERation:ENABle?
STATus:OPERation:ENABle? returns the bit value of the Operation StatusRegister.
Comments Output Format: Returns a decimal weighted value from 0 to 65,535indicating which bits are set to true.
Maximum Value Returned: The value returned is the value set by theSTAT:OPER:ENAB <unmask> command. However, the maximumdecimal weighted value used in this module is 256 (bit 8 set to true).
Example Query the Operation Status Enable Register
STAT:OPER:ENAB? !Queries the Operation Status!Enable Register
Name Type Range of Values Default Value
<unmask> numeric 0 through 65,535 N/A
Relay Matrix Switch Command Reference 57Chapter 3
STATus:OPERation[:EVENt]?
STATus:OPERation[:EVENt]? returns which bits in the Event Register(Operation Status Group) are set. The Event Register indicates whenthere has been a time-related instrument event.
Comments Setting Bit 8 of the Operation Status Register: Bit 8 (Scan Complete) is setto 1 after a scanning cycle completes. Bit 8 returns to 0 (zero) aftersending the STATus:OPERation[:EVENt]? command.
Returned Data After Sending STATus:OPERation[:EVENt]? The commandreturns +256 if bit 8 of the Operation Status Register is set to 1. Thecommand returns +0 if bit 8 of the Operation Status Register is set to 0.
Event Register Cleared: Reading the Event Register with theSTATus:OPERation[:EVENt]? command clears it.
ABORting a Scan: Aborting a scan will leave bit 8 set to 0.
Related Commands: [ROUTe:]SCAN
Example Reading the Operation Status Register After a Scanning Cycle
STAT:OPER? !Returns the bit values of the!Operation Status Register.
read the register value !+256 shows bit 8 is set to 1.!+0 shows bit 8 is set to 0.
STATus:PRESet
STATus:PRESet affects only the Enable Register by setting all EnableRegister bits to 0. It does not affect either the "status byte" or the"standard event status". PRESet does not clear any of the EventRegisters.
58 Relay Matrix Switch Command Reference Chapter 3
SYSTem
The SYSTem subsystem returns the error numbers and error messagesin the error queue of a switchbox and returns the types and descriptionsof modules (cards) in a switchbox.
Subsystem Syntax SYSTem:CDEScription? <number>:CPON <number> | ALL:CTYPe? <number>:ERRor?
SYSTem:CDEScription?
SYSTem:CDEScription? <number> returns the description of a selectedmodule (card) in a switchbox.
Parameters
Comments 8x8 Relay Matrix Module Description: SYSTem:CDEScription? <number>returns: 8x8 Relay Matrix
4x16 Relay Matrix Module Description: SYST:CDEScription? <number>returns: 4x16 Relay Matrix
Example Reading the Description of a Card #1 Module
SYST:CDES? 1 !Returns the description
SYSTem:CPON
SYSTem:CPON <number> | ALLsets the selected module (card) in aswitchbox to its power-on state.
Parameters
Name Type Range of Values Default Value
<number> numeric 1 through 99 N/A
Name Type Range of Values Default Value
<number> numeric 1 through 99 N/A
Relay Matrix Switch Command Reference 59Chapter 3
Comments Matrix Module Power-On State: The power-on state is all channels (relays)open. *RST opens all channels of all modules in a switchbox, whileSYSTem:CPON <number> opens the channels in only the module (card)specified in the command.
Example Setting Card #1 Module to Power-On State
SYST:CPON 1 ! Sets module #1 to power-on!state
SYSTem:CTYPe?
SYSTem:CTYPe? <number> returns the module (card) type of a selectedmodule in a switchbox.
Parameters
Comments 8x8 Relay Matrix Module Model Number: SYSTem:CTYPe? <number>returns HEWLETT-PACKARD,El468A,0,A.02.00 , where the 0 afterE1468A is the module serial number (always 0) and A.02.00 is anexample of the module revision code number.
4x16 Relay Matrix Switch Module Model Number: SYSTem:CTYPe?<number> returns HEWLETT-PACKARD,El469A,0,A.04.00,wherethe 0 after E1469A is the module serial number (always 0) and A.04.00is an example of the module revision code number.
Example Reading the Model Number of a Card #l Module
SYST:CTYP? 1 !Return the model number
SYSTem:ERRor?
SYSTem:ERRor? returns the error numbers and corresponding errormessages in the error queue of a switchbox. See Appendix C for a listingof some switchbox error numbers and messages.
Comments Error Numbers/Messages in the Error Queue: Each error generated by aswitchbox stores an error number and corresponding error message inthe error queue. The error message can be up to 255 characters long.
Name Type Range of Values Default Value
<number> numeric 1 through 99 N/A
60 Relay Matrix Switch Command Reference Chapter 3
Clearing the Error Queue: An error number/message is removed from thequeue each time the SYSTem:ERRor? command is sent. The errors arecleared first-in, first-out. When the queue is empty, each followingSYSTem:ERRor? command returns 0, "No error". To clear all errornumbers/messages in the queue, execute the *CLS command.
Maximum Error Numbers/Messages in the Error Queue: The queue holdsa maximum of 30 error numbers/messages for each switchbox. If thequeue overflows, the last error number/message in the queue is replacedby -350, "Too many errors". The least recent error numbers/messagesremain in the queue and the most recent are discarded.
Example Querying the Error Queue
SYST:ERR? !Query the error queue
Relay Matrix Switch Command Reference 61Chapter 3
TRIGger
The TRIGger subsystem controls the triggering operation of relay matrixmodules in a switchbox.
Subsystem Syntax TRIGger[:IMMediate]:SOURce <source>:SOURce?
TRIGger[:IMMediate]
TRIGger[:IMMediate] causes a trigger event to occur when the definedtrigger source is TRIGger:SOURce BUS or TRIGger:SOURce HOLD.
Comments Executing the TRIGger[:IMMediate] Command: A channel list must bedefined with [ROUTe:]SCAN<channel_list> and an INITiate[:IMMediate]command must be executed before TRIGger[:IMMediate] will execute.
BUS or HOLD Source Remains: If selected, the TRIGger:SOURceBUS orTRIGger:SOURceHOLD commands remain in effect after triggering aswitchbox with the TRIGger[:IMMediate] command.
Related Commands: INITiate, [ROUTe:]SCAN
Example Advancing Scan Using TRIGger Command
This example scans a single-module switchbox from channel 00 through03. Since TRIGger:SOURce HOLD is set, the scan is advanced onechannel each time TRIGger is executed.
TRIG:SOUR HOLD !Sets trigger source to HOLD
SCAN (@10000:10003) !Defines channel list
INIT !Begin scan, close channel 00
loop statement !Start count loop
TRIG !Advance scan to next channel
increment loop !Increment loop count
62 Relay Matrix Switch Command Reference Chapter 3
TRIGger:SOURce
TRIGger:SOURce <source> specifies the trigger source to advance thechannel list during scanning.
Parameters
Comments Enabling the Trigger Source: The TRIGger:SOURce command onlyselects the trigger source. The INITiate[:IMMediate] command enablesthe trigger source.
Using the TRIG Command: You can use TRIGger[:IMMediate] to advancethe scan when TRIGger:SOURceBUS or TRIGger:SOURceHOLD isselected.
Using External Trigger Inputs: With TRIGger:SOURceEXTernal selected,only one switchbox at a time can use the external trigger input at theEl406 Trig In port. The trigger input is assigned to the first switchbox thatrequested the external trigger source (with a TRIGger:SOURceEXTernalcommand).
Assigning External Trigger: A switchbox assigned withTRIGger:SOURceEXTernal remains assigned to that source until theswitchbox trigger source is changed to BUS, ECLT, HOLD, IMMediate,or TTLT. When the source is changed, the external trigger source isavailable to the next switchbox which requests it (with aTRIGger:SOURceEXTernal command). If a switchbox requests anexternal trigger input already assigned to another switchbox, an error isgenerated.
Using Bus Triggers: To trigger the switchbox with TRIGger:SOURceBUSselected, use the IEEE 488.2 Common command *TRG or the GPIBGroup Execute Trigger (GET) command.
Trig Out Port Shared by Switchboxes: See the OUTPut command.
Related Commands: ABORt, [ROUTe:]SCAN, OUTPut
*RST Condition: TRIGger:SOURce IMMediate
Source Type Description Default
BUS discrete *TRG or GET command IMM
ECLTrgn numeric ECL Trigger bus line IMM
EXTernal discrete Trig In port IMM
HOLD discrete Hold Triggering IMM
IMMediate discrete Immediate Triggering IMM
TTLTrgn numeric TTL Trigger bus line <0 - 7> IMM
Relay Matrix Switch Command Reference 63Chapter 3
Example Scanning Using External Triggers
This example uses external triggering (TRIG:SOUR EXT) to scanchannels 00 through 03 switchbox. The trigger source to advance thescan is the input to the Trig In port on the E1406 Command Module.When INIT is executed, the scan is started and channel 00 is closed.Then each trigger received at the Trig In port advances the scan to thenext channel.
TRIG:SOUR EXT !Select external triggering
SCAN (@10000:10003) !Scan channels 00 through 03
INIT !Begin scan, close channel 00
trigger externally !Advance scan to next channel
Example Scanning Using Bus Triggers
This example uses bus triggering (TRIG:SOUR BUS) to scan channels00 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 commandadvances the scan to the next channel.
TRIG:SOUR BUS !Select interface (bus) triggering
SCAN (@10000:10003) !Scan channels 00 through 03
INIT !Start scan, close channel 00
loop statement !Loop to scan all channels
*TRG !Advance scan using bus!triggering
increment loop !Increment loop count
TRIGger:SOURce?
TRIGger:SOURce? returns the current trigger source for the switchbox.Command returns BUS, ECLT, EXT, HOLD, IMM, or TTLT for sourcesBUS, ECLTrg, EXTernal, HOLD, IMMediate, or TTLTrg, respectively.
Example Query Trigger Source
This example sets external triggering and queries the trigger source.Since external triggering is set, TRIG:SOUR? returns EXT.
TRIG:SOUR EXT !Set external trigger source
TRIG:SOUR? !Query trigger source
64 Relay Matrix Switch Command Reference Chapter 3
IEEE 488.2 Common Commands Quick ReferenceThe following table lists the IEEE 488.2 Common (*) commands thatapply to the Relay Matrix Switch modules. For more information onCommon Commands, see the ANSI/IEEE Standard 488.2-1987.
Command Command Description
*CLS Clears all status registers (see STATus:OPERation[:EVENt]?) and clears error queue.
*ESE<unmask> Enables Standard Event.
*ESE? Enables Standard Event Query.
*ESR? Standard Event Register Query.
*IDN? Instrument ID Query; returns identification string of the module.
*OPC Operation Complete.
*OPC? Operation Complete Query.
*RCL<n> Recalls the instrument state saved by *SAV. You must reconfigure the scan list.
*RST Resets the module. Opens all channels and invalidates 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 status register bits.
*SRE? Service request enable query.
*STB? Read status byte query.
*TRG Triggers the module to advance the scan when scan is enabled and trigger source isTRIGger:SOURce BUS.
*TST? Self-test. Executes an internal self-test and returns only the first error encountered.Does not return multiple errors. The following is a list of responses you can obtain where“cc” is the card number with the leading zero deleted.
+0 if self test passes.+cc01 for firmware error.+cc02 for bus error (problem communicating with the module).+cc03 for incorrect ID information read back from the module's ID register.+cc10 if an interrupt was expected but not received.+cc11 if the busy bit was not held for a sufficient amount of time.
*WAI Wait to Complete.
Relay Matrix Switch Command Reference 65Chapter 3
SCPI Commands Quick ReferenceThis table summarizes SCPI commands for the Relay Matrix Switchmodules.
Command Description
ABORt Aborts a scan in progress
ARM :COUNt <number> MIN |MAX
:COUNt? [MIN|MAX]
Multiple scans per INIT commandQueries number of scans
INITiate :CONTinuous ON | OFF
:CONTinuous?
[:IMMediate]
Enables/disables continuous scanningQueries continuous scan stateStarts a scanning cycle
OUTPut :ECLTrgn[:STATe] ON|OFF|1|0
:ECLTrgn[:STATe]?
[:EXTernal][:STATe] ON|OFF|1|0
[:EXTernal][:STATe]?
:TTLTrgn[:STATe] ON|OFF|1|0
:TTLTrgn[:STATe]?
Enables/disables the specified ECL trigger lineQueries the specified ECL trigger lineEnables/disables the Trig Out port on the E1406Queries the external stateEnables/disables the specified TTL trigger lineQueries the specified TTL trigger line
[ROUTe:] CLOSe <channel _list>
CLOSe? <channel _list>
OPEN <channel_list>
OPEN? <channel _list>
SCAN <channel_list>
SCAN:MODE NONE|VOLT
SCAN:MODE?
Closes channel(s)Queries channel(s) closedOpens channel(s)Queries channel(s) openedDefines channels for scanningSets scan mode (has no effect on Form C operation)Queries the scan mode
STATus :OPERation:CONDition?
:OPERation:ENABle
:OPERation:ENABle?
:OPERation[:EVENt]?
:PRESet
Returns contents of the Operation Condition RegisterEnables events in the Operation Event Register to be reportedReturns the mask value set by the :ENABle commandReturns the contents of the Operation Event RegisterEnables Register bits to 0
SYSTem :CDEScription? <number>
:CTYPe? <number>
:CPON <number> |ALL
:ERRor?
Returns description of module in a switchboxReturns the module typeOpens all channels on specified module(s)Returns error number/message in a switchbox Error Queue
TRIGger [:IMMediate]
:SOURce BUS
:SOURce EXTernal
:SOURce HOLD
:SOURce IMMediate
:SOURce ECLTrgn
:SOURce TTLTrgn
:SOURce?
Causes a trigger to occurTrigger source is *TRGTrigger source is Trig In (on the command module)Holds off triggeringTrigger source is the internal triggersTrigger is the VXIbus ECL trigger bus line nTrigger is the VXIbus TTL trigger bus line nQueries scan trigger source
66 Relay Matrix Switch Command Reference Chapter 3
Appendix A
Relay Matrix Switch Specifications
Input Characteristics
Maximum Voltage Terminal to Terminal:220 Vdc; 250 Vrms
Maximum Voltage Terminal to Chassis:220 Vdc; 250 Vrms
Maximum Current per Channel (non-inductive):1 Adc or acrms (Vmax <30 Vdc or Vrms)0.3 Adc or acrms (Vmax <220 Vdc or 250 Vrms)
Maximum Power per Channel:40VA
DC Performance
Thermal Offset per Channel:<7µV (differential H-L)
Closed Channel Resistance:<1.5 Ω initially<3.5 Ω at end of relay life
Insulation Resistance (between any two points):
5x106 Ω at 40°C, 95% RH
5x108 Ω at 25°C, 40% RH
AC Performance
Bandwidth (-3dB):1
Z(load) = Z(source) = 50 Ω2-Wire mode (4x16): >10 MHz1-Wire mode (1x128): >3 MHz
Crosstalk Between Channels @10 kHz:2-Wire mode (4x16): <-90 dB1-Wire mode (1x128): <-60 dB
Open Channel Capacitance(channel to channel, channel to common):2-Wire mode (4x16): <-90 dB1-Wire mode (1x128): <-60 dB
Closed Channel Capacitance (Hi-Lo, Lo-Chassis):650/700 pF
General
Module Size / Device Type:C-size VXIbus, Register based, A16/D16Interrupter (levels 1-7, jumper selectable)
Power Requirements:Voltage: +5 V +24 VPeak Module Current (A) 0.10 0.13Dynamic Module Current (A) 0.10 0.02
Relay Life:2
@ No Load: 5x106 Operations
@ Full Load: 105 Operations
Watts/slot:5.0Cooling/slot:0.08 mm H20 @ 0.42 liter/sec
Terminals:Screw type, maximum wire size 16AWG
Operating Temperature: 0° - 55°COperating Humidity: 65% RH, 0° - 40°CNet Weight (kg): 1.6
1 The -3 dB BW is typically >25 MHz2 Relays are subject to normal wear-out based on the number of operations.
Relay Matrix Switch Specifications 67Appendix A
Notes:
68 Relay Matrix Switch Specifications Appendix A
Appendix B
Register-Based Programming
About This AppendixThis appendix contains the information you can use for register-basedprogramming of the E1468A/E1469A Relay Matrix Switch modules.The contents include:
• Register Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69• Reading the Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72• Writing to the Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73
Register AddressingThe E1468A/E1469A Relay Matrix Switch modules are register-basedmodules that do not support the VXIbus word serial protocol. When aSCPI command is sent to the modules, the instrument driver resident inthe command module parses the command and programs the module atthe register level.
AddressingOverview
Register-based programming is a series of reads and writes directly to themodule registers. This can increase throughput speed since it eliminatescommand parsing and allows the use of an embedded controller. It alsoallows use of an alternate VXI controller, eliminating the command module.
To access a specific register for either read or write operations, the addressof the register must be used. Register addresses for the plug-in modules arein an address space known as VXI A16. The exact location of A16 within aVXIbus master’s memory map depends on the design of the VXIbus masteryou are using. For the E1406 Command Module, the A16 space locationstarts at 1F000016.
The A16 space is further divided so that the modules are addressed only atlocations above 1FC00016 within A16. Every module is allocated 64 registeraddresses (4016). The address of a module is determined by its logicaladdress (set by the address switches on the module) times 64 (4016).For the E1468A/E1469A modules, the factory setting is 112 (7016), so theaddresses start at 1C0016.
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 64byte block of addresses. Figure B-1 shows the register address locationwithin A16. Figure B-2 shows the location of A16 address space in theE1406 Command Module.
Register-Based Programming 69Appendix B
The Base Address When you are reading or writing to a module register, a hexadecimal ordecimal register address is specified. This address consists of a baseaddress plus a register offset. The base address used in register-basedprogramming depends on whether the A16 address space is outside orinside the E1406 Command Module.
Figure B-1. Register Address Locations Within VXI A16
Figure B-2. A16 Address Space in the E1406 Command Module
REGISTERADDRESS
SPACE
A16ADDRESS
SPACE
ID RegisterDevice Type Register
Status/Control Register
*
E1468A/E1469AA16 Register Map
FFFF16
C00016
(49,152)
FFFF16
COOO16
OOOO16
Base Address = COOO16 + (Logical Address 64)16*
49,152 + (Logical Address 64)10
or
Register Address = Base address + Register Offset
*
*
0016
0216
0416
16-BIT WORDSOFFSET
REGISTER
3E163C16
A16ADDRESS
SPACE
A24ADDRESS
SPACE
E1406AAddress Map
SPACEADDRESSREGISTER
Base Address = IFC00016 + (Logical Address 64)16*
2,080,768 + (Logical Address 64)10
or
Register Address = Base address + Register Offset
*
*
16200000
IFCOOO16 20000016
IFOOOO16
*
16(2,080,768)
IFCOOO
FFFFFF16
EOOOOO16
20000016
IF000016
00000016
A16 Register MapE1468/E1469A
Status/Control RegisterDevice Type Register
16040200
16
16
3C 16
3E
REGISTEROFFSET
16
ID Register
16-BIT WORDS
70 Register-Based Programming Appendix B
A16 Address SpaceOutside the Command
Module
When the E1406 Command Module is not part of your VXIbus system, theE1468A/E1469A base address is computed as:
A16base = 1FC00016 + (LADDR16 * 6416)
or (decimal)
A16base = 2,080,768 + (LADDR * 64)
where 1FC00016 (2,080,768) is the starting location of the registeraddresses, LADDR is the module’s logical address, and 64 is the numberof address bytes per VXI device.
For example, a Relay Matrix Switch module’s Status/Control Register hasan offset of 0416. When you write to or read from this register, the offset isadded to the base address to form the register address (using a logicaladdress 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
A16 Address SpaceInside the CommandModule or Mainframe
When the A16 address space is inside the E1406 Command Module,the E1468A/E1469A base address is computed as:
1FC00016 + (LADDR16 * 6416)
or (decimal)
2,080,768 + (LADDR * 64)
where 1FC000h (2,080,768) is the starting location of the VXI A16addresses, LADDR is the module’s logical address, and 64 is the numberof address bytes per register-based device. The E1468A/E1469Afactory-set logical address is 112. If this address is not changed, themodule will have a base address of:
1FC00016 + (7016 * 4016) = 1FC00016 + 1C0016 = 1FDC0016
or (decimal)
2,080,768 + (112 * 64) = 2,080,768 + 7168 = 2,087,936
Register-Based Programming 71Appendix B
Register Definitions You can program the E1468A/E1469A modules using their hardwareregisters. The procedures for reading or writing to a register depend on youroperating system and programming language. Whatever the accessmethod, you will need to identify each register with its address.
Reading the RegistersFigures 1-1 and 1-2 (see Chapter 1) show the channels grouped by banks.You can read these Relay Matrix Switch registers:
• Manufacturer ID Register (base + 0016)• Device Type Register (base + 0216)• Status/Control Register (base + 0416)• Bank 0 Relay Control Register (base + 2016)• Bank 1 Relay Control Register (base + 2216)• Bank 2 Relay Control Register (base + 2416)• Bank 3 Relay Control Register (base + 2616)• Bank 4 Relay Control Register (base + 2816)• Bank 5 Relay Control Register (base + 2A16)• Bank 6 Relay Control Register (base + 2C16)• Bank 7 Relay Control Register (base + 2E16)• Channels 0990 - 0996 Relay Control Register (base + 3016)
ManufacturerIdentification
Register
The Manufacturer Identification Register is a read-only register at address00h (Most Significant Byte (MSB)) and 01h (Least Significant Byte (LSB)).Reading this register returns the Hewlett-Packard identification, FFFF16.
E1468A/E1469A Register Map
Register Name Type Address
Manufacturer ID Read Only base + 0016
Device Type Read Only base + 0216
Status/Control Read/Write base + 0416
Bank 0 Relay Control Register Read/Write base + 2016
Bank 1 Relay Control Register Read/Write base + 2216
Bank 2 Relay Control Register Read/Write base + 2416
Bank 3 Relay Control Register Read/Write base + 2616
Bank 4 Relay Control Register Read/Write base + 2816
Bank 5 Relay Control Register Read/Write base + 2A16
Bank 6 Relay Control Register Read/Write base + 2C16
Bank 7 Relay Control Register Read/Write base + 2E16
Channels 0990 - 0996 Relay Control Read/Write base + 3016
72 Register-Based Programming Appendix B
DeviceIdentification
Register
The Device Identification Register is a read-only register accessed ataddress 0216. Reading this register returns module identification of 256(010016) for an E1468A/E1469A module.
Status/ControlRegister
The Status/Control Register informs the user about the module’s status andconfiguration. Each relay requires about 12 msec execution time duringwhich time the modules are "busy". Bit 7 of this register is used to inform theuser of a "busy" condition. The interrupt generated after a channel has beenclosed can be disabled. Bit 6 of this register is used to inform the user of theinterrupt status.
In addition, if a terminal module is connected to the switch module, thepresent configuration of the terminal module’s status bit can be read. Bits10, 11, 12, and 13 of this register are used to determine the configuration ofthe terminal module. For example, if the Relay Matrix Switch module is notbusy (bit 7), the interrupt is enabled (bit 6), then a read of the Status/ControlRegister (base + 0416) returns DBBF.
Relay ControlRegisters
Reading these registers always returns FFFF16.
Writing to the RegistersYou can write to these Relay Matrix Switch module registers:
• Status/Control Register (base + 0416)• Bank 0 Relay Control Register (base + 2016)• Bank 1 Relay Control Register (base + 2216)• Bank 2 Relay Control Register (base + 2416)• Bank 3 Relay Control Register (base + 2616)• Bank 4 Relay Control Register (base + 2816)• Bank 5 Relay Control Register (base + 2A16)• Bank 6 Relay Control Register (base + 2C16)• Bank 7 Relay Control Register (base + 2E16)• Channels 0990 - 0996 Relay Control Register (base + 3016)
Status/ControlRegister
Writes to the Status/Control Register (base + 0416) enable you todisable/enable the interrupt generated when channels are closed. Writing a1 to bit 0 of the Status/Control Register (base + 0416) does not change thestate of the latching relays (individual channel relays). Writing a 1 to this bithas the same effect as removing power from the cardcage. Since the relaysare latching relays, they do not change state.
NOTE It is necessary to write a 0 to bit 0 after the reset has been performedbefore any other commands can be programmed and executed. SCPIcommands take care of this automatically.
Register-Based Programming 73Appendix B
To disable the interrupt generated when channels are closed, write a 1 tobit 6 of the Status/Control Register (base + 0416).
NOTE Typically, interrupts are only disabled to "peek-poke" a module. Refer tothe operating manual of the command module before disabling theinterrupt.
Relay ControlRegisters
Writes to the Relay Control Registers (base + 2016 to base + 3016) enableyou to switch desired channels. Figures 1-1 and 1-2 (see Chapter 1) showthe schematics for the modules and the bank, row, and column information.Any number 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 register based.
Device Type Register
base + 0216 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Write Undefined
Read 010016
Status/Control Register
base + 0416 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Write* Undefined D Undefined R
Read** Undefined S4 S3 S2 S1 Undefined B D Undefined
*R = Latching relays stay in their current state.*D = Disable interrupt by writing 1 in bit #6.
**B = Status "busy" is 0 in bit #7.**D = Status "Interrupt disable" is 1 in bit #6.**S4 -S1 = Status "Configuration Status bits" hardwired onto the terminal modules.
S4 S3 S2 S10 1 1 0 = E1469A 4x16 Matrix0 1 0 1 = E1468A 8x8 Matrix
74 Register-Based Programming Appendix B
Bank 0 Relay Control Register
base + 2016 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 channel.
Bank 1 Relay Control Register
base + 2216 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 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 close channel.
Bank 3 Relay Control Register
base + 2616 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 channel.
Bank 4 Relay Control Register
base + 2816 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 channel.
Register-Based Programming 75Appendix B
Bank 6 Relay Control Register
base + 2C16 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 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 channel.
Channels 0990 - 0996 Relay Control Register
base + 3016 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Write* Undefined CH6 CH5 CH4 CH3 CH2 CH1 CH0
Read Always Returns FFFF16
*Writes a 1 to close channel.
76 Register-Based Programming Appendix B
Appendix C
Relay Matrix Switch Error Messages
This table lists the error messages associated with the Relay Matrix Switchmodules when programmed with SCPI. See the appropriate commandmodule user’s manual for complete information on error messages.
Number Title Potential Cause(s)
-211 Trigger ignored Trigger received when scan not enabled. Trigger received after scancomplete. Trigger too fast.
-213 Init Ignored Attempting to execute an INIT command when a scan is already inprogress.
-224 Illegal parameter value Attempting to execute a command with a parameter not applicable to thecommand.
-350 Too many errors. The queue holds a maximum of 30 error numbers/messages for eachswitchbox. The queue has overflowed.
1500 External trigger sourcealready allocated
Assigning an external trigger source to a switchbox when the triggersource has already been assigned to another switchbox.
2000 Invalid card number Addressing a module (card) in a switchbox that is not part of theswitchbox.
2001 Invalid channel number Attempting to address a channel of a module in a switchbox that is notsupported by the module (e.g.,, channel 99 of a multiplexer module).
2006 Command not supportedon this card
Sending a command to a module (card) in a switchbox that isunsupported by the module.
2008 Scan list not initialized Executing a scan without the INIT command.
2009 Too many channels inchannel list
Attempting to address more channels than available in the switchbox.
2012 Invalid Channel Range Invalid channel(s) specified in SCAN <channel_list> command.Attempting to begin scanning when no valid channel list is defined.
2600 Function not supported onthis card
Sending a command to a module (card) in a switchbox that is notsupported by the module or switchbox.
2601 Channel list required Sending a command requiring a channel list without the channel list.
Relay Matrix Switch Error Messages 77Appendix C
Notes:
78 Relay Matrix Switch Error Messages Appendix C
Appendix D
Relay Life
Replacement StrategyElectromechanical relays are subject to normal wear-out. Relay life dependson several factors. The replacement strategy depends on the application. Ifsome relays are used more often or at a higher load than other relays, therelays can be individually replaced as needed.
If all relays see similar loads and switching frequencies, the entire circuitboard can be replaced when the end of relay life approaches. The sensitivityof the application should be weighed against the cost of replacing relays withsome useful life remaining.
NOTE Relays that wear out normally or fail due to misuse should not beconsidered defective and are not covered by the product's warranty.
Relay Life FactorsSome 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 example, turning on a lamp or starting a motor) reduces relaylife. Exceeding specified maximum inputs can cause catastrophicfailure.
• Switching Frequency. Relay contacts heat up when switched. Asthe switching frequency increases, the contacts have less time todissipate heat. The resulting increase in contact temperature alsoreduces relay life.
End-of-Life DeterminationA preventive maintenance routine can prevent problems caused byunexpected relay failure. The end of life of a relay can be determined byusing one or more of three methods: contact resistance maximum value,contact resistance variance, and/or number of relay operations. The bestmethod (or combination of methods), as well as the failure criteria, dependson the application in which the relay is used.
Relay Life 79Appendix D
• Contact Resistance Maximum Value. As the relay begins to wearout, its contact resistance increases. When the resistanceexceeds a predetermined value, the relay should be replaced.
• Contact Resistance Variance. The stability of the contact resistancedecreases with age. Using this method, the contact resistance ismeasured several (5-10) times, and the variance of themeasurements is determined. An increase in the varianceindicates deteriorating performance.
• Number of Relay Operations. Relays can be replaced after apredetermined number of contact closures. However, this methodrequires knowledge of the applied load and life specifications forthe applied load.
80 Relay Life Appendix D
IndexE1468A/E1469A Relay Matrix Switch User’s Manual
AABORt subsystem, 40addressing registers, 69ARM subsystem, 41ARM:COUNt, 41ARM:COUNt?, 42
Bbase address, register, 70
Ccautions, 15checking module identification, 33command reference, 39common commands
*CLS, 65*ESE, 65*ESE?, 65*ESR?, 65*IDN?, 65*OPC, 65*OPC?, 65*RCL, 65*RST, 65*SAV, 65*SRE, 65*SRE?, 65*STB?, 65*TRG, 65*TST?, 65*WAI, 65format, 37quick reference, 65
configuring the switches, 15connector pinouts, 11
Ddeclaration of conformity, 9detecting error conditions, 35Device Identification register, 73documentation history, 8
Eerror messages, 77examples
Advancing Scan Using TRIGger, 62Closing Switch Channels, 51Enabling a Single Scan, 44Enabling Continuous Scanning, 44
E (continued)examples (cont’d)
Enabling ECL Trigger Bus Line 0, 46Enabling Operation Status Register Bit 8, 57Enabling Trig Out Port, 47Enabling TTL Trigger Bus Line 7, 48Identifying Relay Matrix Switch Modules, 33Illegal Channel Closure Error, 35Initial Operation, 29Opening Channels, 52Opening/Closing Rows/Columns, 34Querying Channel Closures, 51Querying Channel Open State, 53Querying Continuous Scanning State, 44Querying ECL Trigger Bus Enable State, 46Querying Number of Scans, 42Querying Operation Status Enable Register, 57Querying Trig Out Port Enable State, 47Querying Trigger Source, 64Querying TTL Trigger Bus Enable State, 49Querying the Error Queue, 61Reading Card #1 Model Number, 60Reading Card#1 Description, 59Reading Operation Status Register, 58Saving and Recalling States, 35Scanning Channels, 54Scanning Using Bus Triggers, 64Scanning Using External Triggers, 64Sequencing Channels (E1468A), 34Sequencing Channels (E1469A), 34Setting Card #1 Module to Power-On State, 60Setting Ten Scanning Cycles, 41Stopping a Scan with ABORt, 40Synchronizing a Relay Matrix Switch, 36Using Interrupts to Signal Errors, 35
Iinitial operation, 29INITiate subsystem, 43INITiate:CONTinuous, 43INITiate:CONTinuous?, 44INITiate[:IMMediate], 44installing switches, 18interrupt priority, setting, 17
Llinking commands, 39logical address switch, setting, 16
Index 81
MManufacturer ID register, 72matrixes, creating larger, 23
OOUTPut subsystem, 45OUTPut:ECLTrg[:STATe], 45OUTPut:ECLTrg[:STATe]?, 46OUTPut[:EXTernal][:STATe], 46OUTPut[:EXTernal][:STATe]?, 47OUTPut:TTLTrg[:STATe], 48OUTPut:TTLTrg[:STATe]?, 49
Ppower-on/reset conditions, 32programming
using SCPI, 28programming the switches, 28programming, addressing switches, 28programming, register-based, 69
Qquerying switches, 32
Rrecalling/saving states, 34register-based programming, 69registers
addressing, 69base address, 70Device Identification, 73Manufacturer ID, 72Relay Control, 74Status/Control, 73
relay life, 79relay matrix switches
addressing, 28checking module identification, 33commands, 31configuring, 15connector pinouts, 11description, 11detecting error conditions, 35E1468A description, 11E1469A description, 11error messages, 77initial operation, 29installing, 18power-on/reset conditions, 32programming, 28querying, 32specifications, 67switching channels, 33synchronizing, 36
relaysend-of-life determination, 79relay life factors, 79replacement strategy, 79
restricted rights statement, 7[ROUTe:] subsystem, 50[ROUTe:]CLOSe, 50[ROUTe:]CLOSe?, 51[ROUTe:]OPEN, 52[ROUTe:]OPEN?, 53[ROUTe:]SCAN, 53
Ssafety symbols, 8SCPI commands
command reference, 39format, 37linking commands, 39quick reference, 66using, 28
setting logical address switch, 16specifications, 67Status register switch, setting, 16Status/Control register, 73STATus subsystem, 55STATus:OPERation:CONDition?, 56STATus:OPERation:ENABle, 57STATus:OPERation:ENABle?, 57STATus:OPERation[:EVENt]?, 58STATus:PRESet, 58switch descriptions, 11switching channels, 33synchronizing switches, 36SYSTem subsystem, 59SYSTem:CDEScription?, 59SYSTem:CPON, 59SYSTem:CTYPe?, 60SYSTem:ERRor?, 60
Tterminal modules
attaching to relay switch module, 27configuring, 20wiring, 20
TRIGger subsystem, 62TRIGger[:IMMediate], 62TRIGger:SOURce, 63TRIGger:SOURce?, 64
Wwarnings, 8, 15warranty statement, 7
82 Index
Printed in U.S.A. E1200