From OpenSCADAWiki
Jump to: navigation, search

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

Object functions:

  • 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 missed 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.