From OpenSCADAWiki
XML: Control request (xmlCntrReq)
Description: Requesting for control the program, by XML. The usual request is written in the form "<get path="/OPat/%2felem"/>". When we indicate the station the request to the specified external station is made.
Parameters:
Identifier | Name | Type | Mode | By defaults |
---|---|---|---|---|
rez | Result | String | Return | |
req | Request | Object(XMLNodeObj) | Output | |
stat | Station | String | Input |
Example (more examples see for the equal internal function SYS.cntrReq()):
using Special.FLibSYS;
//Getting status "Off/On" of the parameter "1" of the controller "1" of the module "ModBus".
//sub_DAQ/mod_ModBus/cntr_1/prm_1 — the path according to the project structure.
req = xmlNode("get").setAttr("path","/sub_DAQ/mod_ModBus/cntr_1/prm_1/%2fprm%2fst%2fen");
rez = xmlCntrReq(req);
messPut("test",0,"Example: "+req.text());