Fluke NORMA 4000 Operators User Manual Download Page 1

 

®

 

 

Remote Control 

For NORMA 4000/5000 Power Analyzer 

 

Users Guide

 

 

 

 

  
June 2007 Rev.1, 6/10 

© 2007, 2010 Fluke Corporation. All rights reserved. Specifications subject to change without notice. 
All product names are trademarks of their respective companies. 

Summary of Contents for NORMA 4000 Operators

Page 1: ...NORMA 4000 5000 Power Analyzer Users Guide June 2007 Rev 1 6 10 2007 2010 Fluke Corporation All rights reserved Specifications subject to change without notice All product names are trademarks of their respective companies ...

Page 2: ...es not warrant any downloading errors or that the Product will be error free or operate without interruption FLUKE DISCLAIMS ALL OTHER WARRANTIES EITHER EXPRESS OR IMPLIED BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THE SOFTWARE AND THE ACCOMPANYING WRITTEN MATERIALS In no event shall Fluke be liable for any damages whatsoever inclu...

Page 3: ...onses 1 6 Structure and Syntax of Device Messages 1 6 Introduction to SCPI 1 6 Structure of Commands 1 6 Common Commands 1 6 Device Specific Commands 1 6 Hierarchy 1 6 Optional Key Word 1 7 Long and Short Form 1 8 Parameters 1 8 Numerical Suffix 1 8 Structure of Command Lines 1 8 Responses to Queries 1 9 Parameters 1 10 Numerical values 1 10 Boolean Parameters 1 10 Text 1 10 Strings 1 11 Block dat...

Page 4: ...he Status Reporting System 2 11 3 Hardware Interfaces 3 1 Introduction 3 3 IEC IEEE Bus Interface GPIB optional 3 3 Characteristics of Interface 3 3 Bus Lines 3 3 Interface Functions 3 5 Interface Messages 3 5 Universal Commands 3 5 Addressed Commands 3 6 RS 232 C Interface 3 6 Characteristics of Interface 3 6 Signal Lines 3 7 Transmission Parameters 3 8 Interface Functions 3 8 Handshake 3 8 IEEE ...

Page 5: ...80 STATus Subsystem 4 85 List of Commands Grouped By Subsystems 4 97 5 Error Messages 5 1 Introduction 5 3 Command Error 5 3 Execution Error 5 5 Device Specific Error 5 7 Query Error 5 8 6 Programming Examples 6 1 Introduction 6 3 Initialize Interface 6 3 Initialize Instrument 6 5 Perform Simple Power Measurement 6 6 U I P Measurement 6 9 Continuous Power Measurement 6 11 U I P Measurement over Et...

Page 6: ...Remote Control Users Guide iv ...

Page 7: ... 3 STATus OPERation Register Bits 2 8 2 4 STATus QUEStionable Register Bits 2 9 2 5 STATus QUEStionable CURRent Register Bits 2 9 2 6 STATus QUEStionable VOLTage Register Bits 2 10 2 7 Resettting Instrument Functions 2 12 3 1 Interface Functions 3 5 3 2 Universal Commands 3 5 3 3 Addressed Commands 3 6 3 4 Control Characters for RS 232 C Interface 3 8 ...

Page 8: ...Remote Control Users Guide vi ...

Page 9: ... 2 3 2 2 Minimum Reporting Structure Required by SCPI 2 5 3 1 Pin Assignment of IEC IEEE Bus Interface 3 3 3 2 Pin Assignment of RS 232 C Interface 3 7 3 3 Wiring of Data Control and Signalling Lines for Hardware Handshake 3 9 3 4 Pin Assignment of IEEE 802 3 Ethernet Interface RJ 45 Connector 3 10 3 5 IEEE 802 3 Ethernet Wiring of Signalling Lines 3 10 3 6 Pin Assignment of USB Interface Series B...

Page 10: ...Remote Control Users Guide viii ...

Page 11: ...ssages 1 6 Introduction to SCPI 1 6 Structure of Commands 1 6 Common Commands 1 6 Device Specific Commands 1 6 Hierarchy 1 6 Optional Key Word 1 7 Long and Short Form 1 8 Parameters 1 8 Numerical Suffix 1 8 Structure of Command Lines 1 8 Responses to Queries 1 9 Parameters 1 10 Numerical values 1 10 Boolean Parameters 1 10 Text 1 10 Strings 1 11 Block data 1 11 Overview of Syntax Elements 1 11 Ins...

Page 12: ...Remote Control Users Guide 1 2 Output Unit 1 13 Command Sequence and Command Synchronization 1 14 ...

Page 13: ...signment of the status registers The tables are complemented by a comprehensive description of the status registers A description of commands is given in this manual as well as programming examples for the main functions The examples for IEC bus programming are all written using VISA C API Getting Started The short operating sequence in this chapter will help you quickly get started with the instr...

Page 14: ...rument is always in the manual control mode LOCAL state and can be operated via the front panel The instrument is switched to remote control REMOTE state as follows IEC IEEE bus when it receives an addressed command from the controller with REN line set Other interfaces when it receives a valid command terminated by line feed LF 0Ah from the controller in SYSTem KLOCk REM state or by this command ...

Page 15: ...responses are referred to as device messages The commands and instrument responses are largely identical for all interface types A distinction is made according to the direction in which device messages are sent on the interface Commands Commands are messages the controller sends to the instrument They operate the device functions and request information Commands are subdivided according to two cr...

Page 16: ...ther examples concerning syntax and structure of the commands are derived from this command system SCPI is based on standard IEEE 488 2 and uses the same basic syntax elements and common commands defined in this standard Part of the syntax of the device responses is defined in greater detail than in standard IEEE 488 2 see section Responses to Queries Structure of Commands The Commands consist of ...

Page 17: ...of SCPI Command Systems Using INPut System as Example Optional Key Word Some command systems permit certain key words to be optionally inserted into the header or omitted These key words are marked in the description by square brackets The instrument must recognize the full command length for compatibility with the SCPI standard Some commands can be considerably shortened by omitting optional key ...

Page 18: ... otherwise Example INPut COUPling DC This command sets the input coupling on channel 1 to DC Measurement functions parameters to command SENSe FUNCtion use numeric suffix to select the phase If no suffix is specified total value is configured Structure of Command Lines A command line may contain one or several commands It is terminated by New Line New Line with EOI or EOI together with the last da...

Page 19: ...The abbreviated form of the command line reads as follows INPut1 SHUNt EXTernal GAIN 25 0 However a new command line always has to be started with the complete path Example INPut1 SHUNt EXTernal INPut1 GAIN 25 0 Responses to Queries For each setting command a query is defined unless explicitly specified otherwise The query is formed by adding a question mark to the setting command in question Resp...

Page 20: ...or down The mantissa may comprise up to 15 characters the exponent must be in the value range 307 to 307 The exponent is preceded by an E or e Specifying the exponent alone is not permissible In the case of physical quantities that have a unit no unit is accepted the basic unit is used Example SENSe VOLTage1 RANGe 1000 0 sets range of 1000 V Boolean Parameters Boolean parameters represent two stat...

Page 21: ... more than one byte are transmitted with the byte being the first that was specified by the SCPI command FORMat BORDer Internal structure of the data in the block depends on the actual instrument configuration Overview of Syntax Elements Following is an overview of syntax elements The colon separates the key words of a command In a command line the separating semicolon marks the uppermost command ...

Page 22: ...e DCL GPIB only If the input buffer is full the interface traffic is stopped and the data received up to then are processed After this the interface traffic is continued If on receipt of a terminator the input buffer is not full the input unit can receive the next command during command recognition and execution Receipt of a DCL GPIB only command clears the input buffer and immediately initiates a...

Page 23: ... execution error is signalled to the status reporting system All alterations made to the data set are cancelled and the instrument hardware is not reset Due to the delayed checking and hardware setting it is permissible that impermissible instrument states are briefly set within a command line without an error message being produced At the end of the command line however a permissible instrument s...

Page 24: ...action to be triggered only after the hardware has been set and has settled The controller can be programmed to wait for the respective action to occur see Table 1 1 Table 1 1 Synchronization by Means of OPC OPC and WAI Command Action after the hardware has settled Programming of controller OPC Sets the operation complete bits in the ESR Setting of bit 0 in the ESE Setting of bit 5 in the SRE Wait...

Page 25: ...6 Status Byte STB and Service Request Enable Register SRE 2 6 Event Status Register ESR and Event Status Enable Register ESE 2 7 Application of the Status Reporting System 2 10 Service Request Making Use of the Hierarchy Structure GPIB only 2 10 Serial Poll GPIB only 2 11 Query by Means of Commands 2 11 Error Queue Query 2 11 Resetting Values of the Status Reporting System 2 11 ...

Page 26: ...Remote Control Users Guide 2 2 ...

Page 27: ...rmation on the instrument The output buffer contains the messages the instrument returns to the controller The output buffer is not part of the status reporting system but determines the value of the MAV bit in the STB register Structure of an SCPI Status Register Each SCPI register consists of five parts each of 16 bits width that have different functions see Figure 2 1 The individual bits are in...

