Xantrex Technology XMP 2600 manual Main status byte, Main controller events, Output message Queue

Page 26

Usage Guidelines

Handling SRQ and the IEEE488.2 Status Structures

Responding to SRQ events

The SRQ event of the IEEE488.2 bus is the summary of the entire Status Structure of the XMP 2600.

The following paragraphs will show how to traverse the Status Structure tree in order to find the cause of the generated SRQ.

This explanation will, also, show how to setup the programmable elements of Status Structure in order to be notified only on events of interest.

The (main) status byte

The SRQ event is generated in response to bits of the Status Byte being set (a positive transition).

Each time a bit of the Status Byte is being set (changing from 0 to 1) the Status Byte is being ANDed with the Service Request Enable Register. If the result of the AND operation has any bits set to 1 – an SRQ will be generated. In other words – the SRQ event (or flag) is the summary of the Status Byte and the Service Request Enable Register is the “Event Enable Register”.

Thus, the first response to an SRQ event is to read the Status Byte. This can be achieved in two fashions: performing a serial poll or issuing the *STB? Query.

Once we have got the value of the Status Byte, we can investigate the cause of the SRQ event.

The Status Byte summarizes the following Status Structures: ESB - XMP’s main controller events

MAV - Output Message Queue (Message AVailable). COM TO – Remote Communications Time Out.

PRIM ERR - XMP’s Primary Engine (main converter) faults. SRQ IS - Power Modules.

Whenever one of these bits is set, the corresponding higher level of the Status Structure should be probed.

Main controller events

This part of the Status Structure is made out of an Event Register and its corresponding Event Enable Register. The summary of this pair of registers appears in the Status Byte in the form of the ESB bit.

The main controller’s Event Register (also called the Standard Event Status Register) holds the Power On, Error and OPC events. The register is read using the *ESR? Query. The last known error code is read using the ERR? Query.

The OPC event (OPeration Complete) occurs when the *OPC command follows a lengthy operation (e.g. a change in the output voltage of a Power Module – VSET command).

The PON event occurs when the XMP 2600 is powered up.

Output message Queue

The MAV (Message AVailable) bit of the Status Register is the only element of this part of the Status Structure.

The bit is set to 1 whenever the Output Queue holds a response to a query.

This enables the software of the controlling computer to work with the XMP 2600 asynchronously.

XMP 2600 Programming Manual rev. 1.1

13

Image 26
Contents Xantrex Multiple Output Power System XMP XMP Warranty Limited What does this warranty cover and how long does itHow do you get service? Last?What does this warranty not cover? Disclaimer ProductInformation About Your Power Supply InformationPower Supply Grounding Safety SummaryDescription Power Supply Symbols Do Not Open The Unit Air Inlets And Air Outlet Input Mains Voltage RatingOutput Voltages Nonoperative ModulesPower Supply Safety Regulatory Approvals and Safety Agency ComplianceSafety Agency Compliance Regulatory ApprovalsWho should use this manual About this manualChapters Terminology Table of contents Basic Programming Commands and Queries Reference Error Codes summary Byte1Interfacing XMP Gpib interfaceSerial interface ACKProgramming messages formats Listening FormatsTalking Formats Response Data SeparatorUsing the Gpib bus How to communicate with the XMPUsing the comm. channels Using an RS232 linkUsing commands Recovering from communication haltsUsing queries Programming the XMPRecommendations on using the XMP Initialize the XMPQuery installed Power Modules Enforce power-on conditionsSetup the XMP 2600 status system Identify the XMPSetup system level protection shutdown features Initial setup of the Power ModulesActivation Protection setupOutput settings Status reportingOn-going usage of the XMP Using advanced featuresHandling SRQ and the IEEE488.2 Status Structures Use queriesEvent registers Event enable registersStatus registers Mask registersOutput message Queue Main status byteMain controller events Responding to SRQ eventsRemote communication time out Summary of power modules statusPower modules status structure Primary engine status structureFaults Register What happens when power is turned onError Code Events RegisterUsage Guidelines Basic setup and usage Output SetupPower Module output rating Overview of output setup parametersOutput activation Output settingsOutput control Globally enabling the outputsFoldback Voltage / current modeCurrent limiting schemes Polarity and disconnect relaysShutdown on current limit Reprogramming DelayRetry Linear foldbackBasic Programming Usage guidelines Setting the window thresholdsWorkpoint window warning Enabling the window thresholdsVoltage mode example Using the events mechanismUsing the warnings Checking the statusAdditional usages Protection using the workpoint windowLoad protection OVPSet output to stored values Arm, trigger, sync and rampTrigger mechanism Toggle the output state on/offSync output What is output ramping? Output rampingOutput ramping initiation Output ramping setupSynchronization of operations Simultaneous operationsOther operations Using hardware Trig and Sync to serialize operationsOutput on/off Sequential OperationsUsing software OPC mechanism to serialize operations Controller notification of Operation CompleteShutdown grouping single, group, global Commands to program shutdown groupingSelective shutdown Different shutdown grouping of modulesComm. time out Shutdown on non-fault eventsResponding to communication time out events Turn-on and reset behavior Time out events as reflected in the status structureCategories Ieee 488.1 BUS CommandsSystem Commands Queries GLBL? ResetGlbl GpibSettings Commands Queries Output Control Protection Read-Back Queries Commands QueriesTrigger Sync Commands Queries Status Reporting Commands Queries Synch Alphabetical reference MnemonicParameters 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? = Stop = Goto= OFF 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 Ieee 488.2 compatible Status Structures Events RegisterEvents Enable Register Faults RegisterError Code Output RegisterEvents Filtering Positive Mask Register Events Filtering Negative Mask RegisterStandard Event Status Register read with *ESR? PON CME EXE DDE QYE OPCPrimary Status Register read with PSR? Primary Event Status Register read with PER?Status Byte Register read with *STB? PrimerrPower Modules Self Test ResultsByte Main ControllerErrors Detected by the Main Controller Error Codes summaryPower Modules Errors Reported by the Power Module Main Power Modules Communications errorsParser and Execution errors RS232 Communications errorsGpib Communications errors Status reporting Xantrex Technology Inc