; File created/edited by R20 Personality Builder [v2.1 (build 103)]
; 
; 'MAK PRO STAE LIGHT MKP_230_2015', 16 DMX channels, filename: MKP_230.R20
;
;   Date       By                Description
;   10-10-15   MKP_230_2015        Criado
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE MKP_230                                   16 DMX channels
NAME "MAK PRO STAE LIGHT" "MKP_230_2015"
;
;----------------------------------------------------------------------------
; The Type of instrument
; The middle number denotes the number of DMX channels used
TYPE 1 16 M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR 2 0 0
;      | |   |
;      | |   |_______ 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 curernt 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 Standard, 16 DMX"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=496
;
; 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 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=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 characters allowed
;11. The ON value of this channel (0..255)
;12. The Highlight level of this channel
;13. The Lolight level of this channel
;
DMX
4   1 L  1 100 1N A 1 "Colour"      	0   0   0  
2  61 L  2 100 1N O 1 "Shutter"     	255 0   0  
1   1 H  3 100 1N H 1 "Dimmer"      	255 0   0  
6   1 L  4 100 1N I 1 "Gobo"        	0   0   0  
9   1 I  5 100 1N P 1 "Prism"       	0   0   0  
9  61 L  6 100 1N R 1 "Prism Rot"   	0   0   0  
19  1 L  7 100 1N 0 1 "Prism Moveme"	0   0   0  
5  61 L  8 100 1N S 1 "Frost"       	0   0   0  
5   1 L  9 100 1N L 1 "Focus"       	127 0   0  
3  61 s 10 100 1N E 1 "Pan"         	128 0   0  
0   0 L 11 100 1N E 1 "Pan Low"     	128 0   0  
3   1 s 12 100 1N F 1 "Tilt"        	128 0   0  
0   0 L 13 100 1N F 1 "Tilt Low"    	128 0   0  
20  1 L 14 100 1N 0 1 "Function"    	0   0   0  
10 61 L 15 100 1N 0 1 "Reset"       	0   0   0  
10  1 L 16 100 1N 0 1 "Control"     	0   0   0  
END
;
;----------------------------------------------------------------------------
TEXT
200W_Y100
200W_Y100, 16 DMX

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.













END

ATTR
Function Obsolete
END

;----------------------------------------------------------------------------
; Preset Palette Tables

PFTABLE "Intensity" -1 2
"Open" 31 6A
"Slow Strobe" 32 36
"Fast Strobe" 33 67
"Slow Random Strobe" 34 E8
"Fast Random Strobe" 35 FB
"Slow Pulse" 36 9E
"Fast Pulse" 37 CF
"Closed" 38 2
PFEND

PFTABLE "Pan/Tilt" -1 10 12
"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 "Gobo" -1 4
"Open" 11 2
"Gobo 1" 12 7
"Gobo 2" 13 C
"Gobo 3" 14 11
"Gobo 4" 15 16
"Gobo 5" 16 1B
"Gobo 6" 17 20
"Gobo 7" 18 25
"Gobo 8" 19 2A
"Gobo 9" 20 2F
PFEND

PFTABLE "Beam" -1 8
"Frost Off" 47 0
"Frost Full" 48 FF
PFEND


;----------------------------------------------------------------------------
; Macros

MACRO "Reset Effects" 1 16
"data" 0 3f
"delay" 1 3c
"data" 0 0
MEND

MACRO "Reset PT" 3 16
"data" 0 b2
"delay" 1 3c
"data" 0 0
MEND

MACRO "Reset All" 5 16
"data" 0 0
"delay" 1 3c
"data" 0 0
MEND

MACRO "Lamp Off" 7 16
"data" 0 3f
"delay" 1 3c
"data" 0 0
MEND