Page 28: ...in the EVENt part EVENt part The EVENt part indicates whether an event has occurred since it was read the last time it is the memory of the CONDition part It indicates only those events that were passed on by the edge filters The EVENt part is continuously updated by the instrument This part can be read only Upon reading its contents is set to zero In linguistic usage the EVENt part is often treat...

Page 29: ...CALCulation Reserved Reserved NOT USED 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 QUEStionable CURRent INPut1 overload INPut3 overload INPut5 overload INPut7 overload INPut9 overload INPut11 overload Reserved Reserved INPut1 underload INPut3 underload INPut5 underload INPut7 underload IN Put9 underload INPut11 underload Reserved NOT USED 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 QUEStionable Status QUEStio...

Page 30: ...ined in greater detail by polling the error queue The poll provides an informative error message This procedure is recommended since it reduces the problems involved in IEC IEEE bus control 3 QUEStionable Status sum bit This bit is set if an EVENt bit is set in the QUEStionable status register and the associated ENABle bit is set to 1 If the bit is set this indicates a questionable instrument stat...

Page 31: ... number between 300 and 399 or a positive error number that denotes the error in greater detail is entered into the error queue see Chapter 5 4 Execution Error This bit is set if a received command is syntactically correct but cannot be executed for other reasons An error message with a number between 200 and 300 that denotes the error in greater detail is entered into the error queue see Chapter ...

Page 32: ...ument is synchronized to valid SYNC source This bit is set to 0 when SYNC STATe is set to OFF 9 SYNChronization Available reserved This bit is set if there is a valid synchronization signal present on at least one input channel This bit is not used 10 AVERaging This bit is set if the instrument is processing its averaging cycle In free run mode at the end of each averaging cycle this bit is set to...

Page 33: ...ried by the STATus QUEStionable CURRent CONDition and STATus QUEStionable CURRent EVENt commands Table 2 5 STATus QUEStionable CURRent Register Bits Bit No Description 0 INPut1 OVERrange 1 INPut3 OVERrange 2 INPut5 OVERrange 3 INPut7 OVERrange 4 INPut9 OVERrange 5 INPut11 OVERrange 6 to 7 These bits are not used 8 INPut1 UNDERrange 9 INPut3 UNDERrange 10 INPut5 UNDERrange 11 INPut7 UNDERrange 12 I...

Page 34: ...he controller to which the control program can react with corresponding actions An SRQ is always initiated if one or several of bits 2 3 4 5 or 7 of the status byte are set and enabled in the SRE Each of these bits combines the information of a further register the error queue or the output buffer The corresponding setting of the ENABle parts of the status registers can achieve that arbitrary bits...

Page 35: ... of Commands Each part of every status register can be read by means of queries The individual commands are indicated in the detailed description of the status registers above What is returned is always a number that represents the bit pattern of the register queried Evaluating this number is effected by the controller program Queries are usually used after an SRQ in order to obtain more detailed ...

Page 36: ...s yes yes Clear Enable parts of all OPERation and QUEStionable registers yes Fill PTRansition parts with 1 Clear NTRansition parts yes Clear error queue yes yes Clear output buffer yes yes 1 1 Clear command processing and input buffer yes yes Every command that is first in a command line immediately following a PROGRAM MESSAGE TERMINATOR clears the output buffer ...

Page 37: ...3 5 Universal Commands 3 5 Addressed Commands 3 6 RS 232 C Interface 3 6 Characteristics of Interface 3 6 Signal Lines 3 7 Transmission Parameters 3 8 Interface Functions 3 8 Handshake 3 8 IEEE 802 3 Ethernet Optional 3 9 Characteristics of Interface 3 9 Signal Lines 3 10 Connection Settings 3 11 Universal Serial Bus USB optional 3 11 Characteristics of Interface 3 11 Connection Settings 3 12 ...

Page 38: ...Remote Control Users Guide 3 2 ...

Page 39: ...arallel data transmission Bidirectional data transmission Three wire handshake High data transmission rate max 115 kB s measurement data 1 2 MB s raw data Up to 15 devices can be connected Maximum length of connecting cables 15 m single connection 2 m Wired OR if several instruments are connected in parallel 12 1 13 24 shield SRQ ATN IFC NDAC NRFD DAV EOI DIO4 DIO3 DIO2 DIO1 logic GND GND 11 GND 1...

Page 40: ...er REN Remote Enable Active LOW enables switchover to remote control EOI End or Identify This has two functions in conjunction with ATN ATN HIGH Active LOW marks the end of a data transmission ATN LOW Active LOW triggers a parallel poll Handshake bus with 3 lines DAV Data Valid Active LOW signals a valid data byte on the data bus NRFD Not Ready For Data Active LOW signals that one of the devices c...

Page 41: ...ument on the data lines with the ATN Attention line being active LOW These messages serve for communication between the controller and the instrument Universal Commands Universal commands see Table 3 2 are in the code range 10 to 1F hex They act on all instruments connected to the bus without addressing them before Table 3 2 Universal Commands Command QuickBASIC command Effect on the instrument DC...

Page 42: ...al trigger signal input GTL Go to Local not implemented IBLOC device Transition to LOCAL state manual control PPC Parallel Poll Configure not implemented IBPPC device data Configures the instrument for parallel polling The QuickBASIC command additionally executes PPE PPD RS 232 C Interface The instrument is fitted with an RS 232 C interface as standard The 9 contact interface is provided at the re...

Page 43: ...ines RxD Receive Data Data line transmission from external controller to instrument TxD Transmit Data Data line transmission from instrument to external controller DTR Data terminal ready Not used GND Ground Interface ground connected to instrument ground DSR Data Set Ready Not used RTS Request To Send The device sets RTS line low logic 0 when it cannot accept more data from the DTE controller CTS...

Page 44: ...n of character A 41 hex in 8 bit ASCII code Interface Functions For interface control a number of control characters defined from 0 to 20 hex of the ASCII code can be transmitted via the interface Table 3 4 Control Characters for RS 232 C Interface Control character Interface functions Ctrl Q 11 hex Enable character output XON Ctrl S 13 hex Stop character output XOFF Break at least 1 character log...

Page 45: ... wiring The wiring diagram shown in Figure 3 3 applies to controllers with a 9 pin or 25 pin connector DCD DCD TxD RxD RxD TxD DSR DTR GND GND DTR DSR CTS RTS RTS CTS RI RI Controller 9 pin male DCD DCD TxD RxD RxD TxD DSR DTR GND GND DTR DSR CTS RTS RTS CTS RI RI Controller 25 pin male Instrument 9 pin female 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Instrument 9 pin female 1 2 3 4 5 6 7 8 9 8 3 2 20 7...

Page 46: ...ntains the serial input data stream received by instrument from the network RD Receive Data Minus Receive data minus the negative signal for the RD differential pair contains the same input as pin 3 RD Wiring between Instrument and Controller Wiring between the instrument and the controller is by means of a twisted pair cable with RJ 45 plugs The wiring plan shown in Figure 3 5 applies to connecti...

Page 47: ...etup screen is used to configure these settings When making a connection the controller must use the instrument IP address and TCP port for the destination address Universal Serial Bus USB optional The instrument is optionally equipped with USB interface The connector to USB interface USB series B receptacle is provided at the rear of the instrument see Figure 3 6 A controller for remote control c...

Page 48: ...is associated with the USB interface of the instrument This VCP name can be found in the Windows device manager under Ports COM LPT You will find a port named NORMA Power Analyzer USB Serial Port when the instrument is powered on and connected to a PC via a USB cable On the instrument side the General Setup screen is used to select the USB interface No other setting needs to be made on the instrum...

Page 49: ... FORMat Subsystem 4 26 Hardcopy Subsystem 4 29 INITiate Subsystem 4 30 INPut Subsystem 4 32 OUTPut Subsystem 4 35 ROUTe Subsystem 4 36 SENSe Subsystem 4 37 SENSe2 Subsystem Option Process Interface 4 51 SOURce Subsystem Option Process Interface 4 61 SYNC Subsystem 4 64 TIMer Subsystem 4 68 TRACe Subsystem 4 70 TRIGger Subsystem 4 75 SYSTem Subsystem 4 80 STATus Subsystem 4 85 List of Commands Grou...

Page 50: ...Remote Control Users Guide 4 2 ...

Page 51: ...effect on different devices The headers of these commands consist of an asterisk followed by three letters Many common commands refer to the status reporting system that is described in Chapter 2 Command Parameter Function Comment CLS Clear Status no query ESE 0 to 255 Event Status Enable ESR Standard Event Status Query query only IDN Identification Query query only OPC Operation Complete OPC Oper...

Page 52: ...ication of the device options Example of a device response Option1 Option2 RST RESET sets the instrument to a defined default status The default setting is indicated in the description of the commands SRE 0 to 255 SERVICE REQUEST ENABLE sets the service request enable register to the indicated value Bit 6 MSS mask bit remains 0 This command determines under which conditions a service request is ge...

