Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 754 -
Don't execute both character and graphics output before calling
"vwin_open()" function and after calling "vwin_close()" function.
Color palettes are common with the base screen. Changing color palette
in the VGA window makes changing the same color palette in the base screen,
and vice versa. Especially, take care to change and to refer the color
palettes in the VGA window on the CNC and the PMC screen. To get the contents
of color palettes in the CNC screen, use "crt_getcncpalette()" function.
Also enabling/disabling graphic output status is common with the base screen.
Graphic output must always be enable in the base screen for graphic drawing
in VGA window. (Graphic output is "ON" in the background-colored screen of
CNC/PMC screen of i-series. Generally, graphic output is "OFF" in the other
screen of CNC/PMC.)
Once VGA window is opened, it keeps opened until calling "vwin_close()"
function by the application program. (except in case of changing screen
mode.) Call "vwin_close()" function positively to close the VGA window by
the application program.
(B) VGA window display in the main task.
The procedures to display VGA window in the main task is basically same as
in the window task. There are some differences as follows.
(1) Once "vwin_open()" function is called, all of the following output
are displayed in the VGA window. (both character and graphics)
After closing all VGA window, output is displayed to the base screen
again.
(2) Various settings about display are taken over between the base screen
and the VGA window as they are. Generally, it is necessary to re-
initialize the display environment after changing display between the
base screen and the VGA winodw. Call "_setvideomode()" function after
opening the VGA window, "crt_setmode()" and "_setvideomode()"
functions after returning the base window from the VGA window.
(3) The opened VGA window is still displayed as it is even if the base
screen is changed to another screen (CNC screen, etc.). It is im-
possible to control the VGA window on the CNC screen by the main task.
So, it is beter to disable screen switching during opening the VGA
window.