Uiinstr

abb_rws_client_python_rw6.rws.rapid.uiinstr

RWS module: RobotWare Services → RAPID Service → Operations on RAPID UI instructions

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_active_ui_instruction(client) async

Get Active UI Instruction.

Route: GET /rw/rapid/uiinstr/active 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_active_ui_instruction(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.py
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
async def get_active_ui_instruction(client: RWSClient) -> httpx.Response:
    """
    Get Active UI Instruction.

    Route: ``GET /rw/rapid/uiinstr/active``
    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),NOT_FOUND(404) see

    Example:
        ```python
        >>> await get_active_ui_instruction(client)
        <Response [200]>
        ```
    """
    return await client.get("/rw/rapid/uiinstr/active")

get_active_ui_instruction_actions(client, action=None) async

Get Active UI instruction actions.

Route: GET /rw/rapid/uiinstr/active 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_active_ui_instruction_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.py
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
async def get_active_ui_instruction_actions(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get Active UI instruction actions.

    Route: ``GET /rw/rapid/uiinstr/active``
    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), see

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

get_active_ui_instruction_parameters(client, stackurl) async

Get active UI instruction parameters.

Route: GET /rw/rapid/uiinstr/active/params/{stackurl} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • stackurl (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_active_ui_instruction_parameters(client, "stackurl_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.py
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
async def get_active_ui_instruction_parameters(
    client: RWSClient,
    stackurl: str,
) -> httpx.Response:
    """
    Get active UI instruction parameters.

    Route: ``GET /rw/rapid/uiinstr/active/params/{stackurl}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        stackurl: URL path parameter.

    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), NOT_FOUND(404), see

    Example:
        ```python
        >>> await get_active_ui_instruction_parameters(client, "stackurl_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/rapid/uiinstr/active/params/{stackurl}")

get_parameter_value_for_an_active_ui(client, stackurl, uiparam) async

Get parameter value for an active UI instruction.

Route: GET /rw/rapid/uiinstr/active/param/{stackurl}/{uiparam} ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • stackurl (str) –

    URL path parameter.

  • uiparam (str) –

    URL path parameter.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 200.

Raises:
Example
>>> await get_parameter_value_for_an_active_ui(client, "stackurl_value", "uiparam_value")
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.py
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
async def get_parameter_value_for_an_active_ui(
    client: RWSClient,
    stackurl: str,
    uiparam: str,
) -> httpx.Response:
    """
    Get parameter value for an active UI instruction.

    Route: ``GET /rw/rapid/uiinstr/active/param/{stackurl}/{uiparam}``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        stackurl: URL path parameter.
        uiparam: URL path parameter.

    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) , NOT_FOUND(404) see

    Example:
        ```python
        >>> await get_parameter_value_for_an_active_ui(client, "stackurl_value", "uiparam_value")
        <Response [200]>
        ```
    """
    return await client.get(f"/rw/rapid/uiinstr/active/param/{stackurl}/{uiparam}")

get_ui_instruction_actions(client, action=None) async

Get UI instruction actions.

Route: GET /rw/rapid/uiinstr 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_ui_instruction_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.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_ui_instruction_actions(
    client: RWSClient,
    action: str | None = None,
) -> httpx.Response:
    """
    Get UI instruction actions.

    Route: ``GET /rw/rapid/uiinstr``
    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), see

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

get_ui_instruction_resource(client) async

Get UI instruction resource.

Route: GET /rw/rapid/uiinstr 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_ui_instruction_resource(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.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_ui_instruction_resource(client: RWSClient) -> httpx.Response:
    """
    Get UI instruction resource.

    Route: ``GET /rw/rapid/uiinstr``
    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: NOT FOUND(404), see

    Example:
        ```python
        >>> await get_ui_instruction_resource(client)
        <Response [200]>
        ```
    """
    return await client.get("/rw/rapid/uiinstr")

subscribe_on_ui_instruction(client, resources=None) async

Subscribe on UI instruction.

Route: POST /subscription ABB constraints: Not supported in bootserver mode

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 201.

Raises:
Example
>>> await subscribe_on_ui_instruction(client)
<Response [201]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.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
async def subscribe_on_ui_instruction(
    client: RWSClient,
    resources: str | None = None,
) -> httpx.Response:
    """
    Subscribe on UI instruction.

    Route: ``POST /subscription``
    ABB constraints: Not supported in bootserver mode

    Args:
        client: Open RWSClient instance.
        resources: Body parameter. Optional.

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

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

    Example:
        ```python
        >>> await subscribe_on_ui_instruction(client)
        <Response [201]>
        ```
    """
    return await client.post(
        "/subscription",
        data={k: v for k, v in {"resources": resources}.items() if v is not None},
    )

update_an_active_ui_instruction_parameter(client, stackurl, uiparam, action=None, value=None) async

Update an Active UI Instruction Parameter.

Route: POST /rw/rapid/uiinstr/active/param/{stackurl}/{uiparam} ABB constraints: -Not supported in bootserver mode -{stackurl} ends with a variable number, which can be obtained from "Get Active UI Instruction" API. -RAPID program should be running -Example of {uiparam} are TPFK1, TPFK2, TPFK3, TPCompleted etc

Parameters:
  • client (RWSClient) –

    Open RWSClient instance.

  • stackurl (str) –

    URL path parameter.

  • uiparam (str) –

    URL path parameter.

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

    Query parameter. Optional.

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

    Body parameter. Optional.

Returns:
  • Response –

    Raw HTTP response. Expected success: HTTP 204.

Raises:
Example
>>> await update_an_active_ui_instruction_parameter(
...     client,
...     "stackurl_value",
...     "uiparam_value"
... )
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/rapid/uiinstr.py
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
async def update_an_active_ui_instruction_parameter(
    client: RWSClient,
    stackurl: str,
    uiparam: str,
    action: str | None = None,
    value: str | None = None,
) -> httpx.Response:
    """
    Update an Active UI Instruction Parameter.

    Route: ``POST /rw/rapid/uiinstr/active/param/{stackurl}/{uiparam}``
    ABB constraints: -Not supported in bootserver mode -{stackurl} ends with a variable number,
        which can be obtained from "Get Active UI Instruction" API. -RAPID program should be
        running -Example of {uiparam} are TPFK1, TPFK2, TPFK3, TPCompleted etc

    Args:
        client: Open RWSClient instance.
        stackurl: URL path parameter.
        uiparam: URL path parameter.
        action: Query parameter. Optional.
        value: Body parameter. Optional.

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

    Raises:
        RWSAuthenticationError: On HTTP 401.
        RWSNotFoundError: On HTTP 404.
        RWSHTTPError: On any other HTTP >= 400.
        # ABB codes: BAD REQUEST(400),NOT_FOUND(404),FORBIDDEN(403) see

    Example:
        ```python
        >>> await update_an_active_ui_instruction_parameter(
        ...     client,
        ...     "stackurl_value",
        ...     "uiparam_value"
        ... )
        <Response [204]>
        ```
    """
    return await client.post(
        f"/rw/rapid/uiinstr/active/param/{stackurl}/{uiparam}",
        params={k: v for k, v in {"action": action}.items() if v is not None},
        data={k: v for k, v in {"value": value}.items() if v is not None},
    )