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

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.
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
// set isolation relay closed
OUTP
// set sense relay closed
OUTP
// close output relay
SOUR
// program output current to 1.0 A.
SOUR
// confirm the output current setting (response: 1.0).
SOUR
// program output voltage to 5.0 VDC.
SOUR
// confirm the output voltage setting (response: 5.0).
MEAS
// measure the actual output current (response: ~ 0.0 with no load on output).
MEAS
// 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
// close output relay
SOUR
// program the OVP trip point to 12.5 VDC.
SOUR
// confirm the OVP trip point setting (response: 12.5).
SOUR
// program output current to 1.0 A.
SOUR
// program output voltage to 12.0 VDC.
SOUR
// program output voltage to 13.0 VDC - cause OVP trip!
// use the
OUTP
query to confirm that the unit faulted
off, and use the
STAT
query to confirm which
fault.