Table 4-5. Generating RQS from the CC Event

Register

Operation PTR

Operation Enable

Service Request Enable

Operation Condition

Command

STAT:OPER:PTR 1024

STAT:OPER:ENAB 1024

*SRE 128

STAT:OPER:EVEN?

Comment

Allows a positive transition at the CC input (bit 10) to be latched into the Status Event register.1

Allows the latched CC event to be summed into the OPER summary bit.

Enables the OPER summary bit from the Status Byte register to generate RQS.

When you service the request, read the event register to determine that bit 10 (CC) is set and to clear the register for the next event.

1All bits of the PTR registers bits are set to 1 at power on.

Adding More Operation Events

To add CV (constant voltage) and DWE (dwelling) events to this example, it is only necessary to add the decimal values for bit 8 (value 64) and bit 12 (value 4096) to the programming commands of the Operation Status group. The commands to do this are:

STAT:OPER:PTR 5376;ENAB 5376

It is not necessary to change any other registers, since the programming for the operation summary bit (OPER) path has already been done.

Servicing Questionable Status Events

To add OC (overcurrent) and OT (overtemperature) events to this example, program Questionable Status group bits 1 and 4.

STAT:QUES:PTR 18;ENAB 18

Next, you must program the Service Request Enable register to recognize both the questionable (QUES) and the operational (OPER) summary bits.

*SRE 136

Now when there is a service request, read back both the operational and the questionable event registers.

STAT:OPER:EVEN?;QUES:EVEN?

Monitoring Both Phases of a Status Transition

You can monitor a status signal for both its positive and negative transitions. For example, to generate RQS when the power module either enters the CC (constant current) condition or leaves that condition, program the Operational Status PTR/NTR filter as follows:

STAT:OPER:PTR 1024;NTR 1024

STAT:OPER:ENAB 1024;*SRE 128

The PTR filter will cause the OPER summary bit to set RQS when CC occurs. Then the controller subsequently reads the event register (STAT: OPER: EVEN?), the register is cleared. When CC subsequently goes false, the NTR filter causes the OPER summary bit to again set RQS.

56 Status Reporting

Page 55
Image 55
Agilent Technologies 66lxxA manual Statoperptr 5376ENAB, Statquesptr 18ENAB, Statopereven?Queseven?