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
curl --digest -u "Default User":robotics [http://192.168.8.105/rw/rapid/symbol/data/RAPID/T_ROB1/user/count](http://192.168.8.105/rw/rapid/symbol/data/RAPID/T_ROB1/user/reg1)
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
ymbols?action=show" | xmllint-1.0.exe
It should be “symbol” and not “symbols”. This is the Rapid Code:
MODULE Module1
PERS num count := 13746;
ENDMODULE
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"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>rapid</title>
<base href="http://localhost:80/rw/rapid/"/>
</head>
<body>
<div class="state">
<a href="symbol/data/RAPID/T_ROB1/Module1/count" rel="self"></a>
<a href="symbol/data/RAPID/T_ROB1/Module1/count?action=show" rel="action"></a>
<ul>
<li class="rap-data" title="RAPID/T_ROB1/Module1/count">
<span class="value">13746</span>
</li>
</ul>
</div>
</body>
</html>