Xantrex Technology XMP 2600 manual How to communicate with the XMP, Using the comm. channels

Page 18

Usage Guidelines

How to communicate with the XMP 2600

2Usage Guidelines

How to communicate with the XMP 2600

Using the comm. channels

The purpose of this section is to give the user of the XMP 2600 power system basic guidelines on how to communicate with the Power Supply.

Communicating with the XMP 2600 involves proper usage of the communication channels (either GPIB or RS232), understanding how the XMP 2600 handles the communication from/to the controlling computer and learning the recommended way to communicate with the XMP 2600.

The following sections will tackle the aforementioned issues, in detail.

To communicate with the XMP 2600 one can use either the GPIB bus or an RS232 link. Beyond the basic differences between the two communication mediums (not covered in this manual) both provide the user of the XMP 2600 full access to the XMP’s features.

The only advantage of the GPIB bus (beyond its hardware characteristics) is the ability to send bus commands, such as DCL (Device Clear).

Using the GPIB bus

There are several options for terminators to use when communicating with the XMP 2600:

1.EOI

2.LF (or CRLF)

3.LF + EOI

We recommend the use of LF (without EOI).

Do not use the “auto serial poll” feature of some GPIB drivers. If you want to use SRQs, do the serial poll (or use the *STB? Query) in your program.

Using an RS232 link

RS232 is an asynchronous communication link. The XMP 2600 uses a software method to synchronize communication with it: for every command or query message (ending with a LF or CRLF) that you send to the XMP 2600 it will reply with the ASCII character ACK (acknowledge) – 6 Hex.

This method provides assurance that the communication link is working properly and serves the function of the handshake lines of the GPIB bus.

XMP 2600 Programming Manual rev. 1.1

5

Image 18
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 InformationSafety Summary Description Power Supply SymbolsPower Supply Grounding 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 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 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 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 GLBL? ResetGlbl 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 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 errorsRS232 Communications errors Gpib Communications errorsParser and Execution errors Status reporting Xantrex Technology Inc