Xantrex Technology XMP 2600 Recovering from communication halts, Using queries, Using commands

Page 19

How to communicate with the XMP 2600

Usage Guidelines

The XMP’s input and output queues

Communicate with the XMP 2600

To use this synchronization feature properly, you must follow each message sent to the XMP 2600 with a read operation, reading one character and verifying its value (6).

Recovering from communication halts

If, for some reason, communication with the XMP 2600 halts, use one of the following methods to clear the XMP’s input and output queues and reestablish communication:

1.Press the front panel LOCAL button.

2.Send a GPIB bus DCL (Device Clear) multi-line command.

3.Reset the XMP 2600 using the front panel buttons DEL & LOCAL.

4.Reset the XMP 2600 using the hardware command (on/off) connector at its rear.

5.Reset the XMP 2600 by cycling its power.

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 2600 may, in some situations, fail.

The following paragraphs elaborate on the proper usage of commands and queries while communicating with the XMP 2600.

Using queries

When using queries (questions) with the XMP 2600, you must make sure that for each query that you send to the XMP 2600, you read the reply the XMP 2600 has placed in its output queue.

Although it is possible to send several queries and then read all the replies (you will need a separate read for each reply), it is a better practice to send a single query and read its reply before sending another query.

If for some reason you find out that the reply you are reading is not for the query you have sent (lost of synchronization between replies and queries) send the BUFCLR command or use one of the procedures depicted above at “recovering from communication halts”. This operation will clear both the input and the output queues of the XMP 2600 and resynchronize queries with replies.

Using commands

The XMP 2600 stores the commands (and queries) that you send to it in its input queue until it is ready to parse and execute them.

Parsing and executing the commands and queries is done when the XMP 2600 is not busy communicating with its Power Modules.

This means that command execution might be held of for as long as a second (usually commands are executed within 200mS).

If you send many commands with short intervals between them, sometimes you may get into a situation where the XMP’s input queue will fill up due to commands waiting for execution. This might lead to a communication halt.

Programming the XMP 2600

Bearing in mind all of the above, you should follow the guidelines in the following paragraphs:

6

XMP 2600 Programming Manual rev. 1.1

Image 19
Contents Xantrex Multiple Output Power System XMP XMP Last? Limited What does this warranty cover and how long does itHow do you get service? WarrantyDisclaimer Product What does this warranty not cover?Information Information About Your Power SupplyDescription Power Supply Symbols Safety SummaryPower Supply Grounding Nonoperative Modules Input Mains Voltage RatingOutput Voltages Do Not Open The Unit Air Inlets And Air OutletRegulatory Approvals Regulatory Approvals and Safety Agency ComplianceSafety Agency Compliance Power Supply SafetyChapters 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 an RS232 link How to communicate with the XMPUsing the comm. channels Using the Gpib busProgramming the XMP Recovering from communication haltsUsing queries Using commandsInitialize the XMP Recommendations on using the XMPIdentify the XMP Enforce power-on conditionsSetup the XMP 2600 status system Query installed Power ModulesInitial setup of the Power Modules Setup system level protection shutdown featuresStatus reporting Protection setupOutput settings ActivationUse queries Using advanced featuresHandling SRQ and the IEEE488.2 Status Structures On-going usage of the XMPMask registers Event enable registersStatus registers Event registersResponding to SRQ events Main status byteMain controller events Output message QueuePrimary engine status structure Summary of power modules statusPower modules status structure Remote communication time outEvents Register What happens when power is turned onError Code Faults RegisterUsage Guidelines Output Setup Basic setup and usageOverview of output setup parameters Power Module output ratingGlobally enabling the outputs Output settingsOutput control Output activationPolarity and disconnect relays Voltage / current modeCurrent limiting schemes FoldbackLinear foldback Reprogramming DelayRetry Shutdown on current limitBasic Programming Enabling the window thresholds Setting the window thresholdsWorkpoint window warning Usage guidelinesChecking the status Using the events mechanismUsing the warnings Voltage mode exampleOVP Protection using the workpoint windowLoad protection Additional usagesToggle the output state on/off Arm, trigger, sync and rampTrigger mechanism Set output to stored valuesSync output Output ramping What is output ramping?Simultaneous operations Output ramping setupSynchronization of operations Output ramping initiationSequential Operations Using hardware Trig and Sync to serialize operationsOutput on/off Other operationsController notification of Operation Complete Using software OPC mechanism to serialize operationsDifferent shutdown grouping of modules Commands to program shutdown groupingSelective shutdown Shutdown grouping single, group, globalResponding 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 Gpib ResetGlbl GLBL?Settings 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 StructuresOutput Register Faults RegisterError Code Events Enable 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 ByteMain Power Modules Communications errors Error Codes summaryPower Modules Errors Reported by the Power Module Errors Detected by the Main ControllerGpib Communications errors RS232 Communications errorsParser and Execution errors Status reporting Xantrex Technology Inc