Skip to content

Commit 4aaebbd

Browse files
authored
Merge pull request #37 from RapidScada/develop
Merge Develop to Master (v.5.2.1)
2 parents a8efe22 + 8b15727 commit 4aaebbd

File tree

24 files changed

+194
-47
lines changed

24 files changed

+194
-47
lines changed

ScadaComm/OpenKPs/KpEmail/KpEmailLogic.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Mikhail Shiryaev
2+
* Copyright 2017 Mikhail Shiryaev
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
*
2121
* Author : Mikhail Shiryaev
2222
* Created : 2016
23-
* Modified : 2016
23+
* Modified : 2017
2424
*
2525
* Description
2626
* Sending email notifications.
@@ -265,7 +265,7 @@ public override void Session()
265265
writeState = false;
266266
}
267267

268-
Thread.Sleep(ReqParams.Delay);
268+
Thread.Sleep(ScadaUtils.ThreadDelay);
269269
}
270270

271271
/// <summary>
@@ -289,6 +289,9 @@ public override void SendCmd(Command cmd)
289289
{
290290
if (SendMessage(message))
291291
lastCommSucc = true;
292+
293+
// задержка позволяет ограничить скорость отправки писем
294+
Thread.Sleep(ReqParams.Delay);
292295
}
293296
else
294297
{

ScadaComm/OpenKPs/KpEmail/KpEmailView.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016 Mikhail Shiryaev
2+
* Copyright 2017 Mikhail Shiryaev
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020
*
2121
* Author : Mikhail Shiryaev
2222
* Created : 2016
23-
* Modified : 2016
23+
* Modified : 2017
2424
*/
2525

2626
using Scada.Comm.Devices.AB;
@@ -35,6 +35,12 @@ namespace Scada.Comm.Devices
3535
/// </summary>
3636
public class KpEmailView : KPView
3737
{
38+
/// <summary>
39+
/// Версия библиотеки КП
40+
/// </summary>
41+
internal const string KpVersion = "5.0.0.0";
42+
43+
3844
/// <summary>
3945
/// Конструктор для общей настройки библиотеки КП
4046
/// </summary>
@@ -79,6 +85,17 @@ public override string KPDescr
7985
}
8086
}
8187

88+
/// <summary>
89+
/// Получить версию библиотеки КП
90+
/// </summary>
91+
public override string Version
92+
{
93+
get
94+
{
95+
return KpVersion;
96+
}
97+
}
98+
8299
/// <summary>
83100
/// Получить прототипы каналов КП по умолчанию
84101
/// </summary>

ScadaComm/OpenKPs/KpEmail/Properties/AssemblyInfo.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
1+
using Scada.Comm.Devices;
2+
using System.Reflection;
33
using System.Runtime.InteropServices;
44

55
// General Information about an assembly is controlled through the following
@@ -9,8 +9,8 @@
99
[assembly: AssemblyDescription("")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("KpEmail")]
13-
[assembly: AssemblyCopyright("Copyright © 2016")]
12+
[assembly: AssemblyProduct("Rapid SCADA")]
13+
[assembly: AssemblyCopyright("Copyright © 2016-2017")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion(KpEmailView.KpVersion)]
36+
[assembly: AssemblyFileVersion(KpEmailView.KpVersion)]

ScadaData/ScadaData.Svc/ScadaData.Svc.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
<DocumentationFile>bin\Release\ScadaData.Svc.XML</DocumentationFile>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="ScadaData">
35-
<HintPath>..\ScadaData\bin\Release\ScadaData.dll</HintPath>
36-
</Reference>
3734
<Reference Include="System" />
3835
<Reference Include="System.Configuration.Install" />
3936
<Reference Include="System.ServiceProcess" />
@@ -47,6 +44,12 @@
4744
<Compile Include="Properties\AssemblyInfo.cs" />
4845
<Compile Include="SvcProps.cs" />
4946
</ItemGroup>
47+
<ItemGroup>
48+
<ProjectReference Include="..\ScadaData\ScadaData.csproj">
49+
<Project>{c5dc293f-13ca-435f-a7db-4ba91639c292}</Project>
50+
<Name>ScadaData</Name>
51+
</ProjectReference>
52+
</ItemGroup>
5053
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
5154
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5255
Other similar extension points exist, see Microsoft.Common.targets.

