Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 698 -
When screen is switched from the user screen to the CNC screen while
displaying application graphics, graphic display to the CRT is
disabled (BEAM OFF). However, the graphics drawn by the user
application program is retained as is, provided no graphic screen is
displayed by CNC. When screen is switched back to the user screen, the
function crt_opengr() returns the value '0' if graphics is retained.
But , to re-display the graphics on the CRT, beam should be made on by
the function crt_graphic(). If the "CRT_SWT_GRON" bit is set by
the crt_setswt() function, "BEEM ON" is automatically done when
returned from the CNC screen to the user screen.
For F16/18-B, the graphic display is inhibited while "Servo wave
Graphic Display" is enabled (parameter No.3112#0 SGD=1). This
function returns "-1". This inhibition is not applied for FS16/18-C
and FS16i/18i-A.
[Example]
Following program draws a line defined by two specified end points.
#include <crt.h>
#include <graph.h>
void example( int x1, int y1, int x2, int y2 )
{
int ret ;
ret = crt_opengr() ;
if ( ret == -1 ) return ;
if ( ret ) _setvideomode( 81 ) ;
_moveto( x1, y1 ) ;
_lineto( x2, y2 ) ;
crt_closegr() ;
}