Tải bản đầy đủ (.doc) (288 trang)

NC2000 system operation manual vol4

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (4.13 MB, 288 trang )

Maintenance Manual of
NC2000 computer monitoring system
(V2.0)
Maintenance Manual IV
State Network Research Institute, Nanjing Automation Research
Institute of Automatic Control
NARI, Nanjing Automation Co., Ltd.
June 2006
Copyright Notices
The copyright of "NC2000 computer monitoring system user manual" is belonded
to NARI,Nanjing Automation Co., Ltd Without the written permission of NARI,
Nanjing Automation Co., Ltd., everyone shall not copy or spread any part of this
manual in any form, using any means (electronic or mechanical, including
photocopying or recording), or for any purpose.

is the registered trademark of Nanjing NARI Group
Corporation .
(c) Copyright 2004 is belonded to NARI, Nanjing Automation Co., Ltd All rights
are reserved, and all reproductions are rejected.
Preface
System software NC2000 is the power system computer control system software of
a new generation, which is completed and has accumulated the monitoring software
experience of many years, after NARI Access has been used in a number of power
plants in our country by NARI Nanjing Automation Co., Ltd The System introduces
CLINET / SERVER architecture and supports for different hardware, operating system
and relational database systems. Because the development approach is object-oriented
and covers both the design and development process, users can use it more conveniently
and intuitively.
The main objective of this manual is to enable users to fully grasp the
installation


usage

maintenance methods and procedures of NC2000 system. The user
manual is divided into four parts: the first volume introduces the installation process of
NC2000 and the operating system, including, and the installation and configuration
process of NC2000; the second volume is the user operation manual of NC2000 system
and introduces operation methods of NC2000 in details; the third Volume introduces
the usage of the configuration tool of NC2000 and the usage of the configuration
software which is united by NC2000 system; the fourth volume is the maintenance
manual of the system and introduces all aspects which need to be maintained and the
methods and procedures of maintance.
We hope that through this user manual, the readers can grasp the NC2000 system
and ensure the system to operate more securely, reliablely and stablely, and make
greater contribution to the automation construction of power systems.
Read Guide
Manual target
This volume is the fourth book of the use manual of NC2000 computer monitoring
system, and it is the maintenance manual of NC2000 system.
Reading object
This manual is writen by internal engineering and technology-based personnel in our
company and the computer monitoring system maintenance personnel of hydropower
plant. The manual uses Microsoft Word to typeset.
Manual constitute
This manual is composed by six chapter.
1. A brief description of the software architecture of NC2000 system.
2. Introduce the basic Linux/Unix command and Linux utility.
3. Introduce the Solaris system commands and tools when manage and maintain.
4. Introduce the command in Windows platform in common use.
5. The tutorial of MySql relational database management and maintenance.
6. The technical of import and exportp of oracle relational database and the

introduction of the maintenance tool of Sqlplus.
Handbook agreement
This manual keeps to the following agreement:
1. All the headings is in bold type.
2. If the title followed by a "conditions", it means that the content behind the heading
required by the body is necessary under certain conditions.

Note

That means readers should pay attention to those which need to pay attention.

Warning

That means readers should pay attention to certain matters, otherwise they
will cause serious error.
Contents
Chapter I NC2000 Monitoring System Software 1
Chapter II Functional Specication of Linux Operating System 42
Chapter III Utility of Solaris 9 Operation System 128
Chapter IV Practical Help of Windows Operating System 243
Chapter I NC2000 Monitoring System Software
1.1 The Architecture of NC2000 Monitoring System Software
1.1.1 Constitution of NC2000 monitoring system software
NC2000 system monitoring software is mainly omposed of two parts, the Front
Human-Computer Interaction program and Backgrounds background program.The
Human-Computer Interaction program mainly provides the screen display, reports,
briefings, and other interactive query curve graphic display and operating functions;the
Background program provides the communication between the computer monitoring
system and the external device, the management of NC2000 database,the management
of historical database and other kinds of background processes.The two programs

