omron — PENDANT real-valued function

PENDANT real-valued function error occurs. select = -2 Returns the current value from the speed label, in the range of 0 to 100 (decimal). When the Pendant Jog mode is COMP, the monitor speed is returned. In other jog modes, the jog speed is returned. select = -3 Returns the current display screen active on the pendant. The display modes should be interpreted as follows: select = -4 Returns the version number of the manual control software. This is the same as the value returned by the real-valued function ID(1,2). The value -1 is returned if the pendant is not connected to the system.

Examples This example sets the manual control soft keys to keyboard mode, and then waits for one of them to be pressed (also see the section Soft Signals in the eV+ Language User's Guide ). ATTACH (1) ;Attach the pendant LUN KEYMODE 1,5 = 0 ;Set soft keys to keyboard mode key = PENDANT(0) ;Wait and return next key hit TYPE "Soft key #", key, " pressed" DETACH (1) ;Detach the pendant LUN This example sets the DONE key to level mode and loops until the key is pressed.

ATTACH (1) ;Attach the pendant LUN KEYMODE 8 = 2 ;Set DONE key (8) to level mode WAIT PENDANT(8) ;Pause until DONE key is pressed DETACH (1) ;Detach the pendant LUN eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 397 Display mode Interpretation 1 Home screen 2 Other screens 3 Error screen 4 USER (custom) screen