Page 53: ...nse uses short form with default nodes omitted All alpha characters in the response are in uppercase The first node of the function_name has an integer numerical suffix that is used to distinguish among phases of a multiphase system See the list of the valid suffixes below Suffix Phase 1 L1 2 L2 3 L3 4 L4 of the NORMA 5000 model 5 L5 of the NORMA 5000 model 6 L6 of the NORMA 5000 model 12 ph2ph vo...

Page 54: ...alues of the function to be summed INTegral provides the sum of both The IPOSitive INEGative INTegral capability must be enabled in CALCulate subsystem before it can be used as a function The integrated values can be reset to zero with CALCulate INTegral CLEar IMMediate command Base Instrument Measurement Functions Note If W2 system is selected VOLTage31 is replaced by VOLTage13 Function Quantity ...

Page 55: ... Mean phase to phase Voltage Corrected VOLTage123 456 RMCORR MINimum MAXimum Average phase to phase Voltage Harmonic VOLTage123 456 HAR MINimum MAXimum Mean value of Voltage VOLTage 1 6 460 MEAN MINimum MAXimum IPOSitive INEGative INTegral Average Mean Voltage Rectified Mean Voltage VOLTage 1 6 460 RMEAN MINimum MAXimum Average Rectified Mean Voltage Rectified Mean Voltage Corrected VOLTage 1 6 46...

Page 56: ...imum MAXimum IPOSitive INEGative INTegral Average Mean Current Rectified Mean Current CURRent 1 6 460 RMEAN MINimum MAXimum Average Rectified Mean Current Rectified Mean Current Corrected CURRent 1 6 460 RMCORR MINimum MAXimum Average Rectified Mean Current Corrected Peak to peak Current CURRent 1 6 PTP MINimum MAXimum Highest value within averaging interval CURRent 1 6 PHIGH MINimum MAXimum Lowes...

Page 57: ... 1 6 460 APParent MINimum MAXimum Total App Impedance Serial Resistance RESistance 1 6 460 SERial MINimum MAXimum Total Serial Resitance Parallel Resistance RESistance 1 6 460 PARallel MINimum MAXimum Total Parallel Resistance Serial Reactance REACTance 1 6 460 SERial MINimum MAXimum Total Serial Reactance Parallel Reactance REACTance 1 6 460 PARallel MINimum MAXimum Total Parallel Reactance Activ...

Page 58: ...monic REACTance 1 6 460 PARallel HAR MINimum MAXimum Total Par Reactance Hamonic SYNC frequency FREQuency MINimum MAXimum Averaging interval length in seconds TIME INTerval MINimum MAXimum Time secs since timer reset time TIME RELative Additional Functions Available if Process Interface PI1 is Installed Function Quantity Command If no suffix present Shaft torque TORQue 1 4 MINimum MAXimum TORQue1 ...

Page 59: ...e no RST value Command Parameter Default Value Unit Remark ABORt No query ABORt Description Resets the triggering synchronization system When the measurement or data storage is started after the trigger synch condition is met this command has no effect This command will take the instrument from wait for trigger synch state to the state before issuing the INITiate IMMediate SEQuence command Paramet...

Page 60: ...ANsform FREQuency STATe MODE FUNCtion STARt STOP DATA PREamble INTegral STATe FUNCtion CLEar IMMediate AUTO STARt SOURce IMMediate TIME STOP SOURce IMMediate TIME TINTerval HARMonic ORDer POWer EFFiciency REFerence CORRected ONCE FFT DFT function list 0 value count offset ON OFF function list ON OFF CMD TIME MAN yyyy mm dd hh mm ss CMD TIME MAN TINTerval yyyy mm dd hh mm ss 0 to 0 to 40 function 1...

Page 61: ...ALC TRAN FREQ ONCE RST state Invalidates Invalidated by CALCulate TRANsform FREQuency MODE FFT DFT Description Selects the harmonics calculation method Parameter s FFT Calculates an FFT amplitude spectrum Number of lines is determined by the instrument and depends on the stop frequency anti aliasing filters setting and instrument model DFT Calculates a DFT amplitude spectrum i e the amplitude of t...

Page 62: ...losed in quotes The query returns the short form mnemonics and omits any default nodes in the function This function list does not get saved with SAV and is cleared with RST RST state Empty list no values defined Example s CALC TRAN FREQ FUNC VOLT1 CURR1 POW1 CALC TRAN FREQ FUNC Response VOLT1 CURR1 POW1 Invalidates Invalidated by CALCulate TRANsform FREQuency STARt frequency Description This comm...

Page 63: ... data according to the preamble information is output First returned spectrum line either FFT or DFT corresponds to the DC component of the signal If a harmonic could not be calculated due to violation of sampling theoreme for some frequency in DFT mode NaN is returned for that harmonic If a harmonics measurement has not yet been performed or if this query is sent during a harmonics measurement ST...

Page 64: ...surement STATus OPERation bit 12 is set an error 230 Data corrupt or stale is generated and no preamble data is returned Response start_time line_count function_count freq freq start_time Indicates time interval between the TIMer RESet TIME and first point of the sampled data that was used in the most recent spectrum calculation If a harmonics measurement has not yet been performed ASCII equivalen...

Page 65: ...led Example s CALC INT ON CALC INT Response ON RST state OFF Invalidates Invalidated by CALCulate INTegral FUNCtion function function Description Specifies function list for integral calculation The function is specified as a quoted string For example POWer1 Comma separated list of function may be sent as parameters Applying a new list invalidates the previously active list if any The query respon...

Page 66: ...es Parameter s function Specifies the integrated function List of valid functions VOLTage1 6 MEAN CURRent1 6 MEAN POWer 1 6 460 ACTive POWer 1 6 460 APParent POWer 1 6 460 REACtive POWer 1 6 460 ACTive HAR POWer 1 6 460 APParent HAR POWer 1 6 460 REACtive HAR RST state Number of Phases Installed Function list 1 POW1 2 POW1 POW2 3 POW1 POW2 POW3 POW 4 POW1 POW2 POW3 POW POW4 5 POW1 POW2 POW3 POW PO...

Page 67: ...g of integrated values is disabled Example s CALC INT CLE AUTO ON CALC INT CLE AUTO Response ON RST state ON Invalidates Invalidated by CALCulate INTegral STARt SOURce CMD TIME MAN Description Specifies integration start condition Parameter s CMD Integration starts upon receipt of the CALCulate INTegral STARt IMMediate command TIME Integration will start at a time specified by command CALCulate IN...

Page 68: ...ommand when CALCulate INTegral STARt SOURce is not set to CMD will generate error 221 Settings conflict Parameter s RST state Example s CALC INT STAR Invalidates Invalidated by CALCulate INTegral STARt TIME yyyy MM dd hh mm ss Description Specifies integration start time The integration starts when the instrument s internal date time is equal to the time specified with this command Parameter s yyy...

Page 69: ... CALCulate INTegral STOP TIME MAN Integration will stop when user presses F2 key on the front panel from within integration measurement screen of the instrument TINTerval Integration will stop after the interval specified with CALCulate INTegral STOP TINTerval elapses from the start of the integration RST state CMD Example s CALC INT STOP SOUR CMD CALC INT STOP SOUR Response CMD Invalidates Invali...

Page 70: ...is command Parameter s yyyy Year MM Month Dd Day Hh Hours in 24 hour notation Mm Minutes ss Seconds integer value RST state 2010 1 1 0 0 0 Example s CALC INT STOP TIME 2002 01 12 12 30 00 CALC INT STOP TIME Response 2002 01 12 12 30 00 Invalidates Invalidated by CALCulate INTegral STOP TINTerval interval Description Specifies integration interval in seconds The integration after this interval elap...

Page 71: ...idated by CALCulate POWer 460 EFFiciency REFerence function1 function2 Description Specifies two functions for user defined electrical efficiency calculation CALCulate POWer EFFiciency REFerence specifies variables for electrical efficiency of the 1st 2 or 3 phase system POWer EFFiciency CALCulate POWer460 EFFiciency REFerence specifies variables for electrical efficiency of the 2nd 3 phase system...

Page 72: ...If there are more than 3 phases STAR may still be selected in mode W2 but only applies to phase 4 and up Pcorr from the first system is not available then This command is only accepted by firmware version V1 4 and up Parameter s STAR Use phase to neutral voltages wye connection scheme DELTa Use phase to phase voltages delta connection scheme RST state CALCulate POWer CORRected STAR Example s CALC ...

Page 73: ...r OFF Processor of the instrument does not update the display saving more processing power for extensive calculations Example s DISP ON DISP Response ON RST state OFF Invalidates Invalidated by DISPlay USER FUNCtion function function Description Specifies function list for user defined measurement screen Parameter s function function Example s DISP USER FUNC VOLT1 PHIGH VOLT1 PLOW VOLT1 PTP DISP U...

Page 74: ... all kinds of measured data averaged measurements memory recordings spectrum FFT data etc If length is not specified the instrument uses last valid setting This command is coupled with FORMat DATA STATus Change from ASCii text format to REAL INTeger binary format or vice versa using either FORMat DATA or FORMat DATA STATus will change both the measurement data and status information formats These ...

