75/83 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7.1.7.2 Project Script 
The station number switching function is used in this sample, thus there are cases where the addition of this 
sample to existing screen data affects the monitor destination of the existing screen data.   
When this sample is added to any existing screen data, add the following project script as well. 
Station number switching device initialization 
//When the value in the screen switching device is for sample screens (12000-14300)   
if((12000  <=  [<$:Com_Label:u16_Com_CngBsDv>])  &&  ([<$:Com_Label:u16_Com_CngBsDv>]<= 
14300 ) && [b:GB17000] == OFF){   
  set([b:GB17000]);                //Turns ON the station number switching flag 
   
}else{ 
//When  the  value  in  the  screen  switching  device  is  for  other  than sample  screens,  switches  the 
station number switching device to the host station. 
  if( (([<$:Com_Label:u16_Com_CngBsDv>]    < 12000 ) || ([<$:Com_Label:u16_Com_CngBsDv>] 
> 14300 )) && [b:GB17000] == ON){  
      [<$:Com_Label:u16_Com_StChgDv>] = 0;  //Clears the station number switching device 0 
      rst([b:GB17000]);              // Turns OFF the station number switching flag   
  } 
} 
 
*1 The structure of the value stored in the station number switching device is 
as below. 
Set the constant in hexadecimal format.   
 
• Upper 8 bits:    Network No. 
• Lower 8 bits:    Station No. 
 
Example: Network No. 2 and Station No. 1   
02 01 
Station No. 
 
Network No.