exchang of data through the way of multicast.
Figure 1-1
Because each node has different function,the required deployment of NC2000
system software are also different.The chart below shows the NC2000 system software
architecture:
1
Figure 1-2
The Human-Computer Interaction of program of NC2000 system procedures are
developed by Java.The class of inport is nc2000 ncconsole StartMenu,and after
starting, relating various functions of human-computer interaction by implementating
nc2000.ncconsole. Human-computer interaction of NC2000 system mainly include:
information of briefing, the screen showed ,list and Report inquiries, optical character
display, AGCAVC parameter query, editing of sequence control program, database edit
and so on.
At the node do not need to run the human-computer interaction should not run the
human-computer interaction process of NC2000 system.The communication among the
various nodes of NC2000 monitoring system, as well as external communications are
realized by the background context,and different roles of the computer nodes, the
deployment of background processes will be slightly different. The role of the
background process playing will be described in a special chapter.
1.1.2 Directory of NC2000 monitoring system
Directory of NC2000 monitoring system software is as follows:
2
Above all is a simple role of the directory and description.The follows is a function
indication specific documents of directory under certain commonly used directory .
1.
~ / data / resource directory.For example,when configurate communication drivers in
DB-databese of NC2000,and the driver name does not appear in the drop-down menu
list,you can manually edit the file in this directory, "drvlist.properties", in order to
adding new drivers at the end of the file.The format of the file can be defined as other

3
writed drivers.
2. ~ / data / sysfile directory.When start NC2000,the file

strategy

whice is under this
directory is a file that defind whice project to loating.The content of the file is the string
"xxx", that is the suffix of the
directory of project.
3. ~ / projects.xxx / db directory. The "config.sys" is the file whice read the
configuration of NC2000 system node.The "agc_ *.properties" is the default
configuration file whice the AGCAVC program has to read. "x.x.x.13. x." is the objects
script file of the DB-database,and is explained by the program "ooexpr".
4. ~ / projects.xxx / userinfo directory.The "defaultagcavc.properties" is the default
configuration file whice the AGCAVC program has to read, Recording the
number,name and other information of Plant Station which is managed by AGC, (text
file, you can manually edit). "Defaultrundsp. properties" record default screen file whice
can be start directly under the "screen" window "screen" menu bar after NC2000 system
starting, (text file, you can manually edit).
5. ~ / projects.xxx / XXX directory.XXX stands for a project name.The establishment of
XXX is required by the plant whice has many stations,and the graphics files and
sequence control program is placed in this directory.
6. ~ / ~ / projects.xxx / drvconfig directory.NC2000 system "Communication Interface"
function to generate The communication configuration file whice is generated by the
NC2000 system"Communication Interface" is stored in this directory.The file "xxx.txt"
is a text file whice contain configuration of the communications point ,and can be
opened by a text editor.
1.2 The background process of NC2000 monitoring and control system
1.2.1 The running environment of background process

To smoothly run NC2000 background process monitoring system, the minimum
configuration requirements are as follows:
850MHz Intel Pentium III processor or equivalent processor
512MB RAM
4
10GB free disk space
The minimum configuration mentioned here is required by only running the basic
background monitoring system NC2000 procedures.In the configuration of NC2000
monitoring system,Generally communications only the ommunications and the host do
not need to run the Front Human-Computer Interaction program. The communication is
only responsible for communication between NC2000 system and the external
system,and the background program running on it do not need to consume too many
resources,therefore the communication only has the general hardware configuration.But
as a host,the background process of NC2000 system need to deal with much more
complex data than communication, but also need to ensure that the system must run in a
security and stability status, so its hardware configuration is also much higher.Typically,
the running of NC2000 monitoring system requires the host minicomputer or server
configuration.
1.2.1.2 Software platform of NC2000 background program system execution
The of developmentNC2000 system background process are based on C-language
of Unix or Linux (compatible with standardized POSIX.1).Tested, the software
platforms whice is applicable to the background program of NC2000 including: RedHat
Linux 9, Sun Solaris 8, Sun Solaris 9 for Sparc, Sun Solaris 10 for Sparc and Sun
Solaris 10 for x64.To run the Front HCI of NC2000 system, also need to insall a Java
virtual machine that require higher version than JRE5.0.0_1.
1.2.1.3 The composition of the background program
The background program of NC2000 systems mainly includes the following programs:
dbload, client, server, red_m, mam, drvman and various types of driver, engine,
lsdmn, ooexpr, st_clock and so on.
1.2.1.4 Setting of Environment variable

