beautypg.com

2 status byte register set, 3 standard event status register set, Status byte register set -6 – KEPCO KLP Series Developer's Guide, Rev 1 User Manual

Page 16: Standard event status register set -6

background image

1-6

KLP-DEV 031113

Reading an Event or Condition register clears all of the bits found in that register. Event register
contents are also cleared when the *CLS command is received. Condition register bits are only
cleared when the corresponding condition is not present.

1.2.7.2

STATUS BYTE REGISTER SET

The Status Byte register set is comprised of the Status Byte (STB) and the Service Request
Enable (SRE) registers. The STB register is read by issuing the *STB? query (see Appendix A,
PAR. A.14). The SRE register is read using the *SRE? query (see Appendix A, PAR. A.13) and
modified using the *SRE command (see Appendix A,.PAR. A.12), except that bit 6 (request for
service) of STB is not masked by SRE.

• 0, 1 - Not Used — always zero.

• 2 - Error Queue — 1 indicates error queue is not empty. Read error queue using

SYST:ERR?

• 3 - Questionable Status Summary — 1 indicates a Questionable Status register bit has

been set (see Appendix B, Table B-5 for details). Read (and clear) Questionable Event
register using STAT:QUES?.

• 4 - Message Available — 1 indicates a message is waiting in the output buffer.

• 5 - Event Status Summary — 1 indicates an Event Status register bit has been set. Read

(and clear) Questionable Event register using *ESR?.

• 6 - Service Request — Either RQS (Request for Service) or MSS (Master Status Sum-

mary (see Appendix A, PAR. A.12 for details).

• 7 - Operation Status Summary — 1 indicates an Operation Status register bit has been

set (see Appendix B, Table B-5 for details). Read (and clear) Operation Event register
using STAT:OPER?.

1.2.7.3

STANDARD EVENT STATUS REGISTER SET

The Standard Event Status register set is comprised of the Event Status (ESR) and Event Sta-
tus Enable (ESE) registers. The ESR register is read by issuing the *ESR? Query (see Appen-
dix A, PAR. A.5). The ESE register is read using the *ESE? query (see Appendix A, PAR. A.4)
and modified using the *ESE command (see Appendix A, PAR. A.3).

• 0 - Operation complete — 1 indicates the operation is complete and the unit is ready to

accept another command, or that query results are ready to be transferred.

• 1 - Request Control — Not used (always zero).

• 2 - Query Error — 1 indicates a query error has occurred (see Appendix B, Table B-5 for

details).

• 3 - Device Dependent Error — 1 indicates device dependent error has occurred (see

Appendix B, Table B-5 for details).

• 4 - Execution Error — 1 indicates execution error has occurred (parameter exceeded

allowable range) (see Appendix B, Table B-5 for details).

• 5 - Command Error — 1 indicates a command syntax error has occurred (see Appendix

B, Table B-5 for details).

• 6 - User Request — Not used (always zero).

• 7 - Power On — set once upon power-up, however ESE bit 7 set to 0 prevents Status

Byte bit 5 from being set.