From OpenSCADAWiki
Jump to: navigation, search
(Importing a new version from external source)
(Importing a new version from external source)
 
Line 7: Line 7:
 
* ''ElTp value( string addr, ElTp setVl = NULL )'' — direct accessing a value-registers with registering for acquisition.
 
* ''ElTp value( string addr, ElTp setVl = NULL )'' — direct accessing a value-registers with registering for acquisition.
 
** ''addr'' — the value-registers address in the standard format;
 
** ''addr'' — the value-registers address in the standard format;
** ''setVl'' — setting value, NULL (no specified) only for getting.
+
** ''setVl'' — setting value, NULL (not specified) only for getting.
 
<section end=API />
 
<section end=API />

Latest revision as of 17:03, 2 July 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 (Modules/ModBus)
=== {{Anch|UserAPI|User programming API}} ===
Due to the support of the logical type parameters, it makes sense to provide a number of functions of the user API for calling them from the template of the logical parameter.
<section begin=API />
[[File:Oscada UserOM ModBus.png|right|User object model of the module ModBus.]]
'''The object "Controller" [this.cntr()]'''
* ''string messIO(string pdu)'' — sends ''pdu'' through the transport of the controller object by means of the ModBus protocol. PDU query result is placed instead of the query ''pdu'', and the error returned by the function.
* ''ElTp value( string addr, ElTp setVl = NULL )'' — direct accessing a value-registers with registering for acquisition.
** ''addr'' — the value-registers address in the standard format;
** ''setVl'' — setting value, NULL (not specified) only for getting.
<section end=API />
Translation=== {{Anch|UserAPI|User programming API}} ===
Due to the support of the logical type parameters, it makes sense to provide a number of functions of the user API for calling them from the template of the logical parameter.
<section begin=API />
[[File:Oscada UserOM ModBus.png|right|User object model of the module ModBus.]]
'''The object "Controller" [this.cntr()]'''
* ''string messIO(string pdu)'' — sends ''pdu'' through the transport of the controller object by means of the ModBus protocol. PDU query result is placed instead of the query ''pdu'', and the error returned by the function.
* ''ElTp value( string addr, ElTp setVl = NULL )'' — direct accessing a value-registers with registering for acquisition.
** ''addr'' — the value-registers address in the standard format;
** ''setVl'' — setting value, NULL (not specified) only for getting.
<section end=API />

User programming API

Due to the support of the logical type parameters, it makes sense to provide a number of functions of the user API for calling them from the template of the logical parameter.

User object model of the module ModBus.

The object "Controller" [this.cntr()]

  • string messIO(string pdu) — sends pdu through the transport of the controller object by means of the ModBus protocol. PDU query result is placed instead of the query pdu, and the error returned by the function.
  • ElTp value( string addr, ElTp setVl = NULL ) — direct accessing a value-registers with registering for acquisition.
    • addr — the value-registers address in the standard format;
    • setVl — setting value, NULL (not specified) only for getting.