; The device name, upto 11 characters, no spaces are allowed
DEVICE  P10+
NAME  "CKC Lighting" "P10+"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE 1   36   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 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
""
""
""
""
""
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=476
;
; 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, BCD=Color Mix, 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, 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 Lolight level of this channel
;
DMX
1    1   H   5     100   1N   H   1   "Dimmer"         255  0    0    
0    0   H   6     100   1N   H   1   "Dim Fine"       255  0    0    
1   61   I   35    100   1N   0   1   "Dim Mode"       0    0    0    
2    1   L   20    100   1N   G   1   "Iris"           0    0    0    
2   61   L   7     100   1N   O   1   "Shutter"        255  0    0    
3    1   s   3     100   1N   F   1   "Tilt"           128  0    0    
0    0   L   4     100   1N   F   1   "Tilt Fine"      128  0    0    
3   61   s   1     100   1N   E   1   "Pan"            128  0    0    
0    0   L   2     100   1N   E   1   "Pan Fine"       128  0    0    
4    1   S   12    100   1N   A   1   "Color 1"        0    0    0    
0    0   I   13    100   1N   A   1   "Col 1 Fine"     0    0    0    
5    1   L   18    100   1N   Q   1   "Zoom"           128  0    0    
5  61   L   19    100   1N   L   1   "Focus"          128  0    0    
6   1   I   14    100   1N   I   1   "Gobo 1"         0    0    0    
6  61   I   17    100   1N   J   1   "Gobo 2"         0    0    0    
7   1   s   15    100   1N   K   1   "Gobo 1 Rot"     0    0    0    
0    0   L   16    100   1N   K   1   "Gobo1R Fine"    0    0    0    
8  61   I   11    100   1N   0   1   "CTO"            0    0    0    
9   1   I   36    100   1N   0   1   "Control"        0    0    0    
9  61   L   10    100   1N   D   1   "Yellow"         0    0    0    
10   1   L   8     100   1N   B   1   "Cyan"           0    0    0    
10  61   L   9    100   1N   C   1   "Magenta"        0    0    0    
11   1   I   21    100   1N   0   1   "Prism"          0    0    0    
11  61   L   22    100   1N   R   1   "Prism Rot"      0    0    0    
12   1   I   23    100   1N   S   1   "Frost 1"        0    0    0    
12  61   I   24    100   1N   S   1   "Frost 2"        0    0    0    
13   1   I   25    100   1N   0   1   "Animation"      0    0    0    
13  61   I   34    100   1N   0   1   "Shape Rot"      0    0    0    
14   1   I   26    100   1N   0   1   "Blade 1A"       0    0    0    
14  61   I   27    100   1N   0   1   "Blade 1B"       0    0    0    
15   1   I   28    100   1N   0   1   "Blade 2A"       0    0    0    
15  61   I   29    100   1N   0   1   "Blade 2B"       0    0    0    
16   1   I   30    100   1N   0   1   "Blade 3A"       0    0    0    
16  61   I   31    100   1N   0   1   "Blade 3B"       0    0    0    
17   1   I   32    100   1N   0   1   "Blade 4A"       0    0    0    
17  61   I   33    100   1N   0   1   "Blade 4B"       0    0    0    
END

MACRO "Rest All"     1    36
"data"     0     76
"delay"    1     4
"data"     0     0
MEND

MACRO "Invert Pan on"     2    36
"data"     0     12
"delay"    1     4
"data"     0     0
MEND

MACRO "Invert Pan off"     3    36
"data"     0     17
"delay"    1     4
"data"     0     0
MEND

MACRO "Invert Tilt on"     4    36
"data"     0     1C
"delay"    1     4
"data"     0     0
MEND

MACRO "Invert Tilt off"     5    36
"data"     0     21
"delay"    1     4
"data"     0     0
MEND

MACRO "Square Dimmer Curve"     6    36
"data"     0     3A
"data"     0     4
"delay"    1     0
MEND

MACRO "Led Freq. 1200 Hz"     7    36
"data"     0     49
"delay"    1     4
"data"     0     0
MEND

MACRO "Standard Mode"     8    36
"data"     0     7B
"delay"    1     4
"data"     0     0
MEND

MACRO "High CRI "     9    36
"data"     0     80
"delay"    1     4
"data"     0     0
MEND