From OpenSCADAWiki
Jump to: navigation, search
(Importing a new version from external source)
(Importing a new version from external source)
 
Line 1: Line 1:
 
== {{Anch|TCntrNode|Any object (TCntrNode) of OpenSCADA objects tree (SYS.*)}} ==
 
== {{Anch|TCntrNode|Any object (TCntrNode) of OpenSCADA objects tree (SYS.*)}} ==
 
Object functions:
 
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 [[#Object|access directly]] the properties for the TCntrNode objects, of course at their absency in the Object Model.
+
* ''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 [[#Object|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}".
 
* ''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 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".

Latest revision as of 17:14, 11 May 2025

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Documents/User API)
== {{Anch|TCntrNode|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 [[#Object|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.
Translation== {{Anch|TCntrNode|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 [[#Object|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.

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.