Sequence creation and execution examples – AMETEK SFA Series Ethernet Programming User Manual
Page 119

SG Series Programming
SCPI Command Operation
M550129-03 Rev K
6-47
6.14.9
Sequence Creation and Execution Examples
These examples assume that the sequence memory is empty. In other
words, no sequences are presently defined. If you are doing these
examples for a second time, then the sequence memory must first be
cleared. Clear all sequence memory by issuing the command
PROG:DEL:ALL.
Delete all sequences from non-volatile memory using the following
command:
PROG:DEL:ALL
EXAMPLE 1
Issue
*RST
to reset the unit to a known state.
To create a sequence named “SEQ1”, first issue the NAME command as
follows:
PROG:NAME “SEQ1”
If you query the state of the selected sequence, it responds EMPTY.
PROG:STAT?
Response: “EMPTY”
Then memory needs to be allocated to the newly named SEQ1 sequence:
PROG:MALL DEFAULT
After memory has been allocated, the state of the SEQ1 sequence is EDIT, as
the following query shows:
PROG: STAT?
Response: “EDIT”
Once the sequence is in the EDIT state, we are ready to send a sequence of
programming steps to define a sequence of power supply settings:
PROG:DEF 1, VIMODE,3,4,11,10
//go to 3 volts, 4 amps, 11 volts ovp, for 10 seconds
PROG:DEF 2, RAMPTOV,3,5,4,11,10
//ramp from 3 to 5 volts in 10 sec.
PROG:DEF 3, VIMODE, 5, 4, 11, 10
//hold 5 volts for 10 seconds
PROG:DEF 4, RAMPTOV, 5, 3, 4, 11, 10
//ramp from 5 to 3 volts in 10 sec.
PROG:DEF 5, VIMODE, 3, 4, 11, 10
//hold 3 volts for 10 seconds
PROG:DEF 6, STOP
//stops running the sequence while the unit
remains at the state of the last command
within the sequence.
Only 6 steps are intended for this example, so the sequence is complete. To take the
sequence out of the EDIT state, it needs to be sent to the COMPLETE state, which
becomes the STOPPED state, using the following command: