User`s guide

Pendant Display Window
NOTE: Avoid flooding the Pendant Display Window with text or codes by using the
WRITE instruction repeatedly. If multiple characters or codes must be sent, use the
WAIT.EVENT instruction between the WRITE instructions to avoid the overflow.
Remember that this display is used for sending messages, which the user must have time
to read.
Pendant LEDs (Indicator Bars)
The LEDs on the Soft buttons and the F1, F2, and Dev/F3 buttons can be lit (either
continuously or intermittently). The following code places the text CLEAR and EXIT over
the two left-hand Soft buttons (buttons #4 and #5), lights the LED for the first Soft button,
and blinks the light for the second Soft button:
WRITE(mcp_lun) $CHR(18), $CHR(41), "CLEAR", /S
WRITE(mcp_lun) $CHR(9), "EXIT", /S
WRITE(mcp_lun) $CHR(31), $CHR(5), /S
WRITE(mcp_lun) $CHR(30), $CHR(4), /S
$CHR(9) tabs the cursor to the next Soft button position. $CHR(31) lights an LED. $CHR(30)
starts an LED blinking. The button LED to be lit is specified in the next control byte. In the
above example, the LED for button 5 is turned on and the LED for button 4 is set blinking.
The Soft buttons and the F1, F2, and Dev/F3 buttons are the only buttons that have
programmable LEDs.
Making Pendant Buttons Non-Repeat Buttons
Pendant buttons that are configured as keyboard buttons are normally repeat buttons. That
is, button presses are recorded as long as the button is held down. The repeat function can be
disabled, requiring users to press the button once for each button press they want recorded.
The following instruction disables the repeat option for the period (.) button:
WRITE(mcp_lun) $CHR(25), $CHR(55), /S
The repeat option for that button is enabled with the instruction:
WRITE(mcp_lun) $CHR(24), $CHR(55), /S
The Pendant Control Codes table below lists all the control codes used with the pendant.
Controlling the Pendant
V+Language User's Guide, v17.0
Page 296