GIVEVIS (Statement)


Releases visual process priority.


GIVEVIS


This statement releases visual process priority on the µVISION board optionally installed in the robot controller. With this, another task can obtain visual process priority. Without a µVISION board installed, an error will occur if the GIVEVIS command is executed.
If an attempt is made to execute the GIVEVIS command although another task has already obtained visual process priority, an error will occur.
Robot control priority is automatically released in the following cases. Therefore, it may be possible to ignore the GIVEVIS command.
  • If an END command is executed (Except for an END command at the end of the program called)
  • If a KILL command is executed
  • If the robot controller is initialized with the teach pendant or I/O



DEFINT Li1, Li2
'Obtains visual process priority.
TAKEVIS
VISSCREEN 1, 0, 1
VISCLS
FOR Li1 = 0 TO 255
Li2 = VISREFTABLE(1, Li1)
'Obtains data from table 1.
VISLOC 10, 10
'Sets the display position.
VISDEGCHAR 1, 1, 2
'Sets the display character.
VISPRINT "Data"; Li1; "="; Li2
'Displays.
NEXT Li1
GIVEVIS
'Releases visual process priority.


Top