For the smooth running of NC2000 monitoring system software, you need to
configurate some parameters of the system environment variables. Generally,during the
installation of NC2000 system, we will set up the user"nari",and the running script
language is "csh", at the sametime,should also set up the user's home directory. The
5
environment variable required by the normal operation of NC2000 monitoring system
software is usually defined in the file "Cshrc" under the user's home
directory,"nari".The self-starting file of NC2000 system is defined in ".login"(in Linux
systems) or". startdt" (in Solaris system).
The fllowing is a nice setting "Cshrc" file:
alias a alias
a s 'source ~/.cshrc'
#setenv LANG C
setenv XAPPLRESDIR /data/resources
setenv WINDOWS /usr/bin/X11
setenv EBTRC /usr/ebt/bin/ebtrc.global
setenv JCC "javac -deprecation -g:none -O -nowarn -d /bin"
a dtext '/usr/ebt/bin/dtext'
umask 002
# This is the path for Motif/Sunview:
set path=(. /usr/local/bin /opt/SUNWspro/bin ~/exe /usr/ccs/bin /usr/bin/mme
/usr/bin /usr/ucb /etc /usr/etc /usr/man /usr/sccs /usr/dt/include/Xm /usr/dt/bin
/usr/include $HOME/exe $WINDOWS /usr/sbin /usr/i18n/mule/bin)
# added for openwin
setenv F1H $HOME/data/lib
setenv LD_LIBRARY_PATH
/usr/ucb/lib:/usr/dt/lib:/usr/lib:/usr/ucblib:/usr/local/lib:
#setenv JAVA_FAST64_VM True
setenv JAVA_HOME /usr/java
setenv CLASSPATH $F1H/dx.jar:$F1H/JLex.jar:$F1H/java_cup.jar:$F1H/jbcl.jar:

$F1H/dx3.0.jar:$F1H/mediaplayer.jar:$F1H/multiplayer.jar:$F1H/customizer.jar:
$F1H/jmf.jar:$F1H/glf.jar:
setenv CLASSPATH $F1H/F1J8Swing.jar:$F1H/jh.jar:$F1H/F1J8_zhs.jar:
$F1H/xalan.jar:$F1H/infobus.jar:$F1H/xerces.jar:$CLASSPATH
6
setenv CLASSPATH $F1H/jcfield450K.jar:$F1H/NetComponents.jar:
$F1H/dbswing.jar:$F1H/sunjce_provider.jar:$F1H/lb.jar:$F1H/kernel.jar:
$CLASSPATH
setenv WINMGR /usr/bin/X11/mwm
setenv MANPATH /usr/local/man:/usr/share/man
setenv MANPATH
/opt/SUNWconn/man:/opt/SUNWrtvc/man:/opt/SUNWsmtv/ShowMeTV/man:/opt/SU
NWvts/man:/opt/SUNWspci2/man:/opt/SUNWspro/man:/opt/SUNWste/man:$
{MANPATH}
# 8/6/91 Added for running exec's from ~/work/bin, Chinese character editor
# 10/3/91 But some files are dependent on path so don't like this addition
#set path=(/usr/ucb/ $path ~/work/bin /usr/bin/mme/ /usr/bin/mtools)
set path=($path /usr/ucb/ ~/work/bin /usr/bin/mme/ /usr/bin/mtools/sbin )
# normal ' backward `
a sprompt 'set prompt="$USER@`hostname`[\\!]:"'
#settings for interactive shells
set filec
set fignore=( .o )
set history=100
setenv EXINIT 'set ai sw=3 sm report=2 ts=5 ignorecase'
a pu pushd
a po popd
a ls 'ls -F'
a pp 'ps -ef|grep nari'
a l 'ls -l'