Page 75: ... zero indicates that the device selects the number of significant digits to be returned Maximum length for ASCii is 8 Default length is 6 16 Applies to INTeger Specifies number of bits that represent the signed integer number 32 64 Applies to REAL Specifies the length of the binary representation of the floating point number in bits default is 64 If measurement status is error 8 the measurement va...

Page 76: ...is used for indirectly changed format Parameter s ASCii The status information is transferred as integer value formatted into a string Multiple status information values are separated by comma Length is not valid for ASCii format of status information INTeger 8 16 32 Status information value is transferred as binary integer of specified length INTeger status information values are in big endian by...

Page 77: ...m data output The data can be thought of as of a 2D array matrix This command selects whether to swap rows and columns in the matrix Parameter s ON If set to ON values are grouped by measurement functions all values of function 1 all values of function 2 OFF If set to OFF values are grouped by intervals spectrum lines all values from interval 1 all values from interval 2 RST state OFF Example s FO...

Page 78: ... Block of RLE encoded screen data RST state Example s HCOP SDUM DATA Response Block of RLE encoded screen data Invalidates Invalidated by INITiate Subsystem The INITiate subsystem controls the operation of the averaging capability of the instrument If memory recording is enabled it also initiates the trigger synchronization subsystem 3 Command Parameter Default Value Unit Remark INITiate CONTinuou...

Page 79: ...ous one OFF Single shot mode Instrument performs one averaging cycle upon receipt of either INIT IMMediate or TRG command Instrument is then placed in the IDLE state again RST state ON Example s INIT CONT ON INIT CONT Response 1 Invalidates Invalidated by INITiate IMMediate Description Leaves the IDLE state and starts a single averaging cycle After this averaging cycle is complete the instrument i...

Page 80: ... channel models the valid electrical channel suffixes are 1 to 12 The electrical INPut subsystem does not distinguish between current and voltage channels Input filter settings are common for all electrical channels so the channel suffixes can be omitted even if implemented for compatibility reasons If the channel suffix is omitted the command applies to input 1 For Process Interface option the va...

Page 81: ... for all channels Example s INP1 COUP AC INP2 COUP Response DC Invalidates Invalidated by INPut 1 2 3 4 5 6 7 8 9 10 11 12 GAIN gain Description Sets the shunt factor for the voltage current inputs This setting applies when EXTernal input shunt is selected The even voltage channel numbers are available only on instruments equipped with PP59 PP69 power phase Parameter s 1 0e 7 to 1 0e 7 This unitle...

Page 82: ...NPut 1 12 FILTer LPASs FREQuency Description Queries the antialiasing low pass filter cutoff frequency All input channels are equipped with the same filters so the returned value is always identical for all channels The antialiasing filter cutoff frequency can not be changed Response frequency in Hz RST state Device dependent for all channels Example s INP FILT FREQ Response 300 0e3 Invalidates In...

Page 83: ...8 TYPe VOLTage FREQuency Option Process Interface Description This command sets the input type to match the sensor type Parameter s VOLTage DC signal in range of 10 V is expected on the input FREQency AC signal with frequency in range 1 Hz to 200 kHz is expected on the input RST state FREQuency Example s INP21 TYP FREQ INP21 TYP Response FREQ Invalidates Invalidated by OUTPut Subsystem The OUTPut ...

Page 84: ...alidates Invalidated by SYNC SOURce EXTernal ROUTe Subsystem The ROUTe subsystem selects the type of connection the instrument uses to measure on a three phase system Command Parameter Default Value Unit Remark ROUTe SYSTem 3W 2W 3W ROUTe SYSTem 3W 2W Description Selects the type of connection the instrument uses to measure on a three phase system Note Parameter 2W is only accepted by firmware ver...

Page 85: ...l Suffix Electrical Phase Sense Subsystem Phase Suffix INPut1 current INPut2 voltage L1 SENSe VOLTage CURRent1 INPut3 current INPut4 voltage L2 SENSe VOLTage CURRent2 INPut5 current INPut6 voltage L3 SENSe VOLTage CURRent3 INPut7 current INPut8 voltage L4 SENSe VOLTage CURRent4 INPut9 current INPut10 voltage L5 SENSe VOLTage CURRent5 INPut11 current INPut12 voltage L6 SENSe VOLTage CURRent6 The SE...

Page 86: ...ly SCALe 0 9 to 1 0e 7 1 0 POWer 1 6 CURRent 1 6 VOLTage 1 6 AC DC APERture TIME 15 0e 3 to 3 6e3 0 3 s SWEep FREQuency device dependent Query only FUNCtion ON list of sens func ALL No query COUNt 0 Query only OFF ALL CONCurrent ON OFF ON DATA list of sens func Query only STATus list of sens func Query only SWEep1 2 TIME value MAX MAX Query only POINTS Query only OFFSet TIME 0 value MAX POINTS Que...

Page 87: ... UPPer value Description Sets the voltage current range The specified range is the the actual range of the instrument s input channel Channel scaling factors and external shunts INPut GAIN are not included This command sets RMS of the range the actual peak range is two times higher Range value within the valid interval is rounded up to the next higher possible value Parameter s 0 3 to 1000 0 V 0 0...

Page 88: ... instrument s input channels Channel scaling factors and external shunts INPut GAIN are not included For current channels the list is dependent on the actual setting of INPut SHUNt EXTernal or INTernal Response range_list Comma separated range value list Example s CURR2 RANG LIST 0 03 0 1 0 3 1 3 10 for setting INPut SHUNt INTernal RST state Invalidates Invalidated by SENSe CURRent 1 6 VOLTage 1 6...

Page 89: ...ging interval In synchronous mode the actual averaging interval is changing on the fly The nominal averaging interval is extended to next full signal period To query the actual averaging period SENSe DATA TIME INTerval command must be used If the nominal averaging interval is changed by this command then the synchronization timeout SYNC TIMeout is set to the nominal averaging interval or 0 3 secon...

Page 90: ...UNCtion ON command selects the function s to be SENSed by the instrument The function is specified as a quoted string For example FUNCtion VOLTage AC If CONCurrent is OFF a single function is sent as the parameter This selects this function to be sensed If more than one function is sent an error 108 Parameter not allowed is generated If CONCurrent is ON a comma separated list of sensor_function ma...

Page 91: ...t OFF SENSe DATA function function SENSe DATA STATUS function function SENSe FUNCtion ON ALL Description This command turns ON all of the sensor_function s that the instrument can concurrently sense Example s FUNC ALL RST state Invalidates SENSe FUNCtion ON COUNt Invalidated by SENSe FUNCtion ON SENSe FUNCtion ON COUNt Description This query returns the number of sensor_function s that are ON Resp...

Page 92: ...SENSe FUNCtion CONCurrent ON OFF Description The CONCurrent command indicates whether the SENSor block should be configured to SENSe one function at a time or SENSe more than one function at a time concurrently Parameter s ON If CONCurrent is ON the function s specified as parameter s to the FUNCtion ON command are turned on while the state of other functions is set to off OFF If CONCurrent is OFF...

Page 93: ... function Response measurement_value measurement_value RST state Empty list no values defined Example s DATA VOLT CURR POW Response 221 56 1 056 230 65 Invalidates SENSe FUNCtion ON COUNt SENSe FUNCtion ON Invalidated by SENSe DATA STATus function function Description Returns averaged measurement s followed by the measurement status information The measurement status information indicates the vali...

Page 94: ...in the current range The returned value can be more or less outside the specification 8 Undefined The instrument was not able to calculate a valid value This could be caused by e g loss of synchronization no valid frequency harmonics The instrument returns an Not A Number for the measurement 16 Not available The requested function is not or no longer available e g option not installed function tur...

Page 95: ...ord length in seconds This record length includes pretrigger If the synchronization is on then the max recording duration for SWEep2 is directly dependent on exact number of averaging intervals that will be recorded which is calculated as specified record length nominal averaging interval Parameter s value MAX RST state MAX Example s SWE1 TIME 1 0 SWE1 TIME Response 1 0 Invalidates Invalidated by ...

Page 96: ... variations of frequency of the measured signal Once the recording is finished this command returns actual number of points per function recorded Response count RST state Maximum available number of points Depends on amount of available memory on the instrument Example s SWE1 POINTS Invalidates Invalidated by SENSe SWEep1 2 OFFSet TIME value MAX Description This command specifies pretrigger length...

Page 97: ... is finished this command returns actual number of points per function that was recorded in pretrigger Parameter s Response count RST state 0 Example s SWE1 OFFS POINTS Response 0 Invalidates Invalidated by SENSe SWEep1 2 STATe ON OFF Description Enables disables memory recording of sampled averaged values Only one of the sweeps can be enabled at a time Attempt to enable both sweeps will generate ...