ScadaDoc/ScadaDoc/ScadaDoc.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
<Content Include="content\en\modules\index.html" />
9797
<Content Include="content\en\modules\mod-auto-control-files\mod_auto_control_en.png" />
9898
<Content Include="content\en\modules\mod-db-export.html" />
99+
<Content Include="content\en\modules\mod-rapid-gate.html" />
99100
<Content Include="content\en\modules\plg-chart-pro.html" />
100101
<Content Include="content\en\modules\plg-dashboard.html" />
101102
<Content Include="content\en\modules\plg-elastic-report-files\interface_table_en.png" />
@@ -119,6 +120,7 @@
119120
<Content Include="content\ru\modules\mod-auto-control-files\mod_auto_control_ru.png" />
120121
<Content Include="content\ru\modules\mod-auto-control.html" />
121122
<Content Include="content\ru\modules\mod-db-export.html" />
123+
<Content Include="content\ru\modules\mod-rapid-gate.html" />
122124
<Content Include="content\ru\modules\plg-elastic-report-files\interface_table_ru.png" />
123125
<Content Include="content\ru\modules\plg-elastic-report.html" />
124126
<Content Include="content\ru\modules\plg-dashboard.html" />

ScadaDoc/ScadaDoc/content/en/installation-and-run/module-installation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h2 id="modules">Installation of Server Modules</h2>
2020
<li>In case of using Windows 8 or higher, find C:\SCADA\ScadaServer\Mod\Mod*.dll, open the file properties and unblock the file.</li>
2121
<li>Run the Server graphical shell and go to the Modules page.</li>
2222
<li>Click the <img src="../../common-images/plus.png" /> button, then use the file dialog to select the module library and apply the changes with the <img src="../../common-images/apply.png" /> button.</li>
23-
<li>Perform the configuration of the module specified in the module documentation.</li>
2423
<li>Start the Server service using the <img src="../../common-images/start.png" /> button.</li>
24+
<li>Perform the configuration of the module specified in the module documentation.</li>
2525
</ol>
2626

2727
<h2 id="drivers">Installation of Communicator Drivers</h2>
@@ -41,7 +41,7 @@ <h2 id="plugins">Installation of Webstation Plugins</h2>
4141
<li>Unzip the plugin installation package.</li>
4242
<li>Copy all the files from the SCADA folder of the plugin installation package to the Rapid SCADA installation directory, the default is C:\SCADA, with the hierarchy of directories retained.</li>
4343
<li>In case of using Windows 8 or higher, find C:\SCADA\ScadaWeb\bin\Plg*.dll, open the file properties and unblock the file.</li>
44-
<li>Login the web application as administrator and go to <em>Main Menu &gt; Plugins</em>.</li>
44+
<li>Login the web application as administrator and go to <em>Main Menu &gt; Plugins &gt; Installed</em>.</li>
4545
<li>Find the new plugin on the page and click the <em>Activate</em> link.</li>
4646
<li>Perform the configuration of the plugin specified in the plugin documentation.</li>
4747
</ol>

ScadaDoc/ScadaDoc/content/en/modules/mod-auto-control.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ <h2>Overview</h2>
2424
<p>Each trigger contains a set of commands which are sent if the trigger fires. The information about firing of the triggers is accessible on the <em>Log</em> page or directly from the ModAutoControl.log file. This file is located in Server logs directory C:\SCADA\ScadaServer\Log</p>
2525