a bye 'logout'
a sel 'setenv LINES \!*'
a sem 'alias more "more -n\!*"'
a pcset 'sem 33; sel 34'
set savehist=0
7
a h history
a lock lockscreen
a rma 'ipcrm -q \!:1 -m \!:2 -s \!:3'
a rmq 'ipcrm -q'
a rmm 'ipcrm -m'
a rms 'ipcrm -s'
a sts ipcs
a m more
a open 'chmod go+r'
a shut 'chmod go-r'
a x 'chmod +x'
a j 'jobs -l'
a f 'fg %\!*'
a nms 'tbl \!* | nroff -ms |more'
a cd ' cd \!*; set prompt="`hostname`:`pwd`> "'
a inc 'cd ~/include'
a exe 'cd ~/exe'
a src 'cd ~/txt/\!*'
a txt 'cd ~/txt/\!*'
a sys 'cd ~/data/sysfile'
a db 'cd ~/projects/\!*'
a cd 'cd '
a dir 'ls'
#setenv DISPLAY :0

setenv exepath ~/exe/
setenv LIBSRC "-I $HOME/txt/libipc -I $HOME/txt/libncdb -I $HOME/txt/libdrv
-I $HOME/txt/libntool"
# modified by icelee 2005.3.15 #
set _DB_BASE_TYPE=`awk -F: '{ if($1 == "oracle") print $1;}' < /etc/passwd`
set _DB_BASE_HOME=`awk -F: '{ if($1 == "oracle") print $6;}' < /etc/passwd`
8
if { test "X$_DB_BASE_TYPE" = "X" } then
setenv DB_BASE_TYPE mysql
else
setenv DB_BASE_TYPE oracle
endif
if { test "$DB_BASE_TYPE" = "oracle" } then
setenv ORACLE_BASE $_DB_BASE_HOME
#setenv ORACLE_BASE /usr/users/oracle
setenv ORACLE_HOME $ORACLE_BASE/product
setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
setenv ORACLE_HELP $ORACLE_HOME/help/admin/resource
#setenv ORACLE_SID ora9`/usr/sbin/clinfo -n`
#setenv EPC_DISABLED false
setenv NLS_LANG american_america.ZHS16GBK
#setenv NLS_LANG AMERICAN_AMERICA.ZHS16CGB231280
setenv ORACLE_OWNER oracle
set path=($ORACLE_HOME/bin $path)
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:
$ORACLE_HOME/network/lib:$ORACLE_HOME/javavm/admin:
$LD_LIBRARY_PATH
setenv CLASSPATH $ORACLE_HOME/sqlj/lib/runtime.zip:
$ORACLE_HOME/sqlj/lib/translator.zip:$CLASSPATH
setenv CLASSPATH $ORACLE_HOME/jdbc/lib/classes111.zip:

