Variable access with web services
GMORRIS59
✭✭
in RobotStudio
I am trying to read a program user variable in Module 1
PERS num count := 0;
The manual states that I should be able to
So I have tried
PERS num count := 0;
The manual states that I should be able to
</code><code>curl --digest -u "Default User":robotics <a href="http://192.168.8.105/rw/rapid/symbol/data/RAPID/T_ROB1/user/reg1" target="_blank" rel="nofollow">http://192.168.8.105/rw/rapid/symbol/data/RAPID/T_ROB1/user/count</a>But first of all I think it should be symbols and symbol is not known with resource not found.
So I have tried
/:[c:\temp]curl --digest -u "Default User":robotics "http://127.0.0.1/rw/rapid/s<br>ymbols?action=show" | xmllint-1.0.exe
0
Comments
-
It should be "symbol" and not "symbols". This is the Rapid Code:
<div>MODULE Module1<br></div><div> <br></div><div> PERS num count := 13746;<br></div><div> <br></div><div>ENDMODULE</div>
This is the command to read the value:curl --digest -u "Default User":robotics http://localhost/rw/rapid/symbol/data/RAPID/T_ROB1/Module1/count
And this is the result:<?xml version="1.0" encoding="UTF-8"?><br><html xmlns="http://www.w3.org/1999/xhtml"><br> <head><br> <title>rapid</title><br> <base href="http://localhost:80/rw/rapid/"/><br> </head><br> <body> <br> <div class="state"><br> <a href="symbol/data/RAPID/T_ROB1/Module1/count" rel="self"></a><br> <a href="symbol/data/RAPID/T_ROB1/Module1/count?action=show" rel="action"></a><br> <ul><br> <li class="rap-data" title="RAPID/T_ROB1/Module1/count"> <br> <span class="value">13746</span><br> </li><br> </ul><br> </div><br> </body><br></html>
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings