background image

  GDM-8246 MULTIMETER 

PROGRAMMER MANUAL 

 

  50  

 

Status Registers   

There are two status registers are included to the DMM defined by 
IEEE-488.1 and IEEE-488.2 standards. 

z

 

Status Byte Register (SBR) 

z

 

Standard Event Status Register (SESR) 

Status Byte Register (SBR)

: The SBR (Table 6) summarizes the status of 

all other registers and queues. 

 

Table 6: Status Byte Register (SBR) 

Bit 7 

Bit 6 

Bit 5  Bit 4  Bit 3  Bit 2

Bit 1

Bit 0

OPER RQS/MSS ESB MAV QUES

E/E

NU 

NU

 

The bit 0 and 1 are not used, so these bits are always zero. The bit 2 
(Error and Event) indicates an error code is waiting to be read in the 
Error Event Queue. The bit 3 (QUES, QUEStionable) is the summary bit 
for the QESR (QUEStionable Event Status Register). When the bit is 
high it indicates that status is enabled and present in the QUES. The bit 4 
(MAV, Message Available) indicates that output is available in the 
output queue. The bit 5 (ESB, Event Status Bit) is the summary bit for 
the Standard Event Status Register (SESR). When the bit is high it 
indicates that status is enabled and present in the SESR. The bit 6 (RQS, 
Request Service) is obtained from a serial poll and shows that the DMM 
requests service from the GPIB controller. The bit 7 (OPER, OPERation) 
is the summary bit for the OESR (OPERation EVENt STATus Register).     

 

  GDM-8246 MULTIMETER 

PROGRAMMER MANUAL 

 

  51  

 

Use the serial poll or the 

*STB?

 Query to read the contents of the SBR. 

The bits in the SBR are set and cleared depending on the contents of the 
Standard Event Status Register (SESR), the Standard Event Status 
Register (SESR), and the Output Queue. 

Standard Event Status Register (SESR)

: Table 7 shows the SESR 

Table 7: Standard Event Status Register (SESR) 

Bit 7 

Bit 6 

Bit 5 

Bit 4 

Bit 3 

Bit 2 

Bit 1 

Bit 0 

PON URQ CME EXE DDE QYE  NU  OPC 

 

The bit 0 (OPC, Operation Complete) shows that the operation is 
completed. This bit is active when all pending operations are completed 
following an 

*OPC

 command. The bit 1 is always zero. The bit 2 (QYE, 

Query Error) indicates a command or query protocol error. The bit 3 
(DDE, Device Error) shows that a device error occurred. The bit 4 (EXE, 
Execution Error) shows that an error occurred while the DMM was 
executing a command or query. The bit 5 (CME, Command Error) shows 
that an error occurred while the DMM was parsing a command or query. 
The bit 6 (USR, User Request) indicates the LOCAL button was pushed. 
The bit 7 (PON, Power On) shows that the DMM was powered on. 

Use the *ESR? Query to read the SESR. Read the SESR and clear the 
bits of the registers so that the register can accumulate information about 
new events. 

Enable Registers   

The enable registers determine whether certain events are reported to the 
Status Byte Register and SRQ. The Digital Multimeter has the following 
enable registers. 

Summary of Contents for GDM-8246GP

Page 1: ...The measured procedures can be varied with user s testing programs therefore the Digital Multimeter can be operated remotely from an instrument controller or computer across the RS232 interface option...

Page 2: ...ace function DC1 Device Clear The DMM has Device clear capability to return the device to power on status DT0 Device Trigger The DMM has no Device Trigger interface function C0 Controller The DMM can...

Page 3: ...e both sides Once you have set these parameters you can control the DMM through the RS232 interface z Baud rate You can set rates of 1200 2400 4800 or 9600 baud z Parity bit none z Data bit 8 bits z S...

Page 4: ...nection 9 No connection Figure 1 Pin assignments of the RS232 connector on the rear panel for DB 9 D GDM 8246 MULTIMETER PROGRAMMER MANUAL 7 Figure 2 Wiring configuration for DB9 to DB9 Computer s Con...

Page 5: ...equipment manufacturers The IEEE 488 2 syntax has been adopted by SCPI to provide common commands for the identical functions of different programmable instruments GDM 8246 MULTIMETER PROGRAMMER MANUA...

Page 6: ...oot level A root node and one or more lower level nodes form a header path to the last node called the leaf node Figure 4 Tree hierarchy Leaf SYSTem AUTO Root node ERRor STATe STARt CYCLe Lower level...

Page 7: ...t must add a LF to be a judgment for message terminator As for query command the return message of the instrument is also added a LF for PC to judge message terminator Entering Commands The standards...

Page 8: ...nds into four functional classifications z General Setting Commands z Calculating Commands z Status Commands z Miscellaneous Commands The tables also provide a brief explanation of each command GDM 82...

