Home

E1442A 64-Channel Form C Switch Module

image

Contents

1. J Channel 0 2 Channel 1 J Channel 2 J Channel 3 J Channel 28 J Channel 29 J Channel 30 Channel 31 x Channel 32 J Channel 33 J Channel 34 Channel 35 EJ Channel 60 1 Channel 61 J Channel 62 2 Channel 63 Figure 1 1 E1442A Form C Switch Front Panel Chapter 1 Switch Block Figure 1 2 is a simplified block diagram of the Form C switch with internal Diag ram bus and available terminal modules Standard Option 010 and Option 020 E1442A Standard Option 010 Option 020 64 Channel Form C Switch Module Solder Lug Signal Conditioning Form A Configuration 1 Terminal Module 1 Terminal Module 1 Terminal Module 5V Pullup 1A Max i a 1 See Using the Internal Buses for component jumper information gt when using the internal buses 1 Screw Terminals ee oa Channel 00 I I I l l N Signal Conditioning Circuitry And Jumpers All channels use non latching relays that open at power down Channel Signal Conditioning Circuitry And 2 Jumpers All channels have locations to install user supplied components or jumpers to connect the NO NC or C terminals to the internal bus Channel 32 Signal Conditioning Circuitry And Jumpers
2. SSTT TEE JF Standard Configuration Option 010 Form C Option 020 Form A Figure 1 3 Form C Switch Terminal Modules Figure 1 4 shows the three terminal modules and options for NO and NC connections for each terminal type A switch relay is open when contact is made between the normally closed NC contact and common C A switch is closed when contact is made between the normally open NO and common C Any combination of open or closed states is allowed at one time for all channels on the module Terminal Module Type Standard Option 010 Option 020 Form C Form C Form A Solder Lug Signal Conditioning Screw Terminal Relay Open Load 1 Load 1 No Connection Relay Closed Load 2 Load 2 Load 2 14 Getting Started Chapter 1 aa Standard Terminal Channel Module V 00 Loads NO NO COM i NC NC i COM Option 010 Terminal Channel D ae es Module V 00 Loads NO P NO COM a x L NC ignal NC ae Condi
3. Channel Capacitor e ejiaja spe Safe ale ele 7 solder Holes Lol sf 5 steele feces ck of Channel Configuration Jumpers Channel Number Le vedd User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 17 Example Resistor Divider Configuration 30 Getting Started Chapter 1 Chapter 1 Example Low Pass Any channel can be configured as a low pass filter connected to the Filter Configuration normally open contact of the Form C relay Figure 1 18 shows a typical low pass filter configuration For this example resistor R25 and capacitor C25 are to be added No configuration jumpers are required TERMINAL SWITCH MODULE MODULE ra Channel 25 User Terminal Module Channel Resistor Felted Solder Holes ilies i Channel Capacitor Solder Holes Channel Configuration Jumpers Channel Number LE veA LE bedd User Supplied Resistor Packs SIP Loc
4. w Card Number 01 02 03 Valid Numbers 01 99 Channel Addresses 1nn 2nn 3nn etc where nn is the channel number Figure 1 6 Typical Switchbox Arrangements Getting Started 19 Setting Interru pt Interrupts are enabled at power up after a SYSRESET or after resetting the Priority module via the control register An interrupt is generated after any channel enable register is accessed when interrupts are enabled The interrupt is generated approximately 13 ms after one of the registers is accessed The interrupt priority jumper selects which priority level will be asserted The interrupt priority jumper is set in position 1 as shipped from the factory For most applications this priority level should not have to be changed The interrupts are disabled when set to level X The interrupt priority jumpers are identified on the sheet metal shield A hole has been cut into it for access Interrupts can also be disabled using the Control Register See Figure 1 7 for Interrupt Request Level Jumper locations To change the setting remove the jumper or jumpers from their current position and place on the level you desire If the card uses two 2 pin jumpers both jumpers must be placed in the same row for proper operation See the applicable mainframe manual to make sure backplane jumpers are configured correctly Interrupt Request Level Jumper Location LEVEL X Interrupt
5. Use of any internal bus NO NC or C restricts the maximum switched voltage to 42 VDC or 60V Peak AC Channel 63 Signal Conditioning Circuitry And Jumpers Figure 1 2 E1442A Form C Switch Simplified Block Diagram Chapter 1 Getting Started 13 Terminal Module Figure 1 3 shows the Standard Terminal Module Form C configuration with Descriptions solder lugs the Option 010 Terminal Module Form C configuration with signal conditioning circuitry and the Option 020 Form A Screw Terminal configuration B r
6. Channel Number 2 9 bd 0 0 0 User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 20 Example Normally Closed Terminal Pullup Configuration Chapter 1 Getting Started 33 Example Normally Open Terminal Pullup Configuration Vpullup Pullup User Voltage COM Terminal Module Any channel can be configured as a pullup or pulldown resistor connected to any of the contacts of the Form C relay Figure 1 21 shows channel 25 with the pullup attached to the NO contact For this example SIP resistor pack RP24 31 is to be added Set two configuration jumpers as shown in Figure 1 21 PU NO TERMINAL SWITCH MODULE MODULE RP 24 31 Channel 25 Channel Resistor Solder Holes Channel Capacitor Solder Holes Channel Configuration Jumpers 3100 gt emp ON Pd Channel Number rt emp OO E User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 21 Example Normally Open Terminal
7. Channel Number SL 8A Sl 8dH EZ 9 LA LE PZA Le vedd 2 9bdy _b 0550000600 bees 0 OO 06 aannam User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 19 Example Common Terminal Pullup Configuration 32 Getting Started Chapter 1 Example Normally Any channel can be configured as a pullup or pulldown resistor connected Closed Terminal Pullup to any of the contacts of the Form C relay Figure 1 20 shows channel 25 Configuration with the pullup attached to the NC contact For this example SIP resistor pack RP24 31 is to be added Set two configuration jumpers as shown in Figure 1 20 PU NC TERMINAL SWITCH MODULE MODULE Vpullup l m Channel 25 Pullup User Voltage Wiring To COM Terminal Module Ng NO o Channel Resistor Solder Holes RERIABSRIFCEEREEEESRSEERIESSISIEE Channel Capacitor aa a e e e eo so Eaa F Pa Solder Holes Oje aja ofe oja afa bja oja ale sie oja aofa slo Ole afa efe ofa alfa ofa ofa ofa olo ofa afo o o o Channel Configuration Jumpers fal D B D D D i
8. Address 15 14 13 12 11 10 9 8 i 6 5 4 3 2 1 0 b 0246 Read Returns 022816 for the E1442A module Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 b 0446 Write Undefined D Undefined R Read Un M Un S1 Undefined B D Undefined R def def Appendix B Register Based Programming 93 Table 3 1 Write Bits Status Control Register bit 0 R Writing a 1 to this bit resets the switch to the power on state all channels open To reset keep this bit set to 1 for a minimum of 100 ms and then set bit 0 back to a logical 0 to allow switches to be closed bit 6 D Disable interrupt by writing a 1 to this bit set back to 0 with a reset Table 3 2 READ BITS Status Control Register bit 0 R A 1 at this bit resets the switch to the power on state all channels open To reset set bit 0 back to a logical 0 to allow switches to be closed bit 6 D Interrupt Status 1 disabled 0 enabled bit 7 B Busy Status 1 not busy 0 busy bit12 S1 Fuse F4 provides 5V pull up voltage for the NC and NO switch contacts by use of the module s internal bus see Figures 1 8 and 1 9 Fuse F4 status 0 fuse F4 not installed factory shipped without the fuse A 0 also can indicate a blown fuse after installing fuse F4 1 fuse F4 is installed user must install fuse bit14 M MODID bit if the bit is 0 the module has been selected during turn on Normally this
9. Initiate the scan using the default TRIG IMM Serial poll bit 7 of the status byte until it is high PRINT WAITING FOR SCAN COMPLETE 40 Getting Started Chapter 1 90 END WHILE 100 OUTPUT 70915 STAT OPER Query the status operation event register 110 ENTER 70915 A IBit 8 reported high status byte bit 7 was high 120 PRINT STAT OPER EVENT BIT 8 A Print response to the STAT OPER query 130 END RUN the program You should hear channel relays opening and closing especially when a large channel list is scanned Exercise 4 Check for You can add the following lines to the program in Exercise 3 to verify that System Errors no system errors were generated It is always a good idea to check if your program causes the instrument to report any errors during program development such as command strings that are invalid and cause an error to be sent to the instrument s error queue You can read the instrument s error queue by inserting the following four program lines all errors are read until the error queue is 0 No errors 121 REPEAT 122 OUTPUT 70915 SYST ERR 123 ENTER 70915 A A A gets the error number A gets the error message 124 PRINT A A 125 UNTIL A 0 See Using Interrupts With Error Checking in Chapter 2 for detecting errors with interrupts For example inserting the following incorrect program line 51 OUTPUT 70915 TRIG SOURC BUS will cause an error to be sent to the error queue because T
10. How to Scan Reset Conditions e Using Scanning Trigger Sources e Using the Scan Complete Bit Switchbox A switchbox can consist of a single switch module or multiple switch Definition modules It can also include other switch modules that are controlled by the same SWITCH device driver Figure 2 1 shows a typical switchbox consisting of three cards modules Card Number 01 otur Switch Module i i n i i i Logical Address 120 Secondary Address 15 Command Module Card Number 02 tar Switch Module Logical Address 121 Card Number 03 Switch Module Logical Address 122 Note Physical placement of the Module in the Logical Address order is not required but is recommended Figure 2 1 Typical Switchbox Configuration Chapter 2 E1442A Application Examples 43 How to Scan Scanning Form C switch channels consists of closing a set of channels connecting NO to C one channel at a time Single scan multiple ARM COUNt 2 to ARM COUNt 32767 scans or continuous INIT CONT scanning modes are available See the command reference in Chapter 3 for more information on these commands Table 2 1 shows a number of SCPI commands that relate to scanning Table 2 1 Command Description ARM COUNt Sets the number of scanning cycles per INIT optional INIT Begins scanning
11. Closing Channels To close ROUTe CLOSe ccnn to close a single channel e ROUTe CLOSe ccnn ccnn to close multiple channels ROUTe CLOSe ccnn ccnn to close sequential channels ROUTe CLOSe ccnn ccnn ccnn ccnn to close a group of sequential channels any combination of the above Closure Order A list of channels will not all close simultaneously The order channels close when specified from a single command is not guaranteed Use sequential CLOSe commands if needed Related Commands ROUTe OPEN ROUTe CLOSe RST Condition All Form C switch channels are open Chapter 3 Example ROUTe CLOSe Comments Example ROUTe OPEN Chapier 3 Parameters Comments Closing Form C Switch Channels This example closes channel 00 of card number 1 Form C switch module and channel 15 of card number 2 Form C switch module in a single switchbox CLOS 100 215 100 closes channel 00 of Form C switch 1 215 closes channel 15 of Form C switch 2 ROUTe CLOSe lt channel_list gt returns the current state of the channel s queried The channel_listis in the form ccnn The command returns 1 if the channel is in the NO state C connected to NO or returns 0 if the channel is in the NC state C connected to NC If a list of channels is queried a commaz delineated list of 0 or 1 values is returned in the same order of the channel list Query is Software Readback The ROUTe CLOSe comma
12. ESR Standard Event Register Query IDN Instrument ID Query returns identification string of the module OPC Operation Complete OPC Operation Complete Query RCL lt n gt 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 lt n gt Stores the instrument state but does not save the scan list SRE lt unmask gt 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 is TRIGger 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 Chapier 3 E1442A Command Reference 83 Notes 84 E1442A Command Reference Chapter 3 Appendix A Specifications Maximum Input Vol
13. 010 Terminal Module Figure 1 15 Option Chapter 1 28 Getting Started Example Any channel of the terminal module can be configured as a straight through Straight Through Form C relay In this mode no resistors or capacitors are included A Configuration two position jumper is placed on the mode selection jumper Figure 1 16 shows a typical straight through configuration No components are added Set one configuration jumper as shown in Figure 1 16 INLINE TERMINAL SWITCH N MODULE MODULE COM i COM D NC NC N NO Channel 25 NO lt I I User Wiring To Terminal Module F go Channel Resistor a Joe e ee lle ee lell2lelelelelelel2 21 ZZZ led eeteeeelesles Solder Holes Pail iP a ha jE eeo S mye Fl PRO ee _ Channel Capacitor area u e7u ere salecalace e alsa aro ece a ed SE Solder Holes l fe 2f ele ele afe ofe ofe ole ofe ofe ofe 5 Zz 82 2 Ole she se ofs ala offs ale alfa ofls ofa ofe m o BRIDGE O 0 REMO a alo ale alo ofa afo afo alfa alfa alla ofa ofa alle o er rest T l l EXCEPT FOF a elo ele aha ale allo ale alle ala olla ofa ofa ole a eu cou OO TB R88 Channel w a
14. 1 MAX 32 767 current cycles Related Commands INITiate IMMediate Query Number of Scanning Cycles ARM COUN 55 ARM COUN Set 10 scanning cycles Query number of scanning cycles Returned value is 55 E1442A Command Reference 57 DISPlay Subsystem Syntax The DISPlay subsystem monitors the channel state of a selected module or card in a switchbox The DISPlay command subsystem only operates with an RS 232 terminal connected to the E1406 Command Module s RS 232 port These commands control the display on the terminal and would in most cases be typed directly from the terminal keyboard However it is possible to send these commands over the GPIB interface and control the terminal s display In this case care must be taken that the instrument receiving the DISPlay command is the same one that is currently selected on the terminal Otherwise the GPIB command will have no visible effect DISPlay MONitor CARD lt number gt AUTO CARD STATe lt mode gt STATe DISPlay MONitor CARD Parameters Comments Example 58 E1442A Command Reference DISPlay MONitor CARD lt numbers AUTO selects the module in a switchbox to be monitored You must use DISP MON STAT ON to actually display the monitored module state to the RS 232 terminal Name Type Range of Values Default Value lt number AUTO gt numeric 1 99 AUTO Selecting a Specific Module to be Monitored Send the card nu
15. 2 7 8 63 Inputs o To gt Channels 2 7 To Channels gt PC Board Solder Hole 2 7 NO NC Com Component User Supplied Channel Pair Module lt Divider Filter Configuration Channels Components Jumpers Channel 0 gt o Channel 0 Li Li Li Li Li Li Li 1 1 1 1 Li Li Channeli gt Channel 1 Li Li Li Li Li 1 1 Li Li Li Li Li Connections for 2 of 64 Channels Figure 1 14 Option 010 Terminal Module User Connections Chapter 1 Getting Started 27 INLINE amm
16. Bit 14 is the MODID bit When a 0 is returned in bit 14 the module has been selected with a high state on the P2 MODID line this occurs during turn on If a 1 is returned the module has not been selected A read of any of the Switch Enable Registers always returns FFFF 4g regardless of the channel states You can write to the following Form C switch registers Status Control Register base 0446 e Switch Enable Register for channels 0 15 base 1046 e Switch Enable Register for channels 16 31 base 1216 e Switch Enable Register for channels 32 47 base 144 e Switch Enable Register for channels 48 63 base 16416 Register Based Programming 91 Status Control Register NOTE NOTE Switch Enable Registers NOTE 92 Register Based Programming Writing a 1 to bit 0 of the Status Control Register base 0446 to reset the switch module all channels open Resetting the module enables interrupts It is necessary to write a 0 to bit 0 after the reset has been performed before any other commands can be programmed and executed To disable the interrupt generated when channels are opened closed write a 1 to bit 6 of the Status Control Register Typically interrupts are disabled when doing register level access to a module Refer to the operating manual of the command module or the embedded controller being used to handle interrupts Interrupts are re enabled after a reset Bit 12 provides
17. Opening Form C Switch Channels 68 Query Continuous Scanning State 62 Query Form C Switch Channel Closure 67 Query Form C Switch Channel Open State 68 Query Module Identity 40 Query Number of Scanning Cycles 57 Query the Operation Status Enable Register 74 Query Trig Out Port 64 Query Trigger Source 81 Reading a Card Description 76 Reading Card Model Number 77 Reading the Error Queue 78 Reading the Operation Status Register 75 Register Based Programming 95 Resistor Divider Configuration 30 Scanning Using Bus Triggers 81 Scanning Using External Devices 69 Scanning Using External Triggers 81 Scanning Using Trig Out and Trig In Ports 49 102 Index Scanning With External Device 48 Select Module 2 for Monitoring 58 Setting a Logical Address 18 Setting Ten Scanning Cycles 56 Starting a Single Scan 62 Stopping a Scan with ABORt 55 Straight Through Configuration 29 Synchronizing the Form C Switch 50 System Error Checks 41 Using the Scan Complete Bit 45 i ID register reading 91 IEEE 488 2 commands reference 83 implied commands 52 INITiate CONTinuous 61 INITiate CONTinuous 62 INITiate IMMediate 62 INITiate subsystem 61 installing the switch 23 internal buses setting 21 interrupt priority setting 20 L logical address setting 18 O offset register 88 Option 010 terminal module 27 OUTPut ECLTrgn STATe 63 OUTPut ECLTrgn STATe 63 OUTPut EXTernal STATe 64 OUTPut EXTernal STA
18. 64 Channel Form C Switch Module is a VXlbus C Size register based slave device that can operate in a C Size VXlbus mainframe or ina VMEbus mainframe The E1442A switch consists of a Form C switch module and one of three types of terminal modules Standard Option 010 and Option 020 The terms Form C Switch and switch refer to the E1442A switch module The switch instrument is the firmware running in the E1406 Command Module This firmware is the instrument driver providing Standard Commands for Programmable Instruments SCPI programming capability The term switchbox refers to a switch instrument consisting of one or more switch modules Programming the E1442A can be done through the command module using SCPI or via direct register access register based programming Switch Front Panel Tne Form C switch consists of a component module and a terminal module User inputs are connected to the Form C switch NO Normally Open NC Normally Closed and C Common terminal connections on one of the three available terminal modules Figure 1 1 shows the switch module front panel and the connector pinouts that mate to the terminal module Chapter 1 Getting Started 11 12 Getting Started 64 CHANNEL i FORM C SWITCH Column Row
19. Meas value Print the measurement 70 END 50 E1442A Application Examples Chapter 2 Chapter 3 E1442A Command Reference Using This Chapter Command Types Common Command Format SCPI Command Format Chapier 3 This chapter describes Standard Commands for Programmable Instruments SCPI and summarizes IEEE 488 2 Common commands applicable to the E1442A 64 Channel Form C Switch Module This chapter contains the following sections Command Types aei saia a 0000 de aa ASA eee 51 SCPI Command Reference nauuna anaana aa 53 SCPI Commands Quick Reference 00 82 e IEEE 488 2 Common Commands Reference 83 Commands are separated into two types IEEE 488 2 Common commands and SCPI commands The IEEE 488 2 standard defines the Common commands that perform functions like reset self test status byte query etc Common commands are four or five characters in length always begin with the asterisk character and may include one or more parameters The command keyword is separated from the first parameter by a space character Some examples of Common commands are shown below RST ESR32 STB The SCPI commands perform functions like closing switches making measurements and querying instrument states or retrieving data A subsystem command structure is a hierarchical structure that usually consists of a top level or root command one or more lower level commands and the
20. Service Request bit RSQ Standard Event summary bit ESB Message Available bit MAV and Questionable Data bit QUE in the StatusByte Register bits 7 6 5 4 and 3 respectively can be queried with the STB command Use the ESE command to query the unmask value for the Standard Event Status Register the bits you want logically OR d into the summary bit The registers are queried using decimal weighted bit values The decimal equivalents for bits 0 through 15 are included in Figure 3 1 A numeric value of 256 executed in a STATus OPERation ENABle lt unmask gt command allows only bit 8 to generate a summary bit The decimal value for bit 8 is 256 The decimal values are also used in the inverse manner to determine which bits are set from the total value returned by an EVENt or CONDition query The SWITCH driver exploits only bit 8 of Operation Status Register This bit is called the Scan Complete bit which is set whenever a scan operation completes Since completion of a scan operation is an event in time bit 8 will never appear set when STAT OPER COND is queried However bit 8 is set with the STAT OPER EVENt query command 72 E1442A Command Reference Chapter 3 fe N Standard Event Register NOTE fe ESR QUE Questionable Data a ee MAV Message Available Automatically Set at pE ESB St
21. address is specified This address consists of a base address plus a register offset The base address used in register based programming Register Based Programming 87 depends on whether the A16 address space is outside or inside the E1406 Command Module A16 Address Space When the E1406 Command Module is not part of your VXlbus system Outside the Command Figure B 1 the switch s base address is computed as Module C0001 LADDR 64 46 or 49 152 LADDR 64 where C000 49 152 is the starting location of the register addresses LADDR is the switch s logical address and 64 is the number of address bytes per VXI device For example the switch s factory set logical address is 120 7846 If this address is not changed the switch will have a base address of C0006 120 64 16 C0001 1E0016 DEOO4 or decimal 49 152 120 64 49 152 7680 56 832 A16 Address Space When the A16 address space is inside the E1406 Command Module Inside the Command Figure B 2 the switch s base address is computed as Module or Mainframe 1EC000 6 LADDR 64 3g or 2 080 768 LADDR 64 where 1FC0004 2 080 768 is the starting location of the VXI A16 addresses LADDR is the switch s logical address and 64 is the number of address bytes per register based device Again the switch s factory set logical address is 120 If this address is not changed the switch module will have a base address of 1FC00
22. bit is 1 when not in the turn on cycle Switch Enable You write to the switch enable registers to close or open a channel Write Registers a 1 to the register to close a relay channel Write a 0 to the register to open a relay channel Reading any Switch Enable Register will always return FFFF 4g regardless of the channel states Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 b 1046 Write Chi Chi Chi Chi Ch111 Chi ChO ChO ChO ChO ChO ChO ChO ChO ChO Cho 5 4 3 0 9 8 7 6 5 4 3 2 1 0 Read Always returns FFFF 4g Address 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 b 1246 Write Ch3 Ch3 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Ch2 Chi Chi Chi Chi 1 0 9 7 6 5 4 3 2 1 0 9 8 7 6 Read Always returns FFFF 4g 94 Register Based Programming Appendix B Address 15 14 13 12 1i 10 9 8 7 6 5 4 3 2 1 0 b 1446 Write Ch4 Ch4 Ch4 Ch4 Ch4 Ch4 Ch4 Ch4 Ch3 Ch3 Ch3 Ch3 Ch3 Ch3 Ch3 Ch3 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 Read Always returns FF FF 46 Address 15 14 13 12 T 10 9 8 7 6 5 4 3 2 1 0 b 1 616 Write Ch6 Ch6 Ch6 Ch6 Ch5 Ch5 Ch5 Ch5 Ch5 Ch5 Ch5 Ch5 Ch5 Ch5 Ch4 Ch4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 Read Always r
23. determines whether or not a subsequent INIT IMMediate command will cause a continuous scan to occur Parameters Name Type Range of Values Default Value lt mode gt boolean 0 1 ON OFF OFF 0 Comments Continuous Scanning Operation Continuous scanning is enabled with the INITiate CONTinuous ON or INITiate CONTinuous 1 command Sending the INITiate IMMediate command closes the first channel in the channel list Each trigger from a trigger source selected by the TRIGger SOURce command advances the scan through the channel list A trigger at the end of the channel list closes the first channel in the list and the scan cycle repeats Non Continuous Scanning Operation Non continuous scanning is enabled with the INITiate CONTinuous OFF or INITiate CONTinuous 0 command Sending the INITiate IMMediate command closes the first channel in the channel list Each trigger from a trigger source selected by the TRIGger SOURce command advances the scan through the channel list A trigger at the end of the channel list opens the last channel in the list and the scanning cycle stops The INITiate CONTinuous command does not start a scanning cycle see INIT IMM Stopping Continuous Scans See the ABORt command Related Commands ABORt ARM COUNt INITiate IMMediate TRIGger TRIGger SOURce RST Condition INITiate CONTinuous OFF Chapier 3 E1442A Command Reference 61 Example Enabling Continuous Scans IN
24. required INIT CONTinuous ON Selects continuous scanning optional OUTPut EXTernal Selects Trig Out port optional STATe ON OUTPut STATe Enables disables Trig Out signal optional SCAN Defines channels to be scanned required TRIG Advances to next channel in scan list required if using HOLD or BUS trigger sources TRIGger SOURce Sets the trigger source for scan advance optional Reset Conditions At power on or following the reset of the module RST command all 64 channels are open common connected to the normally closed terminal In addition after a RST command the current scan channel list is invalidated Table 2 2 lists the parameters and default values following power on or reset Table 2 2 Parameter Default Description ARM COUNt 1 Number of scanning cycles is one TRIiGger SOURce IMM Will advance scanning cycles automatically INITiate CONTinuous OFF Number of scanning cycles is set by ARM COUNt OUTPut STATe OFF Trigger output from EXT TTL or ECL sources is disabled Channel State All 64 channels are open channels 00 63 Channel list from Current channel list is invalidated following a reset SCAN command of the module with the RST command after RST 44 E1442A Application Examples Chapter 2 Using Scanning The TRIG SOUR command specifies the source to advance the scan Trigger Sources You can use the T
25. s failure to comply with these requirements Ground the equipment For Safety Class 1 equipment equipment having a protective earth terminal an uninterruptible safety earth ground 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 NOT use repaired fuses or short circuited fuse holders Keep away from live circuits Operating personnel must not remove equipment covers or shields Procedures involving the removal of covers or shields are for use by service trained personnel only Under certain conditions dangerous voltages may exist even with the equipment switched off To avoid dangerous electrical shock DO NOT perform procedures involving cover or shield removal unless you are qualified to do so DO NOT operate damaged equipment Whenever it is possible that the safety protection features built into this product have been impaired either through physical damage excessive moisture or any other reason REMOVE POWER and do not use the product until safe operation can be verified by service trained personnel If necessary return the product to Agilent for service and repair to ensure that safety features are maintained DO NOT service or adjust alone Do no
26. software interfacing parts or supplies not supplied by Agilent c unauthorized modification or misuse d operation outside of the published environmental specifications 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 OTHER WARRANTY OR CONDITION WHETHER WRITTEN OR ORAL IS EXPRESSED OR IMPLIED AND AGILENT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OR CONDITIONS OF MERCHANTABILITY SATISFACTORY QUALITY 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 product that 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 court of 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 S SOLE AND EXLUSIVE REMEDIES EXCEPT AS INDICATED ABOVE IN NO EVENT WILL AGILENT OR ITS SUPPLIERS BE LIABLE FOR LOSS OF DATA OR FOR DIRECT SPECIAL INCIDENTAL CONSEQUENTIAL INCLUDING LOST PROFIT OR DATA OR OTHER DAMAGE WHETHER BASED IN CONTRACT TORT OR OTHERWISE FOR CONSUMER TRANSACTIONS IN AUSTRALIA AND NEW ZEALAND THE WARRANTY TERMS CONTAINED IN THIS STATEMENT EXCEPT TO THE EXTENT LAWFULLY PERMITTED DO NOT EXCLUDE RESTRICT OR MODIFY AND ARE I
27. state of the Form C switches on the module e g close or open the switch Reading or Writing To read or write to specific registers you must address a particular register to E1442A within a module The registers within a module are located using a fixed offset The module address is based on the module s logical address There Registers are two basic ways of accessing registers One method uses the logical address directly to access a particular card using VXI READ and VXI WRITE commands through a command module The other method can be used with an embedded controller that locates A16 data space within its memory map The memory mapping allows registers to be directly read or written with moves to from memory The factory setting of the logical address switch is 120 7846 This value is used in the following examples Register Access When using the E1406 Command Module to access registers via VXI READ with Logical and VXI WRITE commands the logical address is used to determine which VXI module is being accessed See the E1406 Command Module Address Command documentation for use of the VXI READ and VXI WRITE commands and Module other related commands The following commands are sent to the E1406 Command Module via the GPIB The example below shows a portion of a BASIC program The controller could either be external or embedded in the VXI mainframe This example shows the Status Control Register being accessed OUTPUT 70900 VXI
28. switch s Status Register stat_reg iwpeek unsigned short base_addr 0x04 printf Status register 0x 4X n stat_reg Close and Open close and open channels p Channels set all bits in register for channels 0 15 offset 10 to 1 iwpoke unsigned short base_addr 0x10 Oxffff read the E1442A relay control registers and print their value relay control registers always return FFFF hex chan_0_15_reg iwpeek unsigned short base_addr 0x10 chan_16_31_reg iwpeek unsigned short base_addr 0x12 chan_32_47_reg iwpeek unsigned short base_addr 0x14 chan_48_63_reg iwpeek unsigned short base_addr 0x16 printf Channels 00 15 register 0x 4X n chan_0_15_reg printf Channels 16 31 register 0x 4X n chan_16_31_reg printf Channels 32 47 register 0x 4X n chan_32_47_reg printf Channels 48 63 register 0x 4X n chan_48 63 reg delay 100 wait 100 milliseconds before resetting module reset the E1442A to open all closed channels writing a 0 to the channels registers will also open channels reset_sw base_addr Scan Channels REREEREES scanning channels RAERARER EE scan channels 0 15 register offset 10 for k 0 k15 k iwpoke unsigned short base_addr 0x10 Idexp 1 k delay 50 delay to allow mechanical relays to close sets all bits to 0 to open last c
29. terminal connected to the E1406 Command Module RS 232 Commands sent this way will be referred to as from the terminal in the command reference Chapter 3 E1442A Command Reference 53 ABORt Subsystem Syntax Comments NOTE 54 E1442A Command Reference The ABORt command stops a scan in progress when the trigger sources are either TRIGger SOURce BUS or TRIGger SOURce HOLD See the comments to stop a scan if trigger source is not BUS or HOLD ABORt Channel Status After an ABORt ABORting a scan will leave the last channel that it closed in the closed position Effect on Scan Complete Status Bit ABORting a scan will not set the scan complete status bit Stopping Scans Enabled from GPIB Interface When a scan is enabled from the GPIB interface and the trigger source is not HOLD or BUS you can clear the interface to stop the scan in the BASIC programming language this is done by executing the CLEAR command for your interface such as CLEAR 7 When the scan is enabled from the GPIB interface and the trigger source is TRIGger SOURce BUS or TRIGger SOURce HOLD send the ABORt command over the GPIB bus Clearing the GPIB interface during a scan leaves the last channel the scan closed in the closed position and does not set the scan complete status bit Stopping Scans by Using the RS 232 Terminal You may use a terminal connected to the E1406 Command Module to stop any scan If the scan was started from the
30. than 1 Applies to FET switches only 2600 Function not supported on this Sending a command to a module card in a switchbox that is not card supported by the module or switchbox 2601 Channel list required Sending a command requiring a channel list without the channel list 100 E1442A Error Messages Appendix C Symbols CLE 83 ESE 83 ESE 83 ESR 83 IDN 83 OPC 83 OPC 83 RCL 83 RST 83 SAV 83 SRE 83 SRE 83 STB 83 TRG 83 TST 83 WAI 83 A abbreviated commands 52 ABORt subsystem 54 addressing registers 87 addressing the switch 37 ARM COUNt 56 ARM subsystem 56 attaching the terminal modules 26 base address registers 87 C command separator 52 command types 51 commands 59 ARM COUNt 56 ARM COUNt 56 DISPlay MONitor CARD 58 DISPlay MONitor STATe 59 DISPlay MONitor STATe 60 INITiate CONTinuous 61 INITiate CONTinuous 62 INITiate IMMediate 62 OUTPut ECLTrgn STATe 63 OUTPut ECLTrgn STATe 63 OUTPut EXTernal STATe 64 OUTPut EXTernal STATe 64 Index E1442A User s Manual OUTPut TTLTrgn STATe 65 OUTPut TTLTrgn STATe 65 ROUTe CLOSe 66 ROUTe CLOSe 67 ROUTe OPEN 67 ROUTe OPEN 68 ROUTe SCAN 69 ROUTe SCAN MODE 70 ROUTe SCAN MODE 71 STATus OPER CONDition 74 STATus OPERation ENABle 74 STATus OPERation ENABle 74 STATus OPERation EVENt 75 STATus PRESet 75 SYSTem CDEScription 76 SYSTem CPON 76
31. to lock the terminal module onto the E1442A Extraction Levers To remove the terminal module from the E1442A use a small screwdriver to release the two extraction levers and push both levers out simultaneously to free it from the E1442A Figure 1 13 Attaching a Terminal Module to the Switch Module 26 Getting Started Chapter 1 Configuring the This section describes the Option 010 Terminal Module With this terminal Option 010 Terminal module you can add components to configure a variety of passive signal conditioning circuits including pullups pulldowns and single ended and Module differential resistive dividers and filters User inputs are connected to the module by soldering wires or components to the terminal module PC board Terminal Module User Figure 1 14 shows channels 0 and 1 and associated component and Connections voltage connections resistors capacitors jumpers and voltages Note the correlation of RO CO and R1 C1 with channels 0 and 1 respectively and the associated voltage node VO 7 and user supplied resistor SIP Figure 1 15 shows the locations of items on the terminal module Note User Supplied Pullup resistors can be either a Discrete Standup or b Resistor Pack User Supplied User Supplied Jumper Locations For Standup Resistors Resistor Pack S Making A Pullup Voltage Common To All Banks Module To To Pullup Channels Channels o Voltage
32. 0 120 4 64 16 1FC0001 1 E0016 1FDE00 or 2 080 768 120 64 2 080 768 7680 2 088 448 Figure B 1 shows the register address location within A16 as it might be mapped by an embedded controller Figure B 2 shows the location of A16 address space in the E1406 Command Modules Register Offset The register offset is the register s location in the block of 64 address bytes For example the switch s Status Control Register has an offset of 0446 When you write a command to this register the offset is added to the base address to form the register address DE001 0446 DE04i 1FDE0016 0416 IFDEO44 or 56 832 4 56 836 2 088 448 4 2 088 452 88 Register Based Programming Appendix B REGISTER 16 BIT WORDS N OFFSET FFFF 46 3E16 3C 16 FFFF 16 m e e C000 46 REGISTER ADDRESS 1616 CH 48 63 Control Register SPACE 1446 CH 32 47 Control Register 1246 CH 16 31 Control Register A16 1016 CH 0 15 Control Register ADDRESS e e SPACE o e e e O4 16 Status Control Register C00016 0246 Device Type Register 49 152 O00 16 ID Register E1442A A16 REGISTER MAP i Base Address COOO46 Logical Address 64 16 0000 16 or A 49 152 Logical Address 64 10 Wo
33. 1 24 Multiple Module Switchbox Card Numbers Channel addresses channel_list have the form ccnn where cc switch card number 01 99 and nn channel numbers 00 63 You can address single channels ccnn multiple channels ccnn ccnn sequential channels ccnn ccnn groups of sequential channels ccnn ccnn ccnn ccnn or any combination Form C switch channel numbers are 00 through 63 The channels can be addressed using channel numbers or channel ranges For a single module switchbox channel ranges can span across the channels For multiple module switchboxes channel ranges can span across the channels of all modules Use commas to form a channel list or use a colon to form a channel range Only valid channels can be accessed in a channel list or channel range The channel list or channel range must be from a lower channel number to a higher channel number For example CLOS 100 215 is acceptable but CLOS 215 100 generates an error Some example channel lists ranges follow CLOS 100 112 Close channels 00 and 12 on card 01 OPEN 203 210 Open channels 03 and 10 on card 02 OPEN 100 163 Open all channels on card 01 SCAN 100 163 Scan all channels on card 01 SCAN 100 199 Scan all channels on card 01 Chapter 1 Start Up Exercises NOTE Exercise 1 Check Device Chapter 1 Driver NOTE This section provides a set of four start up exercises you can use to quickly get your
34. 15 10 20 30 40 ONINTR 7 CALL Errmsg Ca to print out error message 50 ENABLE INTR7 2 60 70 80 90 100 OUTPUT 70915 SRE 32 Enables the standard event summary bit SRE 110 OUTPUT 70915 ESE 60 Enables all parser generated errors See STATus command figure 120 130 140 190 END 200 210 220 230 240 250 SUB Errmsg Define interrupt service routine 260 DIM A 256 Declare response string 270 CLEAR 70915 Clear the switch module 280 B SPOLL 70915 Fetch status byte 290 REPEAT Repeat 300 OUTPUT 70915 SYST ERR Query for error 310 ENTER 70915 Code A Read response 320 PRINT Code A Print error 330 UNTIL Code 0 Keep querying for an error until error code 0 340 OUTPUT 70915 CLS Clear status registers error queue 350 STOP 360 SUBEND Chapter 2 E1442A Application Examples 47 Scanning with External Instruments Example Scanning with External Device E1406A E1401 Mainframe Scanning Form C switch channels has the same effect as executing multiple CLOSe commands Thus scanning is useful when the outputs from a number of devices under test DUTs are to be measured with an instrument Three examples using BASIC programming language follow This example uses the E1406 Command Module Trig Out port to synchronize the Form C switch channel closures to an external measurement device See Figure 2 2 for typical user connections 3458 Vol
35. ARM COUNt Parameters Comments Example ARM COUNt 56 E1442A Command Reference The ARM subsystem allows a scan list to be scanned multiple times 1 through 32767 with one INITiate command ARM COUNt lt number gt MIN MAX COUNt MIN MAX ARM COUNt lt numbers allows scanning cycles to occur a multiple of times 1 to 32767 with one INITiate command and when INITiate CONTinuous OFF 0 is set Name Type Range of Values Default Value lt number gt numeric 1 32767 MIN MAX 1 Number of Scans Use only values between 1 MIN to 32767 MAX for the number of scanning cycles default is MIN 1 Related Commands ABORT INITiate IMMediate INITiate CONTinuous RST Condition ARM COUNt 1 Setting Ten Scanning Cycles ARM COUN 10 Sets 10 scanning cycles SCAN 100 115 Sets channel list INIT Starts scanning cycle ARM COUNt MIN MAX returns the current number of scanning cycles set by ARM COUNt If a value between MIN and MAX is set that value for ARM COUNTt is returned The optional parameters MIN and MAX allow you to query the module for the these values instead of looking them up in the command reference A 1 is returned for the MIN parameter 32767 is returned for the MAX parameter regardless of the ARM COUNt value set Chapter 3 Chapter 3 Parameters Comments Example Name Type Range of Values Default Value MIN MAX numeric MIN
36. Agilent Technologies E1442A 64 Channel Form C Switch Module User s Manual 444 Agilent Technologies Manual Part Number E1442 90003 Printed September 2012 Printed in Malaysia E0912 NOTICE In August 2014 Agilent Technologies former Test and Measurement business became Keysight Technologies This document is provided as a courtesy but is no longer kept current and thus will contain historical references to Agilent For more information goto www keysight com KEYSIGHT TECHNOLOGIES Contents Agilent E1442A 64 Channel Form C Switch User s Manual AGILENT TECHNOLOGIES WARRANTY STATEMENT cc ceeeesessseceeeeeetees 7 Safety O VOMDOIS serosoa an ar a EEE ATE E E NE 8 EAR TE S A EE E EE 8 Chapter 1 Geine SAPEI aurana aaar Ras Nenana Gus 11 Deme TUR ONE ea AA E N 11 E E E E E E E E E T 1l Switch Pront Panel sic ccstssccasscsseesscisscresissupses staves ssearseiavorvehaseavshesuorsensuunsorewwiee reas 11 ULCER Bock IRAP sieges cis cots ces sunpried sable beg sated er Ek TA PER PELE neds uber splansbenwe 13 Terminal Module Deseripuonts rronin 14 Lonhgunng the nN cas cu sac antes saa te snicen sunneea sins ges aetna he piaraeedeui cea setpoceabas ajay 16 Warnings and Catone 2c iccsecessassecssnssesateissessoereisdeavstavoortscseanssueriesenavensavourecasees 16 Seitine 0e Logical Address secsi irdeni Tr a AA ERa 18 py Rom icra die POOT sirsa a tuet err tater eerare terns ceret 20 Leme tho Imermal BURGE siccaceccieavtadi
37. B lt unmask gt command is executed lt 8192 gt See below lt 16384 gt p 7 H STAT OPER ENAB 256 unmasks bit 8 Scan Complete lt 32768 gt which can set the OPR bit in the Status Byte p P Figure 3 1 E1442A Form C Switch Module Status System Chapter 3 E1442A Command Reference 73 STATus OPER CONDition STATus OPERation CONDition returns the state of the Condition Register in the Operation Status Group The state represents conditions which are part of the instrument s operation The SWITCH driver does not set bit 8 in this register see STAT OPER EVENt STATus OPERation ENABle Parameters Comments Example STATus OPERation ENABle lt number gt sets an enable mask to allow events recorded in the Event Register to send a summary bit to the Status Byte Register bit 7 For Form C switch modules when bit 8 in the Operation Status Register is set to 1 and that bit is enabled by the OPER ENABle command bit 7 in the Status Register is set to 1 Name Type Range of Values Default Value lt number gt numeric 0 through 65535 N A Setting Bit 7 of the Status Register STATus OPERation ENABle 256 sets bit 7 of the Status Register to 1 after bit 8 of the Operation Status Register is set to 1 Related Commands ROUTe SCAN Enable the Status Register STAT OPER ENAB 256 Enables bit 8 of the Operation Status Register to be reported to bit OPR in the Status Register STAT
38. Disabled Figure 1 7 Setting Interrupt Request IRQ Priority 20 Getting Started Chapter 1 Using the Internal The 14424 64 Channel Form C Switch Module contains internal buses to Buses which you can connect any channel contact Figure 1 8 shows channels 0 and 63 and the internal bus structure There is a bus for the common C the normally closed NC and the normally open NO contacts Other jumpers provide the means to connect the NC and NO contacts to a fused 5V pull up voltage or to be connected as pull downs to ground The common can be connected to ground Figure 1 9 shows component jumper locations on the module Module 5V 2 3 3 e T a E o Relay Connections Bus Connections Figure 1 8 Internal Bus Structure Chapter 1 Getting Started 21 Relay Connections Bus Connections Figure 1 9 Internal Bus Component Jumper Locations 22 Getting Started Chapter 1 Installing the Switch The 1442A switch module can be installed in any slot except Slot 0 of ina Mainframe 2 C size VXlbus mainframe See Figure 1 10 for installation steps 1 Set the extraction levers out C AAA except slot 0 until the backplane connectors touch 2 Slide th
39. E00i register address register address A16 location base address register offset 1 1F0000 DE0016 0416 1FDE04 You can read the following Form C switch registers ID Register base 00416 e Device Type Register base 0246 Status Control Register base 0446 e Switch Enable Register for channels 0 15 base 1046 Switch Enable Register for channels 16 31 base 1246 Switch Enable Register for channels 32 47 base 1446 Switch Enable Register for channels 48 63 base 1646 For the Form C switch a read of the ID Register base address 0046 returns FFFF 4 since the switches are manufactured by Hewlett Packard and are A16 only register based devices The Device Type Register base 0246 returns 0228 4g For the Form C switch a read of the Device Type Register base address 0246 returns 0228 4g This indicates it is a model E1442A Each relay requires about 13 msec execution time close to open or open to close during which time the switch is busy A read of the Status Control Register base 0446 returns a 1 in bit 7 when the module is not busy or returns a 0 in bit 7 when the module is busy An interrupt is generated after any of the Switch Enable Registers are written Bit 6 of the Status Register is used to enable disable interrupts from the card If bit 6 is returned as a 0 interrupts are enabled If bit 6 is returned as a 1 interrupts are disabled
40. E1442A 64 Channel Form C Switch operational including Exercise 1 Check Device Driver E1406A only Exercise 2 Query Module Identity Exercise 3 Perform Open Close and Scan Operations Exercise 4 Check for System Errors We recommend you do not make user connections to the switch until you have verified correct switch operation If you have already connected user inputs to the terminal module you may want to remove the terminal module from the switch module while doing these exercises If you use an E1406 Command Module you can check the command module for the correct version of the SWITCH device driver for the E1442A Skip this step and go to Exercise 2 if you do not use an E1406 Command Module Power up the mainframe with the command module installed The command module is the resource manager at logical address 0 and is typically addressed in the mainframe by 70900 Input this BASIC program into your computer 10 DIM A 256 20 OUTPUT 70900 DIAG DRIV LIST 30 ENTER 70900 A 40 PRINT A 50 END RUN the program and look for the device driver SWITCH SWITCHBOX A 08 00 RAM RAM could be FLASH flash ROM depending on where the device driver is loaded DI AGnostic DRI Ver LIST queries the command module at address 70900 for a list of the device drivers loaded in the command module A typical response should be similar to the following and will depend on the specific drivers that were previously loaded in t
41. IT CONT ON Enable continuous scanning SCAN 100 163 Set channel list INIT Start scanning cycle INITiate CONTinuous INITiate CONTinuous queries the scanning state With continuous scanning enabled the command returns 1 With continuous scanning disabled the command returns 0 Example Query Continuous Scanning State INIT CONT ON Enable continuous scanning INIT CONT Query continuous scanning state INITiate IMMediate INITiate IMMediate starts the scanning cycle and closes the first channel in the channel list Successive triggers from the source specified by the TRIGger SOURce command advance the scan through the channel list Comments Starting the Scanning Cycle The INITiate IMMediate command starts scanning by closing the first channel in the channel list A trigger advances the scan through the channel list An invalid channel list generates an error see ROUTe SCAN command Stopping Scanning Cycles See the ABORt command Related Commands ABORt ARM COUNt INITiate CONTinuous TRIGger TRIGger SOURce RST Condition None Example Starting a Single Scan SCAN 100 163 Sets channel list INIT Starts scanning cycle by closing channel 00 and proceeding 62 E1442A Command Reference Chapter 3 OUTPut The OUTPut subsystem enables one trigger line of the E1406 Command Module It also can disable the active line Subsystem Syntax OUTPut ECLTrgn STATe lt mode gt STATe EXTernal STATe l
42. N Reading the Operation Status Register After a Scanning Cycle STAT OPER Returns the bit values of the Standard 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 affects only the enable register by setting all enable register bits to 0 It does not affect either the status byte or the standard event status PRESet does not clear any of the event registers E1442A Command Reference 75 SYSTem Subsystem Syntax The SYSTem subsystem returns the error numbers and error messages in the error queue of a switchbox and returns the types and descriptions of modules cards in a switchbox SYSTem CDEScription lt number gt CTYPe lt number gt CPON lt number gt ALL ERRor SYSTem CDEScription Parameters Comments Example SYSTem CDEScription lt number gt returns the description of a selected module card in a switchbox Name Type Range of Values Default Value lt number gt numeric 1 through 99 N A Form C Switch Module Description For the E1442A SYSTem CDEScription lt number gt returns 64 Channel General Purpose Switch Reading the Description of a Card 1 Module SYST CDES 1 Determine the description SYSTem CPON Parameters SYSTem CPON lt numbers ALL opens all channels of a selected or all modules cards in a switchbox to their power on state Name Type Range of Values Defaul
43. N 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 commercial computer software as defined in DFARS 252 227 7013 Oct 1988 DFARS 252 211 7015 May 1991 or DFARS 252 227 7014 Jun 1995 as a commercial item as defined in FAR 2 101 a or as Restricted computer software as defined in FAR 52 227 19 Jun 1987 or any equivalent agency regulation or contract clause whichever is applicable You have only those rights provided for such Software and Documentation by the applicable FAR or DFARS clause or the Agilent standard software agreement for the product involved Agilent Technologies E1442A 64 Channel Form C Switch Module User s Manual Edition 3 Rev 1 Copyright 1994 1996 2000 Agilent Technologies Inc All rights reserved 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 Edition number increments by 1 whenever the manual is revised Updates which are issued between Editions contain replacement pages to correct or add additional information to the current Edition of the manual Whenever a new Edition is created it will contain all of the Update information for the previous Edition Each new Edition or Update also includes a revi
44. Pullup Configuration 34 Getting Started Chapter 1 Example Divider with Filter Configuration User Wiring To Terminal Module Channel Resistor Solder Holes Channel Configuration Jumpers Channel Number Chapter 1 Any channel can be configured as a resistor divider with a low pass filter connected to the normally open contact of the Form C relay Figure 1 22 shows a typical divider with filter configuration For this example resistor R25 capacitor C25 and SIP resistor pack R24 31 are to be added Set one configuration jumper as shown in Figure 1 22 LP DIV TERMINAL SWITCH MODULE MODULE Channel 25 Channel Capacitor alee S ae Se a eer eS ae Ae f P OO s aja sie aja oja oja a oja ojja aja o D v4 Solder Holes OO e afa ofa afa ofa offa alo ofa ola alo olfa ofo a olo alfa ofa alfa ofa ola afa ofa ofa ale ofa ofo a 2200 o E annn a gt Oe User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 22 Example Divider with Filter Configuration Getting Started 35 Example Differential Any channel can be configured as a diff
45. R ENAB 26fiable Scan Complete Bit to set bit 7 in Status Reg 30 OUTPUT 70915 SRE 128 Enable bit 7 of Status Register to assert SRQ 40 OUTPUT 70915 TRIG SOUR EXT Set to external trigger mode 50 OUTPUT 70915 SCAN 100 147 Select channels to be scanned 60 OUTPUT 70915 INIT Start scanning cycle 70 WHILE NOT BIT SPOLL 70915 7 Waiting for scan complete 80 PRINT DO OTHER OPERATION HEBkter program lines for computer to do other oper 90 END WHILE 100 PRINT INTERRUPT GENERATED Program goes to this line after interrupt is generated lby a completed scanning cycle Chapter 2 E1442A Application Examples 45 Saving and Recalling States This section contains information about saving and recalling a switch module state The switchbox driver can store up to 10 states Saving States The sAv lt numeric_state gt command saves the current instrument state The state number 0 9 is specified in the state parameter The following settings are saved Channel Relay State channels 00 through 63 open or closed e ARM COUNt TRIGger SOURce e OUTPut STATe e INITiate CONTinuous Recalling States The RCL lt numeric_state gt command recalls a previously saved state Enter the number 0 9 in the state parameter of the desired saved state If SAV was not previously executed using the selected number the switch module will configure to the reset values see Table 2 2 NOTE _ Scan lists are not saved when a state is sa
46. RIG SOURC BUS is an incorrect command header must be TRIG SOUR BUS The instrument still functions using the default value TRIG IMMediate To know that an error was reported and your instrument is doing what you intended it to do you must read the error register with a SySTem ERRor command You can insert this program segment at different places in your program to see where the error is generated when debugging your program if it cannot be determined from the error message or by examining the program lines In this case the error is returned as 113 Undefined header which means the command header was incorrectly specified This error is generated by the instrument driver while trying to parse the command the error 113 is documented in the command module manual Chapter 1 Getting Started 41 Notes 42 Getting Started Chapter 1 Chapter 2 E1442A Application Examples Using This Chapter This chapter provides application information and examples for using the E1442A 64 Channel Form C Switch Module in a switchbox The chapter contents are General Scanning Information 0 000000 43 Saving and Recalling States 0200 eee e eee 46 Detecting Error Conditions 0 0 00 eee 46 Scanning with External Instruments 205 48 General Scanning Information This section lists general scanning information for the E1442A module including e Switchbox Definition
47. RIG command to advance the scan when TRIG SOUR BUS or TRIG SOUR HOLD is set The OUTPut command can be used to enable the E1406A Command Module Trig Out port Using the Scan you can use the Scan Complete bit bit 8 in the Operation Status Register Com plete Bit of a switchbox to determine when a scanning cycle completes no other bits in the register apply to the switchbox Bit 8 has a decimal value of 256 and you can read it directly with the STAT OPER command See the STATe OPERationall EVENt command in Chapter 3 for an example When enabled by the STAT OPER ENAB 256 command the Scan Complete bit will be reported as bit 7 of the Status Register Use the GPIB Serial Poll or the IEEE 488 2 Common command STB to read the Status Register When bit 7 of the Status Register is enabled by the SRE Common command to assert a GPIB Service Request SRQ you can interrupt the computer when the Scan Complete bit is set after a scanning cycle completes This allows the computer to do other operations while the scanning cycle is in progress The following example monitors bit 7 in the Status Register to determine when the scanning cycle completes This example uses BASIC as the programming language The computer interfaces with an E1406 Command Module over GPIB The GPIB select code is 7 the GPIB primary address is 09 and the GPIB secondary address is 15 10 OUTPUT 70915 CLS Clear all switchbox status structure 20 OUTPUT 70915 STAT OPE
48. Register Address Base address Register Offset E Figure B 1 Registers within A16 Address Space g E1406 k ADDRESS MAP FFFFFF 16 REGISTER OFFSET 16 BIT WORDS 3E 16 3C 16 e e E0000 46 EAL x e e IFCO 00 16 200000 46 T616 CH 48 63 Control Register 416 CH 32 47 Control Register A16 T216 CH 16 31 Control Register Aad ADDRESS REGISTER 1016 CH 0 15 Control Register ADDRESS SPACE ADDRESS e e SPACE SPACE e e e Of 16 Status Control Register IFOOOO 46 IFCOOO 46 0246 Device Type Register 2 080 768 0016 ID Register 20000016 E1442 IFO000 46 Base Address IFC0001 Logical Address 64 16 A16 REGISTER MAP or 2 080 768 Logical Address 64 10 a 900000 16 Register Address Base address Register Offset iy Figure B 2 Registers within the E1406 A16 Address Space Register Based Programming the E1442A The E1442A Form C Switch Module is a register based slave device There are 64 independent switches on the card which are controlled using the Switch Control Registers There are four register types on this module Appendix B e Identifies Hewlett Packard as the manufacturer and the card is an A16 register based device e Device Type Register Identifies card as an E1442A Status Control Register When read from it is used to return device specific status information When written to it is used to set control bits Register Based Programming 89 Switch Enable Registers These four registers control the
49. SCPI Chapter 1 Commands NOTE Card Numbers This section gives guidelines and examples to program the E1442A 64 Channel Form C switch module using Standard Commands for Programmable Instruments SCPI including Specifying SCPI Commands Start up Exercises To program the E1442A switch using SCPI you must select the computer language interface address and SCPI commands to be used Guidelines to select SCPI commands for the switch follow This discussion applies only to SCPI programming using the switchbox driver version provided with this module See Appendix B for information on register based programming of switch registers To address specific channels within a switch you must specify the SCPI command and switch channel address For the Form C switch use CLOSe lt channel_fist gt to connect the normally open NO terminal to the common C terminal for the channels specified Use OPEN lt channel list gt to connect the normally closed NC terminal to the common C terminal for the channels specified Use SCAN lt channel_list gt to close the set of channels specified one channel at a time The Normally Open NO contact of each Form C relay is open and the Normally Closed NC contact of each Form C relay is closed when the switch is deactivated the Common terminal C is connected to NC at power on after reset or after an open command The switch card number depends on the switchbox configura
50. SYSTem CTYPe 77 SYSTem ERRor 77 TRIGger IMMediate 79 TRIGger SOURCce 80 TRIGger SOURce 81 common commands CLS 83 ESE 83 ESE 83 ESR 83 IDN 83 OPC 83 OPC 83 RCL 83 RST 83 SAV 83 SRE 83 SRE 83 STB 83 TRG 83 TST 83 WAI 83 common commands format 51 common commands reference 83 configuring the Option 010 terminal module 27 configuring the switch 15 16 configuring the terminal modules 23 D detecting error conditions 46 device type register reading 91 Index 101 DISPlay MONitor CARD 58 DISPlay MONitor CARD 59 DISPlay MONitor STATe 59 DISPlay MONitor STATe 60 DISPlay subsystem 58 documentation history 8 E E1442A command reference 51 error conditions detecting 46 error messages 99 100 error types 99 example Set Power On State 77 examples Advancing Scan Using TRIGger 79 Check Device Driver 39 Closing Form C Switch Channels 67 Common Terminal Pullup Configuration 32 Differential Divider or Filter Configuration 36 Divider with Filter Configuration 35 Enable the Status Register 74 Enabling Continuous Scans 62 Enabling the Monitor Mode 60 Enabling Trig Out Port 64 Error Checking Using Interrupts 47 Error Checking Using Polling 46 Low Pass Filter Configuration 31 Normally Closed Terminal Pullup Configuration 33 Normally Open Terminal Pullup Configuration 34 Open Close and Scan Operations 40
51. Te 64 OUTPut subsystem 63 OUTPut TTLTrgn STATe 65 OUTPut TTLTrgn STATe 65 P parameters 53 programming the switch 37 programming register based 87 R reading registers 90 91 recalling states 46 register access command module 90 register access memory mapping 90 register definitions 93 register offset 88 register types 89 register vs SCPI programming 87 register based programming 87 registers addressing 87 registers base address 87 registers reading 90 registers writing 90 91 reset conditions 44 restricted rights statement 7 ROUTE OPEN 67 ROUTe CLOSe 66 CLOSe 67 OPEN 68 SCAN MODE 70 ROUTe CLOSe 66 ROUTe CLOSe 67 ROUTe OPEN 67 ROUTe OPEN 68 ROUTe SCAN 69 ROUTe SCAN MODE 70 ROUTe SCAN MODE 71 ROUTe subsystem 66 S safety symbols 8 saving and recalling states 46 saving states 46 scan complete bit 45 scanning channels 44 scanning trigger sources 45 scanning with external instruments 48 SCPI command reference 53 SCPI commands format 51 SCPI commands quick reference 82 SCPI commands specifying 37 setting interrupt priority 20 setting the logical address 18 specifications 85 specifying SCPI commands 37 start up exercises 39 STATus OPER CONDition 74 STATus OPERation ENABle 74 STATus OPERation ENABle 74 STATus OPERation EVENt 75 STATus PRESet 75 STATus subsystem 72 status control register reading 91 status control regi
52. WRITE 120 4 H frif s FFFF hex to Control Register OUTPUT 70900 VXI READ 120 4 Reads from Status Register ENTER 70900 Status Register ACCeSS _ When using an embedded controller VXI A16 address space is usually with Memory mapped to some block of memory within the controllers addressable i memory space See the manual for the specific embedded controller you are Mapping using to determine where VXI AI6 is mapped There may be other methods Embedded of accessing the VXI backplane The following method shows which Al6 Controller addresses are calculated for a module For example for a C size mainframe with an E1406 Command Module VXI A16 address space starts at F0000 In the E1406 Command Module the A16 space is divided so modules are addressed only at locations beginning with C0001 within A16 Each module is allocated 64 register addresses 4046 The module base address is related to the logical address set by the logical address switch on the module base address logical address i 4016 C000i For the Form C switch the factory set logical address is 120 7846 so to address the Status Control Register of a Form C switch using the E1406 90 Register Based Programming Appendix B Reading the E1442A Registers ID Register Device Type Register Status Control Register Switch Enable Register Writing to E1442A Appendix B Registers Command Module base address 7816 4016 C0001 D
53. ace Selecting the Module to be Monitored Use the DISPlay MONitor CARD lt number gt AUTO command to select the module Monitor Mode on an E1406 Command Module Display A typical display for the E1442A 64 Channel Form C Switch with all channels all relays closed follows The H indicates data is in hexadecimal format Each channel is represented as a bit in the hex value The channels are grouped into four blocks of 16 channels each 15 0 HFFFF 31 16 HFFFF 47 32 HFFFF 63 48 HFFFF Closing only channel 3 would appear as 15 0 H0008 RST Condition DISPlay MONitor STATe OFF 0 An RST also opens all switches on the card A DISP MON ON command following a RST will display the following 15 0 HOOOO 31 16 H0000 47 32 HO000 63 48 H0000 E1442A Command Reference 59 Example Enabling the Monitor Mode DISP MON CARD 2 Selects module 2 in a switchbox DISP MON 1 Turns the monitor mode on DISPlay MONitor STATe DISPlay MONitor STATe queries the monitor mode The command returns a 1 if monitor mode is on or a 0 if monitor mode is off 60 E1442A Command Reference Chapter 3 INITiate The INITiate subsystem selects continuous scanning cycles and starts the scanning cycle Subsystem Syntax INiTiate CONTinuous lt mode gt CONTinuous IMMediate INITiate CONTinuous INITiate CONTinuous lt mode gt enables or disables continuous scanning cycles for the switchbox The setting of this command
54. ances scan to channel 101 Steps 2 6 are automatically repeated for channels 101 102 AOIRA NO 10 OUTPUT 722 TRIG EXT Configure voltmeter 20 OUTPUT 70915 OUTP ON Enable Trig Out port 30 OUTPUT 70915 TRIG SOUR EXT Event In triggering 40 OUTPUT 70915 SCAN 100 102 Scan channels 00 02 50 OUTPUT 70915 INIT Enable scan 60 FOR Chan 1 to 3 70 PRINT Channel Chan Result 80 NEXT Chan 90 OUTPUT 70915 RST Reset module and open last switch closed 100 END Example This example discusses synchronizing the switch to other instruments when Synchronizing the making measurements The following example uses the switch module to switch a signal to be measured by a multimeter The program verifies that Form C Switch the switching is complete before the multimeter begins a measurement The measurement setup consists of a Digital Multimeter with a GPIB select code 7 primary address 09 and secondary address 03 addressed as 70903 and an E1442A with a GPIB select code 7 primary address 09 and secondary address 15 addressed as 70915 10 OUTPUT 70915 CLOS 100 Close channel 100 20 OUTPUT 70915 OPC Wait for completion of close command 30 ENTER 70915 Opc_value Read response to OPC command 31 32 Channel is closed and the measurement can be made 33 40 OUTPUT 70903 MEAS VOLT DC Make VM measurement 50 ENTER 70903 Meas_ value Read the measurement 60 PRINT
55. andard Event Power On Conditions Power On 0 RQS Request Service User Request 1 OPR Operation Status Command Error 2 C Condition Register Automatically Execution Error 3 EV Event Register aaa Device Dependent Error 4 4 EN Enable Register Query Error 5 SRQ Sevice Request Request Control 6 Set by OPC Operation Complete 7 F Related Commands R are OPC and WAI Ey EN 7 Status Byte Register a STB SPOLL m SRE lt unmask gt SRE Summary 0 Output Buffer Bit i 2 QUE 3 m MAV 4 ESB 5 ROSH 6 p OPR SRQ ROUTING Status EN handled by your Byte application is SRQ program or Operation Status Register passed to the Request Service controller via m STATus OPERation CONDition GPIB STATus OPERation EVENt m STATus OPERation ENABle 0 lt 1 gt unmask examples 1 lt 2 gt a i ares 2 4 unmask 3 A Register decimal lt 92 gt Summary bit weight 4 lt 16 gt Bit OR 5 lt 32 gt a 6 lt 64 gt Operation Complete 8 lt 256 gt HAs OPR T lt 128 gt Scan 8 lt 256 gt ESE 61 unmasks standard event register bits 0 Complete lt 512 gt 2 3 4 and 5 ESE 1 only unmasks bit 0 lt 1024 gt SRE 128 unmasks the OPR bit in the status lt 2048 gt byte register This is effective only if the lt 4096 gt STAT ENA
56. annels 00 02 50 OUTPUT 70915 INIT Enable scan 60 FOR l 1 TO 3 Start count loop 70 ENTER 722 A Enter reading 80 PRINT A 90 TRIGGER 70915 Advance scan 100 NEXT Increment count 110 END This example uses the E1406A Command Module Trig Out and Trig In ports to synchronize Form C switch channel closures with an external measurement device See Figure 2 3 for typical user connections E1442A 3458 Voltmeter Ext Out VM Comp Ext Trig Figure 2 3 Example Scanning Using Trig Out and Trig In Ports For this example the mainframe and measurement instrument are connected via GPIB with a mainframe at address 709 and the measurement instrument at address 722 The Form C switch logical address is 120 secondary address 120 8 15 and therefore addressed through the mainframe at 70915 With this example since synchronization with the computer cannot be ensured the external instrument must have internal memory capacity to store the readings Also you must add the appropriate instrument commands to line 10 The sequence of operation is E1442A Application Examples 49 INIT line 50 closes channel 100 Closure causes trigger to be output from Trig Out port Trigger to Ext Trig In initiates channel 100 measurement Channel 100 measurement result stored in instrument Trigger is then output from Measurement Complete port Trigger to Event In port adv
57. aracters long but typically is much shorter Clearing the Error Queue An error number message is removed from the queue each time the SYSTem ERRor query command is sent The errors are cleared first in first out E1442A Command Reference 77 Example 78 E1442A Command Reference When the queue is empty each following SYSTem ERRor query command returns 0 No error To clear all error numbers messages in the queue execute the CLS command Maximum Error Numbers Messages in the Error Queue The queue holds a maximum of 30 error numbers messages for each switchbox If the queue overflows the last error number message in the queue is replaced by 350 Too many errors The least recent error numbers messages remain in the queue and the most recent are discarded Reading the Error Queue SYST ERR Query the error queue Chapter 3 TRiGger The TRIGger subsystem commands controls the triggering operation of the Form C switch modules in a switchbox Subsystem Syntax TRiGger IMMediate SOURCe lt source gt SOURCce TRiIGger IMMediate TRIGger IMMediate causes a trigger to occur when the defined trigger source is TRIGger SOURce HOLD or TRIGger SOURCce BUS This can be used to trigger a Suspended scan operation Comments Executing the TRIGger IMMediate Command A channel list must be defined in the ROUTe SCAN lt channel_list gt command and an INITiate IMMediate command must be executed before TRIGger IMM
58. ard number 00 99 and nn channel number 00 63 and 99 See the comments for explanation of using the special case of 99 in the channel list Name Type Range of Values Default Value lt channel_list gt numeric cc00 cc63 cc99 N A Special Case of Using Upper Range 99 in the Channel List Specifying the last channel as 99 for example 100 199 automatically scans all channels on the card number specified by cc Defining the Channel List When executing ROUTe SCAN the channel list is checked for valid card and channel numbers An error is generated for an invalid channel list Scanning Operation With a valid channel list INITiate IMMediate starts the scanning cycle and closes the first channel in the channel list Successive triggers from the source specified by TRIGger SOURce advance the scan through the channel list Stopping Scan See the ABORt command Related Commands CLOSe OPEN SCAN MODE TRIGger TRIGger SOURce RST Condition All channels open Scanning Using External Devices This BASIC language example shows how to scan channels via GPIB using the E1406 Command Module and a 3457A Digital Multimeter This example uses the command module s Trig Out port to synchronize the switch module in a switchbox to the multimeter The trigger pulse from the Trig Out port triggers the multimeter for a measurement See Chapter 2 for typical user connections to the Form C switch module The addres
59. asive cleaners Do not use an excessively wet cloth or allow excessive water to migrate inside the module Let the panel dry thoroughly before reinstalling the module Getting Started 17 Setting the Logical The E1442A switch module logical address is set with the Logical Address Address Switch LADDR on the module The factory setting for the LADDR is 120 Valid addresses are from 1 to 254 The module logical address value is set by the sum of the decimal values of the switches that are CLOSED Example Setting a For example in Figure 1 5 switches 3 4 5 and 6 are CLOSED Since the LADDR decimal value of switch 3 8 the value of switch 4 16 the value of switch 5 32 and the value of switch 6 64 the LADDR set 8 16 32 64 120 Logical Address Switch Location LADDR 120 DSHFWOPAD ANNAN WN93a OPEN Switch Set To 0 OFF CLOSED Switch Set To 1 On Figure 1 5 Setting the Logical Address LADDR Determining the LADDR To determine the logical address switch LADDR setting for your application you must first decide whether the switch is to be used as a single module switchbox or as a multiple module switchbox When using an E1406 Command Module the LADDR value must be a multiple of 8 if the module is the first module in a switchbox used with a VXlbus command module using SCPI commands Single module switchbox The module must be addresse
60. ations and associated pullup voltage for optional standup resistors Figure 1 18 Example Low Pass Filter Configuration Getting Started 31 Example Common Any chanrel can be configured as a pullup or pulldown resistor connected Terminal Pullup to any of the contacts of the Form C relay Figure 1 19 shows a typical Configuration channel 25 with the pullup attached to the COM contact For this example the SIP resistor pack RP24 31 is to be added Set two configuration jumpers as shown in Figure 1 19 PU COM a TERMINAL i SWITCH gt V24 31 MODULE MODULE Vpullup So el I RP l 24 31 COM j COM 0 NC C _ X NO O Channel 25 No 1 1 Pullup User Voltage Wiring To COM Terminal Module i NO _ Channel Resistor al gt z22 22222222 Solder Holes per ee Sle foo Ao fo S S pS feyS i Channel Capacitor Sa e a s e o se aloo ce oJ o o oslo i eave Solder Holes Y ool e fe efe efe sfe sfe ofe sle ole ele gs O Oje aja ele ele ale sie ale oja aja ole ole ajj BRIDGE w a olo a D REMOVE C H EXCEPT FOR 5 L PAS Channel Configuration Jumpers a emp S gt mw i a alate nnn
61. d erases the current SCAN list when executed This command erases the current SCAN channel list SCAN MODE must be followed by a ROUTe JSCAN command to re establish a scan channel list Name Range of Values Default Value Type lt mode gt discrete NONE NONE VOLT Order of Command Execution If used ROUTe SCAN MODE must be executed before ROUTe SCAN lt channel_list gt because SCAN MODE erases the current SCAN list The SCAN MODE command is not needed for Form C Switch operation Chapter 3 Related Commands SCAN RST Condition ROUTe SCAN MODE NONE ROUTe SCAN MODE ROUTe SCAN MODE returns the current state of the scan mode The command returns NONE or VOLT to indicate which mode the scan is set Chapier 3 E1442A Command Reference 71 STATus The STATus subsystem reports the bit values of the Operation Status Register in the command module It also allows you to unmask the bits you want reported from the Standard Event Register and to read the summary bits from the Status Byte Register Subsystem Syntax STATus OPERation CONDition ENABle lt number gt ENABIe EVENt PRESet Comments The STATus system contains four software registers that reside in a SCPI driver not in the hardware see Figure 3 1 Two registers are under IEEE 488 2 control the Standard Event Status Register ESE and the Status Byte Register STB The Operational Status bit OPR
62. d so it can be recognized as an instrument such as 48 56 etc e Multiple module switchbox In this configuration two or more modules form the switchbox The first module must be addressed so it can be recognized as an instrument and the other modules in the group have addresses sequentially following the first module such as 120 121 122 18 Getting Started Chapter 1 Chapter 1 Figure 1 6 shows some examples of single and multiple module switchbox arrangements For the multiple module switchbox top figure the channel address channel_list has the form ccnn where cc card number and nn channel number For example channel 45 on card number 02 is addressed by 245 The multiple and single module switchbox bottom figure has two switchboxes a multiple module switchbox at logical address 120 anda single module switchbox at address 48 The single module switchbox has channel addresses of the form 1nn Its card number is 1 MULTIPLE MODULE SWITCHBOX Command Module Switch Laddr 120 Switch Laddr 121 Switch Laddr 122 Switch Laddr 123 Switch Laddr 124 im ml Card Number 01 02 03 04 05 Valid Numbers 01 99 Channel Addresses 1nn 2nn 3nn 4nn 5nn etc where nn is the channel number MULTIPLE and SINGLE MODULE SWITCHBOXES 121 Switch Laddr 120 Switch Laddr Switch Laddr 122 Switch Laddr 48 Command Module Multimeter Laddr 24
63. dress 120 The logical address divided by 8 the secondary address 120 8 15 Thus the instrument address is 70915 10 DIM A 256 20 OUTPUT 70915 IDN 30 ENTER 70915 A 40 PRINT A 50 END RUN the program The response should be as follows The device driver revision must be A 08 00 or later HEWLETT PACKARD SWITCHBOX 0 A 08 00 This exercise performs close open and scanning operations and queries the status byte Now that communication with the module has been established you can perform some close open and scan operations and use the SCAN COMPLETE bit in the Status Operation Event register bit 8 Operation Event Register bit 8 designates scan complete when high Reading this register clears the register all bits to zero This bit is monitored by serial polling SPOLL the status byte register bit 7 in line 70 You may want to look at the STATUS command in Chapter 3 which graphically shows the relationship of these two bits and all status registers relating to this module Input this BASIC program into your computer Do not input the comments preceeded by Dimension array to hold data entered OUTPUT 70915 CLOSE 100 101 102 163 Close all channels OUTPUT 70915 RST OUTPUT 70915 STAT OPER ENAB 256 Open all channels by resetting module Enable bit 8 of status operation event register OUTPUT 70915 SCAN 100 163 Scan all channels OUTPUT 70915 INIT WHILE NOT BIT SPOLL 70915 7
64. e Command Description ABORt Aborts a scan in progress ARM COUNt lt number gt MIN MAX Multiple scans per INIT command COUNt MIN MAX Queries number of scans DISPlay MONitor CARD lt number gt AUTO Selects module to be monitored MONitor CARD Queries the card number MONitor State ON OFF 1 0 Selects monitor mode MONitor State Queries the monitor mode INITiate CONTinuous ON OFF Enables disables continuous scanning CONTinuous Queries continuous scan state IMMediate Starts a scanning cycle OUTPut ECLTrgn STATe ON OFF 1 0 Enables disables the specified ECL trigger line ECLTrgn STATe Queries the specified ECL trigger line EXTernal STATe ON OFF 1 0 Enables disables the Trig Out port on the E1406 EXTernal STATe Queries the external state TTLTrgn STATe ON OFF 1 0 Enables disables the specified TTL trigger line TTLTrgn STATe Queries the specified TTL trigger line ROUTe CLOSe lt channel _list gt Closes channel s CLOSe lt channel_list gt Queries channel s closed OPEN lt channel_list gt Opens channel s OPEN lt channel_list gt Queries channel s opened SCAN lt channel_list gt Defines channels for scanning SCAN MODE NONE VOLT Sets scan mode has no effect on Form C operation SCAN MODE Queries the scan mode STATus OPERation CONDition Returns contents of the Operation Condition Register OPERation ENABle Enables events in the Operation Event Register to be reported OPERation ENABle Ret
65. e lt source gt can be BUS EXT HOLD or IMM Optional Parameters Parameters shown within square brackets are optional parameters Note that the brackets are not part of the command and are not sent to the instrument If you do not specify a value for an optional parameter the instrument chooses a default value For example consider the ARM COUNt MIN MAX command If you send the command without specifying a parameter the present setting is returned If you send the MIN parameter the command returns the minimum count available If you send the MAX parameter the command returns the maximum count available Be sure to place a space between the command and the parameter Linking Commands Linking IEEE 488 2 Common Commands with SCPI Commands Use a semicolon between the commands For example RST OUTP ON or TRIG SOUR HOLD TRG Linking Multiple SCPI Commands Use both a semicolon and a colon between the commands For example ARM COUN 1 TRIG SOUR EXT SCPI Command Reference This section describes the Standard Commands for Programmable Instruments SCPI commands for the E1442A Commands are listed alphabetically by subsystem and within each subsystem There are two methods to send commands to the instrument The first method is from a controller over the GPIB interface This method will be referred to as the GPIB interface in the command reference The second method of sending commands is from a
66. e E1442A into any slot i 3 Seat the E1442A into the mainframe by pushing in the extraction levers A Tighten the top and bottom screws to secure the E1442A to the mainframe To remove the E1442A from the mainframe reverse the procedure Figure 1 10 Installing the Switch in a VXI Mainframe Configuring the Terminal Modules This section gives guidelines to configure the Standard Form C Chapter 1 Getting Started 23 Wiring the Terminal Modules 24 Getting Started Configuration Option 010 Form C Configuration and the Option 020 Form A Configuration terminal modules including e Wiring the Terminal Modules e Attaching Terminal Modules to the Switch Module e Configuring the Option 010 Terminal Module Figure 1 11 and Figure 1 12 show steps to wire terminal module s Maximum terminal wire size is No 16 AWG Wire ends should be stripped 5mm 0 2 in and tinned When wiring all channels use a smaller gauge wire No 20 22 AWG 1 Remove clear cover 2 Remove and retain wiring exit panel Remove 1 of the 3 A K A Release screws 3 wire exit panels B Press tab forward and release 3 Attach wires Insert wire into terminal Tighten screw Channel BE Number Use wire size 16 26 AWG with VW1 Flammability Rating D Solder field wiri
67. ea reed ea Ea EAA ENEE 21 Installing the Swreh in a Mamitame icici ieaisiconmicaniraninienndeenaaanaeuan 23 Conhgurnme the Torminal Modules swiss consxaucnasvennnarsnannes vans hurannercevaavenninanrens EARNER 23 Weme ihe Terminal Moduls cousine aaa 24 Attaching Terminal Modules to the Switch Module ssseeneneeeeeeeserreeersreesss 26 Configuring the Option 010 Terminal Module 0 ee ceeceseeeseceeceeeeeneeenes at Programming the Switeh s sesssisccsse tasecrssedauensetouresss varndedvoustsavoreortsaced ISET E EUNE EEES 37 Speciiymg SCPI Commands cp scsscciussceennsersarcesntaves uated REE U e Aue eri Start Up ExXerCisE5 reiniciei eier O e En tans e 39 Chapter 2 E1442A Application Examples sssiisipissisinsesssinsoneisnnibisap rinisin onisras rensar ki nsin rV 43 Len T C E eoin a A E 43 Generi Sceniin gt MEO saai NEN A 43 MCU D OR Demi oi arara N 43 TO CRD R EAN AA A A N A E A 44 Reser Condon saron A A ee 44 Using Scanning Trigger SOUrCES 65 ccscsosscestens sents ssceeierasoetaiesadersanienssedlessscoiscasobis 45 Lising the Scan Complete Bil iscisecsia ces pntees aiii ie aia aaia 45 Saving and Recalling States sicscissicsvavscdscesdedsaoedeicsanted ctensed aces sasseeene legge EEN ERSE 46 Sna SEE esac e iaia iba cea Nusa EEE 46 Recalling States socrecsiennionn ensena E 46 Derccins Emor Condi oE sonrisa Ee A E A A A 46 Es tmple Error Checking Usine Polling ossusrescineecaoroneii anea ia 46 Example Error Checking Using itertr pts ws cpcsnnsscs
68. eak a EEL NNE N AANEEN EAA 65 REUT oa or Semen rea ENED nT RETR Teer e rr eras tere Geer 66 2 6 Bc IC LOGS ee ne ee enor cee eee eer eT Rca eee eee ree 66 UC e a 67 ROU IOPE cer ARET EE 67 ROL COPE ncicstethcteslatescbiatiicttota malate data oun ecabacadieieetseesotaaste 68 POE A uiniiunseuiu hawaiian aw a ae 69 ROUTe SCAN MODE saniat gues puppaes peiaetes pease us puma sawded Geass widen das fords 70 ROUTE I SCAN MODET csissececansecccoaresesuaresecearesscoarniod rE OISEAN 71 cl Bo E AEEA A A IT N AEE IE EL EES PEE A EEA A EAE E AE ET AA A Ta STA TUSOFPER T ONDION serrie na E T 74 STA Tus OPE Rattan BNA BC suresi a p d a EGA 74 STA TUSOPERIOT ENABIET a cosdccasdacroes ere sanecscenpoaraatnnsssanricceneosegesansenewersaars 74 STATUSOPER GO EVEN sins uscmnnsieccsunrciaarncrs mire ENE TS STA MISPRE So osipun tata ea ess aa ae 715 Oe Lae A i Sake asda ra i oe eee 76 Soren C DES p E ana A 76 EEE E E E a E EA A AA NRA E E E A T AE N ENA 76 SAST CTI Pe uniu a eee TI Sa o lem LERO grener a ee eee ae ILE E E Seats E E N E Slates sen E E E E ite 79 TRE IM Mediate cinri n EEEE 79 RUC nE B ee pte E spa E A A T A EA 80 TRIGger SOURCE siseseid nnii eid aaia RAT 81 Appendix A SOCCIICAIUNS io 85 4 Contents Appendix B Register Based Programming ssscccccsssssssssssssssssssssssscsssccssescssssssssessssscssssssseasesees 87 ADOM TS p ana E E 87 Register Programming vs SCPI Programming csscescesseceseceeseoeesneeeee
69. ediate can trigger the switchbox HOLD or BUS Source Remains If selected the TRIGger SOURce HOLD or TRIGger SOURce BUS commands remain in effect after triggering the switchbox with the TRIGger IMMediate command Related Commands INITiate ROUTe SCAN TRIGger SOURce Example Advancing Scan Using the TRIGger Command TRIG SOUR HOLD Sets trigger source to hold SCAN 100 163 Sets channel list INIT Starts scanning cycle loop statement Starts count loop TRIG Advances channel list to next channel increment loop Increments count loop Chapier 3 E1442A Command Reference 79 TRIGger SOURce Parameters Comments 80 E1442A Command Reference TRIGger SOURce lt source gt specifies the trigger source to advance the scanning channel list Name Type Range of Values BUS discrete TRG command EXTernal discrete Trig in port HOLD discrete Hold triggering ECLTrgn numeric n Oor1 TTLTrgn numeric n 0 thru 7 IMMediate discrete Immediate triggering Enabling the Trigger Source The TRIGger SOURce command only selects the trigger source The INIT IMMediate command enables the trigger source The trigger source must be selected using the TRIGger SOURce command before executing the INIT command One Trigger Input Selected at a Time Only one input ECLTrg 0 or 1 TTLTrg 0 1 2 3 4 5 6 or 7 or EXTernal can be selected at one time Enabling a different trigger source will automatically disable t
70. eeeneesers 87 Addressme the OES assis ec sassy salty ad sas A Erni eared cea nina eee ia EE 87 The Base Addr ss siccscessoncsestavssnstssxsensctasaisccnnveeseunaniune aussie eia 87 Resister ETD arien a suites seine uetel Sits atk cea rodent eujaui 88 Register Based Programming the B1442A cssccscccsscsessscssserscesseesacessunsscveosarsocesvassees 89 Reading or Waiting to EIMA Registers o scscessucestssansseccdansecscasrcessuuscessatsseronuee 90 Register Access with Logical Address Command Module 0 0 0 0 eeeeeeeeeee 90 Register Access with Memory Mapping Embedded Controller 00 0 90 Reading he EIA Reate acts sanctus ease seasusaciseueddarnbeiatdunraauasadinteiions 91 Wains to EMA ROS TSICES scisicsiudsncasenspasnesvnrasnnnetertarrnetentrean DAE EER ERNER 91 Resister Beis LE RS eee tameeeemstete rete ure nie nsec rr cementupinere mete rr cr teen E 93 SWE i ENDIE RE N E araa a a fics aay E A A patna 94 FProsronimus PAAD onana 95 Appendix C PIADA Error MOSS mit vaccicsncnieiediodieu a 99 Eo Ey PE oaa A A sueelseuas 99 Error CSSA OES oerion erorico rraren nOr EA EEN EER 100 TIER a siecssesccssresscorsasccsorisnceniesuneevesoesossbencansuvescertessnsersaieensvecassuverespvisisennisvennetbincastveseberbere 101 Contents 5 6 Contents AGILENT TECHNOLOGIES WARRANTY STATEMENT AGILENT PRODUCT E1442A 64 Channel Form C Switch Module DURATION OF WARRANTY 1 year 1 Agilent Technologies warrants Agilent hardware accessories and s
71. end the preceding implied command In this case the instrument assumes you intend to use the implied command and it responds as if you had sent it Examine the ROUTe subsystem shown below ROUTe CLOSe lt channel_list gt CLOSe lt channel_list gt OPEN lt channel_list gt OPEN lt channel_list gt SCAN lt channel_list gt MODE NONE VOLT MODE The root command ROUTe is an implied command indicated by square brackets lt gt To close relays in a channel list you can send either of the following command statements ROUTe CLOSe 100 107 201 225 orCLOSe 100 107 201 225 These commands function the same closing channels 00 through 07 on card 1 and channels 01 and 25 on card 2 52 E1442A Command Reference Chapter 3 Parameters ParameterTypes The following table contains explanations and examples of parameter types you might see later in this chapter Type Explanations and Examples Numeric Accepts all commonly used decimal representations of numbers including optional signs decimal points and scientific notation Examples are 123 123E2 123 1 23E2 123 1 23E 2 1 23000E 01 Special cases include MIN MAX and INF Boolean Represents a single binary condition that is either true or false ON OFF 1 0 Discrete Selects from a finite number of values These parameters use mnemonics to represent each valid setting An example is the TRIGger SOURce lt source gt command wher
72. erential divider with optional filter Divider or Filter connected to the normally open contact of the Form C relay The differential Configuration divider requires that two channels be used Figure 1 23 shows channel 24 and 25 in this configuration with the optional filter For resistors R24 and R25 add a cross channel capacitor for a differential filter or add a cross channel resistor for a differential divider No configuration jumpers are required TERMINAL i SWITCH MODULE MODULE Sf lt ON a O Channel 25 ae SS Cross Channel Rorc COM NC NO i O Channel 24 User Wiring To Terminal Module o Channel Resistor Solder Holes Channel Capacitor a es c e Solder Holes 29fe efe efe ele efe ele Channel Configuration Jumpers DO am NTN Channel Number Differential filter Add Capacitor Differential Divider Add Resistor User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Figure 1 23 Example Differential Divider or Filter Configuration 36 Getting Started Chapter 1 Programming the Switch Specifying
73. erminal module Do not touch any circuit element connected to the terminal module if any other connector to the terminal module is energized to more than 30 VAC RMS or 60 VDC MAXIMUM VOLTAGE CURRENT Maximum allowable voltage per channel terminal to terminal or terminal to chassis for the switch module is 150 Vdc or 150 Vac RMS 210 Vac peak Maximum current per channel is 1 Adc or 1 Aac RMS non inductive Maximum transient voltage is 1300V peak Maximum power input is 40 Wdc or 40 VA per channel 320 Wdc or 320 VA per module Exceeding any limit or use outside the parameters specified in Appendix A and by these warnings and cautions may damage the switch module and impair the protection provided by the module Chapter 1 N CAUTION CAUTION CAUTION Chapter 1 WIRING TERMINAL MODULE When wiring to the terminal connectors on a terminal module do not exceed a 5mm strip back of insulation to prevent the possibility of shorting to other wiring on adjacent terminals STATIC SENSITIVE DEVICE Use anti static procedures when removing configuring cleaning and installing a module Since the switch module is susceptible to static discharges do not install the module without its metal CLEANING THE FRONT PANEL Disconnect power from the mainframe and remove the module to be cleaned Clean the front panel with a soft cloth dampened either in clean water or in water containing a mild detergent Do not use abr
74. eturns FFFF 4g Programming Example Beginning of Program Appendix B Program Main This program resets the E1442A closes channels and reads the switch s relay control registers opens channels and scans all 64 channels on the module 7 include lt sicl h gt include lt stdio h gt include lt stdlib h gt include lt math h gt include lt dos h gt function prototypes void reset_sw char base_ addr void delay unsigned milliseconds void main void double Idexp double i int exp char base_addr int j k unsigned short chan_0_15 reg chan_16_31_reg First 32 chan unsigned short chan_32_47_reg chan_48_63_reg Sec 32 chan unsigned short id_reg dt_reg ID and device type unsigned short stat_reg Status Register create and open a device session INST e1442a e1442a iopen vxi 120 map the E1442A registers into user memory space base_addr imap e1442a _MAP_VXIDEV 0 1 NULL Register Based Programming 95 clear the user screen clrscr reset the E1442A reset_sw base_addr Read ID and Device _ read the switch s ID and Device Type registers Type Registers id_reg iwpeek unsigned short base_addr 0x00 dt_reg iwpeek unsigned short base_addr 0x02 printf ID register 0x 4X nDevice Type register 0x 4X n id_reg dt_reg Read Status Register read the
75. gt boolean 0 1 ON OFF OFF 0 Comments When OUTPut TTLTrgn STATe ON is set a trigger pulse occurs each time a channel is closed during a scan OUTPut TTLTrgn STATe OUTPut TTLTrgn STATe queries the state of the TTL trigger bus line specified by n A 1 is returned if the line is enabled A 0 is returned if the line is disabled Valid values for n are 0 through 7 Chapter 3 E1442A Command Reference 65 ROUTe Subsystem Syntax ROUTe CLOSe Parameters Comments 66 E1442A Command Reference The ROUTe subsystem controls switching and scanning operations for the Form C switch modules in a switchbox ROUTe CLOSe lt channel_list gt CLOSe lt channel_list gt OPEN lt channel_list gt OPEN lt channel_list gt SCAN lt channel_list gt MODE lt mode gt MODE ROUTe CLOSe lt channel_list gt activates the Form C switch relay for the channels specified in the channel_list The relay s Common C terminal is connected to the Normally Open NO terminal The channel_list is in the form ccnn ccnn ccnn or ccnn ccnn where cc card number 00 99 and nn channel number 00 63 Name Type Range of Values Default Value lt channel_list gt numeric cc00 cc63 N A Special Case of Using Upper Range 99 in the Channel List Specifying the last channel as 99 for example 100 199 automatically closes all channels on the card number specified by cc
76. he active input For example if TTLTrg1 is the active input and TTLTrg4 is enabled TTLTrg1 will become disabled and TTLTrg4 will become the active input Using the TRIG command You can use the TRIGger IMMediate command to advance the scan when TRIGger SOURce BUS or TRIGger SOURce HOLD is selected Using External Trigger Inputs With TRIGger SOURce EXTernal selected only one switchbox at a time can use the external trigger input at the E1406 Command Module Trig In port Using TTL or ECL Trigger Bus Inputs These triggers are from the VXI backplane trigger lines ECL 0 1 and TTL O 7 These may be used to trigger the SWITCH driver from other VXI instruments Using EXTernal TTLTrgn ECLTrgn Trigger Inputs After using TRIGger SOURce EXT TTLTn ECLTn the selected trigger source remains assigned to the SWITCH driver until it is relinquished through use of the TRIG SOUR BUS HOLD command While the trigger is in use by the SWITCH driver no other drivers operating on the E1406 Command Module will have access to that particular trigger source Likewise other drivers may consume trigger resources which may deny Chapter 3 Example Example TRIGger SOURce Example Chapier 3 access to a particular trigger by the SWITCH driver You should always release custody of trigger sources after completion of an activity by setting the trigger source to BUS or HOLD TRIG SOUR BUS HOLD Using Bus Triggers To trigger the switchbox
77. he command module SYSTEM E1406A A 08 00 ROM A 04 02 ROM VOLTMTR E1326A A 06 00 ROM SWITCH SWITCHBOX A 08 00 RAM COUNTER E1332A A 04 02 ROM E1333A A 04 02 ROM DIG_1 0 E1330A A 04 03 ROM D A E1328A A 04 02 ROM The SWITCH version A 08 00 driver or later must appear in this list for the E1442A If not you must load a new device driver To load a new version device driver you need your device driver version A 08 00 disk and the Installing SCPI Device Drivers part number E1401 90022 For the latest information on instrument drivers see http www agilent com find inst_drivers Getting Started 39 Exercise 2 Query Module Identity NOTE Exercise 3 Perform Open Close and Scan DIM A 256 Operations Turn mainframe power OFF If you want to set a logical address other than the factory set address of 120 see Setting the Logical Address to set a different logical address for the switch Install the switch module in the mainframe See Installing the Switch in a Mainframe for steps to install the switch If you have already connected user inputs to the terminal module you may want to disconnect the terminal module from the switch module for this exercise See Attaching Terminal Modules to the Switch Module to disconnect the terminal module Turn mainframe power ON and enter the following BASIC program into your computer For this program the GPIB Select Code 7 the primary address 09 and the logical ad
78. ir parameters The following example shows part of a typical subsystem ROUTe CLOSe lt channel_list gt SCAN lt lt channel_list gt MODE ROUTe is the root command CLOSe and SCAN are second level commands with parameters and MODE is a third level command E1442A Command Reference 51 Command Separator A colon always separates one command from the next lower level command as shown below ROUTe SCAN MODE Colons separate the root command from the second level command ROUTe SCAN and the second level from the third level SCAN MODE Abbreviated Commands The command syntax shows most commands as a mixture of upper and lowercase letters The uppercase letters indicate the abbreviated spelling for the command For shorter program lines send the abbreviated form For better program readability you may send the entire command The instrument will accept either the abbreviated form or the entire command For example if the command syntax shows MEASure then MEAS and MEASURE are both acceptable forms Other forms of MEASure such as MEASU or MEASUR will generate an error You may use upper or lowercase letters Therefore MEASURE measure and MeAsUFE are all acceptable Implied Commands Implied commands are those which appear in square brackets in the command syntax Note that the brackets are not part of the command and are not sent to the instrument Suppose you send a second level command but do not s
79. losed channel 96 Register Based Programming Appendix B Appendix B Reset Function iwpoke unsigned short base_addr 0x10 0 scan channels 16 31 register offset 12 for k 0 k15 k iwpoke unsigned short base_addr 0x12 Idexp 1 k delay 50 sets all bits to 0 to open last closed channel iwpoke unsigned short base_addr 0x12 0 scan channels 32 47 register offset 14 for k 0 k15 k iwpoke unsigned short base_addr 0x14 Idexp 1 k delay 50 set all bits to 0 to open last closed channel iwpoke unsigned short base_addr 0x14 0 scan channels 48 63 register offset 16 for k 0 k15 k iwpoke unsigned short base_addr 0x16 Idexp 1 k delay 50 set all bits to 0 to open last closed channel iwpoke unsigned short base_addr 0x16 0 close session iclose e1442a H end of main SE EET E TEE TREE T RAN A eee eee void reset_sw char base_addr reset the module open all relays write a 1 to status bit 0 delay 100 ms for reset then set bit to 0 to allow closing of switches this function resets the switch module iwpoke unsigned short base_addr 0x04 1 delay 100 iwpoke unsigned short base_addr 0x04 0 Register Based Programming 97 98 Register Based Programming Appendix B Appendix C E1442A Error Message
80. mber in a switchbox with the DISPlay MONitor CARD command Selecting the Present Module to be Monitored AUTO Use the DISPlay MONitor AUTO command to select the last module addressed by a switching command e g ROUTe CLOSe RST Condition DISPlay MONitor CARD AUTO Select Module 2 in a Switchbox for Monitoring DISP MON CARD 2 Selects module 2 in a switchbox Chapter 3 DISPlay MONitor CARD DISPlay MONitor CARD queries the setting of the MONitor CARD command and returns the module in a switchbox to be monitored DISPlay MONitor STATe Chapier 3 Parameters Comments DISPlay MONitor STATe lt mode gt turns the monitor mode on or off When monitor mode is on the RS 232 terminal display presents an array of values indicating the open close state of every switch on the module This display is dynamically updated each time a switch is opened or closed Name Type Range of Values Default Value lt mode gt boolean 0 1 ON OFF OFF 0 Monitoring Switchbox Channels DISPlay MONitor STATe ON or DISPlay MONitor STATe 1 turns the monitor mode on to show the channel state of the selected module DISPlay MONitor STATe OFF or DISPlay MONitor STATe 0 turns the monitor mode off Typing in another command on the terminal will cause the DISPlay MONitor STATe to be automatically set to OFF 0 NOTE Use of the OFF parameter is useful only if the command is issued across the GPIB interf
81. nd returns the current state of the hardware controlling the specified channel It does not account for a failed switch element or a relay closed by direct register access see Appendix B Query Form C Switch Channel Closure CLOS 100 215 100 closes channel 00 of Form C switch 1 215 closes channel 15 of Form C switch 2 CLOS 215 Query channel 215 ROUTe OPEN lt channel_list gt de energizes the relays for the channels specified in the channel_list connecting the Common C terminal to the Normally Closed NC terminal The channel_list is in the form ccnn ccnn ccnn or ccnn ccnn where cc card number 00 99 and nn channel number 00 63 Name Type Range of Values Default Value lt channel_list gt numeric cc00 cc63 N A Using Upper Range 99 in the Channel List Specifying the last channel as 99 for example 100 199 automatically opens all channels on the card number specified by cc E1442A Command Reference 67 Example ROUTe OPEN Comments Example 68 E1442A Command Reference Opening Channels To open a single channel use ROUTe JOPEN ccnn for multiple channels use ROUTe OPEN ccnn ccnn sequential channels use ROUTe JOPEN ccnn ccnn a group of sequential channels use ROUTe JOPEN ccnn ccnn cenn ccnn or any combination of the above Opening Order A list of channels will not all open simultaneously The order channels open
82. ng directly to solder eyes OPTION 020 TERMINAL MODULE OPTION 010 TERMINAL MODULE NOTE Solder eyes will accept a dual 96 pin DIN C A connector Then install connectors on terminal module Solder wires to Solder Lug See Figure 1 1 for Channel COM NC and NO pin out from the switch module ki STANDARD TERMINAL MODULE Figure 1 11 Wiring the Terminal Modules cont d on Figure 1 12 Chapter 1 Chapter 1 4 Replace wiring exit panel and route wiring Cut required holes in panels for wire exit Keep wiring exit panel hole as small as possible Tighten wraps to secure wires 5 Replace Clear cover A Hook the top cover tabs onto the fixture B Press down and 4 tighten screws Figure 1 12 Wiring the Terminal Modules contd from Figure 1 11 Getting Started 25 Attaching Terminal see Figure 1 13 for steps to attach a terminal module to the switch module Modules to the Switch Module i 1 Extend the extraction levers on the terminal module Extraction Lever extraction levers za me E1442A Extraction Lever 2 Align the terminal module connectors to the E1442A connectors 3 Apply gentle pressure to attach i the terminal module to the E1442A 4 Push in the extraction levers
83. ns 0 2 0 0 0 0 c eee eee 92 Programming Example 000 cee eee eee 94 Register Programming vs SCPI Programming NOTE The E1442A 64 Channel Form C Switch Module is a register based module that does not support the VXlbus word serial protocol When a SCPI command is sent to the Form C switch the E1406 Command Module parses the command and programs the switch at the register level If SCPI is used to control this module register programming is not recommended The SCPI driver maintains an image of the card state The driver will be unaware of changes to the card state if you alter the card state by using register writes Register based programming is a series of reads and writes directly to the Form C switch registers This increases throughput speed since it eliminates command parsing and allows the use of an embedded controller Also if slot 0 the resource manager and the computer GPIB interface are provided by other devices a C size system can be downsized by removing the command module Addressing the Registers The Base Address Appendix B Register addresses for register based devices are located in the upper 25 of VXI A16 address space Every VXI device up to 256 devices is allocated a 32 word 64 byte block of addresses With seven registers the E1442A Form C Switch Module uses seven of the 64 addresses allocated When reading or writing to a switch register a hexadecimal or decimal register
84. ols ele olo ole alle ale alle allo olle ofs als ols a eH o 0l 00 NakGoWOO gt z S NNNNUND PU NC ol mel ace Configuration oe oE oe O SUE eu nol fa ener Jumpers a opo O faafe aje a a pei Q000 a alo allo a Channel 31 5000 Ja ale ola a Number 7 OOOO Ja alo afa u HA L KA a aA oy saa lt 3 lt I lt D LLI SUS D O97 N FD NO 4 D AN Na i my Pwo FF a np wo 8 2 User Supplied Resistor Packs SIP Locations and associated pullup voltage for optional standup resistors Chapter 1 Figure 1 16 Example Straight Through Configuration Getting Started 29 Example Resistor Any channel can be configured as a resistor divider connected to the Divider Configuration normally open NO contact of the Form C relay The user supplied SIP resistor can be replaced by a standing resistor with it inserted in the solder hole of the SIP and a solder hole directly across from it The row of solder holes is connected to V24 31 Figure 1 17 shows the voltage solder holes and identifies the voltage to which the row is connected For this example resistor R25 and SIP resistor pack RP24 31 are to be added Set one configuration jumper as shown in Figure 1 17 LP DIV TERMINAL SWITCH MODULE MODULE Channel 25 User NC Terminal Module Channel Resistor Solder Holes
85. parameter list is entered error 1500 External trigger source already Assigning an external trigger source to a switchbox when the trigger allocated source has already been assigned to another switchbox 1510 Trigger source non existent Selected trigger source is not available on this platform e g some triggers are not available on VXI B size mainframes 2000 Invalid card number Addressing a module card in a switchbox that is not part of the switchbox 2001 Invalid channel number Attempting to address a channel of a module in a switchbox that is not supported by the module e g channel 99 of a multiplexer module 2006 Command not supported on this Sending a command to a module card in a switchbox that is card unsupported by the module 2008 Scan list not initialized Executing a scan without the INIT command 2009 Too many channels in channel Attempting to address more channels than available in the switchbox list 2010 Scan mode not allowed on this The selected scanning mode is not allowed with this module or you card have misspelled the mode parameter see SCAN MODE command 2011 Empty channel list No valid channels are specified in the lt channel_list gt 2012 Invalid Channel Range Invalid channel s specified in SCAN lt channel_list gt command Attempting to begin scanning when no valid channel list is defined 2017 Config error 17 Slot 0 functions Attempt to run a downloaded scan list with ARM COUNt set to a value disabled other
86. rmally only non conductive Common to NO or NC gt 40pF Channel to Channel gt 30pF pollution occurs Occasionally however a temporary conductivity caused by condensation must be expected Relay Life typical No load gt 10 operations Max load gt 10 operations Appendix A Specifications 85 1 Pollution Any addition of foreign matter solid liquid or gaseous ionized gases that may produce a reduction of dielectric strength or surface resistivity Pollution Degree For the purpose of evaluating clearances the shortest distance in air between two conductive parts Pollution Degree 1 and Pollution Degree 2 are recognized for use in the micro environment Pollution Degree 1 No pollution or only dry non conductive pollution occurs The pollution has no influence Pollution Degree 2 Normally only non conductive pollution occurs Occasionally however a temporary conductivity caused by condensation must be expected Clearance The shortest distance in air between two conductive parts 86 Specifications Appendix A Appendix B Register Based Programming About This Appendix This appendix contains the information you can use for register based programming of the E1442A The contents include Register Programming vs SCPI Programming 85 Addressing the Registers 00 e ee eee eee 85 e Register Based Programming the E1442A 88 Register Definitio
87. s Error Types Appendix C Table C 2 lists the error messages generated by the E1442A Form C Switch module firmware when programmed by SCPI Errors with negative values are governed by the SCPI standard and are categorized in Table C 1 Error numbers with positive values are not governed by the SCPI standard See the E1406 Command Module User s Manual for further details on these errors Table C 1 Error Types Range Error Types Description 199 to 100 Command Errors syntax and parameter errors 299 to 200 Execution Errors instrument driver detected errors 399 to 300 Device Specific Errors instrument driver errors that are not command nor execution errors 499 to 400 Query Errors problem in querying an instrument E1442A Error Messages 99 Error Messages Table C 2 Error Messages Code Error Message Potential Cause s 211 Trigger ignored Trigger received when scan not enabled Trigger received after scan complete Trigger too fast 213 Init Ignored Attempting to execute an INIT command when a scan is already in progress 222 Data out of range Parameter value is outside valid range 224 Illegal parameter value Attempting to execute a command with a parameter not applicable to the command 240 Hardware error Command failed due to hardware problem 310 System error Internal driver This error can result if an excessively long
88. s pulsed each time a channel is closed during scanning When disabled the Trig Out port is not pulsed The output pulse is a 5 V negative going pulse Trig Out Port Shared by Switchboxes Once enabled the Trig Out port may be pulsed by the switchbox each time a channel is closed in a switchbox during scanning To disable the output for a specific switchbox send the OUTPut EXTernal STATe OFF or OUTPut EXTernal STATe 0 command for that switchbox The OUTP OFF command must be executed following use of this port to allow other instrument drivers to control the Trig Out port Related Commands ROUTE SCAN TRIGger SOURce RST Condition OUTPut EXTernal STATe OFF port disabled Enabling Trig Out Port OUTP ON Enables Trig Out port for pulse output OUTPut EXTernal STATe Example 64 E1442A Command Reference OUTPut EXTernal STATe queries the present state of the Trig Out port on the E1406 Command Module The command returns 1 if the port is enabled or 0 if disabled Query Trig Out Port State OUTP ON Enable Trig Out port for pulse output OUTP STAT Query port enable state Chapter 3 OUTPut TTLTrgn STATe OUTPut TTLTrgn STATe lt mode gt enables ON or 1 or disables OFF or 0 the TTL trigger bus pulse on the VXI bus line specified by n There are eight TTL trigger lines on the VXI bus n 0 through 7 Parameters Name Type Range of Values Default Value n numeric 0 through 7 N A lt mode
89. sed copy of this documentation history page Edition ter ae tin a a Resa Gl ih phe hee aed July 1994 Edim 2 sch a ea a Boba nb sch de Sense oe BRS eshte weds March 1996 Fdition3 AAT ie Rie eh Ge EEA Pe eas oa Md toned October 2000 Edition 3 R v Taisa teh ee E e E Sa ee os See September 2012 Safety Symbols Instruction manual symbol affixed to product Indicates that the user must refer to Ny Alternating current AC the manual for specific WARNING or CAUTION information to avoid personal Di DC injury or damage to the product z a irect current DO Warning Risk of electrical shock Indicates the field wiring terminal that must be connected to earth ground before operating the equipment protects against electrical shock in case of fault Calls attention to a procedure practice or condition that could cause bodily injury or death WARNING Calls attention to a procedure practice or or Frame ie ground Prise a CAUTION condition that could possibly cause damage to CONDECIS TO E COP eR ene a ane equipment 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 to comply with these precautions or with specific warnings elsewhere in this manual violates safety standards of design manufacture and intended use of the product Agilent Technologies assumes no liability for the customer
90. seescsrecesvcesnerssivenscnsianraterecranien 47 Scamine With Extena MENUEN cniinn Glance neal sine 48 Bxample Scanning with Extemal Devise rassiarsissenritiuii i a 48 Example Scanning Using Trig Out and Trig In Ports seese 49 Example Synchronizing the Form C SwitCh sccccsiccsscassesssesvesosscesvseaseensscieevsessoers 50 Contents 3 Chapter 3 E1442A Command Referente issicssissisresssssssasisssssnisaresanssssasisoassniinneanis iiaia osasia 51 Paa eee EEN AT EAEE EA AA AR E E A 54 PERT PEE AEEA E E A ANO hee es 56 A A E e EE ARNEE 56 ARM OUNT ranoni anna a 56 DEPI oie cle wade secede bs secyabejutateslanioned isc bad usps nines Medea iouerel yoann sat plasetes 58 DISPlay MONttor CARD scusscisscsscsaieavsisiaonsiasesnesaseasteivoanesascaveccasoreacssuonons rerusterees 58 POTS lay Naar CARD areitan Re ia ves a EE U AAEE EETA 59 DISPla y MONM CSTAT E resice r EE E 59 DI PREMON SIATE a atauctnainGa tase 60 fi BE PS 5 EEEE AA EE E AAE AAE P EE A A A AAE AI T E A 61 INT AE CON TR earan AEEA OE REARS 61 UN ae TS iaeiae 62 MT Das RPT aaa oe an iede nates eases a awed Maecenas 62 OE a 63 OUTP ECL Tren STATE sccccsscosasiseosasasss cedustededarspsctenoosadauns iudeascntaseastecrmiubeats 63 OUTP ECCE EA O TATE T eeror ikine iE N EAr EENAA E E EAEE 63 OUT pat EX Termal STA Te soune 64 OUTP EX Temali STATE acn a 64 OUTP TTL iren STA e sie ccsscssssessesadesscacdassencersesteasscsniewoondeavseiausaeieuacioart 65 OUTP TILE STATE air
91. ses used are 70900 for the E1406 Command Module 722 for the 3457A Multimeter and 70915 for the switchbox E1442A Command Reference 69 ROUTe SCAN MODE NOTE Parameters Comments 70 E1442A Command Reference 10 OUTPUT 722 TRIG EXT DCV Sets multimeter to external trigger and to measure dc volts Enables Trig Out port on command module Sets switchbox to receive bus triggers Sets switchbox to measure voltage during scanning Selects the channel list Starts scanning cycle Starts count loop 20 OUTPUT 70915 OUTP ON 30 OUTPUT 70915 TRIG SOUR BUS 40 OUTPUT 70915 SCAN MODE VOLT 50 OUTPUT 70915 SCAN 100 163 60 OUTPUT 70915 INIT 70 FOR 1 TO 64 80 ENTER 722 A Enters voltmeter reading into variable A 90 PRINT A Prints reading in variable A 100 TRIGGER 70915 Triggers the switchbox to advance the channel list 110 NEXT Increments count 120 END ROUTe SCAN MODE lt mode gt sets the Form C switch channels defined by the ROUTe SCAN lt channel_list command for no measurements The SWITCH device driver for the E1442A also supports Form C switches which use this command to close appropriate tree relays for a specific kind of measurement such as 2 wire and 4 wire ohms that require different tree relay closures For compatibility in use with the switchbox device driver the E1442A accepts the SCAN MODE command but the command has no effect on Form C operation It is important to note that the comman
92. status on fuse F4 This is a user installed component required to provide the 5V pullup voltage to the module s internal bus for the NC and NO contacts A 0 indicates the fuse is not installed or the fuse is blown if installed A 1 indicates you previously installed the fuse and it is good Writes to the Switch Enable Registers base 1046 through base 1646 enable you to open or close the desired channel For example write a 1 to bit 2 of the Switch Enable Register base 1046 to close channel 02 Or write a 0 to bit 15 of the register at base 1646 to open channel 63 All relays are non latching and will open during a power down A switch is open when contact is made between the normally closed NC contact and common C A switch is closed when contact is made between the normally open NO contact and common C Any combination of open or closed states is allowed at one time for all channels on the module Appendix B NO COM J NC Relay position after CLOSE command Write a 1 to the register bit to close the relay NO COM NC Relay position after OPEN command Write a 0 to the register bit to open the relay Register Definitions Address b 00 6 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Read Manufacturer ID Returns FFFFh Hewlett Packard A16 only register based device
93. ster writing 92 switch block diagram 13 configurations 15 description 11 front panel 11 installing in mainframe 23 programming 37 switch block diagram 13 switch configurations 15 switch description 11 switch enable register reading 91 switch enable registers writing 92 94 switch front panel 11 switchbox definition 43 switchbox definition 43 SYSTem CDEScription 76 SYSTem CPON 76 SYSTem CTYPe 77 SYSTem ERRor 77 SYSTem subsystem 76 7 terminal module descriptions 14 terminal modules attaching 26 configuring 23 wiring 24 TRIGger IMMediate 79 TRIGger SOURce 80 TRIGger SOURce 81 TRIGger subystem 79 W WARNINGS 8 warnings and cautions 16 warranty statement 7 wiring the terminal modules 24 writing to registers 90 91 Index 103 104 Index
94. t Value lt number gt numeric 1 through 99 N A 76 E1442A Command Reference Chapter 3 Comments Example SYSTem CTYPe Parameters Comments Example SYSTem ERRor Chapier 3 Comments Differences Between RST and CPON SYSTem CPON only opens all channels of a selected module or all modules in a switchbox RST opens all channels of all modules in a switchbox and also sets all other settings to their power on states Set All Channels on Module 1 to Power on State SYST CPON 1 Sets module 1 channels to power on state open SYSTem CTYPe lt numbers returns the module card type of a selected module in a switchbox Name Type Range of Values Default Value Form C Switch Module Model Number For the E1442A SYSTem CTYPe lt number gt returns HEWLETT PACKARD E1442A 0 A 08 00 where the four fields of the response are 1 manufacturer 2 model number 3 serial number always 0 and 4 SWITCH firmware revision Reading the Model Number of a Card 1 Module SYST CTYP 1 Determine the model number SYSTem ERRor returns the error numbers and corresponding error messages in the error queue of a switchbox See Appendix C for a listing of the switchbox error numbers and messages Error Numbers Messages in the Error Queue Each error generated by a switchbox stores an error number and corresponding error message in the error queue Each error message can be up to 255 ch
95. t attempt internal service or adjustment unless another person capable of rendering first aid and resuscitation is present DO NOT substitute parts or modify equipment Because of the danger of introducing additional hazards do not install substitute parts or perform any unauthorized modification to the product Return the product to Agilent for service and repair to ensure that safety features are maintained Declaration of Conformity Declarations of Conformity for this product and for other Agilent products may be downloaded from the Internet There are two methods to obtain the Declaration of Conformity Go to http regulations corporate agilent com DoC search htm You can then search by product number to find the latest Declaration of Conformity e Alternately you can go to the product web page www agilent com find E1442A click on the Document Library tab then scroll down until you find the Declaration of Conformity link Notes Chapter 1 Getting Started Using This Chapter This chapter shows how to get started using the E1442A 64 Channel Form C Switch Module It gives guidelines to configure install and program the module Chapter contents include Switch Description 000 c cece eee 11 Configuring the Switch 2 2 0 0 0 cc eee 16 e Configuring the Terminal Modules 204 23 Programming the Switch 0 00000 eee eee eee 37 Switch Description The E1442A
96. t mode gt STATe TTLTrgn STATe lt mode gt STATe OUTPut ECLTrgn STATe OUTPut ECLTrgn STATe lt mode gt enables ON or 1 or disables OFF or 0 the ECL trigger bus pulse on the VXI bus line specified by n There are two ECL trigger lines on the VXI bus allowing valid values for n to be 0 and 1 Parameters Name Type Range of Values Default Value n numeric Oor1 N A lt mode gt boolean 0 1 ON OFF OFF 0 Comments When OUTPut ECLTrgn STATe ON is set a trigger pulse occurs each time a channel is closed during a scan OUTPut ECLTrgn STATe OUTPut ECLTrgn STATe queries the state of the ECL trigger bus line specified by n A 1 is returned if the line is enabled A 0 is returned if it is disabled Valid values for n are 0 and 1 Chapter 3 E1442A Command Reference 63 OUTput EXTernal STATe Parameters Comments Example OUTPut EXTernal STATe lt mode gt enables or disables the Trig Out port on the E1406A Command Module OUTPut EXTernal STATe ON 1 enables the port and OUTPut EXTernal STATe OFF 0 disables the port Name Type Range of Values Default Value lt mode gt boolean 0 1 ON OFF OFF 0 Abbreviated Syntax OUTPut subsystem commands EXTernal and STATe are optional subcommands The OUTPut command can be abbreviated by executing OUTPut ON or OUTPut OFF Enabling Trig Out Port When enabled the Trig Out port i
97. tage High to Low Any Terminal to Chassis 150VDC 150VDC 150VAC RMS 150VAC RMS 210VAC Peak 210VAC Peak Power Up Down States All Open Typical Time to Open Close a Channel 13 msec Module Size Device Type C register based Maximum with internal jumpers installed or use of Option 010 terminal module High to Low Any Terminal to Chassis 60VDC 60VDC 30VAC RMS 30VAC RMS 42VAC Peak 42VAC RMS Installation Category IC 1 Connectors Used P1 and P2 Number of Slots 1 VXIbus Interface Capability Interrupter D16 Maximum Current per switch 1A DC or 1A AC RMS Interrupt Level 1 7 selectable Maximum Power Per Switch 40W DC 40VA AC Per Module 320W DC 320VA AC Power Requirements Peak Module Current Voltage 5V 12V IPM 0 10A 0 24A Dynamic Module Current Voltage 5V 12V IDM 0 11A 0 01A Thermal Offset lt 70 uV per channel Watts Slot 1 0 Closed Channel Resistance gt 1 5Q typical gt 13 50 at end of relay life Maximum Transient Voltage 1300V Insulation Resistance between any two points gt 10 Q at 40 C 65 RH gt 108Q at 25 C 40 RH Operating Temperature 0 to 55 C Storage Temperature 40 to 75 C Bandwidth 3dB at 10 MHz Operating Humidity 40 C and 95 RH Crosstalk Channel to Channel Operating Location Intended for indoor use only gt 100 kHz gt 70dB gt 10 MHz gt 30dB Capacitance IEC Pollution Degree 2 No
98. terminal and the trigger source is HOLD or BUS send the ABORt command to halt the scan If the scan was started from the terminal and some other trigger source is being used a Ctrl C will send an interface CLEAR to the instrument and abort the scan Sending Ctrl R also sends an interface CLEAR to the instrument and additionally performs a reset RST on the instrument See the Command Reference in the command module s user s manual for details on the terminal interface If the scan was started from the GPIB interface but you want to stop it by using the terminal first make sure that the correct instrument SWITCH at desired logical address is selected by using the terminal soft keys Then send a Ctrl R This will send an interface CLEAR to the GPIB task but will not place the instrument in the reset state with respect to the GPIB task These actions will occur regardless of the trigger source setting Chapter 3 NOTE Clearing the interface using a Ctrl C from the terminal during a scan leaves the last channel it closed in the closed position and does not set the Scan Complete status bit Related Commands ARM INITiate CONTinuous ROUTe SCAN TRIGger Example Stopping a Scan with ABORt TRIG SOUR BUS Bus is trigger source INIT CONT ON Sets continuous scanning SCAN 100 115 Sets channel list INIT Starts scanning cycle ABOR Aborts scan in progress Chapter 3 E1442A Command Reference 55 ARM Subsystem Syntax
99. tion single module or multiple module set for the switches Leading zeroes can be ignored for the card number See Setting Logical Address in this chapter for more information on setting logical addresses and switchbox configurations For a single module switchbox the card 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 module with the next lowest logical address is card number 02 etc For example assume three Form C switches are configured to form a multiple module switchbox instrument with logical addresses of 120 121 and 122 as shown in Figure 1 24 Since card number 01 is assigned to the module with the lowest logical address card number 01 is assigned to the card at logical address 120 Card number 02 is assigned to the card at address 121 and card number 03 is assigned to the card at address 122 Getting Started 37 Card Number 01 Switch Module Command Module Logical Address 120 Secondary Address 15 Card Number 02 Switch Module Logical Address 121 Card Number 03 Switch Module Logical Address 122 Channel Addresses 38 Getting Started Note Physical placement of the Module in the Logical Address order is not required but is recommended Figure
100. tioning i Rn Circuitry COM Option 020 Form A Screw Channel Terminal Module AV 00 Ko Load 2 Note COM This is a Form A gt NC switch configuration There is no terminal module connection to the relay s NC contact Figure 1 4 Terminal Module Configurations Chapter 1 Getting Started 15 Configuring the Switch Warnings and Cautions CAUTION 16 Getting Started This section gives guidelines to configure the switch including the following items See Configuring the Terminal Modules for information on configuring the terminal modules e Warnings and Cautions Setting the Logical Address Setting Interrupt Priority e Using the Internal Bus Installing the Switch in a Mainframe You must observe the warnings and cautions that follow in addition to the general warnings and cautions in the front matter in this manual when installing configuring or removing the module SHOCK HAZARD Only qualified service trained personnel aware of the hazards involved should install configure or remove the module Disconnect all power sources from the mainframe the terminal module and installed modules before installing or removing a module SHOCK HAZARD When handling user wiring connected to the terminal module consider the highest voltage present accessible on any terminal SHOCK HAZARD Use wire with an insulation rating greater than the highest voltage which will be present on the t
101. tmeter HI NLO Ext Out 3 VM Comp HI LO G Ext Trig Figure 2 2 Example Scanning with an External Device 48 E1442A Application Examples For measurement synchronization the E1406A Trig Out port is connected to the external instrument 3458 Voltmeter External Trigger In port For this example the mainframe and instrument are connected via GPIB with the mainframe at address 709 and the measurement instrument at address 722 The Form C switch is at logical address 120 secondary address 15 and therefore address through the mainframe at address 70915 The measurements are transferred directly to the computer Appropriate instrument commands must be added to line 10 Also you may need to add a WAIT statement as line 65 for long measurements The sequence of operations is INIT line 50 closes channel 100 Closure causes trigger output from the Trig Out port Trigger to Ext Trig In initiates channel 100 measurement Result is sent to the computer lines 60 80 TRIGGER line 90 advances the scan to channel 101 Steps 2 5 are repeated for channels 101 102 OoahWND Chapter 2 Example Scanning Using Trig Out and Chapter 2 Trig In Ports E1406A E1401 Mainframe 10 OUTPUT 722 TRIG EXT Configure instrument 20 OUTPUT 70915 OUTP ON Enable Trig Out port 30 OUTPUT 70915 TRIG SOUR BUS GPIB bus triggering 40 OUTPUT 70915 SCAN 100 102 Scan ch
102. upplies against defects in materials and workmanship for the period specified above If Agilent receives notice of such defects during the warranty period Agilent will at its option either repair or replace products 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 to defects in material and workmanship when properly installed and used If Agilent receives notice of such defects during the warranty period 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 reasonable time to repair or replace any product to a condition as warranted customer will be entitled to a refund of the purchase price upon prompt return 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 delays Agilent 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
103. urns the mask value set by the ENABle command OPERation EVENt Returns the contents of the Operation Event Register PRESet Enables Register bits to 0 SYSTem CDEScription lt number gt Returns description of module in a switchbox CTYPe lt number gt Returns the module type CPON lt number gt ALL Opens all channels on specified module s ERRor Returns error number message in a switchbox Error Queue TRIGger IMMediate Causes a trigger to occur SOURce BUS Trigger source is TRG Trigger source is Trig In on the E1406 Holds off triggering Trigger source is the internal triggers Trigger is the VXlbus ECL trigger bus line n Trigger is the VXlbus TTL trigger bus line n Queries scan trigger source Chapter 3 IEEE 488 2 Common Commands Reference The following table lists the IEEE 488 2 Common commands accepted by the E1442A 64 channel Form C Switch Module The operation of some of these commands is described in Chapter 2 of this manual For more information on Common commands refer to the user s manual for your mainframe or to the ANSI IEEE Standard 488 2 1987 The common commands RCL SAV and TST do specific actions with the E1442A as listed in the following table Command Command Description CLS Clears all status registers see STATus OPERation EVENt and clears the error queue ESE lt unmask gt Enables Standard Event ESE Enables Standard Event Query
104. us OPERation ENABle Comments Example 74 E1442A Command Reference STATus OPERation ENABle returns which bits in the Event Register Operation Status Group are unmasked Output Format Returns a decimal weighted value from 0 to 65 535 indicating which bits are set to true The value returned is the value set by STAT OPER ENAB lt number gt command However the maximum decimal weighted value used in this module is 256 bit 8 set to true Query the Operation Status Enable Register STAT OPER ENAB Query the Operation Status Enable Register Chapter 3 STATus OPERation EVENt Comments Example STATus PRESet Chapier 3 STATus OPERation EVENt returns which bits in the Event Register Operation Status Group are set The Event Register indicates when there has been a time related instrument event Setting Bit 8 of the Operation Status Register Bit 8 Scan Complete is set to 1 after a scanning cycle completes Bit 8 returns to 0 after sending the STATus OPERation EVENt command Returned Data after Sending the STATus OPERation EVENt Command The command returns 256 if bit 8 of the Operation Status Register is set to 1 The command returns 0 if bit 8 of the Operation Status Register is set to 0 Event Register Cleared Reading the STATus OPERation EVENt register with the STATus OPERation EVENt command clears it ABORting a Scan ABORting a scan will leave bit 8 set to 0 Related Commands ROUTe SCA
105. ved You must re enter your scan list after recalling a state Detecting Error Conditions There are two general approaches to error checking polling and using interrupts This section describes these approaches and shows an example of each approach Example Error The simplest but most time consuming approach to error checking is to ask Checking Using the instrument whether there are errors at every step of the switching process This is called polling and is illustrated in the following example Polling 10 DIM Err 256 20 OUTPUT 70915 CLOS 101 Close channel 1 switch 30 OUTPUT 70915 SYST ERR Query for error 40 ENTER 70915 Err Read response 50 IF VAL Err gt 0 THEN f an error is found Err not 0 60 PRINT Error Err Print the error 70 STOP Quit if error encountered 80 ENDIF 90 PROGRAM CONTINUES 46 E1442A Application Examples Chapter 2 Example Error The second approach to error checking involves the use of interrupts The Checking Using following program is a method of checking for errors using interrupts as you program the switch module The program monitors the switch s Standard Interrupts Event Status Register for an error condition If no errors occur the switch module functions as programmed If errors do occur the switch module interrupts the computer and the error codes and messages are read from the error queue This BASIC programming example has a single switch module at address 709
106. when specified from a single command is not guaranteed Use sequential OPEN commands if needed Related Commands ROUTe CLOSe ROUTe JOPEN RST Condition All Form C switch channels are open Opening Form C Switch Channels This example opens channel 00 of a card number 1 Form C switch module and channel 63 of a card number 2 Form C switch module in a single switchbox OPEN 100 263 100 opens channel 00 of Form C switch 1 263 opens channel 63 of Form C switch 2 ROUTe OPEN lt channel_list gt returns the current state of the channel queried The channel_listis in the form ccnn The command returns 1 if the channel is in the NC state C connected to NC or returns 0 if the channel is in the NO state C connected to NO If a list of channels is queried a comma delineated list of O or 1 values is returned in the same order of the channel list Query is Software Readback The ROUTe OPEN command returns the current state of the hardware controlling the specified channel It does not account for a failed switch element Query Form C Switch Channel Open State OPEN 100 263 100 opens channel 00 of Form C switch 1 263 opens channel 63 of Form C switch 2 OPEN 263 Query channel 263 Chapter 3 ROUTe SCAN Parameters Comments Example Chapier 3 ROUTe SCAN lt channel_list gt defines the channels to be scanned The channel_listis in the form ccnn ccnn ccnn or ccnn ccnn where cc c
107. with TRIGger SOURce BUS selected use the IEEE 488 2 Common command TRG or the GPIB Group Execute Trigger GET command Trig Out Port Shared by Switchboxes See the OUTPut command Related Commands ROUTe SCAN TRIGger ABORt RST Condition TRIGger SOURce IMMediate Scanning Using External Triggers In the following example the trigger input is applied to the E1406 Command Module Trig In port TRIG SOUR EXT Sets trigger source to external SCAN 100 163 Sets channel list INIT Starts scanning cycle trigger externally Advances channel list to next channel Scanning Using Bus Triggers TRIG SOUR BUS Sets trigger source to bus SCAN 100 163 Sets channel list INIT Starts scanning cycle TRG Advances channel list to next channel TRIGger SOURce returns the current trigger source for the switchbox Command returns either BUS EXT HOLD TTLTO 7 ECLTO 1or IMM for trigger sources BUS EXTernal HOLD TTL Trigger ECL Trigger ECL Trigger or IMMediate respectively Query Trigger Source TRIG SOUR EXT Sets trigger source to external TRIG SOUR Queries trigger source returns E1442A Command Reference 81 SCPI Commands Quick Reference The following table summarizes the SCPI Commands for the E1442A 64 Channel Form C Switch Module used in a switchbox SOURce EXTernal SOURce HOLD SOURCce IMMediate SOURce ECLTrgn SOURce TTLTrgn SOURce 82 E1442A Command Referenc

Download Pdf Manuals

image

Related Search

Related Contents

Brennenstuhl 1172600 halogen lamp  Eco-250™ User Manual  Philips myLiving  Triarch 32761-41 User's Manual  pcie-tools.com  User manual for T06A - Bea-fon  1 - Moxa  Untitled - Skylanders  plc-xl51a_sm17.91 MB    

Copyright © All rights reserved.
Failed to retrieve file