View Single Post
Old July 30th, 2019   #7
sblair
Administrator
 
Join Date: Feb 2006
Posts: 417
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Here's a common example from a moving light for the Slot Info data. This was from a High End Systems fixture.
Code:
                    // Pan High
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x00;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_PAN >> 8;             // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_PAN;            //   "     "   "         Low
                    // Pan Low
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x01;                    //   "     "        Low
                    ParamData[i++]             = ST_SEC_FINE;             // Slot Type 8 bit
                    ParamData[i++]             = 0x00;
                    ParamData[i++]             = 0x00;                    // Points to Pan High Slot as dependency.
                    // Tilt High
                    ParamData[i++]             = 0x00;                   // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x02;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_TILT >> 8;            // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_TILT;           //   "     "   "         Low
                    // Tilt Low
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x03;                    //   "     "        Low
                    ParamData[i++]             = ST_SEC_FINE;             // Slot Type 8 bit
                    ParamData[i++]             = 0x00;
                    ParamData[i++]             = 0x02;                    // Points to Tilt High Slot as dependency.
                    // Color Function
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x04;                    //   "     "        Low
                    ParamData[i++]             = ST_SEC_CONTROL;          // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                    // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x05;                    // Points to Cyan Slot as dependency.
                    // Cyan
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x05;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_COLOR_SUB_CYAN >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_COLOR_SUB_CYAN; //   "     "   "         Low
                    // Magenta
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x06;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_COLOR_SUB_MAGENTA >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_COLOR_SUB_MAGENTA;//   "     "   "         Low
                    // Yellow
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x07;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_COLOR_SUB_YELLOW >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_COLOR_SUB_YELLOW;//   "     "   "         Low
                    //Static Color Function
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x08;                    //   "     "        Low
                    ParamData[i++]             = ST_SEC_CONTROL;          // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                   // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x09;                    // Points to Static Color Pos as dependency.
                    //Static Color Position
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x09;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_COLOR_WHEEL >> 8;     // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_COLOR_WHEEL;    //   "     "   "         Low
                    // Static Gobo Function
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0a;                    //   "     "         Low
                    ParamData[i++]             = ST_SEC_CONTROL;          // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                    // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x0b;                    // Points to Gobo Position as dependency
                    // Static Gobo Position
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0b;                    //   "     "         Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_STATIC_GOBO_WHEEL >> 8;       // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_STATIC_GOBO_WHEEL;       //   "     "   "            Low

                    // Rotation Gobo Wheel
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0c;                    //   "     "         Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_ROTO_GOBO_WHEEL >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_ROTO_GOBO_WHEEL; //   "     "   "           Low
                    // Gobo Rotate Function
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0d;                    //   "     "         Low
                    ParamData[i++]             = ST_SEC_CONTROL;          // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                    // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x0e;                   // Points to Gobo Rotate as dependency.
                    // Gobo Rotate High
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0e;                    //   "     "         Low
                    ParamData[i++]             = ST_SEC_ROTATION;         // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                    // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x0c;                    // Points to Gobo Slot as dependency.
                    // Gobo Rotate Low
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x0f;                    //   "     "         Low
                    ParamData[i++]             = ST_SEC_FINE;             // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                    // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x0e;                    // Points to Gobo Rotate High as dependency.
                    // Effect Function
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x10;                    //   "     "         Low
                    ParamData[i++]             = ST_SEC_CONTROL;          // Slot Type 8 bit
                    ParamData[i++]             = 0x00;                     // Slot Label ID 16-bit. High
                    ParamData[i++]             = 0x11;                    // Points to Effect Position as dependency
                    // Effect Position
                    ParamData[i++]             = 0x00;                     // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x11;                    //   "     "         Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_EFFECTS_WHEEL >> 8;    // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_EFFECTS_WHEEL;  //   "     "   "           Low
                    // Frost
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x12;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_FROST >> 8;           // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_FROST;          //   "     "   "         Low
                    // Zoom
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x13;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_ZOOM >> 8;            // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_ZOOM;           //   "     "   "         Low
                    // Focus
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x14;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_EDGE >> 8;            // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_EDGE;           //   "     "   "         Low
                    // Iris
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x15;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_BEAM_SIZE_IRIS >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_BEAM_SIZE_IRIS; //   "     "   "         Low
                    // Shutter/Lamp Func
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x16;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_LAMP_CONTROL >> 8;    // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_LAMP_CONTROL;   //   "     "   "         Low
                    // Shutter
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x17;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_STROBE >> 8;          // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_STROBE;         //   "     "   "         Low
                    // Dimmer
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x18;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_INTENSITY >> 8;       // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_INTENSITY;      //   "     "   "         Low
                    // Control
                    ParamData[i++]             = 0x00;                    // Slot Offset 16-bit  High
                    ParamData[i++]             = 0x1b;                    //   "     "        Low
                    ParamData[i++]             = ST_PRIMARY;              // Slot Type 8 bit
                    ParamData[i++]             = SD_FIXTURE_CONTROL >> 8; // Slot Label ID 16-bit. High
                    ParamData[i++]             = (BYTE)SD_FIXTURE_CONTROL;//   "     "   "         Low
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote