Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get RAPID program resource

Returns the rapid program resource for a rapid task

URL

/rw/rapid/tasks/{task}/program

Method

GET

URL Params

continue-on-err={1|0} Optional Default value is 0. In case input is 1, the API continues execution even if any error occurs in between.

See Common URL parameters

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/rw/rapid/"/>
</head>
<body>
<div class="state">
<a href="tasks/T_ROB1/program" rel="self"></a>
<a href="tasks/T_ROB1/program?action=show" rel="action"></a>
<ul>
<li class="rap-program">
<span class="name">NewProgramName</span>
<span class="entrypoint">routine</span>
</li>
<li class="rap-program-breakpoint-li" title="breakpoint">
<a href="tasks/T_ROB1/program/breakpoint" rel="self"></a>
</li>
<li class="rap-builderrs-li" title="builderrs">
<a href= "tasks/T_ROB1/program/builderror" rel="self"/>
</li>
</ul>
</div>
</body>
</html>

Resources

  • rap-program Rapid program resource
    • name Program name
    • entrypoint The program entry is the point PP will move to when "PP to main is called".
  • rap-program-breakpoint-li Rapid program breakpoint resource
  • rap-builderrs-li Rapid program builderrors resource

Error Response

BAD_REQUEST(400)

Sample Call

curl --digest -u "Default User":robotics" "http://127.0.0.1/rw/rapid/tasks/T_ROB1/program"

Notes

Not supported in bootserver mode