Page 9: ...LIMit STATe Returns Compare mode on or off CALCulation LIMit STATe Boolean Sets Compare mode on or off CALCulation LIMit LOWer Returns the value of the lower limit CALCulation LIMit LOWer NR2 Sets the...

Page 10: ...us Register SESR GDM 8246 MULTIMETER PROGRAMMER MANUAL 19 SRE NR1 Sets contents of Service Request Enable Register SRER SRE Returns contents of Service Request Enable Register SRER STB Reads Status By...

Page 11: ...ation of commands by design SYSTem ERRor Read the next item from the error event queue SYSTem VERSion Returns the SCPI version level GDM 8246 MULTIMETER PROGRAMMER MANUAL 21 6 DETAILS OF COMMAND REFER...

Page 12: ...al number and firmware version GDM 8246 MULTIMETER PROGRAMMER MANUAL 23 Examples IDN Returns GW_Inc GDM 8246 FW1 00 OPC Function The command form OPC sets the operation complete bit bit 0 in the Stand...

Page 13: ...contains the binary value 0101 0001 WAI no query form Function WAI prevents the programming instrument from executing further commands or queries until all pending operations are finished Syntax WAI G...

Page 14: ...gure MODe might return 1 to indicate the MIN mode to be slected Please refer to the representative total value for every attached calculation mode as follows GDM 8246 MULTIMETER PROGRAMMER MANUAL 27 T...

Page 15: ...the continuity function Syntax CONFigure CONTinity GDM 8246 MULTIMETER PROGRAMMER MANUAL 29 Examples CONFigure CONTinity sets the continuity function Please refer to the Table 6 1 CONFigure CURRent DC...

Page 16: ...lease refer to the unit for every range shown as Table 6 1 CONFigure SFRequency Function GDM 8246 MULTIMETER PROGRAMMER MANUAL 31 Set the frequency function in the AC mode Syntax CONFigure SFRequency...

Page 17: ...e VOLTage ACDC NR2 Function Set the ACDC voltage function and range Syntax CONFigure VOLTage ACDC NR2 Examples CONFigure VOLTage ACDC 0 sets the AC DC voltage function and auto range CONFigure VOLTage...

Page 18: ...voltage SVALue query only Function Returns the value displayed on the primary and secondary display with 6 characters totally GDM 8246 MULTIMETER PROGRAMMER MANUAL 35 Syntax SVALue Examples SVALue mi...

Page 19: ...function CALCulation LIMit UPPer 1 0000 sets 1 0000 DC voltage at the upper limit in the DC voltage function CALCulation LIMit FAIL Function Returns limit result Syntax GDM 8246 MULTIMETER PROGRAMMER...

Page 20: ...mode Syntax CALCulation RELation DATa CALCulation RELation DATa NR2 GDM 8246 MULTIMETER PROGRAMMER MANUAL 39 Examples CALCulation RELation DATa might return 1 0000 in DC voltage function CALCulation R...

Page 21: ...hold mode GDM 8246 MULTIMETER PROGRAMMER MANUAL 41 CALCulation HOLD 1 sets the Hold mode STATus OPERation CONDition query only Function Return the contents of the OPERation register The DMM however do...

Page 22: ...n destructive GDM 8246 MULTIMETER PROGRAMMER MANUAL 43 Syntax STATus QUEStionable CONDition Returns NR1 Examples STATus QUEStionable CONDition returns 0 STATus QUEStionable ENABle Function Set or quer...

Page 23: ...le EVENt Returns NR1 Examples STATus QUEStionable EVENt returns 0 SYSTem ERRor query only Function Query the next error message from the Error Event queue The result of the query is the error number f...

Page 24: ...Registers CONDition EVENt and ENABle z QUEStionable Status Registers CONDition EVENt and ENABle The lower level nodes QUEStionable and OPERation each have three 16 bits registers CONDition EVENt and...

Page 25: ...Table 4 shows the bit designations of the 16 bit QUEStionable Status Register Enable Register Event Register Condition Register To SBR GDM 8246 MULTIMETER PROGRAMMER MANUAL 49 Table 4 QUEStionable St...

Page 26: ...gister GDM 8246 MULTIMETER PROGRAMMER MANUAL 51 Use the serial poll or the STB Query to read the contents of the SBR The bits in the SBR are set and cleared depending on the contents of the Standard E...

Page 27: ...hich types of events are summarized by the Event Status Bit ESB in the SBR The bits of the ESER correspond to the bits of the SESR Use the ESE command to set the bits in ESER Use the ESE query to read...

Page 28: ...put queue stores the message The output queue stores and reports the messages on a FIFO first in first out state The SYSTem ERRor query reads the next item from the output queue If output queue overfl...

Reviews: