Robot Web Services
3HAC050973-001 Revision:L, Application Manual - Robot Web Services
System Energy

Returns System Energy Information

URL

/rw/system/energy

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>system</title>
<base href="http://localhost/rw/system/energy/"/>
</head>
<body>
<div class="state">
<a href="" rel="self"/>
<a href="?action=show" rel="action"></a>
<ul>
<li class="sys-energy-state-li" title="energy-state">
<span class="state">0</span>
<span class="energy-state">blocked</span>
<span class="change-count">0</span>
<span class="time-stamp">0</span>
<span class="reset-time">0</span>
<span class="interval-length">0</span>
<span class="interval-energy">8888.1234</span>
<span class="accumulated-energy">8888.1234</span>
</li>
<li class="sys-energy-mec-li" title="ROB_1">
<ul>
<li class="sys-energy-axis-li" title="1">
<span class="interval-energy">5189.1564</span>
</li>
<li class="sys-energy-axis-li" title="2">
<span class="interval-energy">5189.1564</span>
</li>
<li class="sys-energy-axis-li" title="3">
<span class="interval-energy">5189.1564</span>
</li>
<li class="sys-energy-axis-li" title="4">
<span class="interval-energy">5189.1564</span>
</li>
<li class="sys-energy-axis-li" title="5">
<span class="interval-energy">5189.1564</span>
</li>
<li class="sys-energy-axis-li" title="6">
<span class="interval-energy">5189.1564</span>
</li>
</ul>
</li>
</ul>
</div>
</body>
</html>

Resources

  • sys-energy-state-li
  • state - contains the status of the operation, 0 when the data is valid. if stat is -1 the measurement is not valid.
  • energy-state returns the energy state of the system such as blocked, paused, not-paused, resuming, pausing, going-to-sleep or sleep.
  • change-count returns the change count of the measurement. The value is increased when a new measurement is available.
  • time-stamp time stamp for measurement.
  • reset-time time for reset of accumulated energy value.
  • interval-length measurement interval length, can be used to compute the average power consumption.
  • interval-energy total energy for current measurement interval.
  • accumulated-energy total accumulated energy from last reset, sampled in the beginning of the measurement interval.
  • sys-energy-mec-li
  • title name of mechanical unit.
  • sys-energy-axis-li
  • title axis number in mechanical unit.
  • interval-energy energy value of the axis for current interval.

Error Response

BAD_REQUEST(400)

Robot controller errors, see Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics "http://localhost/rw/system/energy"

Notes

Not supported in bootserver mode