GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL CONTENTS PAGE 1. INTRODUCTION............................................................................. 1 2. CONNECTING DMM VIA GPIB INTERFACE……………... 2 3. CONNECTING DMM VIA RS232 INTERFACE……………. 5 4. INPUT AND OUTPUT QUEUE……………………………….. 8 5. COMMANDS AND SYNTAX…………………………………. 8 PROGRAMMER MANUAL 1. INTRODUCTION In the modern automatic measurement system, communication between equipments and computers is essential.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL 2. CONNECTING THE DIGITAL MULTIMETER VIA GPIB INTERFACE The GPIB interface capabilities: The GPIB interface of the Digital Multimeter corresponds to the standard of IEEE488.1-1987, IEEE488.2-1992 and SCPI-1994. The GPIB interface functions are listed as follows: SH1(Source Handshake) : The DMM can transmit multilane messages across the GPIB. AH1(Acceptor Handshake) : The DMM can receive multilane messages across the GPIB.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL The GPIB connection testing If you want to test whether the GPIB connection is working or not, you can send a GPIB command from computer. For instance, the query command *idn? should return the Manufacturer, model number, and firmware version in the following format: PROGRAMMER MANUAL 3.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL z Do not use more than 15m of cable to connect devices to a PC. z Ensure the same baud rate is used on the device as the one used on PC terminal. z Ensure the connector for the both side of cable and the internal connected line are met the demand of the instrument. 1. 2. 3. 4. 5. 6. 7. 8. 9.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL The RS232 connection testing SCPI If you want to test whether the RS232 connection is working or not, you can send a command from computer. For instance, using a terminal program send the query command Common Command & Queries *idn? Syntax & Status Data Structure should return the Manufacturer, model number, serial number and firmware version in the following format: Interface Function D GW.Inc,GDM-8246,FW1.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL command identifies it as a query. The command header is configured by header path and leaf node. Figure 5 shows the command header for the leaf node indicated in Figure 4. Layer D is interrelated with device information. Different devices have different functions. SCPI command sets belong to this layer.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Table 1 defines the Boolean and other parameter types for the Digital Multimeter. Parameter Type Description Example 0, 1 Boolean Boolean numbers or values NR1 Integers 0, 1, 18 NR2 Decimal numbers 1.5, 3.141, 8.4 NR3 Floating point numbers 4.5E-1, 8.25E+1 String Alphanumeric characters “No error” Table 1: Parameter Types for Syntax Descriptions Message Terminator and Message Separator I.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL z General Setting Commands Combining Commands You can use a semicolon (;) to combine commands. But continuously query command will cause message missing. For example: :READ?;:VAL? Table 2 lists the general setting commands that control and query the settings of the DMM.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL z Calculation Commands :CONFigure:SFRequency Sets frequency function. :CONFigure:RESistance Sets resistance function and range. :CONFigure:VOLTage:AC Sets AC voltage function and range. :CONFigure:VOLTage:DC Sets DC voltage function and range. :CALCulation: LIMit:STATe? Returns Compare mode on or off. :CALCulation: LIMit:STATe Sets Compare mode on or off.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Returns DBM mode on or off. :CALCulation:SDMB:STATe? :CALCulation: SDMB:STATe Sets DBM mode on or off. *SRE Sets contents of Service Request Enable Register (SRER). :CALCulation: SDMB:REFerence? Returns the reference impedance value of the DBM mode. *SRE? Returns contents of Service Request Enable Register (SRER). :CALCulation: SDMB:REFerence Sets the reference impedance value of the DBM mode.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL z Miscellaneous Commands 6. DETAILS OF COMMAND REFERENCE Table 4 lists the miscellaneous commands that control general housekeeping functions of the Digital Multimeter. Table 4: Miscellaneous Commands *IDN? Returns instrument identification. *OPC Reports when operation is completed by setting the Operation Complete bit in SESR. *OPC? Reports when operation is completed.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Examples: Examples: *ESE 65 sets the ESER to binary 0100 0001. If the ESER contains the binary value 1000 0010, the *ESE? will return the value of 130. *IDN? Returns GW_Inc, GDM-8246, FW1.00 *OPC Function: Return and clear the contents of the Standard Event Status Register (SESR).
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL *SRE? :CONFigure:AUTo Returns: Function: Set or query the auto-range mode on or off. is in the range from 0 through 255. Syntax: Examples *SRE 7 sets bits of the SRER to 0000 0111. If the *SRE? returns 3, the SRER is set to 0000 0011.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Examples: Table 6-2: :CONFigure:RANGe? might return 50.000 to indicate the 50V range at DCV.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL DC Current AC Current AC+DC Current ACA + Frequency Resistance Capacitance Diode Continuity Ripple DCA ACA AC+DCA Hz+ACA OHM CAPACITANCE DIODE CONT RIPPLE PROGRAMMER MANUAL Examples: :CONFigure:CONTinity sets the continuity function. Please refer to the Table 6-1. :CONFigure:CURRent:DC Function: Set the DC current function and range.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL Please refer to the unit for every range shown as Table 6-1. :CONFigure:CURRent:ACDC PROGRAMMER MANUAL Set the frequency function in the AC mode. Syntax: :CONFigure:SFRequency Function: Set the AC+DC current function and range. Examples: Syntax: :CONFigure:SFRequency sets the frequency function.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL :CONFigure: VOLTage:DC 12 sets the DC voltage function and 50V range. PROGRAMMER MANUAL and 50V range. Please refer to the unit for every range shown as Table 6-1. Please refer to the unit for every range shown as Table 6-1. :CONFigure:VOLTage:DCAC :CONFigure:VOLTage:AC Function: Function: Set the DCAC voltage function and range. Set the AC voltage function and range.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL :READ?(query only) Syntax: Function: :SVALue? Returns the value displayed on the primary and secondary display with 14 characters totally. Examples: Syntax: :SVALue? might return “ -OL- ” when the current function is in the dBm mode. :READ? :CALCulation:LIMit:STATe Examples: :READ? Might return “ NONE ,+0.0000” when the current function is in the DC voltage. Function: Returns or sets the compare mode on or off.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL :CALCulation:LIMit:LOWer? :CALCulation:LIMit:FAIL? :CALCulation:LIMit:LOWer Examples: Examples: 0(low)/1(pass)/2(high) :CALCulation:LIMit:LOWer? might return +1.0000 in the DC voltage function. :CALCulation:LIMit:FAIL? might return 1 means the reading is pass. :CALCulation:LIMit:LOWer 1.0000 sets 1.0000 DC voltage at the lower limit in the DC voltage function.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL can be o(off) or 1(on). Examples: Examples: :CALCulation:RELation:DATa? might return +1.0000 in DC voltage function. :CALCulation:MINimum? might return 1 in the MIN mode. :CALCulation:MINimum 1 sets the MIN mode. :CALCulation:RELation:DATa 1.0000 sets 1.0000 DC voltage at the reference standard value. Please refer to the unit for every range shown as Table 6-1.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL :CALCulation: SDBM:REFerence :CALCulation:HOLD 1 sets the Hold mode. Examples: :CALCulation:SDBM:REFerence? might return 0600 in DC voltage function. STATus:OPERation:CONDition? (query only) :CALCulation: SDBM:REFerence 600 sets 600 ohm DC voltage at the reference standard value. Function: Return the contents of the OPERation register. The DMM, however, do not use the OPERation register to report any conditions.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL Examples PROGRAMMER MANUAL Syntax: STATus:OPERation:ENABle 32767 sets all 15 bits of the register to 1. If the STATus:OPERation:ENABle? returns 0, all 15 bits of the register are 0. STATus:QUEStionable:CONDition? Returns: STATus:OPERation:EVENt (query only) Examples: Function: Returns and clears the contents of the OPERation register. STATus:QUEStionable:CONDition? returns 0.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL STATus:QUEStionable:EVENt(query only) SYSTem:VERSion? (query only) Function: Return and clear the contents of the QUEStionable register. The response is a decimal value that summarizes the binary values of the set bits. Function: Return the SCPI version of the device. Syntax: Syntax: SYSTem:VERSion? STATus:QUEStionable:EVENt? Returns: Returns: 1994.0 Examples: STATus:QUEStionable:EVENt? returns 0.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL 7. PROGRAMMER MANUAL STATUS AND ERROR REPORTING QUEStionable Status A set of status registers allows the user to quickly determine the DMM’s internal processing status. The status register, as well as the status and event reporting system, adhere to SCPI recommendations. Structure of System The sketch of the status and event reporting system is showed as figure 7.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Table 4: QUEStionable Status Register To SBR Bit 15 Bit 14 ∗ Condition Register Event Register Bit 13 NU NU Bit 7 Bit 6 Bit 5 Enable Register NU NU Frequency Null Sense Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Limit Test Limit Test Capacitance Ohm Fail HI Fail LO Overload Overload Bit 4 Bit 3 Bit 2 NU NU NU Bit 1 NU Bit 0 Current Voltage Overload Overload Figure 8: Status registers and related commands The COND
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL PROGRAMMER MANUAL Status Registers There are two status registers are included to the DMM defined by IEEE-488.1 and IEEE-488.2 standards. z z Status Byte Register (SBR) Standard Event Status Register (SESR) Use the serial poll or the *STB? Query to read the contents of the SBR.
GDM-8246 MULTIMETER GDM-8246 MULTIMETER PROGRAMMER MANUAL z z z z Event Status Enable Register (ESER) OPERation Enable Register QUEStionable Enable Register Service Request Enable Register (SRER) When one of the bits of the enable registers is high and the corresponding bit in the status register is high, the enable registers will perform a logical OR function, the output that controls the set bit of the Status Byte Register is high. Various commands set the bits in the enable registers.
GDM-8246 MULTIMETER PROGRAMMER MANUAL ⎯ 54 ⎯