Xantrex Technology XMP 2600 manual Using software OPC mechanism to serialize operations

Page 44

Advanced Features

Synchronization of operations

Using software (OPC mechanism) to serialize operations

The Power Modules of the XMP 2600 generate an internal OPC (Operation Complete) event that informs the main controller when they have completed the current operation.

The XMP 2600 has several commands and queries that can use that OPC internal event. One such command is the *WAI command. The *WAI command, when inserted in the stream of commands sent to the XMP 2600 by its controller, causes the XMP’s main controller to suspend further parsing of commands until all pending internal operations are done (all the Power Modules have announced Operation Complete on previously commanded operations).

While the XMP’s main controller is waiting for OPC events (when you use commands like *WAI) you cannot communicate with it. Take extra care not fill the XMP’s input queue – do not send it new commands and queries until those waiting in the input queue where parsed.

You may use the *OPC command or the *OPC? Query instead of the *WAI command (see the “Controller notification of Operation Complete” section, bellow).

The sequence of commands you should send to the XMP 2600 to achieve the same operations serialization described for the hardware method above, is as follows:

Prepare the second operation to be performed. You may base the initiation of the second operation on a trigger if it requires a lengthy command sequence to initiate.

1.Send the commands to initiate the first operation.

2.Send a *WAI command (or a *OPC command or a *OPC? Query).

3.Send the command to initiate the second operation.

The second operation will commence only after the first operation has completed and the Power Module generated an internal OPC event to inform the main controller.

Controller notification of Operation Complete

The *WAI command, mentioned above, is used for internally synchronizing XMP operations. It does not inform the remote controller when the previously commanded operation has finished.

The *OPC command, on the other hand, will set the “opc” event bit of the “Standard Event Status Register” when the previously commanded operation has finished. In all other aspects, the *OPC command works the same as the *WAI command.

Using the *OPC command and the SRQ mechanism or a *STB? query enables the remote controller to be notified when the internal OPC event occurs.

The *OPC? Query, adds to the OPC handling capabilities of the *WAI command a response that is placed in the output queue when the internal OPC event occurs. The remote controller can wait on a read of this reply (or periodically check for its presence) or it can use the MAV status bit to generate an SRQ.

XMP 2600 Programming Manual rev. 1.1

31

Image 44
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 InformationPower Supply Grounding Safety SummaryDescription Power Supply Symbols 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 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 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 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 Reset GlblGLBL? 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 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 errorsParser and Execution errors RS232 Communications errorsGpib Communications errors Status reporting Xantrex Technology Inc