; ' DLW 480 BSW', 24 DMX Channels, filename: DLW480BSW24.R20
;  Copyright © Avolites Ltd. 2016
;
;   Date       By                Description
;   16-03-09   Fineart-SH          Created
;    
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE  DLW480BSW24                           mode=Standard  24 DMX Channels
NAME "DLW" "DLW480BSW24"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE  1  24  M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR  2   540  270
;       |    |    |
;       |    |    |_______ 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 Extended"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=488
;
; 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..20)
; 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 reduced 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=Colour Wheel 1, 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=Colour Wheel 2, 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 characters 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
3    61   s   1    100   1N   E   1   "Pan"               128   128   128
0     0   L   2    100   1N   0   1   "Pan Low"           128   128   128
3     1   s   3    100   1N   F   1   "Tilt"              128   128   128
0     0   L   4    100   1N   0   1   "Tilt Low"          128   128   128
2    61   L    5   100   1N   O   1   "Shutter"           35    35    35
1     1   H    6   100   1N   H   1   "Dimmer"            255   255   255
0     0   s    7   100   1N   0   1   "Dimmer Low"        255   255   255
5    61   s   8    100   1N   L   1   "Focus"             128  -1    -1
5     1   L   9   100   1N   Q   1   "Zoom"              128  -1    -1
10   1    L    10  100   1N   B   1   "Cyan"              0     0    0
10  61    L    11  100   1N   C   1  "Magenta"            0     0    0
9    61   L    12  100   1N   D   1  "Yellow"             0     0    0
2     1   L    13  100   1N   A   1   "CTO"            0     0     0
4     1   L    14  100   1N   A   1   "Color1"            0     0     0
6     1   L   15   100   1N   I   1   "Gobo1"             0     0     0
6    61   L   16   100   1N   K   1   "Gobo1 Rot"         0     0     0
7     1   L   17   100   1N   I   1   "Gobo2"             0     0     0
11    1   L   18   100   1N   P   1   "Prism1 "            0     0     0
11    61   L   19   100   1N   P   1   "Prism2 "            0     0     0
12    1   L   20   100   1N   R   1   "Prism Rot"         0     0     0
13    1   L   21   100   1N   P   1   "Prism3 "            0     0     0
13   61   L   22   100   1N   S   1   "Frost"             0     0     0
14    1   L   23   100   1N   0   1   "MACRO"             0     0     0
14   61   L   24   100   1N   0   1   "Lamp Control"      0     0     0
END
;
;----------------------------------------------------------------------------
TEXT
DLW461BSW25
standard
25 ch

Bank      Faders
 Bank WheelA WheelB
---------------------
 1 Dimmer    --
 2 Color1   Shutter
 3 Tilt      Pan
 4 Color2    Color3 
 5 Zoom     Focus
 6 Gobo1    Gobo1 Rot
 7 Gobo2      --
 8 --               --
 9 --              Yellow
10 Cyan         Magenta
11 Prism1      Prism2
12  --            Prism Rot
13  Prism3     Frost
14  Macro        Lamp_control
15  --             --
16  --            --
17  --           --
END
Created by lifei
Mailto:524241481@qq.com
Mob:
QQ:

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.
END

ATTR
Function Obsolete
END

;----------------------------------------------------------------------------
; Preset Palette Tables

;----------------------------------------------------------------------------
; Macros

MACRO "Lamp On"  1   25
"data"           0   FF
"delay"          1   3C
"data"           0   0
MEND

MACRO "Reset"    2   24
"data"           0   FF
"delay"          1   3C
"data"           0   0
MEND

MACRO "Lamp Off" 3   25
"data"           0   63
"delay"          1   3C
"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 6  ;Dimmer
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 5  ;Shutter
0   19    "Closed"
20  49    "Open1"
50  200  "Strobe %3d%%"(c-a)*100/(b-a)
201 210  "Open2"
211 225  "Rnd St %3d%%"(c-a)*100/(b-a)
226 238  "Rnd St %3d%%"(c-a)*100/(b-a)
239 251  "Rnd St %3d%%"(c-a)*100/(b-a)
REND

RANGE 20  ;Gobo2
0	3	"Open"
4	7	"Gobo1"
8	11	"Gobo2"
12	15	"Gobo3"
16	18	"Gobo4"
19	22	"Gobo5"
23	26	"Gobo6"
27	30	"Gobo7"
31	34	"Gobo8"
35	37	"Gobo9"
38	41	"Gobo10"
42	45	"Gobo11"
46	49	"Gobo12"
50	53	"Gobo13"
54	56	"Gobo14"
57	60	"Gobo15"
61	64	"Gobo16"
65	68	"Gobo17"
69	71	"Gobo18"
72	113	"ScrollCW f_s"
114	117	"NoScroll"
118	159	"ScrollCCW s_f"
160	165	"Gobo1 Shake"
166	170	"Gobo2 Shake"
171	175	"Gobo3 Shake"
176	181	"Gobo4 Shake"
182	186	"Gobo5 Shake"
187	191	"Gobo6 Shake"
192	197	"Gobo7 Shake"
198	202	"Gobo8 Shake"
203	207	"Gobo9 Shake"
208	213	"Gobo10 Shake"
214	218	"Gobo11 Shake"
219	223	"Gobo12 Shake"
224	229	"Gobo13 Shake"
230	234	"Gobo14 Shake"
235	239	"Gobo15 Shake"
240	245	"Gobo16 Shake"
246	250	"Gobo17 Shake"
251	255	"Gobo18 Shake"
REND

RANGE 17  ;Gobo1
0	9	"Open"
10	18	"Gobo1"
19	27	"Gobo2"
28	36	"Gobo3"
37	45	"Gobo4"
46	54	"Gobo5"
55	63	"Gobo6"
64	72	"Gobo7"
73	81	"Gobo8"
82	97	"Gobo1 Shake"
98	113	"Gobo2 Shake"
114	129	"Gobo3 Shake"
130	145	"Gobo4 Shake"
146	161	"Gobo5 Shake"
162	177	"Gobo6 Shake"
178	193	"Gobo7 Shake"
194	209	"Gobo8 Shake"
210	232	"ScrollCW f_s"
233	255	"ScrollCCW s_f"
REND

RANGE 18  ;Gobo1 Rot
0   127  "R/P %3d%%"(c-a)*100/(b-a)
128 190  "Spin C %3d%%"100-((c-a)*100/(b-a))
191 192  "No Spin"
193 255  "Spin C %3d%%"(c-a)*100/(b-a)
REND

RANGE 21  ;Prism
0   10   "Open"
11   92  "Prism 1"
93  174  "Prism 2"
175 255  "Prism1+2"
REND

RANGE 22  ;Prism Rot
0   127  "%3d%%"(c-a)*100/(b-a)
128 190  "Spin C %3d%%"100-((c-a)*100/(b-a))
191 192  "No Spin"
193 255  "Spin C %3d%%"(c-a)*100/(b-a)
REND

RANGE 23  ;Frost
0   255   "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 10  ;Zoom
0   255   "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 8  ;Focus
0   255   "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 1  ;Pan
0   255   "%3d.%02d%%"(c-a)*100/(b-a),100*((c-a)*100%(b-a))/(b-a)
REND

RANGE 2  ;Tilt
0   255   "%3d.%02d%%"(c-a)*100/(b-a),100*((c-a)*100%(b-a))/(b-a)
REND


RANGE 24  ;Reset
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 25  ;Lamp control
0   255  "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND
