omron — KEYMODE program instruction

KEYMODE program instruction 1 - Toggle Mode The state of the key may be read back on the fly. When you press a key that is in this mode, the internal state maintained by eV+ is toggled. Also, the LED on the key (if any) is toggled. The LED is on when the key's state is ON. The state of the key is available even when the pendant is not in USER mode, but only if the pendant is attached. 2 - Level Mode The key's current level is maintained by the pendant and may be read on the fly. If the pendant is not in USER mode, the level returned for the key is zero. The key's state is ON only when it is actually being held down. This is useful, for example, for cursor control.

The value returned is not valid if the pendant is not attached. Whenever a key is programmed in level mode, its repeat mode is turned off. Attach/Detach Requirements The pendant must be attached (with the ATTACH program instruction) before the program can read keys using the PENDANT function, set the modes of any of the keys, or send text to the display. Defaults The key modes default to keyboard mode when the pendant is attached. Examples Set the manual control soft keys to level mode. KEYMODE 1,5 = 2 Related Keywords ATTACH program instruction eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 315