Skip to content

Commit

Permalink
ScadaServer: critical fix of sending commands from modules
Browse files Browse the repository at this point in the history
  • Loading branch information
2mik committed Oct 18, 2017
1 parent ada2cb0 commit c79a137
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<h1>История Rapid SCADA</h1>

<pre class="sd-article-history">Rapid SCADA 5.4.1 (18.10.2017)
Сервер 5.1.0.2
Коммуникатор 5.1.0.1
KpModbus 5.1.0.0
Остальные как в 5.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
<body>
<h1>История приложения Сервер</h1>

<pre class="sd-article-history">5.1.0.1 (25.09.2017)
- Исправлена ошибка получения нулевых значений входных каналов при расчётах
<pre class="sd-article-history">5.1.0.2 (18.10.2017)
- Исправлена ошибка отправки команд ТУ по номеру канала управления из модулей

5.1.0.1 (25.09.2017)
- Исправлена ошибка получения нулевых значений входных каналов при расчётах

5.1.0.0 (17.08.2017)
- В API модулей добавлена отправка команд через каналы управления
- Исправлена ошибка получения текущего среза из серверных модулей
Expand Down
2 changes: 1 addition & 1 deletion ScadaServer/ScadaServerCommon/ServerUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static class ServerUtils
/// <summary>
/// Версия Сервера
/// </summary>
public const string AppVersion = "5.1.0.1";
public const string AppVersion = "5.1.0.2";
/// <summary>
/// Старший байт номера версии Сервера
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion ScadaServer/ScadaServerSvc/Comm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,7 @@ private void FillCommandProps(Command cmd, MainLogic.CtrlCnl ctrlCnl)
cmd.KPNum = (ushort)ctrlCnl.KPNum;
cmd.CmdNum = (ushort)ctrlCnl.CmdNum;

if (cmdTypeID == BaseValues.CmdTypes.Standard && cmd.CmdData.Length == 8)
if (cmdTypeID == BaseValues.CmdTypes.Standard && cmd.CmdData != null && cmd.CmdData.Length == 8)
cmd.CmdVal = BitConverter.ToDouble(cmd.CmdData, 0);
}
else if (cmdTypeID == BaseValues.CmdTypes.Request)
Expand Down

0 comments on commit c79a137

Please sign in to comment.