How a Sequence Works

Before writing a sequence it is important to understand how one works. A sequence is a list of 256 "on" of "off" settings. It steps between these at a programmed rate, set by the Sample Period CV (CV82, CV85, CV88, CV91). After it has completed the last "on" or "off" setting, it runs the sequence again a programmed number of times set by the Repeat Count CV(CV83, CV86, CV89, CV92). After it has finished the complete sequence that number of times, it stays on the last "on" or "off" setting and waits for a programmed delay, measured in seconds, set by the Delay after Sequence CV (CV84, CV87, CV90, CV93). After that delay the sequence begins again.

How to Use the Settings

It's appropriate to consider why the settings were provided before you try to use them.

The sample period is the length of time the output dwells on a single "on" or "off" setting. It is programmable because the sequences could need t cover very fast events (e.g. a flickering light or the arc from a welding torch) through to very slow events (lights in a house going on and off as poeple move between rooms). The CV is set to a value between 1 and 255 that creates sample periods between 20 milliseconds and 47 seconds. The spreadsheet gives a table of the sample periods, and the total sequence length (256 times the period).

  • For CV values less than or equal to 64, the sample rate goes up in steps of 20 milliseconds
  • For CV values between 64 and 128, the sample period goes up in steps of 80 milliseconds
  • For CV values above 128 the sample period goes up in steps of 320 milliseconds

The repeat count has been provided to allow sequences to run for longer than the number of "on" or "off" settings programmed. The Delay exists to allow the sequence to pause for a programmed period after the number of repeats. It is used in the "welding" sequence, for example to simulate the welder changing his welding rod after several runs through the sequence.

Creating a Sequence

The 256 "on" or "off" settings for the sequence are stored in 32 consecutive CVs. These are at addresses as follows:

User defined sequence CV locations
1 94-125
2 126-157
3 158-189
4 190-221

The first 8 settings are stored in the 1st CV; the second 8 settings in the 2nd CV, and so on until the (249th to 256th) settings go into the 32nd CV.

CV Settings
1 1 to 8
2 9 to 16
32 249 to 256

For each group of 8 settings the CV is calculated as follows.

Start with a value for the CV of 0

  • If the first setting is on, add 1 to the CV
  • If the second setting is on, add 2 to the CV
  • If the third setting is on, add 4 to the CV
  • If the fourth setting is on, add 8 to the cV
  • If the fifth setting is on, add 16 to the CV
  • If the sixth setting is on, add 32 to the CV
  • If the seventh setting is on, add 64 to the CV
  • If the eighth setting is on, add 128 to the CV