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

Get IO device resource.

URL

/rw/iosystem/devices/{device}

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" xml:lang="en" lang="en">
    <head><title>io</title>
    <base href="http://localhost/rw/iosystem/"/>
</head>
<body>
<div class="state">
    <a href="devices/Local/PANEL" rel="self"></a>
    <a href= "devices/Local/PANEL?action=show" rel="action"></a>
    <ul>
    <li class="ios-device" title="Local/PANEL">
        <a href="networks/Local"  rel="network"/>
        <span class="name">PANEL</span>
        <span class="lstate">enabled</span>
        <span class="pstate">running</span>
        <span class="address">-</span>
        <span class="indata">1FFFE063</span>
        <span class="inmask">FFFFFFFF</span>
        <span class="outdata">0000000E</span>
        <span class="outmask">FFFFFFFF</span>
    </li>
    </ul>
</div>
</body>
</html>

Resources

  • ios-device IO device resource
    • name IO device name
    • pstate Physical state {halted, running, error, startup, init, unknown}
    • lstate Logical state: {enabled | disabled}
    • address Device address
    • indata In-put data for the device
    • inmask In-put mask. Set bit to zero which indata shall not be set
    • outdata Out-put data for the device
    • outmask Out-put mask. Set bit to zero which outdata shall not be set

Error Response

BAD_REQUEST(400)

See Robot controller return codes

Sample Call

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

Notes

Not supported in bootserver mode