EasyManua.ls Logo

Mitsubishi FR-A800 Series - Page 75

Mitsubishi FR-A800 Series
83 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
75/83
BCN-P5999-1045-1a
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.
Script No.
12100
Script name
Script12100
Comment
Station number switching device initialization
Data type
Signed BIN16
Trigger type
Ordinary
//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.

Table of Contents

Related product manuals