OpenSCADA

Modules/WebUser

English • ‎mRussian • ‎Українська
Module Name Version License Source Languages Platforms Type Author Description
WebUser User WWW-page 1.6 GPL2 ui_WebUser.so en,uk,ru,de x86,x86_64,ARM UI Roman Savochenko
  Maxim Lysenko (2010) — the page initial translation
Provides for creating your own web-pages on internal OpenSCADA language.

The module provides the user with a mechanism to create WWW-pages, and can process other WWW-requests in internal OpenSCADA language, usually JavaLikeCalc, without involving low level programming. As a page processor, the module allows you to use standard DAQ templates. Using DAQ templates allows you to create WWW-page libraries and call them in this module multiple times as their implementations, as well as provide the data context of the template with their connection to the data of the subsystem "Data Acquisition".

Except of the module's belonging to OpenSCADA it also belongs and is the module of the Protocol.HTTP transport protocol module. Actually, the module WebUser call is made from Protocol.HTTP and through the enhanced communication mechanism, by exported functions of the module: HTTP_GET(), HTTP_POST().

Addressing of the pages begins with the second element of the URI. It is connected with the fact that the first element of the URI is used to identify the user WWW-interface module. For example, URL http://localhost.localdomain:10002/WebUser/UserPage can be deciphered as a call of the user page "UserPage" of this module on the host "localhost.localdomain" on port 10002. In the case of absence of the second element of URI and instruction to display an index of the user pages in the configuration, the index of the pages is generated (Fig.1).

Fig.1. Index of the user pages.

The main tab of the module configuration (Fig.2) contains the state of the module, provides the ability to select the default page and allows you to make the user pages list.

Fig.2. Main tab of the module configuration.

WWW-pages

The module provides the ability to create multiple implementations of WWW-pages in the object "User WWW-page" (Fig.3).

Fig.3. Main configuration tab of a user page.

The main tab contains the basic settings of the WWW-page:

All requests to the user pages are sent to the direct procedure of the processing of the requests of the user page, or to the DAQ-template procedure, which is represented on the "Program" tab of the user page object (Fig.4). In the case of the DAQ-template, the template configuration tab is also provided (Fig.5).

Fig.4. The tab "Procedure" of an user WWW-page object.

Tab of the procedure for processing the requests to the user's page contains:

For the direct processing procedure, and the required or optional ones to create in the template, the following exchange attributes with the HTTP-protocol are predetermined:

The overall scenario of the user's page request:

Modules/WebUser/en - GFDLMarch 2024OpenSCADA 0.9.7