Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get RAPID task pcp actions

Get a list of actions that can be invoked on a RAPID task pcp resource.

URL

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

Method

GET

URL Params

action=show Required

Returns action forms for this resource

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:7777/rw/rapid/"/>
    </head>
    <body>
    <div class="state">
    <a href="tasks/T_ROB1/pcp?action=show" rel="self">
    </a>
    <form id="setpptocursor" method='post' action="tasks/T_ROB1/pcp?action=set-pp-cursor">
    <input type="text" name="module" value="0" />
    <input type="text" name="line" value="0" />
    <input type="text" name="column" value="0" />
    <input type="text" name="routine" value="0" />
    </form>
    <form id="setpptoroutine" method='post' action="tasks/T_ROB1/pcp?action=set-pp-routine">
    <input type="text" name="module" value="" />
    <input type="text" name="routine" value="" />
    <input type="text" name="userlevel" value="" />
    </form>
    <form id="set-pp-prev-inst" method='post' action="tasks/T_ROB1/pcp?action=set-pp-prev-inst"/>
    <form id="set-pp-next-inst" method='post' action="tasks/T_ROB1/pcp?action=set-pp-next-inst"/>

    <form class="rap-pcp-ev" id="subscribe" method='post' action="/subscription">
    <fieldset class="sub-pp-ev">
    <input type="checkbox" name="resources" value="1"/>
    <input class="res" type="text" name="1" value="/rw/rapid/tasks/T_ROB1/pcp;programpointerchange" maxlength="500"/>
    <select class="priority" name="1-p">
    <option value="0" selected="selected"></option>
    <option value="1"></option>
    </select>
    </fieldset>
    <fieldset class="sub-mp-ev">
    <input type="checkbox" name="resources" value="1"/>
    <input class="res" type="text" name="1" value="/rw/rapid/tasks/T_ROB1/pcp;motionpointerchange" maxlength="500"/>
    <select class="priority" name="1-p">
    <option value="0" selected="selected"></option>
    <option value="1"></option>
    </select>
    </fieldset>
    </form>

    </div>
    </body>
    </html>

Actions

  • setPPtocursor Set the ProgramPointer(PP) to cursor
  • module The RAPID module in which requested to set the PP
  • line Line number in RAPID module
  • column Column
  • routine Name of routine to which PP need to be set
  • userlevel Needs to be true, in case of setting the PP in user module. Otherwise false (optional).
  • setpptoroutine Set the ProgramPointer(PP) to routine
  • set-pp-prev-inst Set the ProgramPointer(PP) to previous instruction
  • set-pp-next-inst Set the ProgramPointer(PP) to next instruction

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?action=show"

Notes

Not supported in bootserver mode