Preconfiguration "Two-way valve"
Creates compound object configured as two-way valve without analog.
After connecting the variables
of this object by the "PP - Data binding to Pma object property
" data binding to the configured variables of the PmaData
object, the real status of such device is indicated.
variables are used for such purpose. The value of the Mode
variable defines the working mode of the device and is preset as follows:
1 = automated regulation mode
2 = manual regulation mode
3 = manually ON
4 = manually OFF
5 = disabled (for pump)
Any other value causes error signal.
variable represents the device status and the default (preconfigured) meaning of individual bits of this variable is apparent based on the information present at the beginning of the "Draw
" tab script of the PmgCanvas
All these variables in the Pmg
object are read only.
parameter serves as device identifier.
The mode change control is executed by means of the onMenuFill
events. It is supposed in this event that the panel method DeviceCmd
exists with paramaters devId
that commands the control system based on user request to change the device mode. There is an example script present in this event that emulates the reaction of the control system.
These configurators can be set before the preconfiguration is created:
|Object name||Name (identifier) of the Pmg object. It is used to obtain the Pmg object by the PmgObject.Items method.
This configurator sets the initial value of the Name property.
The maximum name length is 30 characters. This is a system name, so it must contain only alphanumeric and must not contain any diacritics, empty string, spaces and the first character must not be a number.
|Device identifier||Technical name (identifier) of the device|
|Emulation of control system command||Emulation of control system command for device status change|