2626
<h2>Installation</h2>
27-
<p>Automatic control module is installed in accordance with <a href="../installation-and-run/module-installation.html#modules">the general sequence of installing Server modules</a>. The module library file is ModAutoControl.dll. After connecting the module, you need to perform several additional actions:</p>
27+
<p>Automatic Control Module is installed in accordance with <a href="../installation-and-run/module-installation.html#modules">the general sequence of installing Server modules</a>. The module library file is ModAutoControl.dll. After adding the module, you need to perform several additional actions:</p>
2828
<ol>
29-
<li>Start the Server service using the <img src="../../common-images/start.png" /> button.</li>
3029
<li>Click the <em>Properties</em> button to open the module configuration form </li>
3130
<li>Go to the <em>Registration</em> page and register the module using the hyperlinks on the form.</li>
3231
<li>Configure the module by creating triggers and commands.</li>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Rapid Gate Module - Rapid SCADA Documentation</title>
5+
<meta charset="utf-8" />
6+
<link href="../../../css/scadadoc.min.css" rel="stylesheet" type="text/css" />
7+
<script type="text/javascript" src="../../../js/jquery.min.js"></script>
8+
<script type="text/javascript" src="../../../js/scadadoc.js"></script>
9+
</head>
10+
<body>
11+
<h1>Rapid Gate Module</h1>
12+
<h2>Overview</h2>
13+
<p>Rapid Gate Module is designed to synchronize data between several Rapid SCADA instances. The module allows to setup a backup server, as well as provides data transfer from SCADA installed on remote locations to the primary SCADA.</p>
14+
15+
<h2>Installation</h2>
16+
<p>Rapid Gate Module is installed in accordance with <a href="../installation-and-run/module-installation.html#modules">the general sequence of installing Server modules</a>. The module library file is ModRapidGate.dll. After adding the module, you need to perform several additional actions:</p>
17+
<ol>
18+
<li>Open the module log C:\SCADA\ScadaServer\Log\ModRapidGate.log in a text editor and copy a computer code.</li>
19+
<li>Register the module by contacting the developers or using <a href="http://trial.rapidscada.net/?prod=ModRapidGate" target="_blank">the trial key generator</a>. A register key must be stored in C:\SCADA\ScadaServer\Config\ModRapidGate_Reg.xml between RegKey tags.</li>
20+
<li>Configure the module (see the section below).</li>
21+
<li>Restart the Server service by clicking <img src="../../common-images/restart.png" />.</li>
22+
</ol>
23+
24+
<h2>Configuring</h2>
25+
<p>To cofigure Rapid Gate Module, edit C:\SCADA\ScadaServer\Config\ModRapidGate.xml using a text editor. The settings contains the connection parameters for the SCADA server (target server) to which data are transferred and from which commands are received.</p>
26+
<p>Note that you usually need to configure the firewall on the target server to allow connections with it over the network.</p>
27+
28+
<h2>Algorithm</h2>
29+
<p>The algorithm of Rapid Gate Module has the following features:</p>
30+
<ol>
31+
<li>The module transmits only the data that are received from Communicator. The values of the calculated input channels are not transmitted.</li>
32+
<li>The data is transmitted to the same input channel numbers to which they are received.</li>
33+
<li>The transmitted values are already calculated by the formulas of the input channels, which can result in double applying of the formulas on the target server. Therefore, when using the module, it is recommended that calculations be performed in separate input channels of the calculated type.</li>
34+
<li>The module has a data transfer queue, which allows restoring data in case of a short-term connection failure with a target server.</li>
35+
</ol>
36+
</body>
37+
</html>

ScadaDoc/ScadaDoc/content/ru/installation-and-run/module-installation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ <h2 id="modules">Установка модулей Сервера</h2>
2020
<li>Если используется Windows 8 и выше, найти файл библиотеки модуля C:\SCADA\ScadaServer\Mod\Mod*.dll, открыть его свойства и разблокировать файл.</li>
2121
<li>Запустить графическую оболочку Сервера и перейти на страницу Модули.</li>
2222
<li>Щёлкнуть по кнопке добавления модуля <img src="../../common-images/plus.png" />, затем с помощью файлового диалога выбрать библиотеку модуля и применить изменения кнопкой <img src="../../common-images/apply.png" />.</li>
23-
<li>Выполнить действия по настройке модуля, указанные в документации на конкретный модуль.</li>
2423
<li>Запустить службу Сервера с помощью кнопки <img src="../../common-images/start.png" />.</li>
24+
<li>Выполнить действия по настройке модуля, указанные в документации на конкретный модуль.</li>
2525
</ol>
2626

2727
<h2 id="drivers">Установка драйверов Коммуникатора</h2>
@@ -41,7 +41,7 @@ <h2 id="plugins">Установка плагинов Вебстанции</h2>
4141
<li>Распаковать архив дистрибутива плагина.</li>
4242
<li>Скопировать все файлы из папки SCADA дистрибутива плагина в директорию установки Rapid SCADA, по умолчанию C:\SCADA, с сохранением иерархии директорий.</li>
4343
<li>Если используется Windows 8 и выше, найти файл библиотеки плагина C:\SCADA\ScadaWeb\bin\Plg*.dll, открыть его свойства и разблокировать файл.</li>
44-
<li>Выполнить вход в веб-приложение как администратор и перейти на страницу <em>Главное меню &gt; Плагины</em>.</li>
44+
<li>Выполнить вход в веб-приложение как администратор и перейти на страницу <em>Главное меню &gt; Плагины &gt; Установленные</em>.</li>
4545
<li>Найти на странице новый плагин и щёлкнуть по ссылке <em>Активировать</em>.</li>
4646
<li>Выполнить действия по настройке плагина, указанные в документации на конкретный плагин.</li>
4747
</ol>

