Robot Web Services
3HAC050973-001 Revision:M, Application Manual - Robot Web Services
Get IO Devices

The Get IO Device resources returns a list of IO Device resources defined in the robot controller.

URL

/rw/iosystem/devices

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>io</title>
<base href="http://localhost/rw/iosystem/"/>
</head>
<body>
<div class="state">
<a href="devices" rel="self"/>
<a href= "devices?action=show" rel="action"/>
<ul>
<li class="ios-device-li" title="Local/DRV_1">
<a href="devices/Local/DRV_1" rel="self"></a>
<span class="name">DRV_1</span>
<span class="lstate">enabled</span>
<span class="pstate">running</span>
<span class="type">DRV_1_TYPE</span>
<span class="address">-</span>
</li>
<li class="ios-device-li" title="Local/PANEL">
<a href="devices/Local/PANEL" rel="self"></a>
<span class="name">PANEL</span>
<span class="lstate">enabled</span>
<span class="pstate">running</span>
<span class="type">PANEL_TYPE</span>
<span class="address">-</span>
</li>
</ul>
</div>
</body>
</html>

Resources

  • ios-device-li IO Device list item
    • name IO device name
    • type Device type
    • pstate Physical state {deact, running, error, unconnect, unconfg, startup, init, unknown}
    • lstate Logical state: {disabled, enabled, unknown}
    • address device address

Error Response

BAD_REQUEST(400)

See Robot controller return codes

Sample Call

curl --digest -u "Default User":robotics "http://localhost/rw/iosystem/devices"

Notes

Not supported in bootserver mode