# Compas\_rrc SetDigital Method

**URL:** <https://forum.compas-framework.org/t/compas-rrc-setdigital-method/710>\
**Category:** Uncategorized\
**Created:** [May 10, 2023, 6:12pm UTC](https://forum.compas-framework.org/t/compas-rrc-setdigital-method/710 "2023-05-10T18:12:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrasvestartas](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/petrasvestartas/32/305_2.png) [@petrasvestartas](https://forum.compas-framework.org/u/petrasvestartas)\
**Post date:** [May 10, 2023, 6:12pm UTC](https://forum.compas-framework.org/t/compas-rrc-setdigital-method/710/1 "2023-05-10T18:12:41Z")

</div>

Hi,

I have a small simple question regarding compas\_rrc, `SetDigital` method:

```python
    #io test
    print('light_in')
    abb.send_and_wait(rrc.SetDigital('Local_IO_0_DO1', 1), timeout=5)
    abb.send_and_wait(rrc.WaitTime(1))
    print('light_set')

```

**Context:**  
A current IO is set to “1” and the code sends an instruction to set the IO to “1” as well (by mistake or not).

**Question**  
Would this call be ignored or overwritten or I should check if it is already set to 1 ?

---

<div class="post-metadata">

**Author:** ![tetov](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@tetov](https://forum.compas-framework.org/u/tetov)\
**Post date:** [August 9, 2023, 11:31am UTC](https://forum.compas-framework.org/t/compas-rrc-setdigital-method/710/2 "2023-08-09T11:31:14Z")

</div>

It would run SetDO in RAPID on the controller. And you can run that without any (real) impact on performance. So I wouldn’t check current state before setting it, that would definitely be slower.
