CONTACT US SEARCH
L Cubed Solutions

Valued Independent Programmers, AMX Certified Experts

Lighting Control Modules Information

Home
Module Listings

Back to Corporate

General:

These modules are used to control all load and keypad aspects of a Lutron lighting system through multiple touch panels. Homes with over five hundred loads and over five hundred keypad buttons have been controlled this way without taxing the NetLinx processor. Light loads can be toggled on/off with constant feedback and intensity can be adjusted using a bargraph. Keypad buttons can be toggled on/off with constant feedback for off, on, or flash states. A keypad button's assigned loads can be raised and lowered and their scene can be saved/restored and the new scene will effect the physical keypad button (scene feature on Homeworks Interactive and P5 only). 'Feedback Only' keypad buttons can also be used. These are useful when supplying a floorplan of which floors, wings, or rooms have lights which are 'on'.

Light loads are described to the program in terms of load control ids, and keypad buttons are described in terms of button ids. In this way a group of button ids can be combined to represent a keypad (either virtual or physical) and each button's text can be displayed on the touch panel automatically. If multiple keypads are located in a single room, they can be represented by buttons to select from, and popups used to represent each keypad type (currently only the 5 button and 10 button keypads are available). Feedback is provided to show which keypad is currently selected, and the keypad popup which represents it will be populated with the buttons that are on the keypad including their descriptive text (if desired). Keypad button feedback is provided only for those buttons currently visible.

Because all these lighting control issues are very much based upon the individual project being programmed and the number of touch panels being used, the lighting control software has been broken down into two modules: One contains the code that actually interacts with the touch panels based upon user interaction. This module can be used as is in many projects. The other loads the proper data structures based upon which lighting page is currently being viewed. This second one is specific to a given project and is where the light load control ids and light keypad button ids are specified. A pair of these two modules is defined in the control program for each panel to be individually controlled. Note that if a number of panels were combined with one virtual device, then only one pair of lighting control modules would be needed.

Prerequisites:

  • General Function Library Include File
  • TP Tracker Module
  • Lighting Communication Module
  • Light Load Data Module
  • Light Keypad Data Module

Module Headers:

For 4th Generation TP UI Lighting Control

TypeNameDescription
DevvdvModVirtual device for the module
DevvdvTpMainMain panel device (used for popup control)
DevvdvTpLitesLighting panel device (could be same as vdvTpMain)
Integer[]cTpKpdSelectChannels used for keypad selection for a given TP page
IntegercTpKpdDeselectA channel used to deselect the currently selected keypad
Integer[]cTpKpdBtnControlSelectChannels used for keypad button selection
Integer[]cTpKpdBtnFdBkOnlyChannels used for keypad button feedback only values
IntegercTpLitesOffA channel used to turn all lights off on a given TP page
IntegercTpKpdBtnDescriptionKeypad button adjust - button description
IntegercTpKpdBtnToggleKeypad button adjust - button toggle
Integer[]cTpKpdSceneActionKeypad button adjust - button scene save/restore
Integer[]cTpKpdBtnRaiseLowerKeypad button adjust - button raise/lower
IntegercTpKpdBtnAdjustSelectKeypad Button adjust/toggle state selection
Integer[]cTpLtLdBtnControlSelectChannels used for light load button selection
IntegercTpLtLdBtnDescriptionLoad button adjust - button description
Integer[]cTpLtLdBtnOnOffLoad button adjust - button on/off selection
Integer[]cTpLtLdBtnRaiseLowerLoad button adjust - button raise/lower
IntegercTpLtLdLvlAdjustLoad button adjust - button associated with the level
IntegerlTpLtLdLvlAdjustLoad button adjust - button level for intensity adjust
IntegercTpLtLdBtnAdjustSelectLoad Button adjust/toggle state selection
IntegerFlashVolatile flash variable
Char[][]KpdLedKeypad LED states
Integer[]KpdAddrKey[]Keypad address keys
Char[][]KpdBtnsDescriptionKeypad button descriptions
Integer[]KpdBtnsKpdIndexKeypad index of each keypad button
Integer[]KpdBtnsAddrKeyKeypad address key for each keypad button
Char[]KpdBtnsButtonKeypad button number of each keypad button
IntegerCurrKpdSelectedIndex of current keypad selected
Integer[]MaxKpdTextBtnMax number of text buttons per keypad
IntegerLitesOffBtnCurrent keypad OFF control id
Integer[][]KpdBtnListList of keypad button control id indices currently assigned to TP buttons in index order for each keypad in the room
CharKpdBtnAdjustOnTrue when a keypad button is to be adjusted instead of toggled.
Char[][]LtLdDescriptionDescription of each light load
Char[]LtLdTypeType of light load
Char[]LtLdIntensityCurrent intensity of each light load
Char[]LtLdPrefIntensityPreferred intensity for each load
Integer[]LtLdProcAddrNumeric representation of each light load's processor address
Integer[]LtLdBtnLoadKey to light loads by control id
Integer[]LtLdBtnListList of light load control ids currently assigned to TP buttons in TP button array order
CharLtLdBtnAdjustOnTrue when a light load button is to be adjusted instead of toggled
Char[]TpCurrPageName of the current page for this TP
Char[]TpCurrPopupName of the latest popup with activity
IntegerTpNewPageTrue when the current page has just changed
IntegerTpNewPopTrue when a popup has just appeared or disappeared
IntegerTpPopupTrue if appearing, false if disappearing

Project Specific TP Module

TypeNameDescription
DevvdvTpMainMain panel device (used for popup control)
DevvdvTpLitesLighting panel device (could be same as vdvTpMain)
Integer[]cTpKpdSelectChannels used for keypad selection for a given TP page
Integer[]cTpKpdBtnControlSelectChannels used for keypad button selection
Integer[]cTpKpdBtnFdBkOnlyChannels used for keypad button feedback only values
Integer[]cTpLtLdBtnControlSelectChannels used for light load button selection
IntegerFlashVolatile flash variable
Char[][]KpdLedKeypad LED states
Integer[]KpdBtnsKpdIndexKeypad index of each keypad button
Char[]KpdBtnsButtonKeypad button number of each keypad button
IntegerCurrKpdSelectedIndex of current keypad selected
Integer[]MaxFdBkKpdCntlBtnMax number of control buttons to provide feedback to for each keypad in a room
Integer[]MaxKpdTextBtnMax number of text buttons per keypad
IntegerLitesOffBtnCurrent keypad OFF control id
Integer[][]KpdBtnListList of keypad button control id indices currently assigned to TP buttons in index order for each keypad in the room
Char[]LtLdIntensityCurrent intensity of each light load
Integer[]LtLdBtnLoadKey to light loads by control id
Integer[]LtLdBtnListList of light load control ids currently assigned to TP buttons in TP button array order
Char[]TpCurrPageName of the current page for this TP
IntegerTpNewPageTrue when the current page has just changed
DevvdvTpHelpTP device where help is displayed/controlled
IntegerHelpTextLineCountNumber of help text lines (not counting Title and Subtitle)
IntegercTpHelpTextStartFirst channel number is 'Title', then 'Subtitle', then text lines (all sequential)
Integer[]cTpHelpCmdsFour commands: Start, Restart, Next, End

Send_Commands:

None

API Calls Supported:

None

API Calls Returned:

None

 

Last Modified: 05/16/2008 08:20:14 PM