KEYMODE program instruction KEYMODE program instruction Syntax KEYMODE first_key,last_key = mode Function Set the behavior of a group of keys on the pendant. Usage Considerations The pendant must be attached before KEYMODE can be processed. For details on the pendant key numbers, see Programming the T20 Pendant in the eV+ Language User's Guide . Parameters first_key Real-valued expression that defines the first key number in a set of keys to be affected. last_key Real-valued expression that defines the last key number in a set of keys to be affected. mode Real-valued expression that defines the key mode to be set for the specified set of keys.
The mode must have one of the following values (the modes are described below): 0 Keyboard mode 1 Toggle mode 2 Level mode Details The various key modes are described below. See the description of the PENDANT real-valued function for more information on interaction with the pendant. 0 - Keyboard Mode Keys programmed in this mode function similar to a terminal keyboard. A program can use the function PENDANT(0) to request the number of the next key pressed. The program then wait until one of the keys programmed in KEYBOARD MODE is pressed. The number of the key is returned.
Type-ahead is not possible-the program does not see any keys that are pressed while there is no PENDANT(0) function pending. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 314