MACRO "Lamp On" 9 16
"data" 0 b2
"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 1 ;Colour
0 0 "Open"
5 5 "Open/Red"
10 10 "Red"
15 15 "Red/Orange"
20 20 "Orange"
25 25 "Orange/Aqua"
30 30 "Aquamarine"
35 35 "Aqua/Green"
40 40 "Green"
45 45 "Green/Li Gr"
50 50 "Light Green"
55 55 "Li Gr/Lav"
60 60 "Lavender"
65 65 "Lav/Pink"
70 70 "Pink"
75 75 "Pink/Yellow"
80 80 "Yellow"
85 85 "Yellow/Mag"
90 90 "Magenta"
95 95 "Mag/Cyan"
100 100 "Cyan"
105 105 "Cyan/CTO260"
110 110 "CTO 260"
115 115 "CTO 260/190"
120 120 "CTO 190"
125 125 "190/CTB 8K"
130 130 "CTB 8000"
135 135 "CTB 8000/Bl"
140 140 "Blue"
145 145 "Blue/Open"
150 255 "Scroll %3d%%"(c-a)*100/(b-a)
REND

RANGE 2 ;Shutter
0 3 "Closed"
4 103 "Strobe %3d%%"(c-a)*100/(b-a)
104 107 "Open"
108 207 "Pulse %3d%%"(c-a)*100/(b-a)
208 212 "Open"
213 251 "Rnd St %3d%%"(c-a)*100/(b-a)
252 255 "Open"
REND

RANGE 3 ;Dimmer
0 255 "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 4 ;Gobo
0 4 "Open"
5 9 "Gobo 1"
10 14 "Gobo 2"
15 19 "Gobo 3"
20 24 "Gobo 4"
25 29 "Gobo 5"
30 34 "Gobo 6"
35 39 "Gobo 7"
40 44 "Gobo 8"
45 49 "Gobo 9"
50 54 "Gobo 10"
55 59 "Gobo 11"
60 64 "Gobo 12"
65 69 "Gobo 13"
70 74 "Gobo 14"
75 79 "Gobo 15"
80 84 "Gobo 16"
85 89 "Gobo 17"
90 129 "Sc CW %3d%%"100-((c-a)*100/(b-a))
130 134 "No Scroll"
135 170 "Sc CCW %3d%%"(c-a)*100/(b-a)
171 175 "G1 %3d%%"(c-a)*100/(b-a)
176 180 "G2 %3d%%"(c-a)*100/(b-a)
181 185 "G3 %3d%%"(c-a)*100/(b-a)
186 190 "G4 %3d%%"(c-a)*100/(b-a)
191 195 "G5 %3d%%"(c-a)*100/(b-a)
196 200 "G6 %3d%%"(c-a)*100/(b-a)
201 205 "G7 %3d%%"(c-a)*100/(b-a)
206 210 "G8 %3d%%"(c-a)*100/(b-a)
211 215 "G9 %3d%%"(c-a)*100/(b-a)
216 220 "G10 %3d%%"(c-a)*100/(b-a)
221 225 "G11 %3d%%"(c-a)*100/(b-a)
226 230 "G12 %3d%%"(c-a)*100/(b-a)
231 235 "G13 %3d%%"(c-a)*100/(b-a)
236 240 "G14 %3d%%"(c-a)*100/(b-a)
241 245 "G15 %3d%%"(c-a)*100/(b-a)
246 250 "G16 %3d%%"(c-a)*100/(b-a)
251 255 "G17 %3d%%"(c-a)*100/(b-a)
REND

RANGE 5 ;Prism
0 127 "Open"
128 255 "Prism"
REND

RANGE 7 ;Prism Moveme
0 255 "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 8 ;Frost
0 255 "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 9 ;Focus
0 255 "%3d.%d%%"(c-a)*100/(b-a),10*((c-a)*100%(b-a))/(b-a)
REND

RANGE 10 ;Pan
0 255 "%3d.%02d%%"(c-a)*100/(b-a),100*((c-a)*100%(b-a))/(b-a)
REND

RANGE 12 ;Tilt
0 255 "%3d.%02d%%"(c-a)*100/(b-a),100*((c-a)*100%(b-a))/(b-a)
REND

RANGE 14 ;Function
0 255 "Reserved"
REND

RANGE 15 ;Reset
0 25 "Safe"
26 76 "Reset Eff"
77 127 "Reset PT"
128 255 "Reset All"
REND

RANGE 16 ;Control
0 25 "Safe"
26 100 "Lamp Off"
101 255 "Lamp On"
REND

