From OpenSCADAWiki
Jump to: navigation, search
(Importing a new version from external source)
(Importing a new version from external source)
Line 2: Line 2:
 
Functions of the input transport object (SYS.Transport["Modul"]["in_Transp"]):
 
Functions of the input transport object (SYS.Transport["Modul"]["in_Transp"]):
 
* ''ElTp cfg( string nm )'' — gets the value of the configuration field ''nm'' of the object.
 
* ''ElTp cfg( string nm )'' — gets the value of the configuration field ''nm'' of the object.
* ''bool cfgSet( string nm, ElTp val )'' — sets the configuration field ''nm'' of the object to the value ''val''.
+
* ''bool cfgSet( string nm, ElTp val )'' [<span style='color:red'>access to the appropriate subsystem</span>] — sets the configuration field ''nm'' of the object to the value ''val''.
 
* ''string status()'' — string status of the transport.
 
* ''string status()'' — string status of the transport.
 
* ''string addr( string vl = "" )'' — address of the transport, sets the non-empty value ''vl''.
 
* ''string addr( string vl = "" )'' — address of the transport, sets the non-empty value ''vl''.
 
* ''string writeTo(string sender, string mess)'' — sends the message ''mess'' to the sender ''sender'', as a reply.
 
* ''string writeTo(string sender, string mess)'' — sends the message ''mess'' to the sender ''sender'', as a reply.
 
* ''TArrayObj assTrsList()'' — assigned output transports list to the input one.
 
* ''TArrayObj assTrsList()'' — assigned output transports list to the input one.

Revision as of 17:13, 4 February 2019

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|SYSTransport|Subsystem "Transports" (SYS.Transport)}} ==
Functions of the subsystem object:
* ''TCntrNodeObj outAt( string addr );'' — common-unified output transport connection at the address ''addr''. At errors of creation the transport the function will return "false" when a correct node in it conversion to BOOLEAN will return "true". The address is specified in the forms:
:: "'''{TrModule}.[out_]{TrID}[:{TrAddr}]'''" — typical output with automatic creation ''TrID'' at it missing and allowing ''TrAddr'';
:: "'''{TrModule}.in_{TrID}:{RemConId}'''" — initiative input with the connection identifier in ''RemConId''.
:* ''TrModule'' — transport module, as is [[Special:MyLanguage/Modules/Sockets|Sockets]], [[Special:MyLanguage/Modules/SSL|SSL]], [[Special:MyLanguage/Modules/Serial|Serial]];
:* ''TrID'' — transport identifier;
:* ''TrAddr'' — transport specific address;
:* ''RemConId'' — remote initiative connection ID.
Translation== {{Anch|SYSTransport|Subsystem "Transports" (SYS.Transport)}} ==
Functions of the input transport object (SYS.Transport["Modul"]["in_Transp"]):
* ''ElTp cfg( string nm )'' — gets the value of the configuration field ''nm'' of the object.
* ''bool cfgSet( string nm, ElTp val )'' [<span style='color:red'>access to the appropriate subsystem</span>] — sets the configuration field ''nm'' of the object to the value ''val''.
* ''string status()'' — string status of the transport.
* ''string addr( string vl = "" )'' — address of the transport, sets the non-empty value ''vl''.
* ''string writeTo(string sender, string mess)'' — sends the message ''mess'' to the sender ''sender'', as a reply.
* ''TArrayObj assTrsList()'' — assigned output transports list to the input one.

Subsystem "Transports" (SYS.Transport)

Functions of the input transport object (SYS.Transport["Modul"]["in_Transp"]):

  • ElTp cfg( string nm ) — gets the value of the configuration field nm of the object.
  • bool cfgSet( string nm, ElTp val ) [access to the appropriate subsystem] — sets the configuration field nm of the object to the value val.
  • string status() — string status of the transport.
  • string addr( string vl = "" ) — address of the transport, sets the non-empty value vl.
  • string writeTo(string sender, string mess) — sends the message mess to the sender sender, as a reply.
  • TArrayObj assTrsList() — assigned output transports list to the input one.