The Status 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 object.
All these variables in the Pmg object are read only.
The mode change control is executed by means of the onMenuFill and onMenuSelect events. It is supposed in the event that the panel method DeviceCmd exists with paramaters devId and mode that commands the control system based on user request to change the device mode.
There is an example script present in the event that emulates the reaction of the control system.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 |
Analog value (percentage) of open/close | Percentage of analog value which defines whether the device is considered open or closed. |
Emulation of control system command | Emulation of control system command for device status change |