Xantrex Technology XMP 2600 manual Status registers, Event registers, Event enable registers

Page 25

Handling SRQ and the IEEE488.2 Status Structures

Usage Guidelines

Definitions of structural elements

The status reporting mechanisms of the XMP 2600 are rather complex. If you do not intend to use the advanced warnings and protection features of the XMP 2600 you may choose to disregard most of the reported status with the exception of the main status byte and the error code registers.

We will start this discussion with a short explanation of the various elements comprising the Status Structures.

Status registers

The status registers are collections of bits (usually 8) that depict the current state of elements within the XMP 2600 system. Each bit reflects the actual state of a feature or sub-assembly. When the state of the feature or sub-assembly changes so does the value of the status bit.

For example, lets look at the STBY bit (bit 0) of the Output Status Register of a Power Module. This bit will always reflect the state of the output of the Power Module: when the Power Module’s output is in standby (i.e. the output is disabled and no voltage is coming out of its connector) the bit value will be 1. When the Power Module’s output is enabled, the bit value will be 0.

Event registers

Event registers indicate changes in the status of features or sub-assemblies. Note that in contrast to the status registers, event bits remain set (having a value of 1) even if the status changes back. The event indication will be cleared when the controlling computer reads the event register.

For example, the FLT bit (bit 2) of the Event Register of a Power Module will be set when a fault occurs (individual faults are indicated by the bits of the Faults Register). When the fault condition is removed (e.g. an Over Temperature condition is no longer valid) the corresponding Faults Register bit will be cleared but the FLT bit of the Event Register will remain set.

When the computer reads the Event Register, the FLT bit is cleared even if the actual fault condition is still true (as will be depicted by the Faults Register). The FLT bit will be set again when a new fault condition occurs.

Event enable registers

As mentioned in the introduction, each status structure is summarized to a single bit that is then used in the next level of status (or event) registers.

The Event Enable Register determines the way data is being summarized. The process is fairly simple: the Event Register is ANDed with the Event Enable Register and if the result has any set bits then the summary bit is set.

Mask registers

Some of the Status Structures of the XMP 2600 include (fixed or programmable) Mask Registers. These registers determine which status changes will be registered as events.

For example, only positive Primary Status changes (i.e. a change from non-existing to existing) are recorded in the Primary Event Register.

The Status Structure of the Power Modules include a programmable event filtering mechanism that enables filtering of either positive or negative transitions of warning conditions.

12

XMP 2600 Programming Manual rev. 1.1

Image 25
Contents Xantrex Multiple Output Power System XMP XMP How do you get service? Limited What does this warranty cover and how long does itWarranty Last?Disclaimer Product What does this warranty not cover?Information Information About Your Power SupplyDescription Power Supply Symbols Safety SummaryPower Supply Grounding Output Voltages Input Mains Voltage RatingDo Not Open The Unit Air Inlets And Air Outlet Nonoperative ModulesSafety Agency Compliance Regulatory Approvals and Safety Agency CompliancePower Supply Safety Regulatory ApprovalsChapters Terminology About this manualWho should use this manual Table of contents Basic Programming Commands and Queries Reference Byte Error Codes summaryGpib interface 1Interfacing XMPACK Serial interfaceListening Formats Programming messages formatsResponse Data Separator Talking FormatsUsing the comm. channels How to communicate with the XMPUsing the Gpib bus Using an RS232 linkUsing queries Recovering from communication haltsUsing commands Programming the XMPInitialize the XMP Recommendations on using the XMPSetup the XMP 2600 status system Enforce power-on conditionsQuery installed Power Modules Identify the XMPInitial setup of the Power Modules Setup system level protection shutdown featuresOutput settings Protection setupActivation Status reportingHandling SRQ and the IEEE488.2 Status Structures Using advanced featuresOn-going usage of the XMP Use queriesStatus registers Event enable registersEvent registers Mask registersMain controller events Main status byteOutput message Queue Responding to SRQ eventsPower modules status structure Summary of power modules statusRemote communication time out Primary engine status structureError Code What happens when power is turned onFaults Register Events RegisterUsage Guidelines Output Setup Basic setup and usageOverview of output setup parameters Power Module output ratingOutput control Output settingsOutput activation Globally enabling the outputsCurrent limiting schemes Voltage / current modeFoldback Polarity and disconnect relaysRetry Reprogramming DelayShutdown on current limit Linear foldbackBasic Programming Workpoint window warning Setting the window thresholdsUsage guidelines Enabling the window thresholdsUsing the warnings Using the events mechanismVoltage mode example Checking the statusLoad protection Protection using the workpoint windowAdditional usages OVPTrigger mechanism Arm, trigger, sync and rampSet output to stored values Toggle the output state on/offSync output Output ramping What is output ramping?Synchronization of operations Output ramping setupOutput ramping initiation Simultaneous operationsOutput on/off Using hardware Trig and Sync to serialize operationsOther operations Sequential OperationsController notification of Operation Complete Using software OPC mechanism to serialize operationsSelective shutdown Commands to program shutdown groupingShutdown grouping single, group, global Different shutdown grouping of modulesResponding to communication time out events Shutdown on non-fault eventsComm. time out Time out events as reflected in the status structure Turn-on and reset behaviorSystem Commands Queries Ieee 488.1 BUS CommandsCategories Glbl ResetGLBL? GpibSettings Commands Queries Output Control Protection Trigger Sync Commands Queries Commands QueriesRead-Back Queries Status Reporting Commands Queries Synch Mnemonic Alphabetical referenceParameters None Category System Type Sequential PRE Stores settings of all the Power Modules same as STO command Result register Syntax Return two decimal numbers, in the range 0 to 255. Each bit Cmask Close relay and a value of 1 is returned for an open relay Remove a user message from the XMP 2600 front panel display Set-up the operating mode of the XMP 2600. Re-calculate rqs Response is a series of values one for each installed Power Return output Current measurement of the Power Module. Return the state of the XMP 2600 Local Lock Flag. a value Ocrst Decimal value in the range 0 to Syntax Presence of the Polarity Reversal Relay Option Parameters None Category Settings Type Sequential Master mainframe. For the XMP 2600 this value is String in the following format mssnnn where m=minutes Result is two decimal numbers the first being the level 0t o SN? = OFF = Goto= Stop Module. Result is a decimal number in the range 0 to Shut-down when a remote communication time out occurs. Time out feature Syntax Minus sigh Syntax VLIM? Vset Commands and Queries Reference Events Register Ieee 488.2 compatible Status StructuresError Code Faults RegisterEvents Enable Register Output RegisterEvents Filtering Negative Mask Register Events Filtering Positive Mask RegisterPON CME EXE DDE QYE OPC Standard Event Status Register read with *ESR?Primary Event Status Register read with PER? Primary Status Register read with PSR?Primerr Status Byte Register read with *STB?Self Test Results Power ModulesMain Controller BytePower Modules Errors Reported by the Power Module Error Codes summaryErrors Detected by the Main Controller Main Power Modules Communications errorsGpib Communications errors RS232 Communications errorsParser and Execution errors Status reporting Xantrex Technology Inc