RWS module: Controller Service → Operations on Clock Resource → Get Clock Resource
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_clock_actions(client, action=None)
async
Get Clock Actions.
Route: GET /ctrl/clock
ABB constraints: Not Supported in bootserver mode
| Parameters: |
-
client
(RWSClient)
–
-
action
(str | None, default:
None
)
–
Query parameter. Optional.
|
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_clock_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.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_clock_actions(
client: RWSClient,
action: str | None = None,
) -> httpx.Response:
"""
Get Clock Actions.
Route: ``GET /ctrl/clock``
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: NOT_FOUND(404) See
Example:
```python
>>> await get_clock_actions(client)
<Response [200]>
```
"""
return await client.get(
"/ctrl/clock",
params={k: v for k, v in {"action": action}.items() if v is not None},
)
|
get_clock_resource(client)
async
Get Clock Resource.
Route: GET /ctrl/clock
ABB constraints: Not Supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_clock_resource(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.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_clock_resource(client: RWSClient) -> httpx.Response:
"""
Get Clock Resource.
Route: ``GET /ctrl/clock``
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)
Example:
```python
>>> await get_clock_resource(client)
<Response [200]>
```
"""
return await client.get("/ctrl/clock")
|
get_test_time_server(client, resource=None, server_ip=None)
async
Test Time Server.
Route: GET /ctrl/clock/timeserver
ABB constraints: Available only for RC Not supported in bootserver mode
| Parameters: |
-
client
(RWSClient)
–
-
resource
(str | None, default:
None
)
–
Query parameter. Optional.
-
server_ip
(str | None, default:
None
)
–
Query parameter. Optional.
|
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_test_time_server(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334 | async def get_test_time_server(
client: RWSClient,
resource: str | None = None,
server_ip: str | None = None,
) -> httpx.Response:
"""
Test Time Server.
Route: ``GET /ctrl/clock/timeserver``
ABB constraints: Available only for RC Not supported in bootserver mode
Args:
client: Open RWSClient instance.
resource: Query parameter. Optional.
server_ip: 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: See
Example:
```python
>>> await get_test_time_server(client)
<Response [200]>
```
"""
return await client.get(
"/ctrl/clock/timeserver",
params={
k: v for k, v in {"resource": resource, "server_ip": server_ip}.items() if v is not None
},
)
|
get_time_server_actions(client)
async
Get time server actions.
Route: GET /ctrl/clock/timeserver?action=show
ABB constraints: Available only for RC Not supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_time_server_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
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_time_server_actions(client: RWSClient) -> httpx.Response:
"""
Get time server actions.
Route: ``GET /ctrl/clock/timeserver?action=show``
ABB constraints: Available only for RC 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: See
Example:
```python
>>> await get_time_server_actions(client)
<Response [200]>
```
"""
return await client.get(
"/ctrl/clock/timeserver",
params={"action": "show"},
)
|
get_time_server_resource(client)
async
Get time server resource.
Route: GET /ctrl/clock/timeserver
ABB constraints: Available only for RC Not supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_time_server_resource(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228 | async def get_time_server_resource(client: RWSClient) -> httpx.Response:
"""
Get time server resource.
Route: ``GET /ctrl/clock/timeserver``
ABB constraints: Available only for RC 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: See
Example:
```python
>>> await get_time_server_resource(client)
<Response [200]>
```
"""
return await client.get("/ctrl/clock/timeserver")
|
get_timezone_actions(client)
async
Get timezone actions.
Route: GET /ctrl/clock/timezone?action=show
ABB constraints: Available only for RC Not supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_timezone_actions(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
141
142
143
144
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 | async def get_timezone_actions(client: RWSClient) -> httpx.Response:
"""
Get timezone actions.
Route: ``GET /ctrl/clock/timezone?action=show``
ABB constraints: Available only for RC 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: See
Example:
```python
>>> await get_timezone_actions(client)
<Response [200]>
```
"""
return await client.get(
"/ctrl/clock/timezone",
params={"action": "show"},
)
|
get_timezone_resource(client)
async
Get timezone resource.
Route: GET /ctrl/clock/timezone
ABB constraints: Available only for RC Not supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 200.
|
Example
>>> await get_timezone_resource(client)
<Response [200]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138 | async def get_timezone_resource(client: RWSClient) -> httpx.Response:
"""
Get timezone resource.
Route: ``GET /ctrl/clock/timezone``
ABB constraints: Available only for RC 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: See
Example:
```python
>>> await get_timezone_resource(client)
<Response [200]>
```
"""
return await client.get("/ctrl/clock/timezone")
|
set_the_clock_of_the_controller(client)
async
Set the Clock of the controller.
Route: PUT /ctrl/clock
ABB constraints: Available only for RC Not Supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 204.
|
Example
>>> await set_the_clock_of_the_controller(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.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 | async def set_the_clock_of_the_controller(client: RWSClient) -> httpx.Response:
"""
Set the Clock of the controller.
Route: ``PUT /ctrl/clock``
ABB constraints: Available only for RC Not Supported in bootserver mode
Args:
client: Open RWSClient instance.
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: UNAUTHORIZED(401), BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), See
Example:
```python
>>> await set_the_clock_of_the_controller(client)
<Response [204]>
```
"""
return await client.put(
"/ctrl/clock",
data={},
)
|
set_the_time_server(client, action=None)
async
Set the time server.
Route: POST /ctrl/clock/timeserver
ABB constraints: Available only for RC Not supported in bootserver mode
| Parameters: |
-
client
(RWSClient)
–
-
action
(str | None, default:
None
)
–
Query parameter. Optional.
|
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 204.
|
Example
>>> await set_the_time_server(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.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
292
293
294
295 | async def set_the_time_server(
client: RWSClient,
action: str | None = None,
) -> httpx.Response:
"""
Set the time server.
Route: ``POST /ctrl/clock/timeserver``
ABB constraints: Available only for RC Not supported in bootserver mode
Args:
client: Open RWSClient instance.
action: Query 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: See
Example:
```python
>>> await set_the_time_server(client)
<Response [204]>
```
"""
return await client.post(
"/ctrl/clock/timeserver",
params={k: v for k, v in {"action": action}.items() if v is not None},
data={},
)
|
set_the_time_zone(client)
async
Set the time zone.
Route: POST /ctrl/clock/timezone
ABB constraints: Available only for RC Not supported in bootserver mode
| Returns: |
-
Response
–
Raw HTTP response. Expected success: HTTP 204.
|
Example
>>> await set_the_time_zone(client)
<Response [204]>
Source code in abb_rws_client_python_rw6/rws/ctrl/clock.py
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200 | async def set_the_time_zone(client: RWSClient) -> httpx.Response:
"""
Set the time zone.
Route: ``POST /ctrl/clock/timezone``
ABB constraints: Available only for RC Not supported in bootserver mode
Args:
client: Open RWSClient instance.
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: See
Example:
```python
>>> await set_the_time_zone(client)
<Response [204]>
```
"""
return await client.post(
"/ctrl/clock/timezone",
data={},
)
|