AMX ALD-H48 instruction manual Port Mapping, Channel Assignment and Feedback

Page 27

Advanced Programming

Port Mapping

This module uses multiple virtual devices in order distinguish events for one keypad from another.

Port Mapping

Virtual Device

Channels

Levels

Control

Feedback

 

 

 

 

 

41001:n:0 - {keypad n=1..24}

1..24

none

PUSH

ON

 

&

 

RELEASE

OFF

 

101..124

 

 

FLASH

 

 

 

 

 

Channel Assignment and Feedback

While channel 251 is ON, the AMX system and the H48 are communicating.

While channel 252 is ON, the Duet module has been initialized with the latest H48 data.

Each keypad added to the keypad component list (see KEYPADADD-<index>,<addr> command) is controlled by turning a channel ON/OFF or by generating a button PUSH/RELEASE similar to a Netlinx native device. The virtual device you assign in your project will be used to accomplish this as follows: the virtual port number of your virtual device's D:P:S will represent the keypad number (1..24) and the channel will represent the keypad button (1..24). Most keypads, at this time, have a maximum of 10 LEDs, so LEDs 11 through 24 will not have a visual notification in this case, but they will have a virtual notification. The table below shows the mapping of channels to keypad buttons/LEDs. Ports 1 through 24 and channels 1 through 24 on each port are used and cannot be changed. To indicate a flashing LED, channels 101..124 are used.

Example of use: Suppose you assign a virtual device number 41001:1:0 in your application code. All commands to and from the Duet code will use this virtual device as usual. If so desired, additional keypad control can be accomplished by turning ON/OFF channels or by doing a PUSH/ RELEASE. So, suppose you turn ON channel 4 on virtual device 41001:1:0, then this will turn ON the LED on keypad 1 button 4. If you want to turn OFF the LED on keypad 5 button 7, then all you have to do is turn OFF channel 7 on virtual device 41001:5:0. As you can see, the port number is used to tell what keypad to control and the channel is used to tell what button to affect. Similarly, if someone turns ON the LED on keypad 5 button 7, then channel 7 on virtual device 41001:5:0 will turn ON. The keypad LEDs can be turned OFF or ON, and the keypad buttons can be PUSHed or RELEASEd in this way. You may also FLASH a specific keypad LED. In order to flash you must turn ON the matching channel+100. In other words, if you would like to flash keypad LED number 7 then turn ON channel 107. To stop flashing you must turn off the channel described in the below table, so for the above example, you would turn OFF channel 7. To transition from FLASH to ON in the above example, you must first turn OFF channel 7, and then turn channel 7 back ON.

The keypad number is the number assigned to each keypad by making the appropriate dipswitch assignments on the back of it. If looking at the protocol document, the last address parameter (i.e. [1:5:x] x = keypad number)

ALD-H48 Lighting Controller

21

 

 

 

 

Image 27
Contents ALD-H48 AMX Limited Warranty and Disclaimer Software License and Warranty Agreement Page Table of Contents Via Via Ethernet Overview Overview Opening The ALD-H48 Workspace Setting The ALD-H48 IP AddressGetting Started Downloading The ALD-H48 WorkspaceClick Select All Transferring The ALD-H48 Project to a NetLinx MasterAddressing The Dimmers via The Web Interface Using The Web InterfaceDimmer Address Dimmer Control Controlling Dimmers via The WebScene Establishing And Modifying ScenesModify Scene Modify Group Establishing And Modifying GroupsTouch Panel Main Using The Touch Panel PagesDimmer Light Adjustment Setup SetupAddressing Dimmers GroupsCreating a Group Scenes ScenesCreating a Lighting Scene Using The Touch Panel Pages Advanced Programming IntroductionOverview Definedevice ImplementationChannel Assignment and Feedback Port MappingChannel Assignment and Feedback Command Interface ?KEYPADADDR-1 KEYPADENABLE-1 KEYPADENABLE-2=STOP ?FWVERSIONKEYPADREMOVEADDR-151 KEYPADREMOVEIDX-1?LIGHTADDR-1 LIGHTREMOVEIDX-2 Lightremoveaddr LIGHTLEVEL-1,102?LIGHTLEVEL-1 LIGHTRAMP-1,UP LIGHTRAMP-1,STOPReinit ?LIGHTSTATE-1?VERSION Command Feedback KEYPADBTN-1,DOUBLECLICK KEYPADENABLE-1LIGHTSTATE-1,ON Device Notes Programming Notes 14111 14112 11411114112 Adding Functions to Modules Commands to The DeviceUpdating The ALD-H48 Firmware ViaVia Ethernet RevisionLast05/11/05