From OpenSCADAWiki
Revision as of 17:14, 11 May 2025 by FuzzyBot (Talk | contribs) (Importing a new version from external source)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Any object (TCntrNode) of OpenSCADA objects tree (SYS.*)

Object functions:

  • PropTp property(string id, PropTp val = null); — Returns of the object's property id for the group grp with setting its at val non null and EVAL. Where val in EVAL is clearing the property and null (no the argument) just sets nothing. You can access directly the properties for the TCntrNode objects, of course at their absence in the Object Model.
  • TArrayObj nodeList( string grp = "", string path = "" ); — Get child nodes full identifiers list for group grp and node from path path. If grp empty then return nodes for all groups. The full identifier is "{grp}{nID}".
  • TCntrNodeObj nodeAt( string path, string sep="" ); — Attach to node path into OpenSCADA objects tree. If a separator set into sep then path process as separated string. For missing and invalid nodes the function will return "false" when a correct node in it conversion to BOOLEAN will return "true".
  • TCntrNodeObj nodePrev( ); — Get previous, parent, node.
  • string nodePath( string sep = "", bool from_root = true ); — Getting the path of the current node in the object tree OpenSCADA. One separator character is specified in sep to get the path through the separator, for example, "DAQ.ModBus.PLC1.P1.var", otherwise "/DAQ/ModBus/PLC1/P1/var". from_root indicates a need to form a path from the root, and without the Station ID.
  • int messSys( int level, string mess ) — Formation of the system message mess with the level with the node path as a category and with the human readable path before the message.