Altinex MT101-114 Network Card User Manual


 
MULTITASKER
400-0402-003
18
Example 2:
The Key 8 label is SPEAKERS; it is set for
volume control, and it is unlocked. The system
will return the following:
KEY8= 8,108,0,0,0 SPEAKERS VOLUME
Example 3:
Display the contents of all the keys by sending
{RDK*} and the system will display the key
programs in the following format:
KEY 01: 000,000,000,000,000 LOCKED
KEY 02: 000,000,000,000,000 VOLUME
KEY 03: 000,000,000,000,000 VCR_ON
KEY 04: 000,000,000,000,000 VCR_OFF
KEY 05: 000,000,000,000,000
KEY 06: 000,000,000,000,000
KEY 07: 000,000,000,000,000
KEY 34: 000,000,000,000,000
KEY 35: 000,000,000,000,000
KEY 36: 000,000,000,000,000
NOTE: Unlike the subroutines, all key programs
will be displayed even if they are not
programmed. Keys that have not been
programmed will be defined with all states equal
to zero (000,000,000,000,000).
36. {WRK}
This command writes a key by assigning a
subroutine ID to each of the 5 key states.
CAUTION: If programming Key 1 to perform
functions from the front panel, remember SUB1
is a special case and is always performed on
power-up or reset. Use another subroutine
number, but make sure it can be recognized as
relating to Key 1. An example would be
SUB101.
A key may have up to five different states so it
can be assigned to execute five different
subroutines. The following table shows the state
number and the condition a key must be in for
the subroutine assigned to a particular state to
be executed.
State
What to do when a key is pressed
and…
1 the LED is OFF
2 the LED is ON
3 the LED is FLASHING
4 HELD for at least 2.5s
5 HELD for 2.5s at power-up
Format: {WRKn=s
1
,s
2
,s
3
,s
4
,s
5
}
Kn = Key # (n = # from 1 to 36)
s
1
= Sub ID (#0 to 180) for state 1
s
2
= Sub ID (#0 to 180) for state 2
s
3
= Sub ID (#0 to 180) for state 3
s
4
= Sub ID (#0 to 180) for state 4
s
5
= Sub ID (#0 to 180) for state 5
NOTE: Use subroutine zero if nothing should
happen for a particular state. The key definition
{WRK2=2,0,0,0,0} tells the controller to execute
SUB2 if Key 2 is pressed when its LED is off
and nothing for the remaining states.
Example: Key 6
{WRK6=10,20,30,40,0}
10 - State 1: Execute SUB10 when Key 6 is
pressed and LED6 is OFF.
20 - State 2: Execute SUB20 when Key 6 is
pressed and LED6 is ON.
30 - State 3: Execute SUB30 when Key 6 is
pressed and LED6 is FLASHING.
40 - State 4: Execute SUB40 when Key 6 is
PRESSED and HELD for 2.5s.
00 - State 5: Do nothing if Key 6 is PRESSED
and HELD for 2.5s on power-up.
NOTE: If there are any discrepancies or if the
buffer has not been initialized, the user will
receive a message such as PLEASE
PERFORM BUFFER TEST. Use the {TEST}
command to initialize the buffer. Please refer to
the {TEST} command for more information.