EnglishУкраїнськаРocсийский
Login/New
Topic with no new replies

Access to Parametes ID list with OPENSCADA CONTROL INTERFACE


Author Message
Written on: 21. 03. 2017 [03:40]
cvillegas
Claudio Villegas
Topic creator
registered since: 26.10.2016
Posts: 14
Hello,
Is there any command in the OpenScada Control Interface that returns the list of parameters ID's associated with a controller?

I have verified that using the GET command with path "/sub_DAQ/mod_ModBus/cntr_controller/%2fprm%2fprm" I get the list of parameter names, but I need the list of parameter IDs, ideally NAME and ID.

I have a DAQ tree structure as follow:

/TEST/sub_DAQ/mod_ModBus/cntr_CONTROLLER/prm_PARAMETER_GRP1/prm_PARAMETER
/TEST/sub_DAQ/mod_ModBus/cntr_CONTROLLER/prm_PARAMETER_GRP2/prm_PARAMETER
/TEST/sub_DAQ/mod_ModBus/cntr_CONTROLLER/prm_PARAMETER_GRP3/prm_PARAMETER

Then the list should look something like this: (ID,NAME)
PARAMETER_GRP1,"GRUPO 1"
PARAMETER_GRP2,"GRUPO 2"
PARAMETER_GRP3,"GRUPO 3"

As always, very grateful for your kind response.
Regards
Written on: 21. 03. 2017 [12:20]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3254
"cvillegas" wrote:

Is there any command in the OpenScada Control Interface that returns the list of parameters ID's associated with a controller?

The command is "get" also, but you can use nodeList().

Learn, learn and learn better than work, work and work.
Written on: 21. 03. 2017 [14:19]
cvillegas
Claudio Villegas
Topic creator
registered since: 26.10.2016
Posts: 14
Thanks for your reply.

Unfortunately, I think I can not express the question well, since I am using the Input Transport SelfSystem (TCP 10005) to connect from an external application to OPENSCADA to get some information.
(http://wiki.oscada.org/HomePageEn/Doc/SelfSystem)

I am sending the following PDU:

"REQDIR myuser mypass req_size\n<get path = '/sub_DAQ/mod_ModBus/cntr_controller/%2fprm%2fprm'/>"

This returns me the list of parameter names, but as I said before, what I require is the list of ID's of the parameters.

Best regards



Written on: 21. 03. 2017 [15:51]
cvillegas
Claudio Villegas
Topic creator
registered since: 26.10.2016
Posts: 14

Before they answer me, I think the answer is the User Protocol.
From what I noticed, the SelfSystem control interface, is to access the OpenScada configuration, so I think what I need is not considered there.

I would appreciate your guidance.
Written on: 21. 03. 2017 [16:22]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3254
"cvillegas" wrote:

From what I noticed, the SelfSystem control interface, is to access the OpenScada configuration, so I think what I need is not considered there.

It considered!
JAVASCRIPT
req = SYS.XMLNode("get").setAttr("path","/sub_DAQ/mod_LogicLev/cntr_experiment/%2fprm%2fprm");
SYS.cntrReq(req);
SYS.messInfo("LIST","Result: "+req);

2017-03-21T16:20:20 1[LIST] Result: <XMLNodeObj:get path="/sub_DAQ/mod_LogicLev/cntr_experiment/%2fprm%2fprm" rez="0" user="roman">
<XMLNodeObj:el id="F3">F3
</XMLNodeObj:el>
<XMLNodeObj:el id="F4">F4
</XMLNodeObj:el>
<XMLNodeObj:el id="F_PP1">F_PP1
</XMLNodeObj:el>
<XMLNodeObj:el id="F_PP3">F_PP3
</XMLNodeObj:el>
<XMLNodeObj:el id="F_PP5">F_PP5
</XMLNodeObj:el>
<XMLNodeObj:el id="P3">P3
</XMLNodeObj:el>
<XMLNodeObj:el id="P4">P4
</XMLNodeObj:el>
<XMLNodeObj:el id="PT0503">PT0503
</XMLNodeObj:el>
<XMLNodeObj:el id="P_PP1">P_PP1
</XMLNodeObj:el>
</XMLNodeObj:get>


Learn, learn and learn better than work, work and work.



1632