Coverage for abb_rws_client_python_rw6/rws/rapid/tasks.py: 100%
111 statements
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-13 22:17 +0000
« prev ^ index » next coverage.py v7.15.4, created at 2026-08-13 22:17 +0000
1# This file is AUTO-GENERATED by utils/generator/main.py
2# DO NOT EDIT MANUALLY — run the generator to regenerate.
3# Generator author: Clement RACINET
4"""
5RWS module: RobotWare Services → RAPID Service → Operations on RAPID tasks
71:1 mirror of the ABB RobotWare 6 REST API.
8Each function maps to exactly one HTTP endpoint.
9No composed logic — see highlevel/ for wrappers.
10"""
12from __future__ import annotations
14import httpx
16from abb_rws_client_python_rw6.core.client import RWSClient
19async def get_rapid_tasks(
20 client: RWSClient,
21 continue_on_err: str | None = None,
22) -> httpx.Response:
23 """
24 Get RAPID tasks.
26 Route: ``GET /rw/rapid/tasks``
27 ABB constraints: Not supported in bootserver mode
29 Args:
30 client: Open RWSClient instance.
31 continue_on_err: Query parameter. Optional.
33 Returns:
34 Raw HTTP response. Expected success: HTTP 200.
36 Raises:
37 RWSAuthenticationError: On HTTP 401.
38 RWSNotFoundError: On HTTP 404.
39 RWSHTTPError: On any other HTTP >= 400.
40 # ABB codes: BAD REQUEST(400) , see
42 Example:
43 ```python
44 >>> await get_rapid_tasks(client)
45 <Response [200]>
46 ```
47 """
48 return await client.get(
49 "/rw/rapid/tasks",
50 params={k: v for k, v in {"continue_on_err": continue_on_err}.items() if v is not None},
51 )
54async def get_rapid_tasks_actions(
55 client: RWSClient,
56 action: str | None = None,
57) -> httpx.Response:
58 """
59 Get rapid Tasks actions.
61 Route: ``GET /rw/rapid/tasks``
62 ABB constraints: Not supported in bootserver mode
64 Args:
65 client: Open RWSClient instance.
66 action: Query parameter. Optional.
68 Returns:
69 Raw HTTP response. Expected success: HTTP 200.
71 Raises:
72 RWSAuthenticationError: On HTTP 401.
73 RWSNotFoundError: On HTTP 404.
74 RWSHTTPError: On any other HTTP >= 400.
75 # ABB codes: BAD_REQUEST(400)
77 Example:
78 ```python
79 >>> await get_rapid_tasks_actions(client)
80 <Response [200]>
81 ```
82 """
83 return await client.get(
84 "/rw/rapid/tasks",
85 params={k: v for k, v in {"action": action}.items() if v is not None},
86 )
89async def start_rapid_spy_logging(
90 client: RWSClient,
91 action: str | None = None,
92 log_file: str | None = None,
93) -> httpx.Response:
94 """
95 Start RAPID Spy Logging.
97 Route: ``POST /rw/rapid/tasks``
98 ABB constraints: Will request mastership internally (No need to ask explicitly). By default,
99 log file will be created in HOME folder. Not supported in bootserver mode.
101 Args:
102 client: Open RWSClient instance.
103 action: Query parameter. Optional.
104 log_file: Body parameter. Optional.
106 Returns:
107 Raw HTTP response. Expected success: HTTP 204.
109 Raises:
110 RWSAuthenticationError: On HTTP 401.
111 RWSNotFoundError: On HTTP 404.
112 RWSHTTPError: On any other HTTP >= 400.
113 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403), UNSUPPORTED_MEDIA (415), see
115 Example:
116 ```python
117 >>> await start_rapid_spy_logging(client)
118 <Response [204]>
119 ```
120 """
121 return await client.post(
122 "/rw/rapid/tasks",
123 params={k: v for k, v in {"action": action}.items() if v is not None},
124 data={k: v for k, v in {"log_file": log_file}.items() if v is not None},
125 )
128async def get_rapid_spy_logging_status(
129 client: RWSClient,
130 resource: str | None = None,
131) -> httpx.Response:
132 """
133 Get RAPID Spy Logging status.
135 Route: ``GET /rw/rapid/tasks``
136 ABB constraints: Not supported in bootserver mode.
138 Args:
139 client: Open RWSClient instance.
140 resource: Query parameter. Optional.
142 Returns:
143 Raw HTTP response. Expected success: HTTP 200.
145 Raises:
146 RWSAuthenticationError: On HTTP 401.
147 RWSNotFoundError: On HTTP 404.
148 RWSHTTPError: On any other HTTP >= 400.
150 Example:
151 ```python
152 >>> await get_rapid_spy_logging_status(client)
153 <Response [200]>
154 ```
155 """
156 return await client.get(
157 "/rw/rapid/tasks",
158 params={k: v for k, v in {"resource": resource}.items() if v is not None},
159 )
162async def stop_rapid_spy_logging(
163 client: RWSClient,
164 action: str | None = None,
165) -> httpx.Response:
166 """
167 Stop RAPID Spy Logging.
169 Route: ``POST /rw/rapid/tasks``
170 ABB constraints: Will request mastership internally (No need to ask explicitly). Not
171 supported in bootserver mode.
173 Args:
174 client: Open RWSClient instance.
175 action: Query parameter. Optional.
177 Returns:
178 Raw HTTP response. Expected success: HTTP 204.
180 Raises:
181 RWSAuthenticationError: On HTTP 401.
182 RWSNotFoundError: On HTTP 404.
183 RWSHTTPError: On any other HTTP >= 400.
184 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403), UNSUPPORTED_MEDIA (415), see
186 Example:
187 ```python
188 >>> await stop_rapid_spy_logging(client)
189 <Response [204]>
190 ```
191 """
192 return await client.post(
193 "/rw/rapid/tasks",
194 params={k: v for k, v in {"action": action}.items() if v is not None},
195 data={},
196 )
199async def post_activate_deactivate_rapid_tasks(
200 client: RWSClient,
201 action: str | None = None,
202) -> httpx.Response:
203 """
204 Activate/Deactivate rapid tasks.
206 Route: ``POST /rw/rapid/tasks``
207 ABB constraints: Not supported in bootserver mode Mastership is taken internally if not taken
208 explicitly by client.
210 Args:
211 client: Open RWSClient instance.
212 action: Query parameter. Optional.
214 Returns:
215 Raw HTTP response. Expected success: HTTP 204.
217 Raises:
218 RWSAuthenticationError: On HTTP 401.
219 RWSNotFoundError: On HTTP 404.
220 RWSHTTPError: On any other HTTP >= 400.
221 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415), see
223 Example:
224 ```python
225 >>> await post_activate_deactivate_rapid_tasks(client)
226 <Response [204]>
227 ```
228 """
229 return await client.post(
230 "/rw/rapid/tasks",
231 params={k: v for k, v in {"action": action}.items() if v is not None},
232 data={},
233 )
236async def get_program_motion_pointer_sync_state_for(
237 client: RWSClient,
238 resource: str | None = None,
239 type: str | None = None,
240) -> httpx.Response:
241 """
242 Get Program/Motion Pointer Sync State for all tasks.
244 Route: ``GET /rw/rapid/tasks``
245 ABB constraints: Not supported in bootserver mode
247 Args:
248 client: Open RWSClient instance.
249 resource: Query parameter. Optional.
250 type: Query parameter. Optional.
252 Returns:
253 Raw HTTP response. Expected success: HTTP 200.
255 Raises:
256 RWSAuthenticationError: On HTTP 401.
257 RWSNotFoundError: On HTTP 404.
258 RWSHTTPError: On any other HTTP >= 400.
259 # ABB codes: BAD_REQUEST(400) see
261 Example:
262 ```python
263 >>> await get_program_motion_pointer_sync_state_for(client)
264 <Response [200]>
265 ```
266 """
267 return await client.get(
268 "/rw/rapid/tasks",
269 params={k: v for k, v in {"resource": resource, "type": type}.items() if v is not None},
270 )
273async def subscribe_on_build_log_change(
274 client: RWSClient,
275 identifier: str | None = None,
276 identifier_p: str | None = None,
277) -> httpx.Response:
278 """
279 Subscribe on Build log change.
281 Route: ``POST /subscription``
282 ABB constraints: Not supported in bootserver mode
284 Args:
285 client: Open RWSClient instance.
286 identifier: Body parameter. Optional.
287 identifier_p: Body parameter. Optional.
289 Returns:
290 Raw HTTP response. Expected success: HTTP 201.
292 Raises:
293 RWSAuthenticationError: On HTTP 401.
294 RWSNotFoundError: On HTTP 404.
295 RWSHTTPError: On any other HTTP >= 400.
296 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
298 Example:
299 ```python
300 >>> await subscribe_on_build_log_change(client)
301 <Response [201]>
302 ```
303 """
304 return await client.post(
305 "/subscription",
306 data={
307 k: v
308 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
309 if v is not None
310 },
311 )
314async def get_rapid_task_state(
315 client: RWSClient,
316 task: str,
317 continue_on_err: str | None = None,
318) -> httpx.Response:
319 """
320 Get RAPID task state.
322 Route: ``GET /rw/rapid/tasks/{task}``
323 ABB constraints: Retcode is provided if API fails. Not supported in bootserver mode
325 Args:
326 client: Open RWSClient instance.
327 task: URL path parameter.
328 continue_on_err: Query parameter. Optional.
330 Returns:
331 Raw HTTP response. Expected success: HTTP 200.
333 Raises:
334 RWSAuthenticationError: On HTTP 401.
335 RWSNotFoundError: On HTTP 404.
336 RWSHTTPError: On any other HTTP >= 400.
337 # ABB codes: NOT_FOUND(404), FORBIDDEN(403)see
339 Example:
340 ```python
341 >>> await get_rapid_task_state(client, "task_value")
342 <Response [200]>
343 ```
344 """
345 return await client.get(
346 f"/rw/rapid/tasks/{task}",
347 params={k: v for k, v in {"continue_on_err": continue_on_err}.items() if v is not None},
348 )
351async def get_rapid_task_actions(
352 client: RWSClient,
353 task: str,
354 action: str | None = None,
355) -> httpx.Response:
356 """
357 Get rapid task actions.
359 Route: ``GET /rw/rapid/tasks/{task}``
360 ABB constraints: Not supported in bootserver mode
362 Args:
363 client: Open RWSClient instance.
364 task: URL path parameter.
365 action: Query parameter. Optional.
367 Returns:
368 Raw HTTP response. Expected success: HTTP 200.
370 Raises:
371 RWSAuthenticationError: On HTTP 401.
372 RWSNotFoundError: On HTTP 404.
373 RWSHTTPError: On any other HTTP >= 400.
374 # ABB codes: BAD REQUEST(400), see
376 Example:
377 ```python
378 >>> await get_rapid_task_actions(client, "task_value")
379 <Response [200]>
380 ```
381 """
382 return await client.get(
383 f"/rw/rapid/tasks/{task}",
384 params={k: v for k, v in {"action": action}.items() if v is not None},
385 )
388async def load_rapid_module_into_rapid_task(
389 client: RWSClient,
390 task: str,
391 action: str | None = None,
392 modulepath: str | None = None,
393 replace: str | None = None,
394) -> httpx.Response:
395 """
396 Load RAPID module into a rapid task.
398 Route: ``POST /rw/rapid/tasks/{task}``
399 ABB constraints: Not supported in bootserver mode Rapid Mastership Required
401 Args:
402 client: Open RWSClient instance.
403 task: URL path parameter.
404 action: Query parameter. Optional.
405 modulepath: Body parameter. Optional.
406 replace: Body parameter. Optional.
408 Returns:
409 Raw HTTP response. Expected success: HTTP 204.
411 Raises:
412 RWSAuthenticationError: On HTTP 401.
413 RWSNotFoundError: On HTTP 404.
414 RWSHTTPError: On any other HTTP >= 400.
415 # ABB codes: BAD REQUEST(400), see
417 Example:
418 ```python
419 >>> await load_rapid_module_into_rapid_task(client, "task_value")
420 <Response [204]>
421 ```
422 """
423 return await client.post(
424 f"/rw/rapid/tasks/{task}",
425 params={k: v for k, v in {"action": action}.items() if v is not None},
426 data={
427 k: v for k, v in {"modulepath": modulepath, "replace": replace}.items() if v is not None
428 },
429 )
432async def post_unload_module_from_rapid_task(
433 client: RWSClient,
434 task: str,
435 action: str | None = None,
436 module: str | None = None,
437) -> httpx.Response:
438 """
439 Unload module from a rapid task.
441 Route: ``POST /rw/rapid/tasks/{task}``
442 ABB constraints: Not supported in bootserver mode Rapid Mastership Required
444 Args:
445 client: Open RWSClient instance.
446 task: URL path parameter.
447 action: Query parameter. Optional.
448 module: Body parameter. Optional.
450 Returns:
451 Raw HTTP response. Expected success: HTTP 204.
453 Raises:
454 RWSAuthenticationError: On HTTP 401.
455 RWSNotFoundError: On HTTP 404.
456 RWSHTTPError: On any other HTTP >= 400.
457 # ABB codes: BAD_REQUEST(400)
459 Example:
460 ```python
461 >>> await post_unload_module_from_rapid_task(client, "task_value")
462 <Response [204]>
463 ```
464 """
465 return await client.post(
466 f"/rw/rapid/tasks/{task}",
467 params={k: v for k, v in {"action": action}.items() if v is not None},
468 data={k: v for k, v in {"module": module}.items() if v is not None},
469 )
472async def post_abort_current_execution_level(
473 client: RWSClient,
474 task: str,
475 action: str | None = None,
476) -> httpx.Response:
477 """
478 Abort current execution level.
480 Route: ``POST /rw/rapid/tasks/{task}``
481 ABB constraints: Not supported in bootserver mode Rapid Mastership Required
483 Args:
484 client: Open RWSClient instance.
485 task: URL path parameter.
486 action: Query parameter. Optional.
488 Returns:
489 Raw HTTP response. Expected success: HTTP 204.
491 Raises:
492 RWSAuthenticationError: On HTTP 401.
493 RWSNotFoundError: On HTTP 404.
494 RWSHTTPError: On any other HTTP >= 400.
495 # ABB codes: BAD REQUEST(400), see
497 Example:
498 ```python
499 >>> await post_abort_current_execution_level(client, "task_value")
500 <Response [204]>
501 ```
502 """
503 return await client.post(
504 f"/rw/rapid/tasks/{task}",
505 params={k: v for k, v in {"action": action}.items() if v is not None},
506 data={},
507 )
510async def post_activate_deactivate_rapid_task(
511 client: RWSClient,
512 task: str,
513 action: str | None = None,
514) -> httpx.Response:
515 """
516 activate/deactivate rapid task.
518 Route: ``POST /rw/rapid/tasks/{task}``
519 ABB constraints: Not supported in bootserver mode
521 Args:
522 client: Open RWSClient instance.
523 task: URL path parameter.
524 action: Query parameter. Optional.
526 Returns:
527 Raw HTTP response. Expected success: HTTP 204.
529 Raises:
530 RWSAuthenticationError: On HTTP 401.
531 RWSNotFoundError: On HTTP 404.
532 RWSHTTPError: On any other HTTP >= 400.
533 # ABB codes: BAD REQUEST(400) see
535 Example:
536 ```python
537 >>> await post_activate_deactivate_rapid_task(client, "task_value")
538 <Response [204]>
539 ```
540 """
541 return await client.post(
542 f"/rw/rapid/tasks/{task}",
543 params={k: v for k, v in {"action": action}.items() if v is not None},
544 data={},
545 )
548async def get_activation_record(
549 client: RWSClient,
550 task_name: str,
551 resource: str | None = None,
552 stackframe: str | None = None,
553) -> httpx.Response:
554 """
555 Get Activation Record.
557 Route: ``GET /rw/rapid/tasks/{task_name}``
558 ABB constraints: Motors on Load Rapid program Run program
560 Args:
561 client: Open RWSClient instance.
562 task_name: URL path parameter.
563 resource: Query parameter. Optional.
564 stackframe: Query parameter. Optional.
566 Returns:
567 Raw HTTP response. Expected success: HTTP 200.
569 Raises:
570 RWSAuthenticationError: On HTTP 401.
571 RWSNotFoundError: On HTTP 404.
572 RWSHTTPError: On any other HTTP >= 400.
573 # ABB codes: NOT_FOUND(404) ,FORBIDDEN(403), BAD_REQUEST(400) see
575 Example:
576 ```python
577 >>> await get_activation_record(client, "task_name_value")
578 <Response [200]>
579 ```
580 """
581 return await client.get(
582 f"/rw/rapid/tasks/{task_name}",
583 params={
584 k: v
585 for k, v in {"resource": resource, "stackframe": stackframe}.items()
586 if v is not None
587 },
588 )
591async def get_structural_change_count(
592 client: RWSClient,
593 task_name: str,
594 resource: str | None = None,
595) -> httpx.Response:
596 """
597 Get Structural Change Count.
599 Route: ``GET /rw/rapid/tasks/{task_name}``
600 ABB constraints: Not supported in bootserver mode
602 Args:
603 client: Open RWSClient instance.
604 task_name: URL path parameter.
605 resource: Query parameter. Optional.
607 Returns:
608 Raw HTTP response. Expected success: HTTP 200.
610 Raises:
611 RWSAuthenticationError: On HTTP 401.
612 RWSNotFoundError: On HTTP 404.
613 RWSHTTPError: On any other HTTP >= 400.
614 # ABB codes: BAD_REQUEST(400) see
616 Example:
617 ```python
618 >>> await get_structural_change_count(client, "task_name_value")
619 <Response [200]>
620 ```
621 """
622 return await client.get(
623 f"/rw/rapid/tasks/{task_name}",
624 params={k: v for k, v in {"resource": resource}.items() if v is not None},
625 )
628async def get_preferable_data_types(
629 client: RWSClient,
630 task_name: str,
631 resource: str | None = None,
632 instruction: str | None = None,
633 parameter: str | None = None,
634) -> httpx.Response:
635 """
636 Get Preferable Data Types.
638 Route: ``GET /rw/rapid/tasks/{task_name}``
639 ABB constraints: Not supported in bootserver mode
641 Args:
642 client: Open RWSClient instance.
643 task_name: URL path parameter.
644 resource: Query parameter. Optional.
645 instruction: Query parameter. Optional.
646 parameter: Query parameter. Optional.
648 Returns:
649 Raw HTTP response. Expected success: HTTP 200.
651 Raises:
652 RWSAuthenticationError: On HTTP 401.
653 RWSNotFoundError: On HTTP 404.
654 RWSHTTPError: On any other HTTP >= 400.
655 # ABB codes: BAD_REQUEST(400) see
657 Example:
658 ```python
659 >>> await get_preferable_data_types(client, "task_name_value")
660 <Response [200]>
661 ```
662 """
663 return await client.get(
664 f"/rw/rapid/tasks/{task_name}",
665 params={
666 k: v
667 for k, v in {
668 "resource": resource,
669 "instruction": instruction,
670 "parameter": parameter,
671 }.items()
672 if v is not None
673 },
674 )
677async def get_program_pointer_sync_state(
678 client: RWSClient,
679 task_name: str,
680 resource: str | None = None,
681 type: str | None = None,
682) -> httpx.Response:
683 """
684 Get Program Pointer Sync State.
686 Route: ``GET /rw/rapid/tasks/{task_name}``
687 ABB constraints: Not supported in bootserver mode
689 Args:
690 client: Open RWSClient instance.
691 task_name: URL path parameter.
692 resource: Query parameter. Optional.
693 type: Query parameter. Optional.
695 Returns:
696 Raw HTTP response. Expected success: HTTP 200.
698 Raises:
699 RWSAuthenticationError: On HTTP 401.
700 RWSNotFoundError: On HTTP 404.
701 RWSHTTPError: On any other HTTP >= 400.
702 # ABB codes: BAD_REQUEST(400), FORBIDDEN(403), NOT_FOUND(404), see
704 Example:
705 ```python
706 >>> await get_program_pointer_sync_state(client, "task_name_value")
707 <Response [200]>
708 ```
709 """
710 return await client.get(
711 f"/rw/rapid/tasks/{task_name}",
712 params={k: v for k, v in {"resource": resource, "type": type}.items() if v is not None},
713 )
716async def get_motion_pointer_sync_state(
717 client: RWSClient,
718 task_name: str,
719 resource: str | None = None,
720 type: str | None = None,
721) -> httpx.Response:
722 """
723 Get Motion Pointer Sync State.
725 Route: ``GET /rw/rapid/tasks/{task_name}``
726 ABB constraints: Not supported in bootserver mode
728 Args:
729 client: Open RWSClient instance.
730 task_name: URL path parameter.
731 resource: Query parameter. Optional.
732 type: Query parameter. Optional.
734 Returns:
735 Raw HTTP response. Expected success: HTTP 200.
737 Raises:
738 RWSAuthenticationError: On HTTP 401.
739 RWSNotFoundError: On HTTP 404.
740 RWSHTTPError: On any other HTTP >= 400.
741 # ABB codes: BAD_REQUEST(400) see
743 Example:
744 ```python
745 >>> await get_motion_pointer_sync_state(client, "task_name_value")
746 <Response [200]>
747 ```
748 """
749 return await client.get(
750 f"/rw/rapid/tasks/{task_name}",
751 params={k: v for k, v in {"resource": resource, "type": type}.items() if v is not None},
752 )
755async def post_link_rapid_task(
756 client: RWSClient,
757 task: str,
758 action: str | None = None,
759) -> httpx.Response:
760 """
761 Link RAPID Task.
763 Route: ``POST /rw/rapid/tasks/{task}``
764 ABB constraints: Not supported in bootserver mode RAPID Mastership Required
766 Args:
767 client: Open RWSClient instance.
768 task: URL path parameter.
769 action: Query parameter. Optional.
771 Returns:
772 Raw HTTP response. Expected success: HTTP 204.
774 Raises:
775 RWSAuthenticationError: On HTTP 401.
776 RWSNotFoundError: On HTTP 404.
777 RWSHTTPError: On any other HTTP >= 400.
778 # ABB codes: BAD REQUEST(400),FORBIDDEN(403),NOT_FOUND(404) see
780 Example:
781 ```python
782 >>> await post_link_rapid_task(client, "task_value")
783 <Response [204]>
784 ```
785 """
786 return await client.post(
787 f"/rw/rapid/tasks/{task}",
788 params={k: v for k, v in {"action": action}.items() if v is not None},
789 data={},
790 )
793async def get_pallet(
794 client: RWSClient,
795 task_name: str,
796 resource: str | None = None,
797 start_page_no_limit: str | None = None,
798) -> httpx.Response:
799 """
800 Get Pallet.
802 Route: ``GET /rw/rapid/tasks/{task_name}``
803 ABB constraints: Not supported in bootserver mode
805 Args:
806 client: Open RWSClient instance.
807 task_name: URL path parameter.
808 resource: Query parameter. Optional.
809 start_page_no_limit: Query parameter. Optional.
811 Returns:
812 Raw HTTP response. Expected success: HTTP 200.
814 Raises:
815 RWSAuthenticationError: On HTTP 401.
816 RWSNotFoundError: On HTTP 404.
817 RWSHTTPError: On any other HTTP >= 400.
818 # ABB codes: BAD_REQUEST(400) see
820 Example:
821 ```python
822 >>> await get_pallet(client, "task_name_value")
823 <Response [200]>
824 ```
825 """
826 return await client.get(
827 f"/rw/rapid/tasks/{task_name}",
828 params={
829 k: v
830 for k, v in {"resource": resource, "start_page_no_limit": start_page_no_limit}.items()
831 if v is not None
832 },
833 )
836async def get_pallet_head(
837 client: RWSClient,
838 task_name: str,
839 resource: str | None = None,
840 start_page_no_limit: str | None = None,
841) -> httpx.Response:
842 """
843 Get Pallet Head.
845 Route: ``GET /rw/rapid/tasks/{task_name}``
846 ABB constraints: Not supported in bootserver mode
848 Args:
849 client: Open RWSClient instance.
850 task_name: URL path parameter.
851 resource: Query parameter. Optional.
852 start_page_no_limit: Query parameter. Optional.
854 Returns:
855 Raw HTTP response. Expected success: HTTP 200.
857 Raises:
858 RWSAuthenticationError: On HTTP 401.
859 RWSNotFoundError: On HTTP 404.
860 RWSHTTPError: On any other HTTP >= 400.
861 # ABB codes: BAD_REQUEST(400) see
863 Example:
864 ```python
865 >>> await get_pallet_head(client, "task_name_value")
866 <Response [200]>
867 ```
868 """
869 return await client.get(
870 f"/rw/rapid/tasks/{task_name}",
871 params={
872 k: v
873 for k, v in {"resource": resource, "start_page_no_limit": start_page_no_limit}.items()
874 if v is not None
875 },
876 )
879async def subscribe_on_rapid_task_change(
880 client: RWSClient,
881 identifier: str | None = None,
882 identifier_p: str | None = None,
883) -> httpx.Response:
884 """
885 Subscribe on Rapid Task Change.
887 Route: ``POST /subscription``
888 ABB constraints: On subscription an empty initial event will be generated. Not supported in
889 bootserver mode.
891 Args:
892 client: Open RWSClient instance.
893 identifier: Body parameter. Optional.
894 identifier_p: Body parameter. Optional.
896 Returns:
897 Raw HTTP response. Expected success: HTTP 201.
899 Raises:
900 RWSAuthenticationError: On HTTP 401.
901 RWSNotFoundError: On HTTP 404.
902 RWSHTTPError: On any other HTTP >= 400.
903 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
905 Example:
906 ```python
907 >>> await subscribe_on_rapid_task_change(client)
908 <Response [201]>
909 ```
910 """
911 return await client.post(
912 "/subscription",
913 data={
914 k: v
915 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
916 if v is not None
917 },
918 )
921async def subscribe_on_rapid_pp_sync_state_change(
922 client: RWSClient,
923 identifier: str | None = None,
924 identifier_p: str | None = None,
925) -> httpx.Response:
926 """
927 Subscribe on Rapid PP Sync state change.
929 Route: ``POST /subscription``
930 ABB constraints: On subscription an empty initial event will be generated followed by the
931 current value. Not supported in bootserver mode.
933 Args:
934 client: Open RWSClient instance.
935 identifier: Body parameter. Optional.
936 identifier_p: Body parameter. Optional.
938 Returns:
939 Raw HTTP response. Expected success: HTTP 201.
941 Raises:
942 RWSAuthenticationError: On HTTP 401.
943 RWSNotFoundError: On HTTP 404.
944 RWSHTTPError: On any other HTTP >= 400.
945 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
947 Example:
948 ```python
949 >>> await subscribe_on_rapid_pp_sync_state_change(client)
950 <Response [201]>
951 ```
952 """
953 return await client.post(
954 "/subscription",
955 data={
956 k: v
957 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
958 if v is not None
959 },
960 )
963async def subscribe_on_rapid_task_pgmexecution_state_change(
964 client: RWSClient,
965 identifier: str | None = None,
966 identifier_p: str | None = None,
967) -> httpx.Response:
968 """
969 Subscribe on Rapid task pgmexecution state change.
971 Route: ``POST /subscription``
972 ABB constraints: On subscription an empty initial event will be generated followed by the
973 current value. Not supported in bootserver mode.
975 Args:
976 client: Open RWSClient instance.
977 identifier: Body parameter. Optional.
978 identifier_p: Body parameter. Optional.
980 Returns:
981 Raw HTTP response. Expected success: HTTP 201.
983 Raises:
984 RWSAuthenticationError: On HTTP 401.
985 RWSNotFoundError: On HTTP 404.
986 RWSHTTPError: On any other HTTP >= 400.
987 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
989 Example:
990 ```python
991 >>> await subscribe_on_rapid_task_pgmexecution_state_change(client)
992 <Response [201]>
993 ```
994 """
995 return await client.post(
996 "/subscription",
997 data={
998 k: v
999 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
1000 if v is not None
1001 },
1002 )
1005async def get_rapid_motion(
1006 client: RWSClient,
1007 task: str,
1008) -> httpx.Response:
1009 """
1010 Get rapid motion.
1012 Route: ``GET /rw/rapid/tasks/{task}/motion``
1013 ABB constraints: Not supported in bootserver mode
1015 Args:
1016 client: Open RWSClient instance.
1017 task: URL path parameter.
1019 Returns:
1020 Raw HTTP response. Expected success: HTTP 200.
1022 Raises:
1023 RWSAuthenticationError: On HTTP 401.
1024 RWSNotFoundError: On HTTP 404.
1025 RWSHTTPError: On any other HTTP >= 400.
1026 # ABB codes: BAD_REQUEST(400), See
1028 Example:
1029 ```python
1030 >>> await get_rapid_motion(client, "task_value")
1031 <Response [200]>
1032 ```
1033 """
1034 return await client.get(f"/rw/rapid/tasks/{task}/motion")
1037async def get_robtarget(
1038 client: RWSClient,
1039 task: str,
1040 resource: str | None = None,
1041 tool: str | None = None,
1042 wobj: str | None = None,
1043) -> httpx.Response:
1044 """
1045 Get RobTarget.
1047 Route: ``GET /rw/rapid/tasks/{task}/motion``
1048 ABB constraints: Not supported in bootserver mode
1050 Args:
1051 client: Open RWSClient instance.
1052 task: URL path parameter.
1053 resource: Query parameter. Optional.
1054 tool: Query parameter. Optional.
1055 wobj: Query parameter. Optional.
1057 Returns:
1058 Raw HTTP response. Expected success: HTTP 200.
1060 Raises:
1061 RWSAuthenticationError: On HTTP 401.
1062 RWSNotFoundError: On HTTP 404.
1063 RWSHTTPError: On any other HTTP >= 400.
1064 # ABB codes: BAD_REQUEST(400), See
1066 Example:
1067 ```python
1068 >>> await get_robtarget(client, "task_value")
1069 <Response [200]>
1070 ```
1071 """
1072 return await client.get(
1073 f"/rw/rapid/tasks/{task}/motion",
1074 params={
1075 k: v
1076 for k, v in {"resource": resource, "tool": tool, "wobj": wobj}.items()
1077 if v is not None
1078 },
1079 )
1082async def get_joint_target(
1083 client: RWSClient,
1084 task: str,
1085 resource: str | None = None,
1086) -> httpx.Response:
1087 """
1088 Get Joint Target.
1090 Route: ``GET /rw/rapid/tasks/{task}/motion``
1091 ABB constraints: Not supported in bootserver mode
1093 Args:
1094 client: Open RWSClient instance.
1095 task: URL path parameter.
1096 resource: Query parameter. Optional.
1098 Returns:
1099 Raw HTTP response. Expected success: HTTP 200.
1101 Raises:
1102 RWSAuthenticationError: On HTTP 401.
1103 RWSNotFoundError: On HTTP 404.
1104 RWSHTTPError: On any other HTTP >= 400.
1105 # ABB codes: BAD_REQUEST(400), See
1107 Example:
1108 ```python
1109 >>> await get_joint_target(client, "task_value")
1110 <Response [200]>
1111 ```
1112 """
1113 return await client.get(
1114 f"/rw/rapid/tasks/{task}/motion",
1115 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1116 )
1119async def get_mechanical_units(
1120 client: RWSClient,
1121 task: str,
1122 resource: str | None = None,
1123) -> httpx.Response:
1124 """
1125 Get mechanical units.
1127 Route: ``GET /rw/rapid/tasks/{task}/motion``
1128 ABB constraints: Not supported in bootserver mode
1130 Args:
1131 client: Open RWSClient instance.
1132 task: URL path parameter.
1133 resource: Query parameter. Optional.
1135 Returns:
1136 Raw HTTP response. Expected success: HTTP 200.
1138 Raises:
1139 RWSAuthenticationError: On HTTP 401.
1140 RWSNotFoundError: On HTTP 404.
1141 RWSHTTPError: On any other HTTP >= 400.
1142 # ABB codes: BAD_REQUEST(400), See
1144 Example:
1145 ```python
1146 >>> await get_mechanical_units(client, "task_value")
1147 <Response [200]>
1148 ```
1149 """
1150 return await client.get(
1151 f"/rw/rapid/tasks/{task}/motion",
1152 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1153 )
1156async def get_external_joint_states(
1157 client: RWSClient,
1158 task: str,
1159 resource: str | None = None,
1160) -> httpx.Response:
1161 """
1162 Get external joint states.
1164 Route: ``GET /rw/rapid/tasks/{task}/motion``
1165 ABB constraints: Not supported in bootserver mode
1167 Args:
1168 client: Open RWSClient instance.
1169 task: URL path parameter.
1170 resource: Query parameter. Optional.
1172 Returns:
1173 Raw HTTP response. Expected success: HTTP 200.
1175 Raises:
1176 RWSAuthenticationError: On HTTP 401.
1177 RWSNotFoundError: On HTTP 404.
1178 RWSHTTPError: On any other HTTP >= 400.
1179 # ABB codes: BAD_REQUEST(400), See
1181 Example:
1182 ```python
1183 >>> await get_external_joint_states(client, "task_value")
1184 <Response [200]>
1185 ```
1186 """
1187 return await client.get(
1188 f"/rw/rapid/tasks/{task}/motion",
1189 params={k: v for k, v in {"resource": resource}.items() if v is not None},
1190 )
1193async def post_calibration_for_displacement(
1194 client: RWSClient,
1195 task: str,
1196 method: str | None = None,
1197 type: str | None = None,
1198 point1: str | None = None,
1199 point2: str | None = None,
1200 point3: str | None = None,
1201 point4: str | None = None,
1202 point5: str | None = None,
1203 point6: str | None = None,
1204 point7: str | None = None,
1205 point8: str | None = None,
1206) -> httpx.Response:
1207 """
1208 Calibration for Displacement.
1210 Route: ``POST /rw/rapid/tasks/{task}/motion/calib``
1212 Args:
1213 client: Open RWSClient instance.
1214 task: URL path parameter.
1215 method: Body parameter. Optional.
1216 type: Body parameter. Optional.
1217 point1: Body parameter. Optional.
1218 point2: Body parameter. Optional.
1219 point3: Body parameter. Optional.
1220 point4: Body parameter. Optional.
1221 point5: Body parameter. Optional.
1222 point6: Body parameter. Optional.
1223 point7: Body parameter. Optional.
1224 point8: Body parameter. Optional.
1226 Returns:
1227 Raw HTTP response. Expected success: HTTP 200.
1229 Raises:
1230 RWSAuthenticationError: On HTTP 401.
1231 RWSNotFoundError: On HTTP 404.
1232 RWSHTTPError: On any other HTTP >= 400.
1233 # ABB codes: BAD_REQUEST (400) ,See
1235 Example:
1236 ```python
1237 >>> await post_calibration_for_displacement(client, "task_value")
1238 <Response [200]>
1239 ```
1240 """
1241 return await client.post(
1242 f"/rw/rapid/tasks/{task}/motion/calib",
1243 data={
1244 k: v
1245 for k, v in {
1246 "method": method,
1247 "type": type,
1248 "point1": point1,
1249 "point2": point2,
1250 "point3": point3,
1251 "point4": point4,
1252 "point5": point5,
1253 "point6": point6,
1254 "point7": point7,
1255 "point8": point8,
1256 }.items()
1257 if v is not None
1258 },
1259 )
1262async def post_calibration_for_tcp(
1263 client: RWSClient,
1264 task: str,
1265 method: str | None = None,
1266 type: str | None = None,
1267 tolerance: str | None = None,
1268 point1: str | None = None,
1269 point2: str | None = None,
1270 point3: str | None = None,
1271 point4: str | None = None,
1272 point5: str | None = None,
1273 point6: str | None = None,
1274 point7: str | None = None,
1275) -> httpx.Response:
1276 """
1277 Calibration for Tcp.
1279 Route: ``POST /rw/rapid/tasks/{task}/motion/calib``
1281 Args:
1282 client: Open RWSClient instance.
1283 task: URL path parameter.
1284 method: Body parameter. Optional.
1285 type: Body parameter. Optional.
1286 tolerance: Body parameter. Optional.
1287 point1: Body parameter. Optional.
1288 point2: Body parameter. Optional.
1289 point3: Body parameter. Optional.
1290 point4: Body parameter. Optional.
1291 point5: Body parameter. Optional.
1292 point6: Body parameter. Optional.
1293 point7: Body parameter. Optional.
1295 Returns:
1296 Raw HTTP response. Expected success: HTTP 200.
1298 Raises:
1299 RWSAuthenticationError: On HTTP 401.
1300 RWSNotFoundError: On HTTP 404.
1301 RWSHTTPError: On any other HTTP >= 400.
1302 # ABB codes: BAD_REQUEST (400) ,See
1304 Example:
1305 ```python
1306 >>> await post_calibration_for_tcp(client, "task_value")
1307 <Response [200]>
1308 ```
1309 """
1310 return await client.post(
1311 f"/rw/rapid/tasks/{task}/motion/calib",
1312 data={
1313 k: v
1314 for k, v in {
1315 "method": method,
1316 "type": type,
1317 "tolerance": tolerance,
1318 "point1": point1,
1319 "point2": point2,
1320 "point3": point3,
1321 "point4": point4,
1322 "point5": point5,
1323 "point6": point6,
1324 "point7": point7,
1325 }.items()
1326 if v is not None
1327 },
1328 )
1331async def get_rapid_program_resource(
1332 client: RWSClient,
1333 task: str,
1334 continue_on_err: str | None = None,
1335) -> httpx.Response:
1336 """
1337 Get RAPID program resource.
1339 Route: ``GET /rw/rapid/tasks/{task}/program``
1340 ABB constraints: Not supported in bootserver mode
1342 Args:
1343 client: Open RWSClient instance.
1344 task: URL path parameter.
1345 continue_on_err: Query parameter. Optional.
1347 Returns:
1348 Raw HTTP response. Expected success: HTTP 200.
1350 Raises:
1351 RWSAuthenticationError: On HTTP 401.
1352 RWSNotFoundError: On HTTP 404.
1353 RWSHTTPError: On any other HTTP >= 400.
1354 # ABB codes: BAD_REQUEST(400)
1356 Example:
1357 ```python
1358 >>> await get_rapid_program_resource(client, "task_value")
1359 <Response [200]>
1360 ```
1361 """
1362 return await client.get(
1363 f"/rw/rapid/tasks/{task}/program",
1364 params={k: v for k, v in {"continue_on_err": continue_on_err}.items() if v is not None},
1365 )
1368async def get_rapid_program_actions(
1369 client: RWSClient,
1370 task: str,
1371 action: str | None = None,
1372) -> httpx.Response:
1373 """
1374 Get rapid program actions.
1376 Route: ``GET /rw/rapid/tasks/{task}/program``
1377 ABB constraints: Not supported in bootserver mode
1379 Args:
1380 client: Open RWSClient instance.
1381 task: URL path parameter.
1382 action: Query parameter. Optional.
1384 Returns:
1385 Raw HTTP response. Expected success: HTTP 200.
1387 Raises:
1388 RWSAuthenticationError: On HTTP 401.
1389 RWSNotFoundError: On HTTP 404.
1390 RWSHTTPError: On any other HTTP >= 400.
1391 # ABB codes: BAD_REQUEST(400)
1393 Example:
1394 ```python
1395 >>> await get_rapid_program_actions(client, "task_value")
1396 <Response [200]>
1397 ```
1398 """
1399 return await client.get(
1400 f"/rw/rapid/tasks/{task}/program",
1401 params={k: v for k, v in {"action": action}.items() if v is not None},
1402 )
1405async def load_program_into_rapid_task(
1406 client: RWSClient,
1407 task: str,
1408 action: str | None = None,
1409 progpath: str | None = None,
1410 loadmode: str | None = None,
1411) -> httpx.Response:
1412 """
1413 Load program into a rapid task.
1415 Route: ``POST /rw/rapid/tasks/{task}/program``
1416 ABB constraints: Not supported in bootserver mode
1418 Args:
1419 client: Open RWSClient instance.
1420 task: URL path parameter.
1421 action: Query parameter. Optional.
1422 progpath: Body parameter. Optional.
1423 loadmode: Body parameter. Optional.
1425 Returns:
1426 Raw HTTP response. Expected success: HTTP 204.
1428 Raises:
1429 RWSAuthenticationError: On HTTP 401.
1430 RWSNotFoundError: On HTTP 404.
1431 RWSHTTPError: On any other HTTP >= 400.
1432 # ABB codes: BAD_REQUEST(400)
1434 Example:
1435 ```python
1436 >>> await load_program_into_rapid_task(client, "task_value")
1437 <Response [204]>
1438 ```
1439 """
1440 return await client.post(
1441 f"/rw/rapid/tasks/{task}/program",
1442 params={k: v for k, v in {"action": action}.items() if v is not None},
1443 data={
1444 k: v for k, v in {"progpath": progpath, "loadmode": loadmode}.items() if v is not None
1445 },
1446 )
1449async def post_unload_program_from_rapid_task(
1450 client: RWSClient,
1451 task: str,
1452 action: str | None = None,
1453) -> httpx.Response:
1454 """
1455 Unload program from a rapid task.
1457 Route: ``POST /rw/rapid/tasks/{task}/program``
1458 ABB constraints: Not supported in bootserver mode
1460 Args:
1461 client: Open RWSClient instance.
1462 task: URL path parameter.
1463 action: Query parameter. Optional.
1465 Returns:
1466 Raw HTTP response. Expected success: HTTP 204.
1468 Raises:
1469 RWSAuthenticationError: On HTTP 401.
1470 RWSNotFoundError: On HTTP 404.
1471 RWSHTTPError: On any other HTTP >= 400.
1472 # ABB codes: BAD_REQUEST(400)
1474 Example:
1475 ```python
1476 >>> await post_unload_program_from_rapid_task(client, "task_value")
1477 <Response [204]>
1478 ```
1479 """
1480 return await client.post(
1481 f"/rw/rapid/tasks/{task}/program",
1482 params={k: v for k, v in {"action": action}.items() if v is not None},
1483 data={},
1484 )
1487async def save_program(
1488 client: RWSClient,
1489 task: str,
1490 action: str | None = None,
1491 path: str | None = None,
1492) -> httpx.Response:
1493 """
1494 Save program.
1496 Route: ``POST /rw/rapid/tasks/{task}/program``
1497 ABB constraints: Not supported in bootserver mode.
1499 Args:
1500 client: Open RWSClient instance.
1501 task: URL path parameter.
1502 action: Query parameter. Optional.
1503 path: Body parameter. Optional.
1505 Returns:
1506 Raw HTTP response. Expected success: HTTP 204.
1508 Raises:
1509 RWSAuthenticationError: On HTTP 401.
1510 RWSNotFoundError: On HTTP 404.
1511 RWSHTTPError: On any other HTTP >= 400.
1512 # ABB codes: BAD_REQUEST(400)
1514 Example:
1515 ```python
1516 >>> await save_program(client, "task_value")
1517 <Response [204]>
1518 ```
1519 """
1520 return await client.post(
1521 f"/rw/rapid/tasks/{task}/program",
1522 params={k: v for k, v in {"action": action}.items() if v is not None},
1523 data={k: v for k, v in {"path": path}.items() if v is not None},
1524 )
1527async def set_program_name(
1528 client: RWSClient,
1529 task: str,
1530 action: str | None = None,
1531 name: str | None = None,
1532) -> httpx.Response:
1533 """
1534 Set program name.
1536 Route: ``POST /rw/rapid/tasks/{task}/program``
1537 ABB constraints: Not supported in bootserver mode.
1539 Args:
1540 client: Open RWSClient instance.
1541 task: URL path parameter.
1542 action: Query parameter. Optional.
1543 name: Body parameter. Optional.
1545 Returns:
1546 Raw HTTP response. Expected success: HTTP 204.
1548 Raises:
1549 RWSAuthenticationError: On HTTP 401.
1550 RWSNotFoundError: On HTTP 404.
1551 RWSHTTPError: On any other HTTP >= 400.
1552 # ABB codes: BAD_REQUEST(400)
1554 Example:
1555 ```python
1556 >>> await set_program_name(client, "task_value")
1557 <Response [204]>
1558 ```
1559 """
1560 return await client.post(
1561 f"/rw/rapid/tasks/{task}/program",
1562 params={k: v for k, v in {"action": action}.items() if v is not None},
1563 data={k: v for k, v in {"name": name}.items() if v is not None},
1564 )
1567async def set_entry_point(
1568 client: RWSClient,
1569 task: str,
1570 action: str | None = None,
1571 routine: str | None = None,
1572) -> httpx.Response:
1573 """
1574 Set Entry Point.
1576 Route: ``POST /rw/rapid/tasks/{task}/program``
1577 ABB constraints: Not supported in bootserver mode Rapid mastership is required
1579 Args:
1580 client: Open RWSClient instance.
1581 task: URL path parameter.
1582 action: Query parameter. Optional.
1583 routine: Body parameter. Optional.
1585 Returns:
1586 Raw HTTP response. Expected success: HTTP 204.
1588 Raises:
1589 RWSAuthenticationError: On HTTP 401.
1590 RWSNotFoundError: On HTTP 404.
1591 RWSHTTPError: On any other HTTP >= 400.
1592 # ABB codes: BAD REQUEST(400),FORBIDDEN(403),NOT_FOUND(404) see
1594 Example:
1595 ```python
1596 >>> await set_entry_point(client, "task_value")
1597 <Response [204]>
1598 ```
1599 """
1600 return await client.post(
1601 f"/rw/rapid/tasks/{task}/program",
1602 params={k: v for k, v in {"action": action}.items() if v is not None},
1603 data={k: v for k, v in {"routine": routine}.items() if v is not None},
1604 )
1607async def get_build_errors(
1608 client: RWSClient,
1609 task: str,
1610 limit: str | None = None,
1611 start: str | None = None,
1612) -> httpx.Response:
1613 """
1614 Get Build Errors.
1616 Route: ``GET /rw/rapid/tasks/{task}/program/builderror``
1617 ABB constraints: Default value of start is 1 and maximum value of limit is 30(maximum
1618 supported by RAPID). Absence of prev and next link indicates first and last page
1619 respectively. Not supported in bootserver mode.
1621 Args:
1622 client: Open RWSClient instance.
1623 task: URL path parameter.
1624 limit: Query parameter. Optional.
1625 start: Query parameter. Optional.
1627 Returns:
1628 Raw HTTP response. Expected success: HTTP 200.
1630 Raises:
1631 RWSAuthenticationError: On HTTP 401.
1632 RWSNotFoundError: On HTTP 404.
1633 RWSHTTPError: On any other HTTP >= 400.
1634 # ABB codes: NOT_FOUND(404),BAD_REQUEST(400), see
1636 Example:
1637 ```python
1638 >>> await get_build_errors(client, "task_value")
1639 <Response [200]>
1640 ```
1641 """
1642 return await client.get(
1643 f"/rw/rapid/tasks/{task}/program/builderror",
1644 params={k: v for k, v in {"limit": limit, "start": start}.items() if v is not None},
1645 )
1648async def get_rapid_breakpoint_actions(
1649 client: RWSClient,
1650 task: str,
1651 action: str | None = None,
1652) -> httpx.Response:
1653 """
1654 Get RAPID breakpoint actions.
1656 Route: ``GET /rw/rapid/tasks/{task}/program/breakpoint``
1657 ABB constraints: Not supported in bootserver mode
1659 Args:
1660 client: Open RWSClient instance.
1661 task: URL path parameter.
1662 action: Query parameter. Optional.
1664 Returns:
1665 Raw HTTP response. Expected success: HTTP 200.
1667 Raises:
1668 RWSAuthenticationError: On HTTP 401.
1669 RWSNotFoundError: On HTTP 404.
1670 RWSHTTPError: On any other HTTP >= 400.
1671 # ABB codes: BAD_REQUEST(400)
1673 Example:
1674 ```python
1675 >>> await get_rapid_breakpoint_actions(client, "task_value")
1676 <Response [200]>
1677 ```
1678 """
1679 return await client.get(
1680 f"/rw/rapid/tasks/{task}/program/breakpoint",
1681 params={k: v for k, v in {"action": action}.items() if v is not None},
1682 )
1685async def set_break_point(
1686 client: RWSClient,
1687 task: str,
1688 action: str | None = None,
1689 module: str | None = None,
1690 row: str | None = None,
1691 column: str | None = None,
1692) -> httpx.Response:
1693 """
1694 Set break point.
1696 Route: ``POST /rw/rapid/tasks/{task}/program/breakpoint``
1697 ABB constraints: Mastership is required Not supported in bootserver mode
1699 Args:
1700 client: Open RWSClient instance.
1701 task: URL path parameter.
1702 action: Query parameter. Optional.
1703 module: Body parameter. Optional.
1704 row: Body parameter. Optional.
1705 column: Body parameter. Optional.
1707 Returns:
1708 Raw HTTP response. Expected success: HTTP 204.
1710 Raises:
1711 RWSAuthenticationError: On HTTP 401.
1712 RWSNotFoundError: On HTTP 404.
1713 RWSHTTPError: On any other HTTP >= 400.
1714 # ABB codes: HTTP_BAD_REQUEST(400), FORBIDDEN(403), NOT_FOUND(404) see
1716 Example:
1717 ```python
1718 >>> await set_break_point(client, "task_value")
1719 <Response [204]>
1720 ```
1721 """
1722 return await client.post(
1723 f"/rw/rapid/tasks/{task}/program/breakpoint",
1724 params={k: v for k, v in {"action": action}.items() if v is not None},
1725 data={
1726 k: v
1727 for k, v in {"module": module, "row": row, "column": column}.items()
1728 if v is not None
1729 },
1730 )
1733async def get_break_points(
1734 client: RWSClient,
1735 task: str,
1736 start: str | None = None,
1737 limit: str | None = None,
1738) -> httpx.Response:
1739 """
1740 Get break points.
1742 Route: ``GET /rw/rapid/tasks/{task}/program/breakpoint``
1743 ABB constraints: Not supported in bootserver mode
1745 Args:
1746 client: Open RWSClient instance.
1747 task: URL path parameter.
1748 start: Query parameter. Optional.
1749 limit: Query parameter. Optional.
1751 Returns:
1752 Raw HTTP response. Expected success: HTTP 200.
1754 Raises:
1755 RWSAuthenticationError: On HTTP 401.
1756 RWSNotFoundError: On HTTP 404.
1757 RWSHTTPError: On any other HTTP >= 400.
1758 # ABB codes: NOT_FOUND(404)
1760 Example:
1761 ```python
1762 >>> await get_break_points(client, "task_value")
1763 <Response [200]>
1764 ```
1765 """
1766 return await client.get(
1767 f"/rw/rapid/tasks/{task}/program/breakpoint",
1768 params={k: v for k, v in {"start": start, "limit": limit}.items() if v is not None},
1769 )
1772async def get_rapid_task_motion_program_pointer_positions(
1773 client: RWSClient,
1774 task: str,
1775) -> httpx.Response:
1776 """
1777 Get RAPID task Motion&Program pointer positions.
1779 Route: ``GET /rw/rapid/tasks/{task}/pcp``
1780 ABB constraints: Not supported in bootserver mode
1782 Args:
1783 client: Open RWSClient instance.
1784 task: URL path parameter.
1786 Returns:
1787 Raw HTTP response. Expected success: HTTP 200.
1789 Raises:
1790 RWSAuthenticationError: On HTTP 401.
1791 RWSNotFoundError: On HTTP 404.
1792 RWSHTTPError: On any other HTTP >= 400.
1793 # ABB codes: BAD REQUEST(400) , see
1795 Example:
1796 ```python
1797 >>> await get_rapid_task_motion_program_pointer_positions(client, "task_value")
1798 <Response [200]>
1799 ```
1800 """
1801 return await client.get(f"/rw/rapid/tasks/{task}/pcp")
1804async def get_rapid_task_pcp_actions(
1805 client: RWSClient,
1806 task: str,
1807 action: str | None = None,
1808) -> httpx.Response:
1809 """
1810 Get RAPID task pcp actions.
1812 Route: ``GET /rw/rapid/tasks/{task}/pcp``
1813 ABB constraints: Not supported in bootserver mode
1815 Args:
1816 client: Open RWSClient instance.
1817 task: URL path parameter.
1818 action: Query parameter. Optional.
1820 Returns:
1821 Raw HTTP response. Expected success: HTTP 200.
1823 Raises:
1824 RWSAuthenticationError: On HTTP 401.
1825 RWSNotFoundError: On HTTP 404.
1826 RWSHTTPError: On any other HTTP >= 400.
1827 # ABB codes: BAD REQUEST(400) , see
1829 Example:
1830 ```python
1831 >>> await get_rapid_task_pcp_actions(client, "task_value")
1832 <Response [200]>
1833 ```
1834 """
1835 return await client.get(
1836 f"/rw/rapid/tasks/{task}/pcp",
1837 params={k: v for k, v in {"action": action}.items() if v is not None},
1838 )
1841async def set_the_program_pointer_pp_position_to(
1842 client: RWSClient,
1843 task: str,
1844 action: str | None = None,
1845 module: str | None = None,
1846 routine: str | None = None,
1847 line: str | None = None,
1848 column: str | None = None,
1849) -> httpx.Response:
1850 """
1851 Set the Program pointer(PP) position to cursor.
1853 Route: ``POST /rw/rapid/tasks/{task}/pcp``
1854 ABB constraints: Line number and Column number should be in given routine range.** Not
1855 supported in bootserver mode Rapid Mastership Required
1857 Args:
1858 client: Open RWSClient instance.
1859 task: URL path parameter.
1860 action: Query parameter. Optional.
1861 module: Body parameter. Optional.
1862 routine: Body parameter. Optional.
1863 line: Body parameter. Optional.
1864 column: Body parameter. Optional.
1866 Returns:
1867 Raw HTTP response. Expected success: HTTP 204.
1869 Raises:
1870 RWSAuthenticationError: On HTTP 401.
1871 RWSNotFoundError: On HTTP 404.
1872 RWSHTTPError: On any other HTTP >= 400.
1873 # ABB codes: BAD REQUEST(400) , see
1875 Example:
1876 ```python
1877 >>> await set_the_program_pointer_pp_position_to(client, "task_value")
1878 <Response [204]>
1879 ```
1880 """
1881 return await client.post(
1882 f"/rw/rapid/tasks/{task}/pcp",
1883 params={k: v for k, v in {"action": action}.items() if v is not None},
1884 data={
1885 k: v
1886 for k, v in {
1887 "module": module,
1888 "routine": routine,
1889 "line": line,
1890 "column": column,
1891 }.items()
1892 if v is not None
1893 },
1894 )
1897async def set_the_program_pointer_pp_position_to_2(
1898 client: RWSClient,
1899 task: str,
1900 action: str | None = None,
1901 module: str | None = None,
1902 routine: str | None = None,
1903 userlevel: str | None = None,
1904) -> httpx.Response:
1905 """
1906 Set the Program pointer(PP) position to routine.
1908 Route: ``POST /rw/rapid/tasks/{task}/pcp``
1909 ABB constraints: Not supported in bootserver mode. Controller needs to be in auto mode.
1911 Args:
1912 client: Open RWSClient instance.
1913 task: URL path parameter.
1914 action: Query parameter. Optional.
1915 module: Body parameter. Optional.
1916 routine: Body parameter. Optional.
1917 userlevel: Body parameter. Optional.
1919 Returns:
1920 Raw HTTP response. Expected success: HTTP 204.
1922 Raises:
1923 RWSAuthenticationError: On HTTP 401.
1924 RWSNotFoundError: On HTTP 404.
1925 RWSHTTPError: On any other HTTP >= 400.
1926 # ABB codes: BAD REQUEST(400) , see
1928 Example:
1929 ```python
1930 >>> await set_the_program_pointer_pp_position_to_2(client, "task_value")
1931 <Response [204]>
1932 ```
1933 """
1934 return await client.post(
1935 f"/rw/rapid/tasks/{task}/pcp",
1936 params={k: v for k, v in {"action": action}.items() if v is not None},
1937 data={
1938 k: v
1939 for k, v in {"module": module, "routine": routine, "userlevel": userlevel}.items()
1940 if v is not None
1941 },
1942 )
1945async def set_the_program_pointer_pp_position_to_3(
1946 client: RWSClient,
1947 task: str,
1948 action: str | None = None,
1949 module: str | None = None,
1950 routine: str | None = None,
1951) -> httpx.Response:
1952 """
1953 Set the Program pointer(PP) position to routine by URL.
1955 Route: ``POST /rw/rapid/tasks/{task}/pcp``
1956 ABB constraints: Not supported in bootserver mode. Controller needs to be in auto mode.
1958 Args:
1959 client: Open RWSClient instance.
1960 task: URL path parameter.
1961 action: Query parameter. Optional.
1962 module: Body parameter. Optional.
1963 routine: Body parameter. Optional.
1965 Returns:
1966 Raw HTTP response. Expected success: HTTP 204.
1968 Raises:
1969 RWSAuthenticationError: On HTTP 401.
1970 RWSNotFoundError: On HTTP 404.
1971 RWSHTTPError: On any other HTTP >= 400.
1972 # ABB codes: BAD REQUEST(400) , see
1974 Example:
1975 ```python
1976 >>> await set_the_program_pointer_pp_position_to_3(client, "task_value")
1977 <Response [204]>
1978 ```
1979 """
1980 return await client.post(
1981 f"/rw/rapid/tasks/{task}/pcp",
1982 params={k: v for k, v in {"action": action}.items() if v is not None},
1983 data={k: v for k, v in {"module": module, "routine": routine}.items() if v is not None},
1984 )
1987async def set_the_program_pointer_pp_position_to_4(
1988 client: RWSClient,
1989 task: str,
1990 action: str | None = None,
1991) -> httpx.Response:
1992 """
1993 Set the Program pointer(PP) position to previous instruction.
1995 Route: ``POST /rw/rapid/tasks/{task}/pcp``
1996 ABB constraints: Not supported in bootserver mode. Controller needs to be in auto mode.
1998 Args:
1999 client: Open RWSClient instance.
2000 task: URL path parameter.
2001 action: Query parameter. Optional.
2003 Returns:
2004 Raw HTTP response. Expected success: HTTP 204.
2006 Raises:
2007 RWSAuthenticationError: On HTTP 401.
2008 RWSNotFoundError: On HTTP 404.
2009 RWSHTTPError: On any other HTTP >= 400.
2010 # ABB codes: BAD REQUEST(400) , see
2012 Example:
2013 ```python
2014 >>> await set_the_program_pointer_pp_position_to_4(client, "task_value")
2015 <Response [204]>
2016 ```
2017 """
2018 return await client.post(
2019 f"/rw/rapid/tasks/{task}/pcp",
2020 params={k: v for k, v in {"action": action}.items() if v is not None},
2021 data={},
2022 )
2025async def set_the_program_pointer_pp_position_to_5(
2026 client: RWSClient,
2027 task: str,
2028 action: str | None = None,
2029) -> httpx.Response:
2030 """
2031 Set the Program pointer(PP) position to next instruction.
2033 Route: ``POST /rw/rapid/tasks/{task}/pcp``
2034 ABB constraints: Not supported in bootserver mode. Controller needs to be in auto mode.
2036 Args:
2037 client: Open RWSClient instance.
2038 task: URL path parameter.
2039 action: Query parameter. Optional.
2041 Returns:
2042 Raw HTTP response. Expected success: HTTP 204.
2044 Raises:
2045 RWSAuthenticationError: On HTTP 401.
2046 RWSNotFoundError: On HTTP 404.
2047 RWSHTTPError: On any other HTTP >= 400.
2048 # ABB codes: BAD REQUEST(400) , see
2050 Example:
2051 ```python
2052 >>> await set_the_program_pointer_pp_position_to_5(client, "task_value")
2053 <Response [204]>
2054 ```
2055 """
2056 return await client.post(
2057 f"/rw/rapid/tasks/{task}/pcp",
2058 params={k: v for k, v in {"action": action}.items() if v is not None},
2059 data={},
2060 )
2063async def subscribe_on_program_pointer(
2064 client: RWSClient,
2065 identifier: str | None = None,
2066 identifier_p: str | None = None,
2067) -> httpx.Response:
2068 """
2069 Subscribe on Program Pointer.
2071 Route: ``POST /subscription``
2072 ABB constraints: On subscription an empty initial event will be generated followed by the
2073 current value. Not supported in bootserver mode
2075 Args:
2076 client: Open RWSClient instance.
2077 identifier: Body parameter. Optional.
2078 identifier_p: Body parameter. Optional.
2080 Returns:
2081 Raw HTTP response. Expected success: HTTP 201.
2083 Raises:
2084 RWSAuthenticationError: On HTTP 401.
2085 RWSNotFoundError: On HTTP 404.
2086 RWSHTTPError: On any other HTTP >= 400.
2087 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
2089 Example:
2090 ```python
2091 >>> await subscribe_on_program_pointer(client)
2092 <Response [201]>
2093 ```
2094 """
2095 return await client.post(
2096 "/subscription",
2097 data={
2098 k: v
2099 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
2100 if v is not None
2101 },
2102 )
2105async def subscribe_on_motion_pointer(
2106 client: RWSClient,
2107 identifier: str | None = None,
2108 identifier_p: str | None = None,
2109) -> httpx.Response:
2110 """
2111 Subscribe on Motion Pointer.
2113 Route: ``POST /subscription``
2114 ABB constraints: On subscription an empty initial event will be generated followed by the
2115 current value. Not supported in bootserver mode
2117 Args:
2118 client: Open RWSClient instance.
2119 identifier: Body parameter. Optional.
2120 identifier_p: Body parameter. Optional.
2122 Returns:
2123 Raw HTTP response. Expected success: HTTP 201.
2125 Raises:
2126 RWSAuthenticationError: On HTTP 401.
2127 RWSNotFoundError: On HTTP 404.
2128 RWSHTTPError: On any other HTTP >= 400.
2129 # ABB codes: BAD_REQUEST(400), UNSUPPORTED_MEDIA(415)
2131 Example:
2132 ```python
2133 >>> await subscribe_on_motion_pointer(client)
2134 <Response [201]>
2135 ```
2136 """
2137 return await client.post(
2138 "/subscription",
2139 data={
2140 k: v
2141 for k, v in {"identifier": identifier, "identifier_p": identifier_p}.items()
2142 if v is not None
2143 },
2144 )
2147async def get_rapid_service_routine(
2148 client: RWSClient,
2149 task: str,
2150 start: str | None = None,
2151 limit: str | None = None,
2152 allread: str | None = None,
2153) -> httpx.Response:
2154 """
2155 Get RAPID service routine.
2157 Route: ``GET /rw/rapid/tasks/{task}/serviceroutine``
2158 ABB constraints: Not supported in bootserver mode
2160 Args:
2161 client: Open RWSClient instance.
2162 task: URL path parameter.
2163 start: Query parameter. Optional.
2164 limit: Query parameter. Optional.
2165 allread: Query parameter. Optional.
2167 Returns:
2168 Raw HTTP response. Expected success: HTTP 200.
2170 Raises:
2171 RWSAuthenticationError: On HTTP 401.
2172 RWSNotFoundError: On HTTP 404.
2173 RWSHTTPError: On any other HTTP >= 400.
2174 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404) HTTP Errors, see
2176 Example:
2177 ```python
2178 >>> await get_rapid_service_routine(client, "task_value")
2179 <Response [200]>
2180 ```
2181 """
2182 return await client.get(
2183 f"/rw/rapid/tasks/{task}/serviceroutine",
2184 params={
2185 k: v
2186 for k, v in {"start": start, "limit": limit, "allread": allread}.items()
2187 if v is not None
2188 },
2189 )
2192async def get_rapid_program_counter_position(
2193 client: RWSClient,
2194 task: str,
2195) -> httpx.Response:
2196 """
2197 Get RAPID Program counter position.
2199 Route: ``GET /rw/rapid/tasks/{task}/execution``
2200 ABB constraints: Not supported in bootserver mode
2202 Args:
2203 client: Open RWSClient instance.
2204 task: URL path parameter.
2206 Returns:
2207 Raw HTTP response. Expected success: HTTP 200.
2209 Raises:
2210 RWSAuthenticationError: On HTTP 401.
2211 RWSNotFoundError: On HTTP 404.
2212 RWSHTTPError: On any other HTTP >= 400.
2213 # ABB codes: BAD_REQUEST(400), NOT_FOUND(404), see
2215 Example:
2216 ```python
2217 >>> await get_rapid_program_counter_position(client, "task_value")
2218 <Response [200]>
2219 ```
2220 """
2221 return await client.get(f"/rw/rapid/tasks/{task}/execution")