Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get a specified range of text

Get a specified range of text from RAPID module

URL

/rw/rapid/modules/{module}

Method

GET

URL Params

  • task = {task}
  • startrow= {start row}
  • startcol= {start column}
  • endrow= {end row}
  • endcol= {end column}

    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>pgm</title>
<base href="http://127.0.0.1/rw/rapid/modules/mymodule/"/>
</head>
<body>
<div class="state">
<a href= "?task=T_ROB1&startrow=1&startcol=1&endrow=10&endcol=1" rel="self"/>
<ul>
<li class="rap-mod-text" title="pgm">
<span class="text"> %%%
VERSION:1
LANGUAGE:ENGLISH
%%%
MODULE backup_big
! Used for testing RAP variable
! variable declarations
! xx1 is not changed by the RAPID program. It is instead changed via RAP. xx2 is
! 1234567890123456789
CONST robtarget p1:=[[981.71,-451.78,1468.82],[0.698099,0.107363,0.675469,-0.211834],[-1,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p2:=[[284.77,1042.49,1468.82],[0.612974,-0.445876,0.518631,0.395575],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p3:=[[339.41,1050.6,1190.44],[0.520765,-0.505042,0.611223,0.316454],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p4:=[[839.92,-713.86,1177.73],[0.547049,0.228559,0.763995,-0.25458],[-1,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p5:=[[864.51,-558.6,928.77],[0.441535,0.194446,0.858386,-0.174389],[-1,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p6:=[[1029.19,71.83,933.78],[0.476903,-0.086711,0.874284,-0.025937],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p7:=[[860.12,569.73,933.78],[0.467764,-0.306641,0.823326,0.096455],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p8:=[[488.77,908.57,933.78],[0.430164,-0.497979,0.723819,0.207515],[0,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST robtarget p9:=[[-97.86,1029.43,933.2],[0.351519,-0.686459,0.548339,0.323317],[1,0,-1,0],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
</span>
</li>
</ul>
</div>
</body>
</html>

Resources

  • rap-mod-text Provides RAPID module text

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/modules/mymodule?task=T_ROB1&startrow=1&startcol=1&endrow=20&endcol=-1"

Notes

Not supported in bootserver mode