; 'Triton Blue Wash Pro 1200', 17 DMX Channels, filename: VWASH1200.R20
;
;   Date       By                Description
;   12-11-07   M Freile          Created - TRITON BLUE
;   12-11-07   M Freile          Checked
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE  VWASH1200                           mode=17 DMX, 16bit  17 DMX Channels
NAME "Triton Blue" "Wash Pro 1200"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE  1  17  M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR  2   630   265
;       |    |    |
;       |    |    |_______ maximum tilt movement (in degrees)
;       |    |____________ maximum pan movement (in degrees)
;       |_________________ 1 means moving mirror, 2 means moving head
;
;----------------------------------------------------------------------------
; Patching Information. (Upto 10 lines allowed)
; Upto 10 lines of 159 chars are allowed including formulae
; Variables used d=dmx number(1..512), h=handle(1..60), n=devicename (11-char)
; Allowed modifiers
;   +,-,*,/,(,) basic arithmatic
;   % means remainder after divide
;   & means logical AND
;   | means logical OR
;   R means reverse the bits of the current result (operates on a byte)
;   ^ means logical Exclusive OR (operates on a byte)
;   > means shift to the right
;   < shift to the left
;   r followed by number means get the value of that parameter
;   d DMX address
;   n Fixture name, a 0 terminated character string
;   h The handle number
DEVICEADDRESS
"Handle  %2d"h
"Fixture %11s"n
"DMX     %03d"d
""
""
"Set to 17 DMX, 16bit"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=495
;
; DMX number must be divisible by this
DIVBY=1
;
;----------------------------------------------------------------------------
; DMX channel description
;
; Column by column description of each DMX channel
; 1. The channels bank number (1..12)
; 2. The upper faders in the bank (1) or the lower faders in the bank (61)
; 3. Channel type (L=LTP, H=HTP, I=Instant LTP, S=16-bit instant LTP,
;    s=16-bit Fadeable LTP
; 4. DMX offset (1..number of DMX channels)
; 5. The output level is proportionally recdced by this level (0..100%)
; 6. The curve number (applicable only to HTP channels), usually set to 1
; 7. Inverted (I) or Normal (N)
; 8. Attribute type (A=Color Wheel1, B=Cyan, C=Magenta, D=Yellow,
;         E=Pan, F=Tilt, G=Iris, H=Dimmer, I=Gobo1, J=Gobo2, K=Gobo1_Rotate,
;         L=Focus, M=Gobo2_Rotate, N=Color Wheel2, O=Shutter, P=Prism, Q=Zoom,
;         R=Effect_Rotate, S=Frost, T=Red, U=Green, V=Blue, 0=uncategorised)
; 9. Checksum channel (Always 1)
;10. Attribute name, must be enclosed in quotes and upto 12 charcaters allowed
;11. The ON value of this channel (0..255)
;12. The Highlight level of this channel
;13. The Lowlight level of this channel
;
DMX
2    61   L   10   100   1N   O   1   "Shutter"          32     0     0
1     1   H   11   100   1N   H   1   "Dimmer"          255     0     0
3    61   s    5   100   1N   E   1   "Pan"             128     0     0
0     0   L   16   100   1N   E   1   "Pan Low"         128     0     0
3     1   s    6   100   1N   F   1   "Tilt"            128     0     0
0     0   L   17   100   1N   F   1   "Tilt Low"        128     0     0
10    1   L    1   100   1N   B   1   "Cyan"              0     0   255
10   61   L    2   100   1N   C   1   "Magenta"           0     0   255
9    61   L    3   100   1N   D   1   "Yellow"            0   255    51
9     1   L    4   100   1N   0   1   "CTO"               0     0     0
4     1   I    8   100   1N   A   1   "Colour 1"          0     0     0
4    61   I    9   100   1N   N   1   "Colour 2"          0     0     0
19    1   I   14   100   1N   0   1   "Col Macros"        0     0     0
5     1   L   12   100   1N   Q   1   "Zoom"            127     0     0
8     1   L    7   100   1N   0   1   "P/T Speed"         0     0     0
8    61   L   13   100   1N   0   1   "CMY Speed"         0     0     0
20    1   I   15   100   1N   0   1   "Control"           0     0     0
END
;
;----------------------------------------------------------------------------
TEXT
Triton Blue Wash Pro 1200
17 DMX, 16bit

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.
END

ATTR
END

;----------------------------------------------------------------------------
; Preset Palette Tables

PFTABLE "Pan/Tilt"   -1  16  17
"Middle"             21  80  80
"Left"               22  4F  80
"Right"              23  B0  80
"Top"                24  80  4F
"Bottom"             25  80  B0
"TLeft"              26  4F  4F
"TRight"             27  B0  B0
"BLeft"              28  4F  B0
"BRight"             29  B0  4F
PFEND

PFTABLE "Colour"     -1   1   2   3
"Open"                1   0   0   0
"Red"                 2  7F  DE  FA
"Amber"               3  4C  FC  C7
"Yellow"              4   0  E5  24
"Green"               5  DB  D1   A
"Cyan"                6  DB  82   A
"Blue"                7  DE   8  D4
"Lavender"            8  B5   3  E3
"UltraViolet"         9  FF  78  FA
"Magenta"            10  78  94  FF
PFEND

;----------------------------------------------------------------------------
; Macros

MACRO "Lamp On"       1  15
"data"                0  32
"delay"               1  32
"data"                0   0
MEND

MACRO "Lamp Off"      2  15
"data"                0  46
"delay"               1  32
"data"                0   0
MEND

MACRO "Reset"         3  15
"data"                0  52
"delay"               1  32
"data"                0   0
MEND

;----------------------------------------------------------------------------
; Range Tables

; Column by column description...
; 1. Low DMX value (inclusive)
; 2. High DMX value (inclusive)
; 3. Displayed text (max 11 chars)
; Variables used a=low val, b=high val, c=DMX val

RANGE 10  ;Shutter
0   31   "Closed"
32  63   "Open"
64  95   "Strobe %3d%%"0+(((c-a)*100)/(b-a))
96  127  "Open"
128 159  "Pulse %3d%%"0+(((c-a)*100)/(b-a))
160 191  "Open"
192 223  "Rnd St %3d%%"0+(((c-a)*100)/(b-a))
224 255  "Open"
REND

RANGE 8  ;Colour 1
0   24   "Open"
25  49   "Colour 1"
50  74   "Colour 2"
75  99   "Colour 3"
100 127  "Colour 4"
128 187  "Sc CW %3d%%"100-(((c-a)*100)/(b-a))
188 193  "No Scroll"
194 255  "Sc CCW %3d%%"0+(((c-a)*100)/(b-a))
REND

RANGE 9  ;Colour 2
0   24   "Open"
25  49   "Colour 1"
50  74   "Colour 2"
75  99   "Colour 3"
100 127  "Colour 4"
128 187  "Sc CW %3d%%"100-(((c-a)*100)/(b-a))
188 193  "No Scroll"
194 255  "Sc CCW %3d%%"0+(((c-a)*100)/(b-a))
REND

RANGE 14  ;Col Macros
0   7    "Open"
8   247  "Macro %3d"1+(((c-a)*29)/(b-a))
248 255  "Random CMY"
REND

RANGE 7  ;P/T Speed
0   225  "%3d%%"100-(((c-a)*100)/(b-a))
226 235  "BO on P/T"
236 245  "BO All"
246 255  "No Func"
REND

RANGE 13  ;CMY Speed
0   255  "%3d%%"100-(((c-a)*100)/(b-a))
REND

RANGE 15  ;Control
0   19   "Col Norm"
20  39   "Col Any Pos"
40  59   "Lamp On"
60  79   "Lamp Off"
80  84   "Reset All"
85  87   "Reset PT"
88  90   "Reset Col"
91  93   "Reset Gobo"
94  96   "Reset Dim"
97  99   "Reset Other"
100 119  "Program 1"
120 139  "Program 2"
140 159  "Program 3"
160 179  "Program 4"
180 199  "Program 5"
200 219  "Program 6"
220 239  "Program 7"
240 255  "Music"
REND