$ORACLE_HOME/jdbc/lib/nls_charset11.zip:$CLASSPATH
set path=($path $ORACLE_HOME/product/bin $ORACLE_HOME/bin)
endif
# modified by icelee 2005.3.15 #
#source /usr/local/bin/coraenv
if { test "$?WINDOW_PARENT" = "1" } then
source .login
9
endif
1.2.2 Background Process of Monitoring System
1.2.2.1 the starting of background process
Background programs of NC2000 system are stored in the exe directory whice is
under the home directory of nari users.For different roles of the computer nodes, the
deployment of background processes will be slightly different. The nodes of NC2000
monitoring system are divided into 3 basic categories:Host, operator and
communication.The following is the background process that kinds of nodes required to
run and the sequence of boot.
Host:
Operator :
Communication:
Typically, we will make the sequence of start into a shell ,for exzample,
"startmain", "startop "or "startcom / startyd" whice is stored in "~ / exe" directory
("~"stand for nari user's home directory ). When NC2000 is started, the corresponding
procedures are also started automatically one by one.
Above all, we can see that the background procedure host equired are significantly
more than other types of computer nodes. The the function of these procedures will be
introduced in the next section.
1.2.2.2 Introduction for Uses of Background Process
We can see from the last ection, basic background procedures of NC2000
including: dbload, client, server, red_m and mam. The following diagram outlines the

10
dblo
ad
clien
t
serv
er
red_m ma
m
lsdm
n
ooex
pr
drvm
an
agcd
rv
agca
vc
engi
ne
start_svc
start
dbloa
d
client serve
r
red_
m
ma

m
xncdeskt
op
agcdr
v
dbloa
d
client serve
r
red_m mam drvmanagcdr
v
main purpose of these procedures:
Red_m has the same function as red_a ,and the two-network system configuration
need to start the two processes simultaneously.red_m is the Net-based process, and
red_a is the supplemented Net process.A single net system only need to start red_m.In
addition ,red_m also responsible for consistency of network time, so need to have
superuser-property.
Except of the basic background process there is a number of processes whice must
deal with the special mission, they include:
lsdmn:the management process of logicality source,in NC2000 DB-database,it is
11
responsible for management of quotion relations of logicality source among all
measuring points.
ooexpr: Object Management process,in NC2000 DB-database, it is responsible for
interpretation and management of objects script.
agcavc: management process of automatic generation and automatic voltage
control,in NC2000 DB-database,it is the advanced application software whice is
responsible for automatic generation control.
agcdrv: responsible for sending AGC data of the host and receiving it at the other
nodes.

Drvman: the management process of kinds of driver process,it is responsible to the
management of communication process among host,LCU,communication and external
communications equipment.
st_clock: GPS clock synchronization receiver process,it is CPS responsible for
receiving data of CPS clock synchronization. Generally,it is running on the
communication.
start_svc: shell of the process starting of the process of the NC2000 historical DB-
databese.NC2000 system it is responsible for the starting of related process of NC2000
historical DB-databese.These processes include: hsvr_log, hsvr_mn, hsvr_smp,
hsvr_red and so on.

Note

NC2000 historical database systems have to run on oracle or mysql
database.Currently,In accordance with the verification,there is several relational DB-
database systems applicable to NC2000 historical DB-databese ,including:oracle 8i,
oracle 9i, mysql-4.0, mysql-5.0 version.Before the operation of NC2000 historical
database system process ,you need to make sure that oracle Services or mysql Services
Services has been running.
In addition to the above main background procedures, exe directory also includes a
number of practical orders of NC2000 system,including:
sh_data:
12
sh_data use for looking for or setting parameters status of the point in NC2000
real-time database system .Usage format: sh_data xxxxx.xx (point code. Parameter
code).For example,To check the power value of No. 1 generator (point is
number1.1.2.1.6, and code-named of parameters is 59), examples are as follows:
sh_data 1.1.2.1.6.59
If you want to manually set the parameters of a measuring point,on the premise of
meeting set value(Measuring point parameters can be written with no other background

process refurbishing this parameters),and using the setting format:sh_data
xxxxx.xx.xxx

As shown above,sh_data 1.1.2.1.6.59 60.0 express that the power value
of No. 1 generator is evalued 60.0.
node_t:
node_t :the order show node status of NC2000 system in the local view,as shown
in the following figure.

Figure 1 - 5
You can see that there is only one host in this NC2000 system,and the node status
is STANDALONE(operating independently,and there is other possible node
status,including:dead,backup,main and so on.)In the system network ,that net 0 is 1
show the net 0 is ok,and the net is 0 show there is some problem in net 1. The "used " is
0 means the main net is net 0.
proc_t:shows the occupancy of the NC2000 system-mail,as shown in the following
figure.
13
Chart shows the process PID No., QID No., QMUN queue and processes name.
redsw_test:
1.2.3 The Data Stream of NC2000 System.
After the brief introduction to you the background program of NC2000 system,now
we want to make an other brief introduction in the way of the NC2000 system data
stream that how the NC2000 system operate through the coordinate of programs.
Black arrow line - the direction of the local data stream.
14
Green arrow line - the direction of data stream in networks.
The black connecting line - the connection line from the main process to its sub-
process.
The figure above show the relations among data streams of processes on the nodes

of NC2000 system.The nodes including host node,op node and LCU node.Because the
node status in the system are different, it contains the different processes and has
different role.In the figure the op node request of sercice from the host server through
the process of the Client,so the host server processes fork the corresponding sub-process
server to handle the requestion.NC2000 main data processing system is by the client,
server process through the way of TCP / IP.In addition, the DB-database information
can also be transfered by the process of mam in the way of multicast and broadcast.It
should be noted that database synchronization of each network node is also by host
mam process in the way of multicast.
1.3 The Communication Drivers of NC2000 System
In the implementation NC2000 system project, that our technical staff mostly faced
is preparation and revision of the driver.In the following sections ,we will make a more
detailed explanation in API which is interrelated to NC2000 system and communication
drivers and the definition of C structure,and hope that can help you to parpare the
relevant programs.
The basic data structure NC2000 system is as same as NARIAcc , with DIN, AIN,
PID and other similar functions NARIAcc block.Also add some special block with
some new functions.At the time of writing drivers, they generally only use DIN, AIN,
PID, PIN, AOUT, DOUT, MODULE such as function block,and these function blocks
is basically no change, same with drv_DIN, drv_AIN, drv_PIN, drv_DOUT,
drv_MODULE ansd so on.
1.3.1 The Header File of NC2000 system Driver
1.File: ~ / include / newdb.h
The file focused on the definition of the AIN, DIN and other functional blocks.
DATA_STRUCT used to access the data in the database, and used in the external
15
communications driver.
DBS_KEY ,points Key, each point the database has a unique DBS_Key, the value
identified in the database configurating.
2.File: ~ / include / dbhead.h

The file focused on the definition of head information in buffer of Nc2000 system
DB-database.
3.File: ~ / include / libdrv.h
The file mainly defines the driver-related structure information.
A)PORT_INFO: port information
Driver is used to describe the serial or network equipment information which is
used in communication between driver and peripheral devices.
typedef struct {
char *file; // name of the device opend by the driver
//Corresponds to serial communication, the value should be a serial device
//Corresponds to the network communications, the value should be Network
Address
int ID; //Unused
int fd; //device number to open file
unsigned network:1; //1: file is a network address
unsigned udp: 1; //1: The network protocol to use UDP communication (reserved)
unsigned mca:1; //1: The network protocol to use Multicast communications (reserved)
unsigned tcp:1; //1: The network protocol using TCP communication (default)
unsigned error:1; //Open the device error
unsigned pad:11; //Unused
unsigned port:16; //If the network == 1, port specified the port number
int pointCount; //The number of measuring points
char dest_node_name[NAME_SIZE + 1]; // Can be used to express the Network
communication node
char filename[NAME_SIZE + 1]; //Configuration file or Remote data files
FBStruc *pFB[]; //Measuring point
16
} PORT_INFO;
B)LOCATE_INFO: positioning information
It is used to describe positioning information relevant to the driver.

