From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 6: | Line 6: | ||
{{#lst:Modules/BlockCalc|API}} | {{#lst:Modules/BlockCalc|API}} | ||
=== Module [[Special:MyLanguage/Modules/ModBus|DAQ.ModBus]] === | === Module [[Special:MyLanguage/Modules/ModBus|DAQ.ModBus]] === | ||
− | {{ | + | {{#lst:Modules/ModBus|API}} |
Revision as of 21:07, 8 October 2017
Contents
[hide]1 Module DAQ.JavaLikeCalc
The object "Functions library" (SYS.DAQ.JavaLikeCalc["lib_Lfunc"])
- ElTp {funcID}(ElTp prm1, ...) — calls the function "funcID" of the library "Lfunc" with the parameters prm{N}. Returns result of the called function. The prefix "lib_" before the library identifier is required!
The object "User function" ( SYS.DAQ.JavaLikeCalc["lib_Lfunc"]["func"] )
- ElTp call(ElTp prm1, ...) — calls the function "func" of the library "Lfunc" with the parameters prm{N}. Returns result of the called function. The prefix "lib_" before the library identifier is required!
2 Module DAQ.LogicLev
3 Module DAQ.BlockCalc
The object "Block" (SYS.DAQ.BlockCalc["cntr"]["blk_block"])
- ElTp cfg( string nm ) — get value of configuration field nm of the object.
- bool cfgSet( string nm, ElTp val ) [access to the appropriate subsystem] — set configuration field nm of the object to value val.
- TCntrNodeObj cntr( ) — return the object of controller for the parameter nesting independent.
4 Module DAQ.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.