Get the controller state
URL
/rw/panel/ctrlstate
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>panel</title>
<base href= "http://localhost/rw/panel/ctrlstate/" />
</head>
<body>
<div class="state">
<a href= "" rel="self"/>
<a href= "?action=show" rel="action"/>
<ul>
<li class="pnl-ctrlstate" title="ctrlstate">
<span class="ctrlstate">motoron</span>
</li>
</ul>
</div>
</body>
</html>
Resources
- ctrlstate The controller state. {init | motoron | motoroff | guardstop | emergencystop | emergencystopreset | sysfail}
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/panel/ctrlstate"
Notes
- init: The robot is starting up. It will shift to state motors off when it has started.
- motoroff: The robot is in a standby state where there is no power to the robot's motors. The state has to be shifted to motors on before the robot can move.
- motoron: The robot is ready to move, either by jogging or by running programs.
- guardstop: The robot is stopped because the safety runchain is opened. For instance, a door to the robot's cell might be open.
- emergencystop: The robot is stopped because emergency stop was activated.
- emergencystopreset: The robot is ready to leave emergency stop state. The emergency stop is no longer activated, but the state transition isn't yet confirmed.
- sysfail: The robot is in a system failure state. Restart required.
- Not supported in bootserver mode.