Page 98: ...NSe SWEep1 2 SFACtor Description This command sets sample factor It specifies that every n th value produced by the SENSe SWEep1 2 block gets saved into memory If the sample factor specified would generate a time between two stored samples that is greater than SENSe SWEep1 2 TIME or SENSe SWEep1 2 OFFSet TIME error 221 Settings conflict is generated Parameter s 1 to 65535 When sample factor is set...

Page 99: ...d is reloaded at PowerOn or with RCL Parameter s function SWEep1 REALtime valid functions VOLTage1 6 DC CURRent1 6 DC POWer1 6 ACTive TORQue 1 4 SPEed 1 4 POWer 1 4 MECHanical SWEep2 AVERage valid functions Any functions from the standard instrument function list can be specified RST state VOLTage1 Example s SWE1 FUNC VOLT1 VOLT2 VOLT3 Invalidates Invalidated by SENSe2 Subsystem Option Process Int...

Page 100: ...Analog digital sensor INPut 21 28 TYPe VOLTage FREQuency Description Selects the type of signal measured for a Process Interface input Parameter s VOLTage Input signal is voltage FREQuency Input signal is frequency RST state FREQuency for all Process Interface inputs Example s INP21 TYP VOLT INP25 TYP Response FREQ Invalidates Invalidated by The SENSe2 node distinguishes the mechanical from the el...

Page 101: ...et offset from input value no query Command Parameter Default Value Unit Remark SENSe2 SPEed 1 4 VOLTage SCALe DEFault 1e6 to 1e6 1 rpm V Analogue speed sensor OFFSet VALue 1e6 to 1e6 0 V Input voltage for 0 rpm IMMediate Set offset from input value no query FREQuency SCALe DEFault 1e6 to 1e6 60 rpm Hz Digital torque sensor PULSe OFFSet 1 to 100000 1 pul rev Alternative setting VALue 1e6 to 1e6 0 ...

Page 102: ...0e6 to 1 0e6 Nm V Example s SENS2 TORQ3 VOLT SCAL 10 0 SENS2 TORQ1 VOLT SCAL Response 25 0 RST state 1 0 Invalidates Invalidated by SENSe2 TORQue 1 4 VOLTage OFFSet VALue value Description Sets the input voltage quantity that corresponds to torque zero values This voltage is subtracted from the measured voltage at the input before this difference is multiplied by the scaling factor Parameter s 1 0...

Page 103: ...frequency type input that reflects conversion ratio of torque sensors employed The difference between the frequency on the respective input and the specified offset is multiplied by this scaling factor before any further processing Parameter s 1 0e6 to 1 0e6 rpm Hz Example s SENS2 TORQ2 FREQ SCAL 0 001 SENS2 TORQ1 FREQ SCAL Response 0 001 RST state 1 0 Invalidates Invalidated by SENSe2 TORQue 1 4 ...

Page 104: ...be valid no overload undefined value Parameter s Example s SENS2 TORQ3 FREQ OFFS IMM RST state Invalidates SENSe2 TORQue 1 4 FREQuency OFFSet Invalidated by SENSe2 SPEed 1 4 VOLTage SCALe DEFault value Description Sets the speed scaling factor for voltage type input that reflects conversion ratio of speed sensors employed The difference between the voltage on the respective input and the specified...

Page 105: ... this difference is multiplied by the scaling factor Parameter s 1 0e6 to 1 0e6 V Example s SENS2 SPE3 VOLT OFFS 0 0 SENS2 SPE2 VOLT OFFS Response 0 0 RST state 0 0 Invalidates Invalidated by SENSe2 SPEed 1 4 VOLTage OFFSet IMMediate SENSe2 SPEed 1 4 VOLTage OFFSet IMMediate Description Configure the currently measured speed voltage to be the offset value The measurement must be valid no overload ...

Page 106: ...tate 1 0 Invalidates SENSe2 SPEed 1 4 FREQuency SCALe PULS Invalidated by SENSe2 SPEed 1 4 FREQuency SCALe PULS SENSe2 SPEed 1 4 FREQuency SCALe PULSe value Description Sets the speed scaling factor for frequency type input that reflects conversion ratio of speed sensors employed This alternative method allows the specification of a digital speed sensor to be sent directly to the device The corres...

Page 107: ...sponse 1000 0 RST state 0 0 Invalidates Invalidated by SENSe2 SPEed 1 4 FREQuency OFFSet IMMediate SENSe2 SPEed 1 4 FREQuency OFFSet IMMediate Description Sets the speed frequency offset value from the currently measured value The measurement must be valid no overload undefined value Example s SENS2 TORQ3 FREQ OFFS IMM RST state Invalidates SENSe2 SPEed 1 4 FREQuency OFFSet VALue Invalidated by Dr...

Page 108: ... slip calculation Parameter s value Valid Range 1 to 999 Example s SENS2 POL3 2 SENS2 POL1 Response 1 RST state 1 Invalidates Invalidated by SENSe2 REFerence 1 4 POWer function Description Specifies the measured electrical power used for efficiency calculation Parameter s function can be any of the averaged active powers measured by the instrument POWer 1 6 460 ACTive Example s SENS2 REF3 POW1 SEN...

Page 109: ... 10 3 FIXed VARiable function 1 0e6 to 1 0e6 1 0e6 to 1 0e6 0 0 V FIXed VOLTage1 1 0 V Ref unit 0 0 Ref unit For FIXed mode only For VARiable mode only Output Configuration SOURce VOLTage 1 4 MODE FIXed VARiable Description Selects the operating mode of the analogue outputs Parameter s FIXed The output voltage is directly specified by SOURce VOLTage 1 4 LEVel IMMediate AMPLitude command VARiable A...

Page 110: ...ion Description Specifies the output reference function for VARiable mode Parameter s function Any valid averaged measurement function of the instrument RST state VOLTage1 Example s SOUR VOLT2 FEED POW2 APP SOUR VOLT4 FEED Response CURR3 MEAN Invalidates Invalidated by Scaling SOURce VOLTage 1 4 GAIN value Description Specifies the scaling for the output The difference between the actual value of ...

Page 111: ...Invalidated by SOURce VOLTage 1 4 ZERO value Description Specifies the offset for the output This value is subtracted from the actual value of the reference function before this difference is multiplied by the GAIN setting to calculate the output voltage Parameter s value Valid Range 1 0e6 to 1 0e6 Ref unit RST state 0 0 Example s SOUR VOLT1 ZERO 225 0 SOUR VOLT3 ZERO Response 50 0 Invalidates Inv...

Page 112: ...OSitive NEGative POSitive FILTer Not for EXTernal source LPASs STATe ON OFF OFF FREQuency 1 0e2 1 0e3 1 0e4 1 0e4 Hz TIMeout 0 015 to 3600 0 0 3 s SYNC STATe ON OFF Description Sets whether the averaging interval is controlled by signal frequency on selected input or not If synchronization is turned on the actual averaging period is kept to be a first integer multiple of the sync signal greater th...

Page 113: ...EV UNIT ABS SYNC LEVel UNIT Response PCT RST state PCT Invalidates SYNC LEVel UNIT Invalidated by SYNC SOURce VOLTage 1 6 CURRent 1 6 EXTernal Description Selects the signal source for synchronization and frequency measurement Parameter s VOLTage 1 6 One of the voltage channels is the sync source CURRent 1 6 One of the current channels is the sync source EXTernal External TTL sync input is the syn...

Page 114: ...LT1 LEV 10 0 SYNC VOLT1 LEV Response 0 0 RST state 0 0 Invalidates SYNC SOURce VOLTage 1 6 CURRent 1 6 LEVel AUTO Invalidated by SYNC SOURce VOLTage 1 6 CURRent 1 6 LEVel AUTO SENSe VOLTage 1 6 CURRent 1 6 AC DC RANGe UPPer INPut 1 2 3 4 5 6 7 8 9 10 11 12 SHUNt INPut 1 2 3 4 5 6 7 8 9 10 11 12 GAIN SYNC LEVel UNIT SYNC SOURce VOLTage 1 6 CURRent 1 6 SLOPe POSitive NEGative Description Sets the ac...

Page 115: ...F Filter is OFF Example s SYNC FILT ON SYNC FILT Response 0 RST state OFF Invalidates Invalidated by SYNC SOURce VOLTage 1 6 CURRent 1 6 FILTer LPASs FREQuency 10 0e3 1 0e3 100 0 Description Sets the synchronization signal filter low pass frequency This command has no effect if the selected sync source is EXTernal The frequency unit is Hz currently only SOURce node is implemented Parameter s 10 0e...

Page 116: ...tem The TIMer subsystem contains commands to control the instrument s internal timer This timer provides timestamping information for averaged measurements Command Parameter Default Value Unit Remark TIMer RESet AUTO TIME ON OFF ON No query curr unimplemented Query only TIMer RESet Description Resets the internal timer of the instrument The timer is used to measure memory recording time and number...

Page 117: ... INITiate IMMediate NAME STARt commands do not reset the timer currently unimplemented Parameter s ON INITiate IMMediate NAME STARt resets the timer OFF INITiate IMMediate NAME STARt does not reset the timer Example s TIM RES AUTO ON TIM RES AUTO Response 1 RST state ON Invalidates TIM RESet TIME Invalidated by TIMer RESet TIME Description Queries the absolute time of the last timer reset Reponse ...

