TAKEVIS
(Statement)
Obtains visual process priority.
TAKEVIS
This statement obtains visual process priority on the µVISION board optionally installed in the robot controller. Without a µVISION board installed, an error will occur if the TAKEVIS command is executed.
If another task has already obtained visual process priority and the system cannot obtain it, an error occurs.
If a task that does not obtain visual process priority attempts to execute a visual instruction, an error occurs. In a program in which a visual instruction is executed, visual process priority must be obtained with the TAKEVIS command prior to the visual instruction.
If a TAKEVIS command is executed in a task with visual process priority or in a subroutine called from the task, the processing continues without change.
Visual control priority is automatically released in the following cases.
-
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.
|