Tutorial
Sequence operations
A sequence consists of programs and steps. A program is a collection of steps. Steps are executed in order one at a time, starting from step 1. Upon completion of the last step of a program, execution of that program has been completed once. The value at the end of the sequence will be the value of the last step.
You can create up to 30 programs in the PLZ12005WH/PLZ20005WH. You can use a combined total of 10000 steps for all the programs. For an overview of the sequence functions, see the user’s manual contained in the accompanying CD-ROM.
In this example, we will create a sequence that works under the following conditions in constant current (CC) mode.
Operating condition
Operation mode: CC
Program1
Program name: PROGRAM1, Number of loops: 2
Run | Load setting value | Execution time | Load | Transition method | Trigger output |
---|---|---|---|---|---|
Step 1 | 8 A | 10 seconds | On | Ramp | None |
Step 2 | 6 A | 12 seconds | On | Immediate | None |
Step 3 | 0 A | 7 seconds | Off | - | None |
Step 4 | 3 A | 15 seconds | On | Immediate | Trig Out |
Explanation
Program 1 executes steps 1 to 4 and ends the first execution. Program1 is then executed one more time, and this completes this sequence.
Representing this sequence in graph form looks as follows.
1: If Load of step 1 is set to Ramp and the program is repeated, the start current of step 1 will always be 0 A.
Example of commands used to create a sequence
:FUNC CC | ‘Set the operation mode to CC mode |
:PROG:CRE "/PROGRAM1" | ‘Newly create PROGRAM1 |
:PROG "/PROGRAM1" | ‘Select PROGRAM1 |
:PROG:LOOP 2 | ‘Set the number of loops of PROGRAM1 to 2 |
:PROG:STEPS:COUN 4 | ‘Set the number of steps of PROGRAM1 to 4 |
:PROG:STEP1:LEV 8A | ‘Set the setting value of Step 1 to 8 A |
:PROG:STEP1:DWEL 10S | ‘Set the execution time of Step 1 to 10 seconds |
:PROG:STEP1:INP ON | ‘Set Step 1 to load on |
:PROG:STEP1:TRAN RAMP | ‘Set Step 1 to Ramp transition |
:PROG:STEP2:LEV 6A | ‘Set the setting value of Step 2 to 6 A |
:PROG:STEP2:DWEL 12S | ‘Set the execution time of Step 2 to 12 seconds |
:PROG:STEP2:INP ON | ‘Set Step 2 to load on |
:PROG:STEP2:TRAN IMM | ‘Set Step 2 to Immediate transition |
:PROG:STEP3:DWEL 7S | ‘Set the execution time of Step 3 to 7 seconds |
:PROG:STEP3:INP OFF | ‘Set Step 3 to load off |
:PROG:STEP4:LEV 3A | ‘Set the setting value of Step 4 to 3 A |
:PROG:STEP4:DWEL 15S | ‘Set the execution time of Step 4 to 15 seconds |
:PROG:STEP4:INP ON | ‘Set Step 4 to load on |
:PROG:STEP4:TRAN IMM | ‘Set Step 4 to Immediate transition |
:PROG:STEP4:TRIG:GEN TRIGOUT | ‘Trigger output to TRIGOUT pin at Step 4 |
Executing and stopping a sequence
Send the following commands to execute a sequence immediately.
:TRIG:TRAN:SOUR IMM | 'Set the trigger source to IMM. |
:PROG "/PROGRAM1" | ‘Select PROGRAM1 |
:INIT:TRAN:PROG | ‘Start PROGRAM1 |
To stop a sequence that is being executed, send the following command.
Executing a sequence using triggers
You can use triggers to synchronize sequence operation.
For example, if you are using a software trigger to execute PROGRAM1, set the trigger source to BUS.
:TRIG:TRAN:SOUR BUS | 'Set the trigger source to BUS. |
:PROG "/PROGRAM1" | ‘Select PROGRAM1 |
:INIT:TRAN:PROG | ‘Enter wait state for sequence execution trigger |
*TRG | ‘Sends a software trigger and starts the sequence |
:INIT:TRAN:PROG pulls the TRIGger subsystem out of the IDLE state and places it in the trigger feature start (initiated) state.
At that time, if :TRIG:TRAN:SOUR is IMM, the sequence is immediately executed by the selected program.
If :TRIG:TRAN:SOUR is other than IMM, the state is the trigger wait (WTG) state, and when the source signal set with :TRIG:TRAN:SOUR is sent, the sequence is executed by the selected program.
When the sequence completes or is stopped, the TRIGger subsystem enters the IDLE state again.
Related information