Page 118: ...fies the block from memory for which the preamble should be returned Currently only one block can be recorded and the only valid value is 1 Reponse points_per_func integer Indicates amount of data recorded for each function num_of_func integer Number of functions configured for memory recording trigger_index integer Index of data point corresponding to trigger first_point_time_relative_to_trigger ...

Page 119: ...E 00 0 00000E 00 0 00000E 00 0 00000E 00 Example s TRAC DATA PRE Response 0 0 0 0 00000E 00 0 00000E 00 0 00000E 00 0 00000E 00 Invalidates Invalidated by TRACe DATA block count offset sparsing Description Reads data from memory Default data format is user readable ASCii values FORMat DATA ASCii 8 For better performance you can use binary output with 32 bit wide floating point numbers FORMat DATA ...

Page 120: ...the status information The measurement status information indicates the validity of the measurement The status information is appended to the set of measured values Number of status values is equal to the number of returned measured values The format of the status information is controlled by the FORMat STATus commands For best performance use binary output with 32 bit wide floating point numbers ...

Page 121: ... Undefined The instrument was not able to calculate a valid value This could be caused by e g loss of synchronization no valid frequency harmonics The instrument returns an Not A Number for the measurement 16 Not available The requested function is not or no longer available e g option not installed function turned off The instrument returns an Not A Number for the measurement 128 Power Factor cap...

Page 122: ...esponse bytes RST state Returns maximum available memory if no data is recorded This value is instrument dependent Example s TRAC FREE Response 4194176 Invalidates Invalidated by TRACe CATalog LENgth Description Returns the actual number of blocks acquired in memory only 1 is returned Response number_of_blocks RST state 1 Example s TRAC CAT LEN Response 1 Invalidates Invalidated by ...

Page 123: ...tains commands to define condition of an averaged measurement that will trigger an action TRIGger subsystem has effect only if memory recording is enabled Command Parameter Default Value Unit Remark TRIGger STARt SOURce TIME LEVel SLOPe STOP SOURce TIME LEVel SLOPe BUS TIME IMMediate MANual SYNC function yyyy mm dd hh mm ss value POSitive NEGative TIME IMMediate MANual function yyyy mm dd hh mm ss...

Page 124: ...Ltime sweep to use the EXTernal signal jack as a trigger the SYNC source must be set to EXTernal function Condition on an averaged measurement function causes the trigger RST state IMM Example s TRIG STAR SOUR IMM TRIG STAR SOUR Response IMM Invalidates Invalidated by TRIGger STARt TIME yyyy MM dd hh mm ss Description The memory recording will start when the instrument s internal time reaches the ...

Page 125: ...s Invalidated by TRIGger STARt SLOPe POSitive NEGative Description When the stop source for recording is an averaged measurement function then this setting specifies the slope Parameter s POSitive Triggers on positive slope NEGative Triggers on negative slope RST state POS Example s TRIG STAR SLOP POS TRIG STAR SLOP Response POS Invalidates Invalidated by TRIGger STOP SOURce TIME IMMediate MANual ...

Page 126: ...ording immediately turn off the memory subsystem function The acquisition will stop when either memory is full recording time is reached or condition on selected function is met whichever comes first RST state MAN Example s TRIG STOP SOUR MAN TRIG STOP SOUR Response MAN Invalidates Invalidated by TRIGger STOP TIME yyyy MM dd hh mm ss Description The memory recording will stop when the instrument s...

Page 127: ...ge for this setting is not defined RST state 0 0 Example s TRIG STOP LEV 50 0 TRIG STOP LEV Response 25 0 Invalidates Invalidated by TRIGger STOP SLOPe POSitive NEGative Description When the stop source for recording is an averaged measurement function then this setting specifies the slope Parameter s POSitive Stops recording on positive slope NEGative Stops recording on negative slope RST state P...

Page 128: ...t curr unimplemented CONTrol RTS ON IBFull RFR RFR curr unimplemented PACE XON NONE NONE curr unimplemented PARity EVEN ODD ZERO ONE NONE IGNore NONE curr unimplemented DATE Year month day TIME Hours minutes seconds ERRor NEXT Query only ALL Query only KLOCk ON OFF REMote OFF LANGuage DEFault D5255S D5255T D5255M DEFault VERSion Query only SYSTem COMMunicate GPIB SELF ADDRess addr Description Sets...

Page 129: ...AUD Response 115200 Invalidates Invalidated by SYSTem DATE year month day Description Sets the internal instrument s clock date Parameter s year Must be numeric_value The year is in four digit numeric format month Must be numeric_value Its range is 1 to 12 inclusive The number 1 corresponds to the month January 2 to February and so on day Must be numeric_value Its range is 1 to number of days in t...

Page 130: ...is 0 to 59 inclusive RST state Not affected by reset Example s SYST TIME 15 45 23 SYST TIME Response 15 45 23 Invalidates Invalidated by SYSTem ERRor NEXT Description Queries the error event queue for the next item and removes it from the queue The response returns the full queue item consisting of an integer and a string If no errors are in the queue 0 No error is returned Response code text desc...

Page 131: ...ion RST state Not affected by reset Example s SYST ERR ALL Response 102 Syntax Error 113 Undefined Header Invalidates Invalidated by SYSTem KLOCk ON OFF REMote Description This command locks the local controls of an instrument This includes any front panel keyboard or other local interfaces Parameter s ON All front panel controls are locked OFF All front panel controls can be operated by user REMo...

Page 132: ...r Rectified Mean D5255M Legacy command set used by D5255 Motor RST state DEFault Example s SYST LANGuage D5255S Invalidates Invalidated by SYSTem VERSion Description This query returns an NR2 formatted numeris value corresponding to the SCPI version number for which the instrument complies The response has the form YYYY V where Ys represent the year version e g 1990 and the V represents an approve...

Page 133: ...tion VOLTage EVENt CONDition ENABle PTRansition NTRansition CURRent EVENt CONDition ENABle PTRansition NTRansition 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 0 to 65535 Query only Query only Query only Query only Query only Query only Query only Query only STATus QUEStionable VOLTage CONDition Description Returns the con...

Page 134: ...d accepts parameter values of either format in the range 0 through 65535 decimal without error The query response format is NR1 Parameter s bits 0 to 5 Voltage channels 1 3 5 7 9 11 overload positive transition bits 8 to 13 Voltage channels 1 3 5 7 9 11 underload positive transition RST state 0 Example s STAT QUES VOLT PTR 16191 STAT QUES VOLT PTR Response 16191 Invalidates Invalidated by STATus Q...

Page 135: ...ing the event register clears it Response value is a 16 bit integer number in decimal notation bits 0 to 5 Voltage channels 1 3 5 7 9 11 overload event bits 8 to 13 Voltage channels 1 3 5 7 9 11 underload event RST state Has no effect Example s STAT QUES VOLT Response 2 voltage overload on phase 2 Invalidates Invalidated by STATus QUEStionable VOLTage ENABle value Description Sets the enable mask ...

Page 136: ...32767 Response value is a 16 bit integer number in decimal notation bits 0 to 5 Current channels 0 2 4 6 8 10 overload bits 8 to 13 Current channels 0 2 4 6 8 10 underload RST state Has no effect Example s STAT QUES CURR COND Response 2 current overload on phase 2 Invalidates Invalidated by STATus QUEStionable CURRent PTRansition value Description Sets the positive transition filter Setting a bit ...

Page 137: ...ister to cause a 1 to be written in the associated bit of the corresponding event register The command accepts parameter values of either format in the range 0 through 65535 decimal without error The query response format is NR1 Parameter s bits 0 to 5 Current channels 0 2 4 6 8 10 overload negative transition bits 8 to 13 Current channels 0 2 4 6 8 10 underload negative transition RST state 0 Exa...

Page 138: ...ransitions to true a positive transition will occur in the associated summary bit The command accepts parameter values of either format in the range 0 through 65535 decimal without error The query response format is NR1 Parameter s bits 0 to 5 Current channels 0 2 4 6 8 10 enable overload event bits 8 to 13 Current channels 0 2 4 6 8 10 enable underload event RST state 0 Example s STAT QUES CURR E...

Page 139: ...Sets the positive transition filter Setting a bit in the positive transition filter shall cause a 0 to 1 transition in the corresponding bit of the associated condition register to cause a 1 to be written in the associated bit of the corresponding event register The command accepts parameter values of either format in the range 0 through 65535 decimal without error The query response format is NR1...

Page 140: ...y questionable bit 1 Current summary questionable bit 5 Frequency questionable RST state 0 Example s STAT QUES NTR 35 STAT QUES NTR Response 35 Invalidates Invalidated by STATus QUEStionable EVENt Description This query returns the contents of the event register associated with the status structure defined in the command The response is NR1 NUMERIC RESPONSE DATA range 0 through 32767 Note that rea...

