Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get mechanical units

Get information about all mechunits belonging to the task

URL

/rw/rapid/tasks/{task}/motion

Method

GET

URL Params

resource=mechunit Required

Data Params

None

Success Response

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:80/rw/rapid/"/>
</head>
<body>
<div class="state">
<a href="tasks/T_ROB1/motion?resource=mechunit" rel="self"/>
<ul>
<li class="rapid-mechunit" title="ROB_1">
<span class="name">ROB_1</span>
<span class="mode">active</span>
<span class="type">tcp_robot</span>
</li>
<li class="rapid-mechunit" title="CNV1">
<span class="name">CNV1</span>
<span class="mode">inactive</span>
<span class="type">single</span>
</li>
</ul>
</div>
</body>
</html>

Resources

  • rapid-mechunit The Unit in which robtarget, jointtarget and extjoint applies.
    • name name of mechnical unit.
    • mode mode of mechnical unit.
    • type type of mechnical unit.

Error Response

BAD_REQUEST(400), See Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics "http://127.0.0.1/rw/rapid/tasks/T_ROB1/motion?resource=mechunit"

Notes

Not supported in bootserver mode