usbdmx.com Home of the opto isolated, bus powered, DMX512 interface with both in and out universes. Cheap and simple to build. USBDMX logo

Channel Range

Most commands will execute against either a single channel or a number of channels. Where the command is executing against a number of channels we call this a range. The range does not need to be made solely of consecutive channels.

A channel range is made up by using channel numbers and 3 possible modifiers :

A simple range would be to use 2 or more channels, to do this you use the '+' modifier to join them :

1 + 2 = 1,2
1 + 2 + 3 = 1,2,3

Where the range is to be made up of consecutive numbers you may use the 'Thru' modifier. This selects all channel numbers inclusive :

1 Thru 5 = 1,2,3,4,5
7 Thru 9 = 7,8,9

You can press 'Thru' a second time to automatically select the last channel. For instance the command 1 Thru Thru ON would turn all channels on.

You can also use the '+' modifier to combine multiple ranges together :

1 Thru 5 + 7 Thru 9 = 1,2,3,4,5,7,8,9

Finally the '-' modifier can be used to remove channels from a range :

1 Thru 9 - 6 = 1,2,3,4,5,7,8,9

Complex channel ranges can be made by combining as many ranges together as required using the modifiers :

1 Thru 20 - 5 Thru 10 = 1,2,3,4,11,12,13,14,15,16,17,18,19,20
1 Thru 20 - 5 Thru 10 - 15 + 30 = 1,2,3,4,11,12,13,14,16,17,18,19,20,30