OpenSCADAWiki: Home Page En/Doc/ Web User ...

Home | Index | Changes | Comments | Users | Registration | Login  Password:  
 
This is an old revision of HomePageEn/Doc/WebUser from 2010-03-19 09:30:11..

The module <WebUser> of subsystems "User Interfaces"

Russian (1 Kb) Русская версия
Ukrainian (1 Kb) Українська версія


Module: WebUser
Name: Web-interface from the user
Type: User Interfaces
Source: ui_WebUser.so
Version: 0.5.0
Author: Roman Savochenko
Translated:Maxim Lysenko
Description: Allows you to create your own user web-interfaces in any language of OpenSCADA.
License: GPL

Contents

Introduction

WebUser module provides the user with a mechanism to create Web-pages, and can process other Web-requests with the help of the internal language of OpenSCADA, usually JavaLikeCalc, without necessity of low-level programming of OpenSCADA.


Except of the module's belonging to the system OpenSCADA it also belongs and is the module of the <HTTP> transport protocol module. Actually, the WebUser call is made from Protocol.HTTP. The call is made through enhanced communication mechanism through the exported to the WebUser module functions: HttpGet() and HttpSet().


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 module of user Web-interface. For example URL: http://localhost.localdomain:10002/WebUser/UserPage can be deciphered as a call of the user page "UserPage" of the Web module WebUser 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 user pages in the configuration the index of the page is generated (Figure 1).


Index of user pages. (12 Kb)
Fig.1. Index of 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 list of user pages.


Main tab of the module's configuration. (68 Kb)
Fig.2. Main tab of the module's configuration.

1. WEB - pages

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


The main configuration page of the user page. (79 Kb)
Fig.3. The main configuration page of the user page.

The main tab contains the basic settings of the user protocol:


Все запросы к пользовательским страницам направляются в процедуру обработки запросов пользовательской страницы, которая представлена на вкладке "Программа" объекта страницы пользователя (рис.4).


"Program" tab of the user page object. (137 Kb)
Рис.4. Вкладка "Программа" объекта пользовательской страницы.

Вкладка процедуры обработки запросов к пользовательской странице содержит поле для выбора внутреннего языка программирования OpenSCADA и поле ввода текста процедуры обработки.


Для процедуры обработки предопределены следующие переменные обмена:


Общий сценарий запроса пользовательской страницы:

Ссылки

Referring pages: HomePageEn/Doc
HomePageEn/Function
HomePageEn/Using/SmartHouse


 
There are no files on this page.[Display files/form]
There is no comment on this page. [Display comments/form]