Programming
34
Instruction Manual - Massio ControlPads and Keypads
Port Numbers and Levels (ControlPads)
Massio ControlPads support the following port numbers and levels:
Port Numbers and Levels (Keypads)
Massio Keypads support the following port numbers and levels:
Programming the Knob and LED Bargraph (MCP/MKP-108)
The knob on the MCP/MKP-108 has multiple programming functions and can be treated from a NetLinx programming perspective
as 1 pushbutton plus Channel up and down. The button layout for the knob is indicated in FIG. 39.
Knob - Button 11
The knob is a pushbutton that provide an event on Channel #11, and can be programmed like any other button.
Knob - Buttons 12-13
The knob itself can be rotated clockwise and counterclockwise, and is intended to provide level control (for example volume or
lighting levels).
When rotated clockwise, the knob provides events on Channel #12.
When rotated counter-clockwise, the knob provides events on Channel #13.
When rotated (clockwise/counter-clockwise), the knob provides level events on Level #2.
Navigation Wheel - Level Control
In addition to generating button events, a rotation of the knob causes a level change on Level #2:
Clockwise rotations increase the level
Counter-clockwise rotations decrease the level.
Example code is provided below:
LEVEL_EVENT[dvMassio,2]
{
volume = level.value
SEND_STRING 0, “’Volume is now: ‘, ITOA(volume)”
}
Display Bargraph
The display bargraph consists of 7 LEDs and is controlled via Level #1. Sending a level will update the LEDs on the display bargraph.
Example code is provided below:
SEND_LEVEL dvMassio,1,200
Supported SEND_LEVELs
MKP-108 keypads support a SEND_LEVEL on Level #1. This level is used to adjust the LED bargraph display on the keypad.
Port Numbers and Levels
ControlPad/Keypad Part
Port
Level
Buttons
28
None
Knob (MCP-108 only)
28
2, range is 0-255
LED Bargraph
(MCP-108 only)
28
1, levels indicate 0-255
Port Numbers and Levels
ControlPad/Keypad Part
Port
Level
Buttons
1
None
Knob (MKP-108 only)
1
2, range is 0-255
LED Bargraph
(MKP-108 only)
1
1, levels indicate 0-255
SEND_LEVELs
SEND_LEVEL
Adjusts the LED bargraph display on the keypad.
Syntax:
SEND_LEVEL <device address>,1,<level>
Variables:
level = LED bargraph display (range = 0 - 255).