Page 141: ...stionable bit 5 Frequency questionable RST state 0 Example s STAT QUES ENAB 35 STAT QUES ENAB Response 35 Invalidates Invalidated by STATus OPERation CONDition Description Returns the contents of the condition register associated with the status structure defined in the command Reading the condition register is nondestructive The response is NR1 NUMERIC RESPONSE DATA range 0 through 32767 Response...

Page 142: ...ing in progress bit 5 Waiting for trigger bit 8 Synchronized if sync source changes there is a glitch bit 10 Averaging averaging in progress at the end of each averaging cycle there is a glitch bit 12 Spectrum CALCulation in progress RST state 0 Example s STAT OPER PTR 5948 STAT OPER PTR Response 5948 Invalidates Invalidated by STATus OPERation NTRansition value Description Sets the negative trans...

Page 143: ...t Description This query returns the contents of the event register associated with the status structure defined in the command The response is NR1 NUMERIC RESPONSE DATA range 0 through 32767 Note that reading the event register clears it Response value is a 16 bit integer number in decimal notation bit 2 Ranging changing range bit 3 Sweeping memory recording in progress bit 5 Waiting for trigger ...

Page 144: ...command accepts parameter values of either format in the range 0 through 65535 decimal without error The query response format is NR1 Parameter s bit 2 Ranging changing range bit 3 Sweeping memory recording in progress bit 5 Waiting for trigger bit 8 Synchronized if sync source changes there is a glitch bit 10 Averaging averaging in progress at the end of each averaging cycle there is a glitch bit...

Page 145: ...tion function list CALCulate TRANsform FREQuency STARt frequency CALCulate TRANsform FREQuency STOP frequency CALCulate DATA count offset CALCulate DATA PREamble CALCulate INTegral STATe ON OFF CALCulate INTegral FUNCtion function list CALCulate INTegral CLEar IMMediate CALCulate INTegral CLEar AUTO ON OFF CALCulate INTegral STARt SOURce CMD TIME MAN CALCulate INTegral STARt IMMediate CALCulate IN...

Page 146: ...IMMediate SEQuence2 INITiate IMMediate NAME STOP INPut 1 12 COUPling AC DC INPut 1 2 3 4 5 6 7 8 9 10 11 12 GAIN 1 0e 7 to 1 0e 7 INPut 1 12 FILTer STATe ON OFF INPut 1 12 FILTer LPASs FREQuency INPut 1 2 3 4 5 6 7 8 9 10 11 12 SHUNt INTernal EXTernal INPut 21 28 TYPe VOLTage FREQuency Option PI1 OUTPut9 STATe ON OFF ROUTe SYSTem 3W 2W SENSe CURRent 1 6 VOLTage 1 6 AC DC RANGe UPPer 0 3 to 1000 0 ...

Page 147: ...uency OFFSet VALue 1e6 to 1e6 Option PI1 SENSe2 TORQue 1 4 FREQuency OFFSet IMMediate Option PI1 SENSe2 SPEed 1 4 VOLTage SCALe DEFault 1e6 to 1e6 Option PI1 SENSe2 SPEed 1 4 VOLTage OFFSet VALue 1e6 to 1e6 Option PI1 SENSe2 SPEed 1 4 VOLTage OFFSet IMMediate Option PI1 SENSe2 SPEed 1 4 FREQuency SCALe DEFault 1e6 to 1e6 Option PI1 SENSe2 SPEed 1 4 FREQuency SCALe PULSe 1 to 100000 Option PI1 SENS...

Page 148: ...er RESet TIME TRACe DATA PREamble block TRACe DATA block count offset sparsing opt_level TRACe DATA STATus block count offset sparsing TRACe FREE TRACe CATalog LENgth TRACe DELete ALL TRIGger STARt SOURce BUS TIME IMMediate MANual SYNC function TRIGger STARt TIME yyyy MM dd hh mm ss TRIGger STARt LEVel level TRIGger STARt SLOPe POSitive NEGative TRIGger STOP SOURce TIME IMMediate MANual function T...

Page 149: ...5535 STATus QUEStionable CURRent CONDition STATus QUEStionable CURRent PTRansition 0 to 65535 STATus QUEStionable CURRent NTRansition 0 to 65535 STATus QUEStionable CURRent EVENt STATus QUEStionable CURRent ENABle 0 to 65535 STATus QUEStionable CONDition STATus QUEStionable PTRansition 0 to 65535 STATus QUEStionable NTRansition 0 to 65535 STATus QUEStionable EVENt STATus QUEStionable ENABle 0 to 6...

Page 150: ...Remote Control Users Guide 4 102 ...

Page 151: ...5 1 Chapter 5 Error Messages Title Page Introduction 5 3 Command Error 5 3 Execution Error 5 5 Device Specific Error 5 7 Query Error 5 8 ...

Page 152: ...Remote Control Users Guide 5 2 ...

Page 153: ...or event queue and can be read out by means of query SYSTem ERRor A short explanation of the error cause is given below The left hand column contains the associated error code Events that generate command errors shall not generate execution errors device specific errors or query errors see the other error definitions in this chapter Command Error An error event number in the range 199 100 indicate...

Page 154: ...c or string data was expected but block data was encountered 108 Parameter not allowed More parameters were received than expected for the header for example the SRE common command only accepts one parameter so receiving SRE 2 1 is not allowed 109 Missing parameter Fewer parameters were received than required for the header for example the SRE common command requires one parameter so receiving SRE...

Page 155: ...ered where prohibited by the device 150 String data error This error is generated when parsing a string data element For example FUNC XYZ will generate this error 151 Invalid string data A string data element was expected but was invalid for some reason see IEEE488 2 7 7 5 2 for example an END message was received before the terminal quote character Execution Error An error event number in the ran...

Page 156: ...s that a legal program data element was parsed but could not be executed due to the current device state see IEEE 488 2 6 4 5 3 and 11 5 1 1 5 222 Data out of range Indicates that a legal program data element was parsed but could not be executed because the interpreted value was outside the legal range as defined by the device see IEEE 488 2 11 5 1 1 5 223 Too much data Indicates that a legal prog...

Page 157: ...physical fault in the device s memory such as parity error 313 Calibration memory lost Indicates that nonvolatile calibration data used by the CAL command has been lost 314 Save recall memory lost Indicates that the nonvolatile data saved by the SAV command has been lost 315 Configuration memory lost Indicates that nonvolatile configuration data saved by the device has been lost 320 Storage fault ...

Page 158: ...scription explanation examples 400 Query error This is the generic query error for devices that cannot detect more specific errors This code indicates only that a Query Error as defined in IEEE 488 2 11 5 1 1 7and 6 3 has occurred 410 Query INTERRUPTED Indicates that a condition causing an INTERRUPTED Query error occurred see IEEE 488 2 6 3 2 3 for example a query followed by DAB or GET before a r...

Page 159: ...lize Interface 6 3 Initialize Instrument 6 5 Perform Simple Power Measurement 6 6 U I P Measurement 6 9 Continuous Power Measurement 6 11 U I P Measurement over Ethernet Interface without VISA Library 6 14 U I P Measurement over RS 232 Interface without VISA Library 6 19 ...

Page 160: ...Remote Control Users Guide 6 2 ...

Page 161: ...xample for ethernet interface using Win32 API later in this chapter Initialize Interface The interface must be initialized before any communication with the instrument takes place The interface must be initialized before any communication with the instrument takes place INITIALIZE INTERFACE This program will open VISA session to the instrument The program uses RS 232 GPIB or ethernet interface dep...

Page 162: ...argv Open default resource manager status viOpenDefaultRM rm CHECK_STATUS status VI_SUCCESS viOpenDefaultRM status Open VISA session to the instrument status viOpen rm RSRC_NAME VI_NULL 0 vi CHECK_STATUS status VI_SUCCESS viOpen status Set timeout to 10 seconds status viSetAttribute vi VI_ATTR_TMO_VALUE 10000 CHECK_STATUS status VI_SUCCESS viSetAttribute status Close VISA session to the instrument...

Page 163: ...Virtual COM Port if 1 define INTFC INTFC_RS232 elif 1 define INTFC INTFC_GPIB elif 1 define INTFC INTFC_LAN else define INTFC INTFC_USB endif if INTFC INTFC_RS232 define RSRC_NAME ASRL1 COM1 define RSRC_ATTR_BAUD 115200 baud rate define RSRC_ATTR_FLOW_CNTRL VI_ASRL_FLOW_RTS_CTS flow control elif INTFC INTFC_GPIB define RSRC_NAME GPIB 5 elif INTFC INTFC_LAN define RSRC_NAME TCPIP 192 168 2 251 23 S...

Page 164: ...LOW_CNTRL endif Query the instrument s ID string viPrintf vi IDN n Read the ID string into buffer viRead vi buffer 256 retCnt Print contens of the buffer on screen printf buffer Bring the instrument into default state viPrintf vi RST n Close VISA session to the instrument status viClose vi CHECK_STATUS status VI_SUCCESS viClose vi status Close session to the default resource manager status viClose...

