| Модуль |
Имя |
Версия |
Лицензия |
Источник |
Языки |
Платформы |
Тип |
Автор
|
| DAQGate |
Шлюз источников данных
|
2.16 |
GPL2 |
daq_DAQGate.so |
en,uk,ru,de |
x86,x86_64,ARM
|
DAQ |
Роман Савоченко
|
| Описание
|
Позволяет выполнять шлюзование источников данных удалённых OpenSCADA станций в локальные.
- Спонсировано, асинхронной записи, усовершенствование в целом и в сообщениях с нарушениями и действий на 1.5 ЧД[!]: INSERTEC LTDA, Винницкая Птицефабрика
|
Основной функцией данного модуля является отражение данных подсистемы "Сбор данных" удалённых OpenSCADA станций на локальные. В своей работе модуль использует Собственный Протокол OpenSCADA и сервисные функции подсистемы "Сбор данных".
The module realises the following functions:
- Reflection of the parameters structure of the subsystem "Data acquisition" of the remote station. This structure can be periodically synchronised while working.
- Access to the parameters configuration. Configuration of the controllers parameters of the remote stations is transparently reflected that lets you to change it remotely.
- Access to the current values of the parameters attributes and the possibility of their modification. Values of the parameters attributes are updated at a periodicity of execution of the local controller object. Requests for modification of the attributes are transmitted to the remote station.
- Reflection of the value archives of individual attributes of the parameters. The archives reflection is realised in two ways:
- means the local archive creating for the attribute and its synchronization with the remote one; there is provided the archive recovering at start for the "Depth time of restore data" of the remote station's inaccessibility and ongoing "holes" recovering at request for big depths;
- means the translation of the requests of the local archive to the one of the remote station at missing the local archive.
- Messages reflection from selected data sources of the remote station to local messages archive with the prefix "{Station}:", including violations (the negative level). The initial synchronisation procedure involves in general:
- requesting for all active alarms;
- requesting for messages of the specified sources on the depth specified by the parameter "Maximum depth of data of the archive values and messages to restore when start" and up to the time of the previous request, so all new alarms won't definitely appear;
- coming to the normal mode of tracing new messages and alarms about the specified sources.
- Provides implementation of the vertical redundancy mechanism as an opportunity to reflect data from the multiple stations at the same level.
- Realisation of the horizontal redundancy functions, that is working in the conjunction with the remote station of the same level.
Использование доступных схем резервирования наглядно представлено на рисунке 1.
Рис.1. Горизонтальное и вертикальное резервирование.
1 Объект контроллера
Для добавления источника данных создаётся и конфигурируется объект контроллера OpenSCADA. Пример вкладки конфигурации объекта контроллера данного типа изображен на рисунке 2.
Рис.2. Вкладка конфигурации объекта контроллера.
With this tab you can set:
- State of the controller object, that is: status, "Enabled", "Running" and the storage name containing the configuration.
Manual restart of the enabled controller object causes the force resync at the sync period >= 0.
- Identifier, name and description of the controller.
- The state "Enabled" and "Running" in which the controller object must be translated at start up.
- Acquisition schedule policy and priority of the data acquisition task.
- Time interval of repetition attempts to restore communication with the lost station, in seconds.
- Maximum depth of data of the archive values and messages to restore when start, in the hours. Zero for disable the remote archive access.
- Asynchronous writing. Enables of writing in the common acquisition cycle for the buffer of accumulated values, by one request.
Useful for slow and not reliable networks-connections since the writing buffer stores data before the connection restore and the real writing.
- Level of requested messages of the data sources. Also enables the DAQ-messages of the User API function messSet() transferring to the lower stations.
- Synchronization time with the remote station in seconds. Zero to disable the periodic sync and -1 for the sync disabling at the start also.
- Remote OpenSCADA station of the reflected data. Several stations in the list enable the vertical redundancy mechanism.
- List of the reflected controller objects and parameters. The list can be used as for controller objects for the reflection of all their parameters, and for individual parameters too.
- Command to go to configuration of the OpenSCADA remote stations list.
- Allow the automatic removal of parameters and attributes to update to the actual state.
In the production mode, it's better to turn this off!
- Placing different controllers to the different virtual parameters.
2 Параметры
Модуль хотя и предоставляет возможность создания параметров вручную, однако это лишено смысла, поскольку такой параметр, при отсутствии его на удалённой станции, будет пустым. Все параметры создаются автоматически с учётом списка отражаемых объектов контроллеров и параметров. Параметры могут быть сохранёны в кеш для последующего их создания даже при отсутствии связи с удалённой станцией. Пример отраженного параметра приведён на рисунке 3.
Рис.3. Вкладка конфигурации отражённого параметра.
3 Замечания
В работе с этим модулем в целом рекомендуется следующий порядок:
- На время активной разработки, а соответственно и изменения структуры параметров удалённой станции, нужно включить синхронизацию с периодичностью секунд 60 и разрешить удаление параметров и атрибутов.
- Перед запуском в производство нужно: выключить периодическую синхронизацию (периодичностью 0) или даже при старте (периодичностью -1), запретить удаление параметров и атрибутов и сохранить текущую структуру параметров через сохранение объекта контролера. Это нужно для минимизации трафика и нагрузки удалённой станции обменом, что особенно важно для высоко-нагруженных ПЛК, поскольку синхронизация, хотя и распределяет синхронизацию отдельных параметров по тактами цикла обмену, все-же является ресурсоёмкой функцией.
- Выполнение сервисных изменений структуры нужно осуществлять следующим образом:
- изменяется структура параметров удалённой станции;
- периодичность синхронизации устанавливается в 0, если стояло -1;
- объект контроллера перезапускается, т.е. переключается состояние "Исполняется";
- ожидается завершение синхронизации, т.е. исчезновение из состояния объекта контроллера "Синхронизация".
- периодичность синхронизации возвращается в предыдущее значение;
- сохраняется структура отражённый параметров через сохранение объекта контроллера шлюза.
4 Ссылки