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

An activation record consists of information needed for program execution, such as instances of routines parameters and locally defined data.

URL

/rw/rapid/tasks/{task_name}

Method

GET

URL Params

resource=activation-record

stackframe={stack frame} The stack frame is a number starting with 1 for the current activation record, i.e., the activation record containing the user program pointer. The stack frame increases with one for each previous activation record until the entry point is reached.

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?resource=activation-record" rel="self"/>
    <a href="tasks/T_ROB1?acton=show" rel="self"/>
    <ul>
    <li class="rap-stackframe" title="stackframe">
    <span class="execlevel">Normal</span>
    <span class="beg-row">6</span>
    <span class="beg-col">3</span>
    <span class="end-row">6</span>
    <span class="end-col">13</span>
    <span class="stack-url">RAPID/T_ROB1/%1</span>
    <span class="routine-url">RAPID/T_ROB1/MainModule/main</span>
    </li>
    </ul>
    </div>
    </body>
    </html>

Resources

  • rap-stackframe Rapid-Symbol resource
    • execlevel Execution level (Normal/Trap/User)
    • beg-row begin position of row
    • beg-col begin position of column
    • end-row end position of row
    • end-col begin position of column
    • stack-url URL to the stack frame. In the format of RAPID/{task name}/%{stack frame}
    • routine-url Routine URL

Error Response

NOT_FOUND(404) ,FORBIDDEN(403), BAD_REQUEST(400) see HTTP Status codes

Sample Call

curl --digest -u "Default User":robotics" http://localhost/rw/rapid/tasks/T_ROB1?resource=activation-record&stackframe=1

Notes

  1. Motors on
  2. Load Rapid program
  3. Run program