现在的位置: 首页 > 程序设计> 正文
OpenSCADA系统的安装配置
2013年08月05日 程序设计 评论数 1 ⁄ 被围观 2,280+

简介

SCADA(Supervisory Control And Data Acquisition)系统,即数据采集与监视控制系统。SCADA系统是以计算机为基础的DCS与电力自动化监控系统;它应用领域很广,可以应用于电力、冶金、石油、化工等领域的数据采集与监视控制以及过程控制等诸多领域。详细可以从百度百科维基百科了解。

安装环境

  • OS: Ubuntu 11
  • openscada-0.8.0.5

依赖包的安装

####### 文字处理相关
sudo apt-get install gettext
sudo apt-get install zlib1g-dev
sudo apt-get install libgd2-xpm-dev
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install bison

####### 数据库相关
sudo apt-get install libmysqlclient15-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install firebird2.5-dev
sudo apt-get install postgresql libpq-dev

####### 网络,声音相关
sudo apt-get install libsnmp-dev
sudo apt-get install portaudio19-dev

####### 图形相关
sudo apt-get install libqt4-dev qt4-dev-tools

编译步骤

Steps of preparation of the source tree to build:

Make directory for project building:

$ mkdir ~/projects; cd ~/projects

Download sources package. It may be made from two ways:
download tar archive from ftp-server ftp://ftp.oscada.org/OpenSCADA/ and unpacked it, for example:

$ wget ftp://ftp.oscada.org/OpenSCADA/0.8.0/openscada-0.8.0.tar.lzma
$ wget ftp://ftp.oscada.org/OpenSCADA/0.8.0/openscada-res-0.8.0.tar.lzma
$ tar --lzma -xvf openscada-0.8.0.tar.lzma
$ cd openscada-0.8.0
$ tar --lzma -xvf ../openscada-res-0.8.0.tar.lzma

get project's source tree from SVN-repository:

$ svn co svn://oscada.org/trunk/OpenSCADA
$ cd OpenSCADA

Resolve OpenSCADA dependents for build, on according demands.
Generate of build system, when download from the SVN-repository:

$ autoreconf -ivf

Steps of global building:

Configuring building system of OpenSCADA:

$ ./configure

Make OpenSCADA project:

$ make

Install OpenSCADA:

$ su; make install

Some configuration and data files install. Skip for OpenSCADA versions >= 0.8.1!
Copy start script and configuration file of demonstration:

$ cp data/ModelsDB/AGLKS/openscada_demo /usr/bin
$ cp data/ModelsDB/AGLKS/oscada_AGLKS.xml /etc

Make data directory and fill it:

$ mkdir /var/spool/openscada
$ mkdir /var/spool/openscada/{DATA,icons,LibsDB,AGLKS}
$ cp data/LibsDB/*.db /var/spool/openscada/LibsDB
$ cp data/ModelsDB/AGLKS/*.db /var/spool/openscada/AGLKS
$ cp data/icons/* /var/spool/openscada/icons
$ install -m 777 -d /var/spool/openscada/ARCHIVES/{MESS,VAL}

System ready to start:

$ exit; openscada_demo

Steps of local building:

Configuring building system of OpenSCADA:

$ mkdir ~/OScadaW; ./configure --prefix=/home/user/OScadaW

Make OpenSCADA project:

$ make

Install OpenSCADA:

$ make install

Some configuration and data files install. Skip for OpenSCADA versions >= 0.8.1!
Copy start script and configuration file of demonstration:

$ cp data/ModelsDB/AGLKS/openscada_demo_local ~/OScadaW/bin/openscada_demo
$ mkdir ~/OScadaW/etc
$ cp data/ModelsDB/AGLKS/oscada_demo_local.xml ~/OScadaW/etc/oscada_demo.xml

Make data directory and fill it:

$ mkdir ~/OScadaW/share/openscada
$ mkdir ~/OScadaW/share/openscada/{DATA,icons,LibsDB,AGLKS}
$ cp data/LibsDB/*.db ~/OScadaW/share/openscada/LibsDB
$ cp data/ModelsDB/AGLKS/*.db ~/OScadaW/share/openscada/AGLKS
$ cp data/icons/* ~/OScadaW/share/openscada/icons
$ install -m 777 -d ~/OScadaW/share/openscada/ARCHIVES/{MESS,VAL}

System ready to start:

$ cd ~/OScadaW/bin; ./openscada_demo

用户信息:

By default, the system provides OpenSCADA super user "root" (password "openscada") and unprivileged "user" (password "user")

参考链接

目前有 1 条留言 其中:访客:0 条, 博主:0 条 引用: 1

    查看来自外部的引用: 1

    给我留言

    留言无头像?


    ×
    腾讯微博