Beruflich Dokumente
Kultur Dokumente
DESCRIPTION......................................................................................1
1.2.
CONFIGURATION..................................................................................2
2. FTP TRANSFERS......................................................................
2.1.
SERVER
CONFIGURATION......................................................................12
2.2.
CLIENTS
CONFIGURATION.....................................................................12
2.3.
MANUAL
EXECUTION...........................................................................13
2.4.
AUTOMATIC
2.5.
LOG
EXECUTION........................................................................13
FILE.........................................................................................14
3. DLFILECONV...........................................................................
3.1.
DESCRIPTION....................................................................................16
3.2.
CONFIGURATION FILES........................................................................16
3.3.
MANUAL STARTUP..............................................................................18
3.4.
AUTOMATIC STARTUP..........................................................................19
3.5.
LOG
FILE.........................................................................................20
4. SCADA...................................................................................
4.1.
OBJETIVES........................................................................................21
4.2.
GRAPHIC
4.3.
FACEPLATES (GRAPHICS).......................................................................22
4.4.
FILE DL_STUDY_VXX..........................................................................23
4.5.
4.6.
4.7.
HISTORICAL
DATA...............................................................................24
1.
1.1. DESCRIPTION
This type of datalogger is managed by 2 software applications: MT Manager (which includes
MT Spooler) and MT DataProvider.
MT DataProvider can run as an application or as a service. The main settings are contained
in the .xml file named in our case OPCconfig.
Usually all settings are done locally, by a laptop with a USB cable attached to the
datalogger.
For Gorj Project, initial settings were made locally, after that we read all the setting in MT
Manager.
It is important to have in Startup the MTManager and is good to be assured that the
MT_OPC (MT Data Provider) and MTSsWinService4 (MTspooler4) services are started in
automatic mode.
1.2. CONFIGURATION
To configure the datalogger the following steps should be done:
1. Creating a new module
All the following print scripts are made in the moment in which we have a report at every
1 h (CT3) and the reading is made at every 5 min (CT1).
The final value of CT3 (the time period for sending the .csv files) was set at 24 hours.
For the .csv files configuration we will need to complete 3 files from C:\Program Files
(x86)\InVentia\MTopc2: mt_aliases where we can change the syntax of the variales,
mt_log_filter where we can introduce only the variables we need to receive into .csv files,
OPCconfig.xml file which contains all parameters regarding the dataloggers (module IP,
module serial number). Also we must complete the startfile with C:\Program Files
(x86)\InVentia\MTopc2\OPCconfig.xml.
PM18--DL.REGL2,lIndexFwd
PM18--DL.REGL4,lIndexRev
PM18--DL.AIL2,lRTC_HMS
PM18--DL.AI7,iMT_ALM
PM18--DL.AI10,iDebitFwd
PM18--DL.AI11,iDebitRev
PM18--DL.AI15,iPresiune
PM18--DL.AIL18,lALM_LH
PM18--DL.AI21,iBattVolt
PM18--DL.AI24,iGSM_STATE
PM19--DL.REGL2,lIndexFwd
PM19--DL.REGL4,lIndexRev
PM19--DL.AIL2,lRTC_HMS
PM19--DL.AI7,iMT_ALM
PM19--DL.AI10,iDebitFwd
PM19--DL.AI11,iDebitRev
PM19--DL.AI15,iPresiune
PM19--DL.AIL18,lALM_LH
PM19--DL.AI21,iBattVolt
PM19--DL.AI24,iGSM_STATE
PM20--DL.REGL2,lIndexFwd
PM20--DL.REGL4,lIndexRev
PM20--DL.AIL2,lRTC_HMS
PM20--DL.AI7,iMT_ALM
PM20--DL.AI10,iDebitFwd
PM20--DL.AI11,iDebitRev
PM20--DL.AI15,iPresiune
PM20--DL.AIL18,lALM_LH
PM20--DL.AI21,iBattVolt
PM20--DL.AI24,iGSM_STATE
PM18--DL.lIndexFwd
PM18--DL.lIndexRev
PM18--DL.lRTC_HMS
PM18--DL.iMT_ALM
PM18--DL.iDebitFwd
PM18--DL.iDebitRev
PM18--DL.iPresiune
PM18--DL.lALM_LH
PM18--DL.iBattVolt
PM18--DL.iGSM_STATE
PM19--DL.lIndexFwd
PM19--DL.lIndexRev
PM19--DL.lRTC_HMS
PM19--DL.iMT_ALM
PM19--DL.iDebitFwd
PM19--DL.iDebitRev
PM19--DL.iPresiune
PM19--DL.lALM_LH
PM19--DL.iBattVolt
PM19--DL.iGSM_STATE
PM20--DL.lIndexFwd
PM20--DL.lIndexRev
PM20--DL.lRTC_HMS
PM20--DL.iMT_ALM
PM20--DL.iDebitFwd
PM20--DL.iDebitRev
PM20--DL.iPresiune
PM20--DL.lALM_LH
PM20--DL.iBattVolt
PM20--DL.iGSM_STATE
<?xml version="1.0"?>
<opc>
aliases="true"
debug_file_type="daily_log"
updateable="false" debug="false"/>
restore="true"
backup_time="5"
<network
name="PM18"
ip_receiver=""
udp_port=""
ip_header_receiver="023.012.014.004"
ip_header_sender="255.255.255.255"
timeout="12"
retries="3"
module_type="mt723"
update="false"
add_crc="true"
csv_msg_log="logger" odbc_msg_log="false" dreg_order="lo_hi" expire_time="11000"
debug="false" enable="true">
<modbus name="DL"
id="1" type="analog_inputs"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="7"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="10"
size="2"
address="21"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="long2" interval="0" debug="false" enable="true"/>
address="24"
size="1"
<modbus
name="DL"
id="1"
type="registers"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="2"
</network>
<network
name="PM19"
ip_receiver=""
udp_port=""
ip_header_receiver="023.012.015.009"
ip_header_sender="255.255.255.255"
timeout="12"
retries="3"
module_type="mt723"
update="false"
add_crc="true"
csv_msg_log="logger" odbc_msg_log="false" dreg_order="lo_hi" expire_time="11000"
debug="false" enable="true">
<modbus name="DL"
id="1" type="analog_inputs"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="7"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="10"
size="2"
address="21"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="long2" interval="0" debug="false" enable="true"/>
address="24"
size="1"
<modbus
name="DL"
id="1"
type="registers"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="2"
</network>
<network
name="PM20"
ip_receiver=""
udp_port=""
ip_header_receiver="023.012.014.009"
ip_header_sender="255.255.255.255"
timeout="12"
retries="3"
module_type="mt723"
update="false"
add_crc="true"
csv_msg_log="logger" odbc_msg_log="false" dreg_order="lo_hi" expire_time="11000"
debug="false" enable="true">
<modbus name="DL"
id="1" type="analog_inputs"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="7"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="int2" interval="0" debug="false" enable="true"/>
address="10"
size="2"
address="21"
size="1"
<modbus name="DL"
id="1" type="analog_inputs"
format="long2" interval="0" debug="false" enable="true"/>
address="24"
size="1"
<modbus
name="DL"
id="1"
type="registers"
format="long4" interval="0" debug="false" enable="true"/>
address="2"
size="2"
</network>
</opc>
10
If we are using MT Data provider to set up the dataloggers, the use of MT Manager is not
necessary. The only task that is needed is starting mt_opc as Service and File as shown
below:
11
2.
FTP TRANSFERS
The FTP server was already configured to transfer files between SCADA and BI modules,
using the folder C:\GorjTraspaso as the working directory. To transfer datalogger files, the
DL_Inbox virtual directory has been added pointing to the path D:\DATA\DL\Inbox. This
path is where the datalogger driver program DLFileConv expects to find the datalogger files
to load.
12
log: log file (ftp.log) with all the FTP transfers and its result
shells: scripts including the batch process (uploadTgJiu1.bat) and the FTP commands
(tgjiu1.ftp)
13
Sat 12/01/2012
1:38:07.12
D:\DATA\FTP\backup\
Sat 12/01/2012
Process
stop:
File/s
uploaded
succesfully,
moving
file/s
14
to
Sat 12/01/2012
1:43:04.36
D:\DATA\FTP\backup\
Sat 12/01/2012
Process
stop:
File/s
uploaded
succesfully,
moving
file/s
15
to
3.
DLFILECONV
3.1. DESCRIPTION
This module has been implemented as an independent application that should be always
running. Their functions are:
-
Parse files located in the folder defined in the InboxPath setting: at program startup and when a file is uploaded by the scripts described in the previous chapter, it
parses the contents of the file
Update the real-time file with the values obtained from the last parsed history
records at the folder defined in the RealtimeOutboxPath setting
If the above steps success move the original file to the folder defined in the
BackupPath setting and otherwise move it to the folder defined in the BadPath
setting
is
installed
in
the
following
path:
C:\Program
files
datalogger-location.lst: settings to configure the datalogger list linked with its location
16
DataloggerFilesConversor.exe.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="DataloggerFilesConversor.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089"
allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<DataloggerFilesConversor.Properties.Settings>
<setting name="InboxPath" serializeAs="String">
<value>D:\DATA\DL\inbox</value>
</setting>
<setting name="RealtimeOutboxPath" serializeAs="String">
<value>D:\DATA\DL\outbox_RT</value>
</setting>
<setting name="HistoryOutboxPath" serializeAs="String">
<value>D:\DATA\DL\outbox_HIST</value>
</setting>
<setting name="BackupPath" serializeAs="String">
<value>D:\DATA\DL\backup</value>
</setting>
<setting name="BadPath" serializeAs="String">
<value>D:\DATA\DL\bad</value>
</setting>
</DataloggerFilesConversor.Properties.Settings>
</userSettings>
</configuration>
NLog.config:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- make sure to set 'Copy To Output Directory' option for this file -->
<!-- go to http://nlog-project.org/wiki/Configuration_file for more information -->
<targets>
<target name="logfile"
xsi:type="File"
layout="${longdate}|${level:uppercase=true}|${message}"
fileName="D:\DATA\DL\log\DLFileConv.log"
archiveFileName="D:\DATA\DL\log\archives\DLFileConv.{#}.log"
archiveEvery="Month"
archiveNumbering="Rolling"
maxArchiveFiles="12"
concurrentWrites="true"
keepFileOpen="false"
encoding="iso-8859-2" />
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="logfile" />
</rules>
</nlog>
17
datalogger-location.lst:
PM12|BUMDT
PM25|TICDT
PM13_1|BUMDT
PM26|TICDT
PM13_2|BUMDT
PM27|MOTDT
PM14|BUMDT
PM28|MOTDT
PM15_1|BUMDT
PM29|MOTDT
PM15_2|BUMDT
PM1|TJ1DT
PM15_3|BUMDT
PM2|TJ1DT
PM16|BUMDT
PM3_1|TJ1DT
PM17|BUMDT
PM3_2|TJ1DT
PM18|CARDT
PM3_3|TJ1DT
PM19|CARDT
PM4|TJ1DT
PM20|CARDT
PM5|TJ1DT
PM21|CARDT
PM6|TJ1DT
PM22_1|TICDT
PM7|TJ1DT
PM22_2|TICDT
PM8|TJ1DT
PM23|TICDT
PM9|TJ1DT
PM24|TICDT
PM10|TJ1DT
PM11|TJ1DT
18
19
DLFileConv.log:
2012-11-16 09:48:36.1718|INFO|------ Application start -----2012-11-16 09:48:41.7179|INFO|Converting file "log (PM24--DL) 2012_11_12_00_01_17.csv"
2012-11-16
09:48:41.8116|INFO|File
"log
(PM24--DL)
converted. The file will be moved to the backup folder
2012_11_12_00_01_17.csv"
succesfully
en
en DataloggerFilesConversor.FileParser.createRealtimeFile()
en DataloggerFilesConversor.MainForm.convertFile(String filePath)
2012-11-16 09:48:41.9835|INFO|Converting file "log (PM26--DL) 2012_11_12_00_01_23.csv"
2012-11-16
09:48:42.0303|INFO|File
"log
(PM26--DL)
converted. The file will be moved to the backup folder
2012_11_12_00_01_23.csv"
succesfully
20
4.
SCADA
4.1. OBJETIVES
It have been developed the objects that represent de Dataloggers of Gorjs Project
(Rumania), this Dataloggers are connected to flowmeters. It have been developed the
objects that represents the physical datalogger in the distribution net and the faceplates
that displays the information.
When pushed brings to the corresponding distribution area (Targu Jiu, Bumbesti
Jiu..)
Its displayed in grey if it dont have active alarms.
Its displayed in red if it have active alarms.
It blinks if any alarm is unacknowledged.
21
Its displayed in grey color if the point is represented in the map but it is not linked
to a datalogger.
Its displayed in green if the point is linked to a datalogger and It isnt in alarm.
Its displayed in red if It is linked to a datalogger and It is in alarm.
It blinks if it have any unacknowledged alarm.
When pushed shows a faceplate with the datalogger information (DL001Fac).
It display the Datalogger identifier
The DL001xxx graphic is used in the different distribution areas and the specific graphic
used is:
DL001Alr: Displays the Dataloggers alarms, if any alarm is active its round led is in red, if
the alarm is unacknowledged the round led blinks.
22
In the forlder \DLFac_Objects are done the objects needed to do the faceplates.
23
DL001: Its needed one DL001 instance for each datalogger. It process the values writed
by DL_Gen instance.
In the instances of DL001 is needed to configure the UDA ObjDesc that defines the
description of the object. It have been done a file to charge the values of this variable in all
the instances named DL001_Configuration.csv
The file DL_Hst_Info.txt have included a query to excute over Runtime database that
return the value introduced by the file DL_Hst.csv
In historian have been defined the historical variables of the dataloggers, these variables
are not related with any variable defined in IAS. They have been created charging a file
with the application Database configuration export and import of historian. The file is
DL_Hst_Charge.txt
24