Service functions - is an interface to access the OpenSCADA system through the OpenSCADA control interface from external systems. This mechanism is the basis for all exchange mechanisms within OpenSCADA, implemented through weak links and standard exchange protocol of OpenSCADA. Its main advantage is the priority processing and the possibility of using non-standard packaging data. For access to normal data you can use the standard commands of the control interface.
These requests let you to obtain detailed information about the parameters of the subsystem "Data acquisition", to acquire the values of all attributes of the parameters, and also to make the group setting. Detailed information about requests is given in Table 23.
Table 23. Attributes of the request commands of the attributes' parameters of the subsystem "Data acquisition"
Id | Name | Value |
Request command of information about the attributes of the parameter: <list path="/sub_DAQ/mod_{SRC}/cntr_{CNTR}/prm_{PRM}/%2fserv%2fattr"/> | ||
<el id="iatr"/> | Information of the attributes | In separate tags the information about attribute is returned. |
id | Attribute's ID | The character identifier of the single attribute. |
nm | Attribute's name | The name of the single attribute. |
flg | Attribute's flags | Flags of the single attribute. |
tp | Attribute's type | The type of the single attribute. |
vals | Values area of the attribute. | Values area of the single attribute. |
names | The names of the attribute's values for the selective type. | The names of the single attribute's values for the selective type. |
Team request command of the all values of attributes of the parameter: <get path="/sub_DAQ/mod_{SRC}/cntr_{CNTR}/prm_{PRM}/%2fserv%2fattr"/> | ||
<el id="iatr">val</el> | Attributes' values | In separate tags the values of the attributes are returned. |
The set command of the the values of the specified attributes of the parameter: <set path="/sub_DAQ/mod_{SRC}/cntr_{CNTR}/prm_{PRM}/%2fserv%2fattr"/> | ||
<el id="iatr">val</el> | The values of attributes are specified | In separate tags the values of attributes are specified. |
Для запроса данных архива в подсистеме архивирования объекта архива сообщений предусмотрена команда <info path="/sub_Archive/%2fserv%2fmess"/> и <get path="/sub_Archive/%2fserv%2fmess"/> для запроса информации об архиве и значений архива соответственно. Детальное описание данных команд представлено в таблице 24.
Таблица 24. Атрибуты команд запроса информации об архиве значений и архивных данных
Id | Имя | Значение |
Команда запроса информации об архиве: <info path="/sub_Archive/%2fserv%2fmess"/> | ||
arch | Установка имени архиватора архива | Архиватор архива, для которого определять параметры. |
end | Контроль вершины архива в данном архиваторе | В результате запроса указывает на реальную вершину архива сообщений в данном архиваторе <arch>. |
beg | Контроль глубины архива в данном архиваторе | В результате запроса указывает на реальную глубину архива сообщений в данном архиваторе <arch>. |
Команда запроса архивных и/или текущих данных: <get path="/sub_Archive/%2fserv%2fmess"/> | ||
tm | Установка времени | Время вершины блока архива сообщений. |
tm_grnd | Установка времени основания/начала архива | Указывает основание/начало архива. |
arch | Установка архиватора архива | Указывает, у какого архиватора запрашивать значения. Если архиватор не указан, то запрос будет производиться последовательно у всех архиваторов с исключением дубликатов. |
cat | Установка категории сообщений | Указывает категорю/шаблоны запрашиваемых сообщений. |
lev | Установка уровня важности | Указывает уровень важности сообщений, для которого и выше получать сообщения. |
<el>mess</el> | Сообщения | В отдельных тегах возвращаются сообщения. |
time | Время сообщения | Время отдельно взятого сообщения. |
cat | Категория сообщения | Категория отдельно взятого сообщения. |
lev | Уровень сообщения | Уровень отдельно взятого сообщения. |
Для запроса данных архива в подсистеме архивирования объекта архива значения и объекте атрибута параметра подсистемы сбора данных предусмотрена команда <info path="{a_p_addr}/%2fserv%2fval"/> и <get path="{a_p_addr}/%2fserv%2fval"/> для запроса информации об архиве и значений архива соответственно. Атрибуты данных команд, предусматривающие различные механизмы запроса, представлены в таблице 25.
Таблица 25. Атрибуты команд запроса информации об архиве значений и архивных данных