User`s guide
When a button has been configured as a level button, the state of the button is on as long as
the button is pressed. When the button is not pressed, its state is off. The following code uses
the buttons labeled 2, 4, 6, and 8 (button numbers 45, 47, 49, and 51 - don't confuse the
button labels with the numbers returned by the PENDANT function) to move the cursor
around the terminal display. The buttons are configured as level buttons so the cursor moves
as long as a button is depressed.
; Set the REC/DONE button to toggle mode
KEYMODE 8 = 1
; Set the data-entry buttons labeled "2" - "8" to level mode
KEYMODE 45, 51 = 2
; Respond to the data-entry buttons
DO
IF PENDANT(49) THEN
TYPE /X1, /S ;Cursor right
END
IF PENDANT(47) THEN
TYPE $CHR(8) ;Cursor left (backspace)
END
IF PENDANT(51) THEN
TYPE /U1, /S ;Cursor up
END
IF PENDANT(45) THEN
TYPE $CHR(12) ;Cursor down (line feed)
END
UNTIL PENDANT(8)
Notes on Button Behaviors
Some buttons on the pendant have particular behaviors, depending on the situation. Here
are the different behaviors for those buttons:
l The MODE button may appear as a MAN button (22) or as a COMP/PWR button press
(23). When using the MODE button to switch from the FREE mode to the COMP
mode, the MODE button will appear as if a COMP/PWR button has been pressed.
l The Joint “+” and “-“buttons will first issue a Joint selection button press (29-34),
but once the selection has been successful and while the button is still held down, the
button will issue only a speed signal. Each following press of the same joint “+” or “-“
buttons will also issue only a speed signal, respectively positive or negative, for as long
as the button is held down. If the first Joint selection is unsuccessful, each press of the
same button will retry the same Joint selection (29-34).
In different modes, the YES/+ and NO/- buttons will issue the speed signal in combination of
their own button presses (53-54) (see Monitoring the Pendant Speed Signal).
Monitoring the Pendant Speed Signal
The speed that is sent from the pendant has a value from -128 to 127 depending on the
position of the speed slider. An argument of -2 to the PENDANT() function returns the value
Detecting User Input
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 291










