Devices

abb_rws_client_python_rw6.rws.iosystem.devices

RWS module: RobotWare Services → IO Service → Operations on IO Devices

1:1 mirror of the ABB RobotWare 6 REST API. Each function maps to exactly one HTTP endpoint. No composed logic — see highlevel/ for wrappers.

get_actions_io_devices(client, action=None) async

Get Actions IO Devices.

Route: GET /rw/iosystem/devices ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • action (str | None, default: None ) –

    Query parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_actions_io_devices(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/devices.py
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
async def get_actions_io_devices(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get Actions IO Devices.

    Route: ``GET /rw/iosystem/devices``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await get_actions_io_devices(client)
        <Response [200]>
        ```
    """
    return await client.get(
        "/rw/iosystem/devices",
        params={k: v for k, v in {"action": action}.items() if v is not None},
    )

get_io_devices(client) async

Get IO Devices.

Route: GET /rw/iosystem/devices ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_io_devices(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/devices.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
async def get_io_devices(client: RWSClient) -> httpx.Response:
    """
    Get IO Devices.

    Route: ``GET /rw/iosystem/devices``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await get_io_devices(client)
        <Response [200]>
        ```
    """
    return await client.get("/rw/iosystem/devices")

post_search_io_devices(client, action=None, name=None, lstate=None, network=None, example_name=None) async

Search IO Devices.

Route: POST /rw/iosystem/devices ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • action (str | None, default: None ) –

    Query parameter. Optional.

  • name (str | None, default: None ) –

    Body parameter. Optional.

  • lstate (str | None, default: None ) –

    Body parameter. Optional.

  • network (str | None, default: None ) –

    Body parameter. Optional.

  • example_name (str | None, default: None ) –

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await post_search_io_devices(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/iosystem/devices.py
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
async def post_search_io_devices(
    client: RWSClient,
    action: str | None = None,
    name: str | None = None,
    lstate: str | None = None,
    network: str | None = None,
    example_name: str | None = None,
) -> httpx.Response:
    """
    Search IO Devices.

    Route: ``POST /rw/iosystem/devices``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        action: Query parameter. Optional.
        name: Body parameter. Optional.
        lstate: Body parameter. Optional.
        network: Body parameter. Optional.
        example_name: Body parameter. Optional.

    Returns:
        Raw HTTP response. Expected success: HTTP 200.

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD_REQUEST(400)

    Example:
        ```python
        >>> await post_search_io_devices(client)
        <Response [200]>
        ```
    """
    return await client.post(
        "/rw/iosystem/devices",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={
            k: v
            for k, v in {
                "name": name,
                "lstate": lstate,
                "network": network,
                "example_name": example_name,
            }.items()
            if v is not None
        },
    )