Page 165: ...ethernet IEEE 802 3 interface define INTFC_USB 4 USB interface Virtual COM Port if 1 define INTFC INTFC_RS232 elif 1 define INTFC INTFC_GPIB elif 1 define INTFC INTFC_LAN else define INTFC INTFC_USB endif if INTFC INTFC_RS232 define RSRC_NAME ASRL1 COM1 define RSRC_ATTR_BAUD 115200 baud rate define RSRC_ATTR_FLOW_CNTRL VI_ASRL_FLOW_RTS_CTS flow control elif INTFC INTFC_GPIB define RSRC_NAME GPIB 5...

Page 166: ...2 set RS 232 I O attributes transmission parameters viSetAttribute vi VI_ATTR_ASRL_BAUD RSRC_ATTR_BAUD viSetAttribute vi VI_ATTR_ASRL_FLOW_CNTRL RSRC_ATTR_FLOW_CNTRL endif if 0 enable termination character for read operations viSetAttribute vi VI_ATTR_TERMCHAR n viSetAttribute vi VI_ATTR_TERMCHAR_EN VI_TRUE if INTFC INTFC_RS232 viSetAttribute vi VI_ATTR_ASRL_END_IN VI_ASRL_END_TERMCHAR endif endif...

Page 167: ...urement is 1 s averaging time The query DATA does not wait for the measurement to be completed so it would return whatever values are available at a moment The delay of 2 seconds gives the instrument enough time to finish the measurement before reading data include visa h include stdio h define INTFC_RS232 1 RS 232 interface define INTFC_GPIB 2 GPIB IEEE 488 2 interface define INTFC_LAN 3 ethernet...

Page 168: ...tderr s failed status 0x lX n func status return 1 ViStatus status void argc void argv Open default resource manager status viOpenDefaultRM rm CHECK_STATUS status VI_SUCCESS viOpenDefaultRM status Open VISA session to the instrument with GPIB address 5 status viOpen rm RSRC_NAME VI_NULL 0 vi CHECK_STATUS status VI_SUCCESS viOpen status Set timeout to 10 seconds status viSetAttribute vi VI_ATTR_TMO...

Page 169: ...ent status viClose vi CHECK_STATUS status VI_SUCCESS viClose vi status Close session to the default resource manager status viClose rm CHECK_STATUS status VI_SUCCESS viClose rm status return 0 undef CHECK_STATUS Continuous Power Measurement Valid signals should be connected to the input channels of instrument otherwise the measured value can be invalid CONTINUOUS POWER MEASUREMENT This program wil...

Page 170: ...SRC_NAME ASRL1 COM1 define RSRC_ATTR_BAUD 115200 baud rate define RSRC_ATTR_FLOW_CNTRL VI_ASRL_FLOW_RTS_CTS flow control elif INTFC INTFC_GPIB define RSRC_NAME GPIB 5 elif INTFC INTFC_LAN define RSRC_NAME TCPIP 192 168 2 251 23 SOCKET elif INTFC INTFC_USB define RSRC_NAME ASRL2 COM2 else error INTFC unsupported value endif ViSession rm Default resource manager session vi VISA session ViChar buffer...

Page 171: ...mission parameters viSetAttribute vi VI_ATTR_ASRL_BAUD RSRC_ATTR_BAUD viSetAttribute vi VI_ATTR_ASRL_FLOW_CNTRL RSRC_ATTR_FLOW_CNTRL endif viPrintf vi RST n Bring the instrument into a default state Delay 3 0 Wait 3 seconds for autorange to complete viPrintf vi TRG n Trigger a measurement Delay 2 0 Wait 2 seconds while 1 opStat 0 viPrintf vi CLS n Clear previously detected event do Run this loop u...

Page 172: ...le will configure the instrument to measure power voltage and current on three phase system 3 x 400V 50Hz and reads the measurements The time it will take to finish the measurement is 1 s averaging time The query DATA does not wait for the measurement to be completed so it would return whatever values are available at a moment The delay of 2 seconds gives the instrument enough time to finish the m...

Page 173: ... wsa_error char func int error fprintf stderr s failed error d n func error 1 WSAGetLastError error int socket_setup void if WIN WSADATA wsaData int wsaerrno Initialize Windows Socket DLL if wsaerrno WSAStartup MAKEWORD 1 1 at least version 1 1 wsaData 0 wsa_error WSAStartup wsaerrno return 1 endif WIN return 0 OK int socket_cleanup void if WIN if WSACleanup SOCKET_ERROR wsa_error WSACleanup 1 end...

Page 174: ... socket 1 return NULL endif s calloc 1 sizeof s if s return NULL s h sh return s OK int socket_connect socket_t s struct sockaddr addr int addrlen int ret 0 OK if WIN if connect s h addr addrlen SOCKET_ERROR wsa_error connect 1 return 1 endif return 0 OK int socket_recv socket_t s void buf int len int flags register int l if WIN l recv s h buf len flags if l SOCKET_ERROR ...

Page 175: ...en sent length if WIN slen send s h buf len flags if slen SOCKET_ERROR wsa_error send 1 return 1 endif return slen int socket_puts socket_t s char str char buf 1024 strcpy buf str strcat buf n if socket_send s buf strlen buf 0 0 return 1 return 0 int socket_gets socket_t s char str char buf 1024 char p if socket_recv s buf sizeof buf 0 0 return 1 if p memchr buf n sizeof buf NULL if p buf p 1 r p ...

Page 176: ...emset addr_in 0 sizeof struct sockaddr_in addr_in sin_family AF_INET addr_in sin_port htons PORT addr_in sin_addr s_addr inet_addr HOST create socket s socket_create if s return 1 if 0 fprintf stderr socket_connect n endif if socket_connect s struct sockaddr saddr sizeof saddr 0 return 1 if 0 fprintf stderr socket_connect done n endif if 0 if socket_puts s IDN 0 return 1 if socket_gets s buffer 0 ...

Page 177: ...ffer Print the value on the screen socket_cleanup return 0 U I P Measurement over RS 232 Interface without VISA Library This example will configure the instrument to measure power voltage and current on three phase system 3 x 400V 50Hz and reads the measurements MEASURE U I P wait synchronously This example will configure the instrument to measure power voltage and current on three phase system 3 ...

Page 178: ... b a b if WIN serial port handle CreateFile COMx typedef HANDLE sio_handle_t endif typedef unsigned char byte typedef struct sio_handle_t handle I O buffer similar to FILE struct byte base address of allocated buffer byte ptr pointer to first available byte in buffer base int size size in bytes of allocated buffer base int cnt current number of bytes available in buffer at ptr buf sio_t static voi...

Page 179: ...DesiredAccess 0 DWORD dwShareMode NULL LPSECURITY_ATTRIBUTES lpSecurityAttributes OPEN_EXISTING DWORD dwCreationDisposition 0 DWORD dwFlagsAndAttributes NULL HANDLE hTemplateFile if handle INVALID_HANDLE_VALUE sio_error CreateFile return 1 sio handle handle dcb DCBlength sizeof dcb if GetCommState handle dcb sio_error GetCommState return 1 Baud Rate dcb BaudRate SIO_BAUDRATE Character Size dcb Byt...

Page 180: ...ved even if no characters have been received i e read operation does not block timeouts ReadIntervalTimeout MAXDWORD timeouts ReadTotalTimeoutMultiplier 0 timeouts ReadTotalTimeoutConstant 0 Write timeout 0 n write operation will not block timeouts WriteTotalTimeoutMultiplier 0 timeouts WriteTotalTimeoutConstant 0 if SetCommTimeouts handle timeouts sio_error SetCommTimeouts return 1 Set up I O buf...

Page 181: ... 0 OK static int sio_read sio_t sio byte buf int bufsize DWORD l if ReadFile sio handle buf 1 l NULL sio_error ReadFile return 1 return l static int sio_write sio_t sio byte buf int bufsize DWORD l len for len 0 len DWORD bufsize len l if WriteFile sio handle buf len bufsize len l NULL sio_error WriteFile return 1 return len static int sio_fillbuf sio_t sio register int l l sio_read sio sio buf ba...

Page 182: ...tc sio_t sio int pchar int ret if sio buf cnt ret sio_fillbuf sio 0 return ret sio buf cnt pchar sio buf ptr return 1 OK static int sio_gets sio_t sio char str register int len int c ret for len 0 if ret sio_getc sio c 0 return ret if ret 0 Sleep 10 no data on input don t hog CPU else if c r continue str len char c if c n break str len 0 terminate string return 0 OK ...

Page 183: ...io_gets sio buffer 0 return 1 puts buffer endif if 1 Bring the instrument into a default state sio_puts sio RST endif Select three wattmeter configuration sio_puts sio ROUT SYST 3W SYNC source voltage phase 1 sio_puts sio SYNC SOUR VOLT1 Set voltage range on voltage channel 1 to 300 V sio_puts sio VOLT1 RANG 300 0 Set current channel 1 to autorange sio_puts sio CURR1 RANG AUTO ON Set averaging tim...

Page 184: ...Remote Control Users Guide 6 26 ...

Reviews: