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

URL

/rw/motionsystem/mechunits

Method

GET

URL Params

None

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>motionsystem</title>
       <base href="http://localhost/rw/motionsystem/"/>
   </head>
   <body>
       <div class="state">
           <a href="mechunits" rel="self"/>
           <ul>
               <li class="ms-mechunit-li" title="ROB_1">
                   <a href="mechunits/ROB_1" rel="self"/>
                   <span class="mode">Activated</span>
                   <span class="activation-allowed">True</span>
                   <span class="drive-module">0</span>
               </li>
               <li class="ms-mechunit-li" title="CNV1">
                   <a href="mechunits/CNV1" rel="self"/>
                   <span class="mode">Deactivated</span>
                   <span class="activation-allowed">False</span>
                   <span class="drive-module">0</span>
               </li>
           </ul>
       </div>
   </body>
</html>

Resources

Gives the information regarding the different mechanical units and the mechanical unit parameters.

  • title = name of the mechanical unit
    • mode = {activated | deactivated}
    • activation-allowed = {true | false} true, if mechanical unit can be activated
    • drive-module = information if a drive module is associated with the mechanical unit.

Error Response

BAD_REQUEST (400)

Robot controller errors, see Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics "http://localhost/rw/motionsystem/mechunits"