
bit5 The automatic graphic beam ON when the screen is
switched from the CNC to the user's is
0: not executed.
1: executed. (only when the graphic beam is enabled on
the previous user's screen.)
(CRT_SWT_GRON)
bit6 For VGA Display, the contents of the user screen
is saved and restored at the switching screen between
the NC's and the user's or not.
0: saved/restored.
1: not saved/restored. (This makes the screen
switching fast a little.)
(CRT_SWT_NOSV)
Setting by this function goes on being effective until this function
will be called newly.
"CRT_SWT_DIS" disables switching to the CNC screen by MDI key
operation, so take care of usage of this function.
Under condition that "CRT_SWT_DIS" is set, also screen switching by
"crt_cncscrn" function is disabled.
Under condition that "CRT_SWT_VOFF" is set, nothing is displayed on
the screen after screen switching from the CNC screen to the user's
until the application program enables video beam output. Output escape
sequence "ESC [>9l" to console, or clear whole screen by "ESC [2J" to
enable beam output. ("ESC [2J" enables video beam output.)
Under condition that "CRT_SWT_MFKY" is set, the screen switching by
the function keys is disabled. When this bit is set, the user
application must read the status of the function keys using
"crt_readfkey" function and switch the screen. This setting is
effective on the CNC's screen.
During the CNC screen is being displayed, execute reading the function
keys and switching the screen in the auxiliary task.
When the application program manages the screen switching with setting
this bit ON, set CNC parameter No.8650#1 CNA as "1" and manages also
screen switching at CNC alarm rising by the application program.
[Example]
The following program disables screen switching, executes foo()
function and restores the original status again.
#include <crt.h>
void example( void )
{
unsigned int save_mode ;
save_mode = crt_setswt( CRT_SWT_DIS ) ;
foo() ;
crt_setswt( save_mode ) ;
}