Xantrex Technology XMP 2600 manual Handling SRQ and the IEEE488.2 Status Structures, Use queries

Page 24

Usage Guidelines

Handling SRQ and the IEEE488.2 Status Structures

On-going usage of the XMP 2600

To globally control the outputs of all the Power Modules, use the OUT command with no module number.

Verification

Read the output voltage and/or current of the activated Power Modules. Use the VOUT? (measured at the output connector), VLOAD? (measured at the sense lines) and IOUT? queries to verify proper operation. Allow at least a second from the output activation to the time you read back the output’s actual values.

The XMP 2600 uses two queues (256 bytes long, each) for holding input (data you send to the XMP) and output (replies you should read from the XMP).

You must make sure not to fill those queues up or communication with the XMP may, in some situations, fail. For further details, please refer to the previous section.

Use queries

Following each group of commands, send a query and read its reply.

This procedure will ensure that the commands in the input queue have been executed (because the query was last in the buffer) and the queue is empty.

It is a good practice to send status queries (such as *STB?) every now and then to make sure the XMP 2600 has no errors or faults to report. Following each *STB? query, you may need to send more status queries, depending on the reply of the XMP 2600 (see the Handling SRQ and the IEEE488.2 Status Structures section for more details).

If you follow each group of commands, sent to the XMP 2600, with a query (and read the reply to the query) you may freely send commands as fast as the XMP 2600 is ready to process them.

Using advanced features

Consult the Advanced Features chapter of the programming manual and other application notes on how to use the advanced features of the XMP 2600.

A focus on status

Following every major operation with the XMP 2600 (such as changing output values, turning a Power Module on or off, etc.), read its status (or use SRQ to be interrupted when errors or faults occurs).

Reading the status of the XMP 2600 often, ensures communication synchronization

Handling SRQ and the IEEE488.2 Status Structures

The purpose of this section is to clarify the usage of the XMP’s Status Structures, explain how to set it up and how to respond to SRQ’s.

The Status Structures of the XMP 2600 follow the guidelines of the IEEE488.2 standard. The Status Structures are based on a “tree” formation: the “leaves” are the detailed status information and the branches summarize that information down to a single bit of information.

A graphical depiction of the formation of the Status Structures is shown in the Status Reporting chapter (chapter 6).

XMP 2600 Programming Manual rev. 1.1

11

Image 24
Contents Xantrex Multiple Output Power System XMP XMP Limited What does this warranty cover and how long does it How do you get service?Warranty Last?What does this warranty not cover? Disclaimer ProductInformation About Your Power Supply InformationSafety Summary Description Power Supply SymbolsPower Supply Grounding Input Mains Voltage Rating Output VoltagesDo Not Open The Unit Air Inlets And Air Outlet Nonoperative ModulesRegulatory Approvals and Safety Agency Compliance Safety Agency CompliancePower Supply Safety Regulatory ApprovalsAbout this manual Chapters TerminologyWho should use this manual 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 SeparatorHow to communicate with the XMP Using the comm. channelsUsing the Gpib bus Using an RS232 linkRecovering from communication halts Using queriesUsing commands Programming the XMPRecommendations on using the XMP Initialize the XMPEnforce power-on conditions Setup the XMP 2600 status systemQuery installed Power Modules Identify the XMPSetup system level protection shutdown features Initial setup of the Power ModulesProtection setup Output settingsActivation Status reportingUsing advanced features Handling SRQ and the IEEE488.2 Status StructuresOn-going usage of the XMP Use queriesEvent enable registers Status registersEvent registers Mask registersMain status byte Main controller eventsOutput message Queue Responding to SRQ eventsSummary of power modules status Power modules status structureRemote communication time out Primary engine status structureWhat happens when power is turned on Error CodeFaults Register Events RegisterUsage Guidelines Basic setup and usage Output SetupPower Module output rating Overview of output setup parametersOutput settings Output controlOutput activation Globally enabling the outputsVoltage / current mode Current limiting schemesFoldback Polarity and disconnect relaysReprogramming Delay RetryShutdown on current limit Linear foldbackBasic Programming Setting the window thresholds Workpoint window warningUsage guidelines Enabling the window thresholdsUsing the events mechanism Using the warningsVoltage mode example Checking the statusProtection using the workpoint window Load protectionAdditional usages OVPArm, trigger, sync and ramp Trigger mechanismSet output to stored values Toggle the output state on/offSync output What is output ramping? Output rampingOutput ramping setup Synchronization of operationsOutput ramping initiation Simultaneous operationsUsing hardware Trig and Sync to serialize operations Output on/offOther operations Sequential OperationsUsing software OPC mechanism to serialize operations Controller notification of Operation CompleteCommands to program shutdown grouping Selective shutdownShutdown grouping single, group, global Different shutdown grouping of modulesShutdown on non-fault events Responding to communication time out eventsComm. time out Turn-on and reset behavior Time out events as reflected in the status structureIeee 488.1 BUS Commands System Commands QueriesCategories Reset GlblGLBL? GpibSettings Commands Queries Output Control Protection Commands Queries Trigger Sync Commands QueriesRead-Back 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? = Goto = OFF= 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 Ieee 488.2 compatible Status Structures Events RegisterFaults Register Error CodeEvents Enable Register 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 ControllerError Codes summary Power Modules Errors Reported by the Power ModuleErrors Detected by the Main Controller Main Power Modules Communications errorsRS232 Communications errors Gpib Communications errorsParser and Execution errors Status reporting Xantrex Technology Inc