
Programming
17
ALD-D48 Network Lighting Solutions
Channel Feedback
Just as channels can be used to control lights and scenes the state of those channels can be used to
determine the state of a light or scene. If the channel is on, it's corresponding light/scene is on. If
the channel is off, the light/scene is off. These channel states can be interrogated at run-time or
when the channel changes state using a NetLinx CHANNEL_EVENT.
Channel Feedback NetLinx Program Example:
// Did the scene change state?
CHANNEL_EVENT[myD48, 52]
{
on:
{
// Scene is on, update the touch panel button
on[TP, 84]
}
off:
{
// Scene is off, update the touch panel button
off[TP, 84]
}
}
Level Control
Level control is only used for individual lights. It cannot be used for scenes. To control a light using
a NetLinx level the programmer sets a level on the device to the new desired intensity level of the
light. The level number being controlled directly correlates to the address of a light. That is, level 1
is light number 1 and level 48 is light number 48. With level control the light can be set to any
intensity level, 0-100%.
NetLinx levels contain values in the range 0-255. Obviously, this does not correspond well to the
intensity level of a light (0-100%). For the ALD-D48, a level value of 0 is off (0%) and 255 is on
(100%). All values between are a ratio of the 0-255 range. The following formula can be used to
convert from an intensity level as a percentage (0-100) to a NetLinx level in the range 0-255:
netlinxLev = (levelPercent * 255) / 100
To use levels to control lights the NetLinx keyword SEND_LEVEL is used.
Channel Feedback
Channel Num Channels Description
1-48
48
Individual lighting feedback. State of each light.
50
1
State of ALD-D48 link. If channel is on then ALD-D48 is communicating to the
processor board.
51-150
100
Individual scene feedback. State of each scene.
151
1
State of "all lights on" scene.
152
1
State of "all lights off" scene.
Level Control
Channel Num Channels Description
1-48
48
Individual lighting control. Set level of each light. Levels are 0-255 (0=off,
255=100%).
Summary of Contents for ALD-1000D
Page 1: ...instruction manual Lighting Control ALD D48 Network Lighting Solution...
Page 4: ......
Page 7: ...ii ALD D48 Network Lighting Solutions Table of Contents...
Page 17: ...Configuring The ALD D48 Device Server 10 ALD D48 Network Lighting Solutions...
Page 34: ...Loading New Firmware Into The ALD D48 27 ALD D48 Network Lighting Solutions...