Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get RAPID task Motion&Program pointer positions

Returns the rapid task pcp resource

URL

/rw/rapid/tasks/{task}/pcp

Method

GET

URL Params

None*

Data Params

None*

Success Response

HTTP_OK(200), see HTTP Status codes

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>rapid</title>
<base href="http://localhost:7777/rw/rapid/"/>
</head>
<body>
<div class="state">
<a href="tasks/T_ROB1/pcp" rel="self">
</a> <a href="tasks/T_ROB1/pcp?action=show" rel="action">
</a>
<ul>
<li class="pcp-info" title="progpointer">
<span class="beginposition">9,8</span>
<span class="endposition">9,20</span>
<span class="modulemame">module_test</span>
<span class="routinename">main</span>
<span class="changecount">-1</span>
<span class="executiontype">normal</span>
</li>
<li class="pcp-info" title="motionpointer">
<span class="beginposition">9,8</span>
<span class="begposition">9,20</span>
<span class="modulemame">module_test</span>
<span class="routinename">main</span>
<span class="executiontype">-1</span>
</li>
</ul>
</div>
</body>
</html>

Resources

  • pcp-info Rapid task pcp resource
  • modulemame Current running module.
  • routinename Current routine name in module where progarm pointer and motion pointer located .
  • changecount Number of time progarm pointer or motion pointer relocated .
  • executiontype ExecutionType can be No execution context, Normal, Interrupt, extrenal interrupt, user routine, event routine.
  • beginposition begin position of programe poionter.
  • endposition end position of programe poionter.

Error Response

BAD REQUEST(400) , see HTTP Status codes

Robot controller errors, see Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics" http://localhost/rw/rapid/tasks/T_ROB1/pcp

Notes

Not supported in bootserver mode