《FLUKE PM6680B, 81, 81R, 85, 85R PROG 电路图.pdf》由会员分享,可在线阅读,更多相关《FLUKE PM6680B, 81, 81R, 85, 85R PROG 电路图.pdf(276页珍藏版)》请在收音机爱好者资料库上搜索。
1、Timer/Counter/ Analyzers PM6680B, PM6681, PM6681R, PM6685 * Read Chapter 3 Introduction to SCPI for more information. ?Non-printable Characters: Two non-printable characters are used: ?indicates the space character (ASCII code 32). ?_ indicates the new line character (ASCII code 10). ?Specified Expr
2、essions: Symbols and expressions that are further specified elsewhere in this manual are placed between the signs. For example . The following explanation is found on the same page: “Where is a four-digit num- ber between 0.1 and 8*10-9. ?Alternative Expressions Giving Different Result: Alternative
3、expressions giving different results are separated by |. For example, On|Off means that the function may be switched on or off. ?Grouping: Example:FORMat?ASCII|REAL specifies the command header FORMat followed by a space character and either ASCII or REAL. ?Optionality: An expression placed within i
4、s op- tional. Example: :VOLT:FREQuency means that the command FREQuency may or may not be preceded by :VOLT. ?Repetition: An expression placed within can be repeated zero or more times. ?Equality: = Equality is specified with = Example: = , Mnemonic Conventions ?Truncation Rules Allcommandscanbetrun
5、catedto shortforms. The truncation rules are as follows: The shortform is the first four characters of the command. If the fourth character in the command is a vowel, then the shortform is the first three characters of the command. This rule is not Getting Started Manual Conventions 1-3 used if the
6、command is only four charac- ters. If the last character in the command is a digit, then this digit is appended to the shortform. Examples: LongformShortform :MEASURE:MEAS :NEGATIVE:NEG :DREGISTER0:DREG0 :EXTERNAL4:EXT4 The shortform is always printed in CAPI- TALS in this manual: :MEASure, :NEG- at
7、ive, :DREGister0, :EXTernal4 etc. ?Example Language Small examples are given at various places in the text. These examples are not in BASIC or C, nor are they written for any specific controller. They only contain the characters you should send to the counter and the responses that you should read w
8、ith the controller. Example: SENDMEAS:FREQ? This means that you should program the controller so that it addresses the counter and outputs this string on the GPIB. READ1.234567890E6 This means that you should program the controller so that it can receive this data from the GPIB, then address the cou
9、nter and read the data. Setting Up the Instrument Setting the GPIB Address The address switches on the rear panel of the counter are set to 10 when it is deliv- ered. The address used is displayed when the instrument is turned on. If you want to use another bus address, you can set these switches to
10、 any address between 0 and 30 as shown in the follow- ing table. Address Switch Settings Address Switch Settings 0000001610000 1000011710001 2000101810010 3000111910011 4001002010100 5001012110101 6001102210110 7001112310111 8010002411000 9010012511001 10010102611010 11010112711011 12011002811100 13
11、011012911101 14011103011110 1501111 1-4 Setting Up the Instrument Getting Started The address can also be set via a GPIB command or from the AUX MENU on the PM6680B/1/5. The set address is stored in nonvolatile memory and re- mains until you change it. Power-on When turned on, the counter starts wit
12、h the setting it had when turned off. ?Standby When the counter is in REMOTE mode, you cannot switch it off. You must first enable Local control by pressing LO- CAL. Testing the Bus To test that the instrument is operational via the bus, use *IDN? to identify the in- strument and *OPT? to identify w
13、hich options are installed. (See System Sub- system , *IDN? and *OPT?) Interface Functions What can I do with the Bus? All the capabilities of the interface for the PM6680B-series are explained below. ?Summary Description,Code Source handshake,SH1 Acceptor handshake,AH1 Control function,C0 Talker Fu
14、nction,T6 Listener function,L4 Service request,SR1 Remote/local function,RL1 Parallel poll,PP0 Device clear function,DC1 Device trigger function,DT1 Bus drivers,E2 ?SH1 and AH1 These simply mean that the counter can exchange data with other instruments or a controller using the bus handshake lines:
15、DAV, NRFD, NADC. ?Control Function, C0 The counter does not function as a con- troller. ?Talker Function, T6 The counter can send responses and the results of its measurements to other de- vices or to the controller. T6 means that it has the following functions: Basic talker. No talker only. It can
16、send out a status byte as response to a serial poll from the controller. Automatic un-addressing as a talker when it is addressed as a listener. Getting Started Interface Functions 1-5 ?Listener Function, L4 The counter can receive programming in- structions from the controller. L4 means that it has
17、 the following functions: Basic listener. No listen only. Automatic un-addressing as listener when addressed as a talker. ?Service Request, SR1 The counter can call for attention from the controller, e.g., when a measurement is completed and a result is available. ?Remote/Local, RL1 You can control
18、the counter manually (lo- cally) from the front panel or remotely fromthecontroller.TheLLO,lo- cal-lock-out function, can disable the LO- CAL button on the front panel. ?Parallel Poll, PP0 The counter does not have any parallel poll facility. ?Device Clear, DC1 The controller can reset the counter v
19、ia interface message DCL (Device clear) or SDC (Selective Device Clear). ?Device Trigger, DT1 You can start a new measurement from the controller via interface message GET (Group Execute Trigger). ?Bus Drivers, E2 The GPIB interface has tri-state bus driv- ers. 1-6 Interface Functions Getting Starte
20、d Chapter 2 Bus Commands for the Benchtop User Bus Commands for the Benchtop User 2-2 Error Code :INP:LEV? Level can be set to between 5.1 to + 5.1 V when at- tenuator is set to 1X, and 51 to + 51 V when attenu- ator is set to 10X :INP2:COM?MON|OFF :INP2:IMP?50|1E6 :INP:FILT?ON|OFF Switches on or of
21、f the 100kHz LP-filter :INP2:ATT?1|10 :INP2:COUP?AC|DC :INP:IMP?50|1E6 Sets the input imped- ance 50 or 1M :INP:SLOP?POS|NEG Positive or negative trig- ger slope :INP:ATT?1|10 Attenuation 1X or 10X :INP:COUP?AC|DC :INP2:LEV? :INP:LEV:AUTO?ON|OFF|ONCE :INP2:LEV:AUTO?ON|OFF|ONCE Note that AUTO is sele
22、cted indi- vidually for A and B inputs ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
23、 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? / ? ? ? SWAP AB Not used via the bus, you ad- dress the input you want to measure on directly :INP2:SLOP_POS|NEG Bus Commands for the Benchtop User Error Cod
24、e 2-3 :SYST:PRES or *RST Presets the counter to default :ROSC:SOUR?INT|EXT* :ACQ:HOFF?ON|OFF* :TOT:GAT?ON|OFF* :ACQ:HOFF:TIME? Time can be set between 200E9 and 1.6* :DISPL:ENAB?ON|OFF :TEST:CHEC?ON|OFF *These commands are from the SENSE subsystem ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
25、? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
26、? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? / ? ? ? Bus Commands for the Benchtop User 2-4 Error Code :READ? Startsa measure- mentand requests re- sult :ACQ:APER? Time can be set to: 0.8E6, 1.6E6, 3.2 E6, 6.4E612.8E6 and 50E6 to 400* :AVER:STAT?OFF|ON OFF gives SINGLE ONgivesAVER- The functi
27、ons in the auxiliary menu tree are found in many different subsystem command trees, for instance the No. of samples for statistics is in the Calculate subsystem :ARM:SOUR?EXT2|EXT4 Switches on start arming on input B(2) or E(4). :ARM:SOUR?IMM Switches off start arming :ARM:SLOP?POS|NEG *These comman
28、ds are from the SENSE subsystem :FUNC?functionc?hannel,channel* Function and channel is explained on page 2-6 :ARM:STOP:SOUR?EXT2|EXT4 Switches on stop arming on input B(2) or E(4). :ARM:STOP:SOUR?IMM Switches off stop arming :ARM:STOP:SLOP?POS|NEG ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
29、 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ! # ? ? ? ? ? $ ? % ? ? % ? ? ? enter constants di- rectly in the mathe- matical expression *SAV? Memory location can be any No. between 0 and 19 *RCL? XOLD in a mat
30、hematical ex- pression gives the same result ar pressing Xn-1 Bus Commands for the Benchtop User 2-6 Error Code :FUNC?TOT?1,2 :FUNC?VOLT:MIN?1 :FUNC?VOLT:PTP?1 All commands on this page are from the SENSE subsystem :FUNC?VOLT:MAX?1 SRQ Thissegmentison when the instrument has sent a Service Request v
31、ia GPIB but the con- troller has not fetched the message. :FUNC?PDUT?1 :FUNC?TOT:GAT?1,2 :FUNC?RISE|FALL:TIME?1 :FUNC?TOT:SST?1,2 REMOTE This segment is on when the in- strument is con- trolledfrom GPIB. Press LO- CAL to interrupt bus control. :FUNC?FREQ?3 :FUNC?PER?1 :FUNC?FREQ:RAT?1,2:FUNC?FREQ:RA
32、T?3,2 :FUNC?PWID?1 :FUNC?TINT?1,2 :FUNC?PHAS?1,2:FUNC?FREQ?1 Bus Commands for the Benchtop User Error Code 2-7 *This command is from the SENSE subsystem :ROSC:SOUR?INT|EXT * Input 4 :OUTP?ON|OFF OUTP:SCAL? :SYST:COMM:GPIB:ADDR? can be between 1 and 30 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
33、? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 0 1 2 ? 3 . ? ? 4 2 1 2 . ? ? ? ? * , ( ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 5 ? ? ? ? 5 ? ? ? ? 5 ? ? ? ? ? 5 ? ? ? ? 5 ? ? ? 5 ? ? ( 5 ? ? ? ? 5 ? ?
34、? ? ? ( , , ? ? ? ? ? * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - ? ? ? * ? ? ? % * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- * ? ? ?- * ( ? ?- * ? ? ?- * * ? ?- * ) , ? ?- * - ? ? ?- * - ? ? ?
35、- * , ? , ? 6 6 6 6 6 6 6 6 6 6 6 6 6 6 ? ?- * - ) PM6680B ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 5 ? ? ? ? 5 ? ? ? ? 5 ? ? ? ? ? 5 ? ? ? ? 5 ? ? * 5 ? ? ( 5 ? ? ? ? 5 ? ? ? ? ? ( , , ? ? ? ? ? * ? ?
36、 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - ? ? ? * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? % * ? ? ? ? ? ? - ( , ( ? ?- * ? ? ?- * ( ? ?- * ? ? ?- * ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? % * ? ! # ? ? ? ? ? ? ? ? / ? ? ? ? ? ? ?
37、 ? ? ? ? PM6681R Default settings (after *RST) PARAMETERVALUE/ SETTING Input A: Trigger levelAUTO Impedance 1 M Manual Trigger level (Controlled by autotrigger) 0V Manual Attenuator (Controlled by autotrigger) 1X CouplingAC Trigger slopePos FilterOFF Input B: Trigger levelAUTO Impedance 1 M Manual T
38、rigger level (Controlled by autotrigger) 0V Manual Attenuator (Controlled by autotrigger) 1X CouplingDC Trigger slopePos CommonOFF Arming: StartOFF StopOFF DelayStart, Time, OFF ChannelExt Arm Input E Statistics: StatisticsOFF PARAMETERVALUE/ SETTING MathematicsOFF Sample size in Statistics100 Sampl
39、e size in Time In- terval Average 100 Mathematical constants: K= and M=1 L=0 Miscellaneous: FunctionFREQ A Timeout100 ms, OFF Measuring time 100 s CheckOFF Single cycleOFF Analog output controlOFF Hold OffTime, OFF Memory Protection (Memory 10 to19) Not changed by reset Auxiliary functionsAll switch
40、ed OFF Blank LSDOFF 2-8 Default settings (after *RST) Bus Commands for the Benchtop User Chapter 3 Introduction to SCPI What is SCPI? SCPI(StandardCommandsfor Programmable Instruments) is a standard- ized set of commands used to remotely control programmable test and measure- ment instruments. The C
41、NT-8X firmware contains the SCPI. It defines the syntax and semantics that the controller must use to communicate with the instrument. This chapter is an overview of SCPI and shows how SCPI is used in Fluke Fre- quency Counters and Timer/Counters. SCPI is based on IEEE-488.2 to which it owes much of
42、 its structure and syntax. SCPI can, however, be used with any of the standard interfaces, such as GPIB (=IEC625/IEEE-488), VXI and RS-232. Reason for SCPI For each instrument function, SCPI de- fines a specific command set. The advan- tage of SCPI is that programming an instrument is only function
43、dependent and no longer instrument dependent. Sev- eral different types of instruments, for ex- ample an oscilloscope, a counter and a multimeter, can carry out the same func- tion, such as frequency measurement. If these instruments are SCPI compatible, you can use the same commands to mea- sure th
44、e frequency on all three instru- ments, although there may be differences in accuracy, resolution, speed, etc. Compatibility SCPI provides two types of compatibil- ity: Vertical and horizontal. 3-2 What is SCPI? Introduction to SCPI AC AC :INPut:COUPling AC Figure 3-1Vertical This means that all ins
45、truments of the same type have identical controls. For eample, oscilloscopes will have the same controls for timebase, triggers and voltage settings 10E3 10.1234567890E3 10.1E3 :MEASure:FREQuency? Figure 3-2Hoizontal This means that instruments of different types that performs the same functions hav
46、e the same commands. For exam- ple, a DMM, an oscilloscope, and a counter can all measure frequency with the same commands Management and Maintenance of Programs SCPI simplifies maintenance and man- agement of the programs. Today changes and additions in a good working program are hardly possible be
47、cause of the great diversity in program messages and instru- ments. Programs are difficult to under- stand for anyone other than the original programmer. After some time even the programmer may be unable to understand them. A programmer with SCPI experience, however, will understand the meaning and
48、reasons of a SCPI program, because ofhisknowledgeofthestandard. Changes, extensions, and additions are much easier to make in an existing appli- cation program. SCPI is a step towards portability of instrument programming software and, as a consequence, it allows the exchange of instruments. Introdu
49、ction to SCPI What is SCPI? 3-3 Instrument Functions Execution Control Parser Response Formatter Message Exchange Control Input BufferOutput Queue GPIB Interface Parsed Messages Program Messages Program Messages Response Messages Response Data Executable Messages Response Messages GPIB Figure 3-3Overview of the firmware in a SCPI instrument. How does SCPI Work in the Instrument? The functions inside an instrument that control the operation provide SCPI com- patibility. Figure 3-3 shows a simplified logical model of the messag