
147
XtrapulsPac - User Guide
Chapter 3 – Reference
3.2.3.8.6 - Sequence Chaining
The sequence chaining is controlled by 4 parameters:
-
SeqCount,
-
SeqNext,
-
SeqLink,
- and StartCond.
"SeqCount" defines how many times this sequence will be executed. Then the sequencer will link to SeqNext if
the counter is not 0 or link to SeqLink if the counter has expired.
There must be only one SeqCount at a time.
"SeqNext" defines the sequence to be executed after the current one.
When a sequence is started:
If "StartCond" is defined:
If "start condition" is valid, then the sequence will be executed and then link "SeqNext"
If "Start condition" is not valid, then the sequence is not executed but jump to "SeqLink"
If "StartCond" is not defined:
the sequence will be executed and then link "SeqNext".
COUNTER LOOP
The sequence linkage is controlled by the “SeqNext”, “SeqCount” and “SeqLink” parameters.
Application example:
Sequence 1:
SeqCount = 0
SeqNext = 2
SeqLink = -1
Sequence 2:
SeqCount = 2
SeqNext = 3
SeqLink = 1
Sequence 3:
SeqCount = 0
SeqNext = -1
SeqLink = -1
Note: SeqNext = -1 or SeqLink = -1 corresponds to an empty field in the Gem Drive Studio software.
If the execution is starting at sequence 1, the program will be the following:
Sequence 1
Start of sequence 1, then connection to sequence 2 (parameter "SeqNext ")
First execution of sequence 2, then connection to sequence 1 (parameter "SeqLink")
Execution of sequence 1, then connection to sequence 2 (parameter "SeqNext ")
Second execution of sequence 2, then connection to sequence 3 (parameter "SeqNext ")
Execution of sequence 3, then end of the program.
Sequence 1
Sequence 2
Sequence 3
Sequence 2