ScadaDoc/ScadaDoc/content/ru/modules/mod-auto-control.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ <h2>Обзор</h2>
2626
<h2>Установка</h2>
2727
<p>Модуль автоматического управления устанавливается в соответствии с <a href="../installation-and-run/module-installation.html#modules">общей последовательностью установки модулей Сервера</a>. Файл библиотеки модуля - ModAutoControl.dll. После подключения модуля необходимо выполнить несколько дополнительных действий:</p>
2828
<ol>
29-
<li>Запустить службу Сервера с помощью кнопки <img src="../../common-images/start.png" />.</li>
3029
<li>Нажать кнопку <em>Свойства</em>, чтобы открыть форму конфигурации программного модуля.</li>
3130
<li>Перейти на страницу <em>Регистрация</em> и зарегистрировать модуль, используя гиперссылки, размещённые на форме.</li>
3231
<li>Сконфигурировать модуль, создав триггеры и команды.</li>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Модуль Быстрый шлюз - Документация Rapid SCADA</title>
5+
<meta charset="utf-8" />
6+
<link href="../../../css/scadadoc.min.css" rel="stylesheet" type="text/css" />
7+
<script type="text/javascript" src="../../../js/jquery.min.js"></script>
8+
<script type="text/javascript" src="../../../js/scadadoc.js"></script>
9+
</head>
10+
<body>
11+
<h1>Модуль Быстрый шлюз</h1>
12+
<h2>Обзор</h2>
13+
<p>Модуль Быстрый шлюз предназначен для синхронизации данных между несколькими экземплярами Rapid SCADA. Модуль позволяет организовать работу резервного сервера, а также обеспечивает передачу данных от SCADA, установленных на удалённых объектах, на главную SCADA.</p>
14+
15+
<h2>Установка</h2>
16+
<p>Модуль автоматического управления устанавливается в соответствии с <a href="../installation-and-run/module-installation.html#modules">общей последовательностью установки модулей Сервера</a>. Файл библиотеки модуля - ModRapidGate.dll. После подключения модуля необходимо выполнить несколько дополнительных действий:</p>
17+
<ol>
18+
<li>Открыть журнал работы модуля C:\SCADA\ScadaServer\Log\ModRapidGate.log в текстовом редакторе и скопировать код компьютера. </li>
19+
<li>Зарегистрировать модуль, связавшись с разработчиками или с помощью <a href="http://trial.rapidscada.net/?prod=ModRapidGate&lang=ru" target="_blank">сервиса генерации демо-ключей</a>. Регистрационный ключ сохраняется в файле C:\SCADA\ScadaServer\Config\ModRapidGate_Reg.xml между тегами RegKey.</li>
20+
<li>Сконфигурировать модуль (см. ниже).</li>
21+
<li>Перезапустить службу Сервера с помощью кнопки <img src="../../common-images/restart.png" />.</li>
22+
</ol>
23+
24+
<h2>Конфигурирование</h2>
25+
<p>Чтобы сконфигурировать модуль Быстрый шлюз, необходимо отредактировать файл C:\SCADA\ScadaServer\Config\ModRapidGate.xml с помощью текстового редактора. В настройках указываются параметры подключения к тому cерверу SCADA (целевому серверу), на который будут передаваться данные и с которого будут приниматься команды ТУ.</p>
26+
<p>Обратите внимание, что на целевом сервере обычно небходимо настроить брандмауэр, чтобы разрешить подключение к нему по сети.</p>
27+
28+
<h2>Алгоритм работы</h2>
29+
<p>Алгоритм работы модуля Быстрый шлюз имеет следующие функциональные особенности:</p>
30+
<ol>
31+
<li>Модуль передаёт только те данные, которые поступают от Коммуникатора. Значения дорасчётных входных каналов не передаются.</li>
32+
<li>Данные передаются на те же номера входных каналов, на которые они были получены.</li>
33+
<li>Передаваемые значения уже посчитаны по формулам входных каналов, что может привести в двойному применению формул на целевом сервере. Поэтому при использовании модуля рекомендуется вычисления по формулам выполнять в отдельных дорасчётных входных каналах.</li>
34+
<li>Модуль имеет очередь передачи данных, что позволяет восстанавливать данные при кратковременном обрыве соединения с целевым сервером.</li>
35+
</ol>
36+
</body>
37+
</html>

0 commit comments

Comments
 (0)