
(2) Status of "CNCscrnApp"
This is a pack of bit-flags which indicates the status of "CNC
screen display" application on PC.
"1" means "effective" for each bit.
CRT_PC_ENB 0x01 "CNC screen display" is available.
(This bit is set as "1" when CNC is
FS300i with PC, FS300i with HSSB,
FS300i with Ethernet.)
CRT_ETH_SIDE 0x08 CNC screen is displayed now.
(FS300i with Ethernet)
CRT_PC_END 0x10 PC application terminated.
CRT_PC_PWON 0x20 PC application is starting up now.
CRT_PC_DWN 0x40 PC is down now.
CRT_PC_SIDE 0x80 CNC screen is displayed now.
You can get the current output device using CRT_PC_SIDE and
CRT_ETH_SIDE.
CRT_PC_SIDE CRT_ETH_SIDE Output device
---------------+---------------+------------------------------
0 0 CNC's display unit
1 0 PC (HSSB) display unit
1 1 PC (Ethernet) display unit
0 1 undefined
The main task of C Executor runs only while CNC screen is displayed
on PC side.(in case of FS300i with PC) Auxiliary tasks and the window
task always run whether CNC screen is displayed or not. This function
is used to test if screen function is available or not in auxiliary
tasks or the window task. For example, "if CNC screen goes closed,
the window task closes VGA windows", for this case, this function is
used.
Screen switching must be enabled when "CNCscrnApp" starts up and
ends. (If screen switching is disabled, "CNCscrnApp" can't start/
end.) Call this function periodically, and enable screen switching
when CRT_PC_PWON or CRT_PC_END flag rises up.