typedef struct{
short plant; //-p, Plant No.
short lcu; //-l, LCU number (start from 1)
short UnitNo; //-u, driver ID No.
short ICNNo; //-I, internal network number (for Modcell)
short TargetIndex; //-t, driving the index number (internal use)
unsigned char Address; //-a, driver Address No.
char pad[3];
} LOCATE_INFO;
C)POINT_MAP

The measuring point information
typedef struct {
FBStruc **pPoint; //Measuring point
unsigned short count; //Measuring point No
unsigned char fType; //Types of measuring point
unsigned char pad1;
short plant;
short lcuNo;
} POINT_MAP;
D)ExtComTag: remote measurement point information
typedef struct {
char tag[NAME_SIZE+1]; // tagname (ip)
unsigned char output; //0: Downlink messages, 1: uplink messages
unsigned char din; //0:remote,1:telemetering
unsigned char soe; // 1: SOE
unsigned char pin; // 1: PIN
unsigned char data;
17
unsigned char convert; // Whether or not transform coefficient by AB

unsigned char func_code;
#ifdef SUN
unsigned char pad8:1;
unsigned char pad7:1;
unsigned char pad6:1;
unsigned char pad5:1;
unsigned char pad4:1;
unsigned char pad3:1;
unsigned char bcd:1;
unsigned char tap:1;
#else
unsigned char tap:1;
unsigned char bcd:1;
unsigned char pad3:1;
unsigned char pad4:1;
unsigned char pad5:1;
unsigned char pad6:1;
unsigned char pad7:1;
unsigned char pad8:1;
#endif
unsigned short sno; //Top No
unsigned short boardno; //Plate No.
unsigned short slotno; //Slot No.
unsigned short occno; //Point No.
float coeA; // A coefficient
float coeB; // B coefficient
float lowoutput;
float highoutput;
float deadband;
18

×