Promotic

Preconfiguration "Controlling the status of the selected device in a daily time interval according to the weekly scheduler"

This preconfiguration can be activated when creating a new object (e.g. by "New object ..." in the local object menu or by pressing the Insert key after selecting the object) and is included in the group: "/ Technology / Schedulers".

- The preconfiguration creates an object of the PmaFolder type. The main object name is preconfigured to "Schedule".
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also as Web panel.


Preconfiguration PmaFolder with default objects PmaPanel, PmaTimer and PmaData allows setting and saving the schedule into the file. This allows to set values for devices according to the schedule in the "SetDevices" method of the PmaTimer object.
- The main window "ScheduleWeek" contains the compound object PmgBox. Following objects are embedded inside: the PmgWTable object, description texts, buttons for adding and inserting new configuration item, button for editing the configuration item, buttons for listing up and down, button for loading the configuration and button for saving the configuration. The embedded window contains double state buttons for selection of the day of the week, editing texts with buttons for entering the time, switches for device, action and parameter selection, button for confirming the configuration, scroll button.
- The preconfiguration is created including the panel (object of the PmaPanel type) is functional also as Web panel. In order to make the preconfiguration functional also on the Web, it is necessary to enable the object of the PmaPanel type for the Web (on the "Web server" tab).


The preconfiguration is designed for planning the actions in a technology, containing devices with the possibility of independent time planning. The device list is published in text form in the "GetDevice" method of the main panel. The action list in the "GetAction" method and the parameter list in the "GetParam" method. Each table row consists of the commands entered to the control system for executing the actions in corresponding devices according to the defined time dependencies. The ConvertDataArrayToByte and ConvertDataArrayToString methods are used for converting the text values in the visualization into binary or indexing values of the control system and back. The ReadData and SaveData methods read and save the data into a JSON file.

The Add and Insert buttons open the "SetAction" window (by the CreateView method) that can be entered the time data, choose the device, action name and action parameter. After confirmation, a new row with entered parameters is added or inserted. The edit button opens the same modal window, that contains the row data used for editing. The buttons with arrows allow to move the selected row in the table order. The load button calls the LoadData method and the received data array is written into the table columns and rows. The Save button reads the values from the table rows and columns into the JSON format and transmits it as a parameter to the SaveData method for saving.

The PmaData object has variable Schedule of the String type and contains a copy of the schedule stored in the ScheduleData.json file.

The PmaTimer object in the "SetDevices" method allows to set values for devices according to the schedule.
These configurators can be set before the preconfiguration is created:
The name of created objectName of the object created in the Pma objects tree. The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics (i.e. national dependent characters), empty string, spaces and the first character must not be a number.
Default: "Schedule"
Enable as Web componentSpecifies whether this object has to be registered as a Web server component
After the preconfiguration is created, the "PmaPanel > Web server > Enable as Web component" configurator will be set to this value.
PmaWeb objectPath in the Pma objects tree to the object PmaWeb, PmaWebFolder or PmaWebLang where the registration is carried out.
Macro expression can be used for input (it is evaluated after the application is launched).
After the preconfiguration is created, the "PmaPanel > Web server > PmaWeb object" configurator will be set to this value.

History:
Pm9.00.17: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.