Compas_rrc SetDigital Method

Hi,

I have a small simple question regarding compas_rrc, SetDigital method:

    #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 ?

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.

1 Like