Fluke 5520A Programmer's Manual

Fluke 5520A Programmer's Manual

Multi-product calibrator
Hide thumbs Also See for 5520A:

Advertisement

®
5520A
Multi-Product Calibrator
Programmers Guide
PN 688744
February, 1998
© 1998 Fluke Corporation, Inc. All rights reserved. Printed in U.S.A.
All product names are trademarks of their respective companies.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5520A and is the answer not in the manual?

Questions and answers

Summary of Contents for Fluke 5520A

  • Page 1 ® 5520A Multi-Product Calibrator Programmers Guide PN 688744 February, 1998 © 1998 Fluke Corporation, Inc. All rights reserved. Printed in U.S.A. All product names are trademarks of their respective companies.
  • Page 3: Table Of Contents

    Units Accepted in Parameters and Responses . 5 Incoming Character Processing ....... 6 Terminator Characters ........7 Response Message Data Types ....... 7 Checking 5520A Status ........8 Status Register Summary ........ 8 STB and SRE ..........9 ESR and ESE ..........10 ISR, ISCE, and ISCR ........
  • Page 4 Write programs carefully and test them extensively to ensure safe operation of the Calibrator. Fluke suggests that you include error-catching routines in your programs. These error-catching routines will help you identify programming errors that may cause the calibrator to behave other than intended.
  • Page 5: Types Of Commands

    Types of Commands Device-Dependent Commands Commands unique to 5520A. Common Commands Commands defined by the IEEE 488.2 standard. Query Commands Commands ending with a ?. Compound Commands Two or more commands in a single command line. Coupled Commands Commands that could interfere with each other.
  • Page 6: Command Syntax

    Command Syntax General Syntax Rules 1. Separate parameters with commas. 2. Numeric parameters up to 15 significant digits and exponents in the range ±1.0E ± 20. 3. Null parameters cause an error, e.g., the adjacent commas in OUT 1V, ,2A. 4.
  • Page 7: Units Accepted In Parameters And Responses

    Command Syntax (cont) Units Accepted in Parameters and Responses Units Meaning Frequency in hertz Frequency in kilohertz Frequency in megahertz Volts in microvolts Volts in millivolts Volts in volts Volts in kilovolts Current in microamperes Current in milliamps Current in amps Percent Parts-per-million Volts in decibels referenced to 1...
  • Page 8: Incoming Character Processing

    Command Syntax (cont) Units Accepted in Parameters and Responses (cont) Units Meaning Period in nanoseconds Period in microseconds Period in milliseconds Period in seconds Pressure in pound-force per square inch Pressure in meters of mercury INHG Pressure in inches of mercury INH2O Pressure in inches of water FTH2O...
  • Page 9: Terminator Characters

    Command Syntax (cont) Terminator Characters ASCII Function Code Control C Code Carriage Chr(13) <Ctrl> M Return Line Feed Chr(10) <Ctrl> J Backspace Chr(8) <Ctrl> H Form Feed Chr(12) <Ctrl> L EEE-488 Interface The Calibrator sends the ASCII character Line Feed with the EOI control line held high as the terminator for response messages.
  • Page 10: Checking 5520A Status

    Checking 5520A Status Status Register Summary Status Register Read Write  Serial Poll Status Byte *STB? (STB) Service Request Enable *SRE? *SRE Register (SRE)  Event Status Register *ESR? (ESR) Event Status Enable *ESE? *ESE Register (ESE) Instrument Status Register ISR? ...
  • Page 11: Stb And Sre

    RQS is 1, the 5520A asserts the SRQ control line on the IEEE-488 interface. You can do a serial poll to read this bit to see if the 5520A is the source of an SRQ. Master summary status. Set to 1 whenever bits ESB, MAV, EAV, or ISCB are 1 and enabled (1) in the SRE.
  • Page 12: Esr And Ese

    15 errors that have occurred.) Execution error. An error occurred while the 5520A tried to execute the last command. This could be caused, for example, by a parameter being out of range. (The command ERR? fetches...
  • Page 13: Isr, Isce, And Iscr

    UUTDATA Set to 1 when there ia data available from the UUT port. HIVOLT Set to 1 when the 5520A is programmed to a voltage above 33 Volts. MAGCHG Set to 1 when the output magnitude has changed as a result of another change (e.g.
  • Page 14: Service Request Enable Register (Sre)

    Checking 5520A Status (cont) Service Request (SRQ) Line IEEE-488 Bus control line that asserts to notify the controller that it requires some type of service. RS-232 Sends the SRQSTR string over the serial interface when service is required. Service Request Enable Register (SRE) The SRE enables or masks the bits of the Serial Poll Status Byte.
  • Page 15: Command Summary

    Command Summary Common Commands *CLS Clears ESR, ISCR0, ISCR1, error queue, RQS, and terminates pending *OPC or *OPC? *ESE Loads ESE register. *ESE? Returns ESE contents. *ESR? Returns ESR contents. *IDN? Returns instrument identification. *OPC Sets OPC bit in ESR to 1 when device operations are complete.
  • Page 16: Error Mode Commands

    Command Summary (cont) Error Mode Commands EDIT Sets edit field. EDIT? Returns edit field setting. ERR_UNIT Sets the UUT error display unit or ppm/% change threshold. ERR_UNIT? Returns the selected UUT error display unit or change threshold. INCR Increments or decrements output.
  • Page 17: External Connection Commands

    Command Summary (cont) External Connection Commands CUR_POST Selects terminals for current output. CUR_POST? Returns terminals for current output. EARTH Selects earth ground is isolated or tied. EARTH? Returns earth ground isolated or tied. EXTGUARD Connects or disconnects the internal guard shield from the LO binding post.
  • Page 18: Oscilloscope Commands

    Command Summary (cont) Oscilloscope Commands See Chapter 8 of the 5520A Operators Manual for usage information. OL_TRIP? Returns the detected state of scope overload protection. OUT_IMP Sets the output impedance of the SCOPE BNC. OUT_IMP? Returns the output impedance of the SCOPE BNC.
  • Page 19 Command Summary (cont) Oscilloscope Commands (cont) TLIMIT_D? Returns the power-up and reset default for the time limit for -SC600 OVERLD mode to stay in operate. TMWAVE Selects the waveform for MARKER mode. TMWAVE? Returns the timemark waveform setting for MARKER mode. TRIG Sets the frequency of the signal at the TRIG OUT BNC.
  • Page 20: Output Commands

    Returns harmonic location. LCOMP Activates or deactivates inductive load compensation for ac current output. LCOMP? Returns whether inductive load compensation for ac current output is active. OPER Activates 5520A output. OPER? Returns operate/standby setting. Sets output and reference point. OUT? Returns output.
  • Page 21 NORMAL terminals on the slave 5520A and the NORMAL terminals on the master 5520A. STBY Puts 5520A in standby. SYNCOUT Sends a synchronization pulse out to a slave 5520A through the 10 MHz OUT BNC connector.
  • Page 22: Pressure Measurement Commands

    Command Summary (cont) Output Commands (cont) WAVE Sets waveforms for ac outputs. WAVE? Returns output waveform. ZCOMP Activates or deactivates impedance compensation. ZCOMP? Returns status of impedance compensation. Pressure Measurement Commands DAMPEN Activates or deactivates dampening (averaging) of pressure readings. DAMPEN? Returns whether dampening (averaging) of pressure readings...
  • Page 23: Rs-232 Host Port Commands

    Command Summary (cont) RS-232 Host Port Commands LOCAL Puts 5520A into local. LOCKOUT Puts 5520A into lockout state REMOTE Puts 5520A into remote. SPLSTR Sets Serial Poll response string. SPLSTR? Returns Serial Poll response. SRQSTR Sets serial mode SRQ response.
  • Page 24: Setup And Utility Commands

    Command Summary (cont) Setup and Utility Commands CLOCK Sets the real-time clock. CLOCK? Queries the real-time clock. DBMZ_D Sets the power-up and reset default impedance used for dBm outputs (ac volts). DBMZ_D? Returns the power-up and reset default impedance used for dBm outputs (ac volts).
  • Page 25 10 MHz IN/OUT, sets the power-up and reset default phase difference between the NORMAL terminals on the slave 5520A and the NORMAL terminals of the master 5520A. REPHASE_D? If two 5520As are synchronized using 10 MHz IN/OUT, returns the power-up...
  • Page 26: Status Commands

    Command Summary (cont) Setup and Utility Commands (cont) TEMP_STD Sets temperature standard. TEMP_STD? Returns temperature standard. UNCERT? Retums specified uncertainties for the present output. If there are no specifications for an output, returns zero. Status Commands ERR? Returns first error code and explanation in queue and removes it from the queue.
  • Page 27: Thermocouple (Tc) Measurement Commands

    Command Summary (cont) Thermocouple (TC) Measurement Commands TC_MEAS Changes mode to TC measurement. TC_OFFSET Sets a TC temperature offset. TC_OFFSET? Returns TC temperature offset. TC_OTCD Activates or deactivates open thermocouple circuit. TC_OTCD? Returns status of open thermocouple circuit. VAL? Returns last thermocouple measurement.
  • Page 28: Command List

    Command List CFREQ? Response: (Float) Optimal frequency CLOCK Parameters: 1. (Optional) Year as YYYY 2. (Optional) Month as MM 3. (Optional) Day as DD 4. Hour as HH 5. Minute as MM 6. Second as SS CLOCK? Responses: 1. (Character) Date as YYYY-MM-DD 2.
  • Page 29 Command List (cont) DBMZ_D? Response: (Character) Z50, Z75, Z90, Z100, Z135, Z150, Z300, Z600, Z900, Z1000, or Z1200 DC_OFFSET Parameters: Offset amplitude with optional multiplier and voltage unit DC_OFFSET? Response: (Float) Signed offset amplitude Parameters: 1. Cosine of phase offset (0.0 to 1.0) 2.
  • Page 30 Command List (cont) ERR_UNIT? Response: (Character) GT1000, GT100, GT10, PPM, or PCT *ESE Parameter: Decimal equivalent of the 8-bit binary number to load into the register *ESE? Response: (Integer) Decimal equivalent of the register byte *ESR? Response: (Integer) Decimal equivalent of the register byte EXPLAIN? Parameter:...
  • Page 31 Command List (cont) FUNC? Response: (Character) DCV, ACV, DCI, ACI, RES, CAP, RTD, TC_OUT, DC_POWER, AC_POWER, DCV_DCV, ACV_ACV, TC_MEAS, or PRES_MEAS HARMONIC Parameters: 1. Harmonic multiple 2. (Optional) PRI (fundamental is at primary output location) or SEC (fundamental is at secondary output location) HARMONIC? Response:...
  • Page 32 Command List (cont) ISCE? Response: (Integer) Decimal equivalent of the OR of the contents of the Instrument Status 1 to 0 Change Enable register and the Instrument Status 0 to 1 Change Enable register ISCE0 Parameter: Decimal equivalent of the binary number to load into the register ISCE0? Response:...
  • Page 33 Command List (cont) ISCR1? Response: (Integer) Decimal equivalent of the contents of the Instrument Status 0 to 1 Change Register ISR? Response: (Integer) Decimal equivalent of the OR of the contents of the Instrument Status 1 to 0 Change Register and the Instrument Status 0 to 1 Change Register LCOMP...
  • Page 34 Command List (cont) MULT Parameter: Multiplier value NEWREF Parameter: None OLDREF Parameter: None ONTIME? Response: (Integer) Number of minutes on time *OPC Parameter: None *OPC? Response: (Integer) 1 (after all operations are complete) OPER Parameter: None OPER? Response: (Integer) 1 (operate) or 0 (standby) *OPT? Response: (Indefinite ASCII) A list of option...
  • Page 35 Command List (cont) OUT? Parameters: (Optional) Units of returned amplitudes: ac voltage mode (V or DBM) RTD mode (CEL, FAR, or OHM) TC output mode (CEL, FAR, or V) Responses: 1. (Float) Output amplitude 2. (Character) Units (V, DBM, A, OHM, F, CEL, or FAR) 3.
  • Page 36 Command List (cont) PRES? Responses: (Indefinite ASCII) A message containing four fields separated by commas as follows: 1. Manufacturer 2. Model number 3. Serial number 4. Firmware revision (0) PRES_MEAS Parameter: (Optional) Pressure units PRES_UNIT Parameter: PSI, MHG, INHG, INH2O, FTH2O, MH2O, BAR, PAL, G/CM2, or INH2O60F PRES_UNIT?
  • Page 37 Command List (cont) RANGE? Responses: 1. (Character) Symbolic name of the range of the single or first output 2. (Character) Symbolic name of the range of the second output or 0 (no second output) RANGELCK Parameter: ON or OFF RANGELCK? Response: (Character) ON or OFF REFCLOCK...
  • Page 38 2. TERM or COMP (TERM sets the remote port to expect a human operator using a terminal and COMP sets the report port to expect a computer program controlling the 5520A) 3. XON, RTS, or NOSTALL (stall method) 4. DBIT7 or DBIT8 (number of data bits) 5.
  • Page 39 (TERM for the remote port to expect a human operator using a terminal and COMP for the report port to expect a computer program controlling the 5520A) 3. (Character) XON, RTS, or NOSTALL (stall method) 4. (Character) DBIT7 or DBIT8 (number of data bits) 5.
  • Page 40 Command List (cont) SRQSTR? Response: (String) Serial remote mode SRQ string *STB? Response: (Integer) Decimal equivalent of the status byte STBY Parameter: None SYNCOUT Parameter: None TC_MEAS Parameter: (Optional) CEL or FAR TC_OFFSET Parameter: Offset amplitude with optional temperature unit TC_OFFSET? Parameter: (Optional) CEL or FAR units...
  • Page 41 Command List (cont) TC_TYPE Parameter: B, C, E, J, K, N, R, S, T, or X (10 mV/°C), Y (% relative humidity), or Z (1 mV/°C) TC_TYPE? Response: (Character) B, C, E, J, K, N, R, S, T, or X (10 mV/°C), Y (% relative humidity), or Z (1 mV/°C) TC_TYPE_D Parameter:...
  • Page 42 Command List (cont) UNCERT? Parameter: 1. (Optional) Preferred unit of primary output uncertainty or PCT (default) 2. (Optional) Preferred unit of secondary output uncertainty or PCT (default) Response: 1. (Float) 90-day specified uncertainty of primary unit 2. (Float) 1-year specified uncertainty of primary output 3.
  • Page 43 Command List (cont) UUT_SEND Parameter: 1. (Integer) Number of data bytes being returned (excluding the count) 2. (Integer) Data from the UUT serial port as series of comma separated integers Special Case Character string sent to a UUT must end in a carriage return (CR) or line feed (LF) command or both UUT_SENDB Parameter:...
  • Page 44 Command List (cont) UUT_SET? Responses: 1. (Integer) 300, 600, 1200, 2400, 4800, or 9600 (baud rate) 2. (Character) XON, RTS, or NOSTALL (stall method) 4. (Character) DBIT7 or DBIT8 (number of data bits) 5. (Character) SBIT1 or SBIT2 (number of stop bits) 6.
  • Page 45 Command List (cont) WAVE? Responses: 1. (Character) SINE, TRI, SQUARE, TRUNCS, or NONE 2. (Character) SINE, TRI, SQUARE, TRUNCS, or NONE ZCOMP Parameter: NONE, WIRE2, or WIRE4 ZCOMP? Response: (Character) NONE, WIRE2, or WIRE4 ZERO_MEAS Parameters: 1. ON or OFF 2.

Table of Contents