beautypg.com

Examples of using the scpi commands – AMETEK ReFlex Programming Manual User Manual

Page 90

background image

ReFlex Power™ Programming Manual

DC Module Remote Programming

86

M380056-03 Rev M

Command

Description

:DELete

Deletes the specified group. NR1 is 1021 for the parallel group that has the
parallel-master module address of 21. is 2003 for the series group that has the
series-master module address of 3.

:DELete:ALL

Deletes any and all the groups in the RFP system

3.17

EXAMPLES OF USING THE SCPI COMMANDS

The following examples demonstrate programming a module to control and to
readback the output using the SCPI commands. The maximum voltage and current
output is dependent on the particular model. The examples list only the SCPI
commands; the code required to send the commands is dependent on the type of
language you are using (e.g., C or BASIC) and hardware.

EXAMPLE: Program a module with no load at the output to 5 VDC @ 1A, and verify the output.

// Use

SYST:ERR?

after each command to verify no programming errors.

// turn on the unit.

*CLS

// clear the unit to its power-on default settings.

*RST

// reset the unit.

OUTP:ISOL 1

// set isolation relay closed

OUTP:SENS 1

// set sense relay closed

OUTP:STAT 1

// close output relay

SOUR:CURR 1.0

// program output current to 1.0 A.

SOUR:CURR?

// confirm the output current setting (response: 1.0).

SOUR:VOLT 5.0

// program output voltage to 5.0 VDC.

SOUR:VOLT?

// confirm the output voltage setting (response: 5.0).

MEAS:CURR?

// measure the actual output current (response: ~ 0.0 with no load on output).

MEAS:VOLT?

// measure the actual output voltage (response: ~ 5.0).

EXAMPLE: Program a DC power supply (with no load at the output) to generate a Fault upon an
overvoltage protection trip condition.

// Use

SYST:ERR?

after each command to verify no programming errors.

// Turn on the unit.

*CLS

// clear the error queue.

*RST

// reset the unit.

OUTP:STAT 1

// close output relay

SOUR:VOLT:PROT 12.5

// program the OVP trip point to 12.5 VDC.

SOUR:VOLT:PROT?

// confirm the OVP trip point setting (response: 12.5).

SOUR:CURR 1.0

// program output current to 1.0 A.

SOUR:VOLT 12.0

// program output voltage to 12.0 VDC.

SOUR:VOLT 13.0

// program output voltage to 13.0 VDC - cause OVP trip!

// use the

OUTP:STAT?

query to confirm that the unit faulted

off, and use the

STAT:MOD:FAUL?

query to confirm which

fault.